/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --navy:        #1a2744;
  --navy-mid:    #2d4080;
  --blue-accent: #4a90e2;
  --blue-light:  #f0f4fc;
  --white:       #ffffff;
  --text-dark:   #1a1f2e;
  --text-mid:    #4a5568;
  --text-light:  #8a94a6;
  --border:      #dde3f0;
  --tag-bg:      #e8f0fe;
  --tag-color:   #1a56db;

  --font-serif: 'Noto Serif TC', serif;
  --font-sans:  'Noto Sans TC', sans-serif;

  --section-pad: 80px;
  --container:   1100px;
  --radius:      10px;
  --radius-lg:   16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   Layout Helpers
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   HERO (index.html)
   =========================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 7s ease;
  filter: blur(1px) brightness(1.15);
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 1%,
      rgba(0, 0, 0, 0.0) 60%
    ),
    linear-gradient(
      to top,
      rgba(26, 39, 68, 1) 0%,
      rgba(26, 39, 68, 0.6) 15%,
      rgba(26, 39, 68, 0.0) 55%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px;
  animation: fadeUp 1s ease both;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.886);
  margin-bottom: 18px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}

.hero-en {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.886);
  letter-spacing: 1px;
  font-weight: 300;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   INFO BAR (index.html)
   =========================== */
.info-bar {
  background: var(--navy);
  padding: 22px 0;
}

.info-bar h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ===========================
   PROFILE SECTION (index.html)
   =========================== */
.profile-section {
  padding: var(--section-pad) 0;
  background: var(--blue-light);
}

.profile-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: 0 4px 40px rgba(26, 39, 68, 0.08);
}

.profile-img-wrap {
  position: relative;
}

.profile-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(26, 39, 68, 0.15);
}

.profile-info {
  padding-top: 8px;
}

.student-id {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.student-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
  margin-bottom: 28px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.info-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
}

.info-list .label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 2px;
}

.info-list .value {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 2px 4px 2px 0;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.25s, transform 0.2s;
}

.btn-readmore:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-readmore .arrow {
  transition: transform 0.25s;
}

.btn-readmore:hover .arrow {
  transform: translateX(4px);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--navy);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

/* ===========================
   NAVBAR (readMore.html)
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-brand:hover {
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}

.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(74,144,226,0.2);
  color: #7eb8f7;
}

/* ===========================
   READMORE PAGE BODY
   =========================== */
.readmore-page {
  padding-top: 62px;
}

/* ===========================
   CONTENT SECTIONS (readMore.html)
   =========================== */
.content-section {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.content-section.alt-bg {
  background: var(--blue-light);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-accent);
  letter-spacing: 2px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

/* ===========================
   SUB BLOCKS & IMAGES
   =========================== */
.sub-block {
  margin-bottom: 52px;
}

.sub-block:last-child {
  margin-bottom: 0;
}

.sub-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.img-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.img-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
.img-row.cols-4 { grid-template-columns: repeat(2, 1fr); }

.img-row figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: transform 0.3s, box-shadow 0.3s;
}

.img-row figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 39, 68, 0.12);
}

.img-row figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.img-row figure:hover img {
  transform: scale(1.03);
}

.sub-block > p,
.sub-block p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 12px;
}

/* ===========================
   REFLECTION BLOCK
   =========================== */
.reflection-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border-left: 4px solid var(--blue-accent);
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.06);
}

.reflection-block p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 24px;
}

.reflection-block p:last-child {
  margin-bottom: 0;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .profile-img {
    width: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .img-row.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .img-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --section-pad: 52px; }

  .container { padding: 0 18px; }

  .nav-links { gap: 2px; }
  .nav-links a { font-size: 12px; padding: 5px 10px; }

  .img-row.cols-2,
  .img-row.cols-3,
  .img-row.cols-4 { grid-template-columns: 1fr; }

  .reflection-block { padding: 28px 22px; }

  .info-list li { grid-template-columns: 70px 1fr; }
}

