@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* ══════════════════════════════
   Variables
══════════════════════════════ */
:root {
  --gold:        #C4A84F;
  --gold-light:  #D4BC74;
  --gold-dim:    rgba(196,168,79,.18);
  --gold-line:   rgba(196,168,79,.35);
  --dark:        #0E0E0A;
  --dark-2:      #1A1A14;
  --dark-3:      #252519;
  --cream:       #F8F4EC;
  --cream-2:     #F2EDE3;
  --text-main:   #1A1A14;
  --text-muted:  #6B6455;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.7;
}

/* ══════════════════════════════
   Header
══════════════════════════════ */
.site-header {
  background:
    linear-gradient(180deg, rgba(14,14,10,.88) 0%, rgba(14,14,10,.70) 60%, rgba(14,14,10,.85) 100%),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&q=80')
    center / cover no-repeat;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--gold-line);
}

/* ── Top Navigation ── */
.top-nav {
  display: flex;
  align-items: stretch;
  padding: 0 48px;
  background: rgba(10,10,8,.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line);
}
.top-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 15px 18px;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  transition: color .25s;
}
.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.top-nav a:hover { color: var(--gold-light); }
.top-nav a:hover::after { transform: scaleX(1); }
.top-nav a.active {
  color: var(--gold);
  font-weight: 500;
}
.top-nav a.active::after { transform: scaleX(1); }

/* ── Header Text ── */
.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 48px;
  text-align: center;
}
.header-text h1 {
  font-family: 'Cormorant Garamond', 'Noto Sans TC', serif;
  font-size: 3.4rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.header-text h1 .zh {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  letter-spacing: .15em;
}
.header-text .en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .55em;
  text-transform: uppercase;
  margin-top: 10px;
}
/* Gold line divider under title */
.header-text h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
  opacity: .8;
}
.explore-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 44px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .28s, color .28s;
}
.explore-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ══════════════════════════════
   Section Navigation Rows
══════════════════════════════ */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 36px;
  background: var(--dark-2);
  border-bottom: 1px solid var(--gold-line);
}
.btn-row .btn-yellow {
  background: transparent;
  color: rgba(255,255,255,.65);
  padding: 14px 22px;
  border: none;
  border-right: 1px solid rgba(255,255,255,.06);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: color .22s;
}
.btn-row .btn-yellow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.btn-row .btn-yellow:hover {
  color: var(--gold-light);
  background: rgba(196,168,79,.06);
  transform: none;
  box-shadow: none;
}
.btn-row .btn-yellow:hover::after { transform: scaleX(1); }

.btn-row.sub {
  background: var(--dark-3);
  padding: 0 36px;
  border-bottom: 1px solid rgba(196,168,79,.15);
}
.btn-row.sub .btn-yellow {
  font-size: .68rem;
  padding: 11px 18px;
  color: rgba(255,255,255,.5);
}
.btn-row.sub .btn-yellow:hover { color: var(--gold-light); }

/* ══════════════════════════════
   Notice Box
══════════════════════════════ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 36px;
  background: var(--dark-2);
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid var(--gold-line);
}
.notice-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--gold);
  letter-spacing: .1em;
  line-height: 1.3;
}
.notice p { font-size: .88rem; line-height: 1.85; color: rgba(255,255,255,.65); }
.notice a { color: var(--gold-light); text-underline-offset: 3px; }

/* ══════════════════════════════
   Content Area
══════════════════════════════ */
.content {
  padding: 32px 36px;
  background: var(--cream);
  max-width: 1200px;
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 1px solid var(--gold-line);
  margin: 24px 0;
}

/* ── Section Badge ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-line);
  width: 100%;
}
.section-badge::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Link Grid Buttons ── */
.btn-yellow {
  background: var(--cream);
  color: var(--text-main);
  padding: 12px 20px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid transparent;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 0;
  transition: border-color .22s, border-left-color .22s, color .22s, background .22s;
  box-shadow: none;
}
.btn-yellow:hover {
  border-color: var(--gold-line);
  border-left-color: var(--gold);
  color: var(--text-main);
  background: rgba(196,168,79,.07);
  transform: none;
  box-shadow: none;
}

/* ── Link Grid ── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.link-grid .btn-yellow {
  width: 100%;
  text-align: left;
  padding: 13px 18px;
}

/* ══════════════════════════════
   Grade Cards (Homepage)
══════════════════════════════ */
.grade-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream-2);
  border-top: 1px solid var(--gold-line);
}
.grade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  border-right: 1px solid var(--gold-line);
  position: relative;
  transition: background .28s;
  overflow: hidden;
}
.grade-card:last-child { border-right: none; }
.grade-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .35s ease;
}
.grade-card:hover { background: #EDE9E0; }
.grade-card:hover::before { transform: scaleX(1); }
.grade-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: .05em;
}
.grade-label {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .2em;
  margin-top: 10px;
  color: var(--text-main);
}
.grade-sub {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .15em;
  margin-top: 8px;
}

/* ══════════════════════════════
   Responsive
══════════════════════════════ */
@media (max-width: 900px) {
  .grade-cards { grid-template-columns: 1fr; border-top: 1px solid var(--gold-line); }
  .grade-card { border-right: none; border-bottom: 1px solid var(--gold-line); padding: 36px 24px; }
}
@media (max-width: 768px) {
  .header-text h1 { font-size: 2.2rem; letter-spacing: .15em; }
  .header-text .en { font-size: .85rem; letter-spacing: .35em; }
  .link-grid { grid-template-columns: 1fr; }
  .top-nav { padding: 0 16px; flex-wrap: wrap; }
  .top-nav a { padding: 11px 10px; font-size: .68rem; letter-spacing: .1em; }
  .btn-row, .btn-row.sub { padding: 0 16px; }
  .notice { padding: 16px 20px; flex-direction: column; gap: 8px; }
  .content { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .header-text h1 { font-size: 1.8rem; }
  .explore-btn { padding: 11px 32px; font-size: .68rem; letter-spacing: .25em; }
}