/* ===========================
   Pic Lightbox
   =========================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
  cursor: default;
  animation: lightboxIn 0.25s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.img-row figure {
  cursor: zoom-in;
}

.img-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.img-hint::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
/* ===========================
   PROFESSIONAL TIMELINE REDESIGN (readMore.html)
   =========================== */
:root {
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --shadow-soft: 0 16px 45px rgba(26, 39, 68, 0.10);
  --shadow-strong: 0 26px 70px rgba(26, 39, 68, 0.18);
}

.readmore-page {
  background:
    radial-gradient(circle at top left, rgba(74, 144, 226, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fb 42%, #f8fafc 100%);
  color: var(--text-dark);
}

.readmore-hero {
  position: relative;
  padding: 118px 0 76px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 39, 68, 0.98), rgba(45, 64, 128, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.5), transparent 28%);
  color: var(--white);
}

.readmore-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.readmore-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--blue-accent);
}

.readmore-hero h1 {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.readmore-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-stats span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-stats strong {
  display: block;
  color: #9dccff;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-wrap {
  position: relative;
  padding: 34px 0 44px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(calc((100vw - var(--container)) / 2 + 86px), 42px);
  width: 2px;
  background: linear-gradient(180deg, rgba(74,144,226,0), rgba(74,144,226,0.55), rgba(74,144,226,0));
}

.content-section,
.content-section.alt-bg {
  background: transparent;
  padding: 42px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.timeline-marker {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 120px;
  color: var(--text-light);
  text-align: center;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--blue-accent);
  box-shadow: 0 0 0 6px rgba(74,144,226,0.16), 0 12px 30px rgba(74,144,226,0.38);
}

.timeline-step {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
}

.timeline-marker p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.timeline-card {
  position: relative;
  padding: 44px;
  border: 1px solid rgba(221, 227, 240, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-accent), #8fbdf2, transparent);
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(240,244,252,0.92));
}

.section-header {
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-num {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 11px;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.04em;
}

.section-lead {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.9;
}

.sub-block {
  position: relative;
  margin-bottom: 44px;
  padding: 26px;
  border: 1px solid rgba(221, 227, 240, 0.74);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
}

.sub-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.sub-title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-accent);
  box-shadow: 0 0 0 5px rgba(74,144,226,0.13);
}

.img-row {
  gap: 22px;
  margin-bottom: 18px;
}

.img-row.cols-3,
.img-row.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

.img-row figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 227, 240, 0.75);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 18px 35px rgba(26, 39, 68, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  isolation: isolate;
}

.img-row figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), transparent 38%, rgba(26,39,68,0.08));
  opacity: 0.75;
  pointer-events: none;
}

.img-row figure:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 28px 60px rgba(26, 39, 68, 0.22),
    0 0 0 1px rgba(74,144,226,0.18);
}

.img-row figure img {
  height: 300px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.img-row figure:hover img {
  transform: scale(1.045);
}

.sub-block > p,
.sub-block p {
  margin-top: 14px;
  color: var(--text-mid);
}

.reflection-block {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reflection-block p {
  padding: 22px 24px;
  border-left: 4px solid var(--blue-accent);
  border-radius: 14px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.06);
}

.final-photo {
  max-width: 720px;
  margin: 30px auto 0;
}

.final-photo .img-row {
  display: block;
}

.final-photo .img-row figure img {
  height: auto;
  max-height: 520px;
}

.navbar {
  background: rgba(15, 26, 50, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar.scrolled {
  background: rgba(15, 26, 50, 0.94);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.nav-links a.active {
  background: rgba(126, 184, 247, 0.18);
  color: #b8d9ff;
}

.lightbox-overlay img {
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.72);
}

@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-wrap::before {
    left: 28px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline-marker {
    position: relative;
    top: 0;
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    text-align: left;
  }

  .timeline-card {
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .readmore-hero {
    padding: 94px 0 56px;
  }

  .hero-stats,
  .img-row.cols-2,
  .img-row.cols-3,
  .img-row.cols-4 {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .sub-block {
    padding: 18px;
  }

  .img-row figure img {
    height: 240px;
  }
}
