:root {
  --purple-950: #160b26;
  --purple-900: #1f1136;
  --purple-800: #2c1848;
  --purple-700: #3d2263;
  --purple-600: #553188;
  --gold-300: #f3df9a;
  --gold-400: #e8c96a;
  --gold-500: #d4af37;
  --gold-600: #b8932a;
  --cream: #f6f0ff;
  --muted: #c9b8e6;
  --card-border: rgba(212, 175, 55, 0.28);
  --card-bg: linear-gradient(160deg, rgba(61, 34, 99, 0.66), rgba(31, 17, 54, 0.78));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(120, 72, 190, 0.35), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(85, 49, 136, 0.4), transparent 60%),
    linear-gradient(170deg, var(--purple-950) 0%, var(--purple-900) 45%, var(--purple-800) 100%);
  min-height: 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

/* ===== 顶部 ===== */
header.hero {
  text-align: center;
  padding: 52px 24px 30px;
  position: relative;
}

.logo-img {
  height: 104px; width: auto;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: block;
  background: rgba(248, 244, 255, 0.96);
  padding: 12px 15px;
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.18), 0 0 24px rgba(212, 175, 55, 0.18);
  object-fit: contain;
}

.hero h1 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero .divider {
  width: 180px; height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* 顶部导航胶囊 */
.top-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-top: 20px;
}
a.nav-pill {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: color .2s, border-color .2s, background .2s;
}
a.nav-pill:hover {
  color: var(--gold-300);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.1);
}
a.nav-pill.active {
  color: var(--gold-300);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.14);
}
a.nav-pill svg { width: 14px; height: 14px; }

/* ===== 首页入口面板 ===== */
.portal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

a.portal-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--cream);
  border-radius: 24px;
  padding: 34px 30px 30px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.portal-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(212, 175, 55, 0.16), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
a.portal-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
a.portal-card:hover::before { opacity: 1; }

.portal-card .p-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid var(--card-border);
  margin-bottom: 18px;
}
.portal-card .p-icon svg { width: 27px; height: 27px; stroke: var(--gold-400); }

.portal-card h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.portal-card .p-en {
  color: var(--gold-500);
  font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.portal-card p.p-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  color: var(--cream);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
.portal-card .p-go {
  position: absolute; top: 28px; right: 26px;
  color: var(--gold-500);
}
.portal-card .p-go svg { width: 22px; height: 22px; }

/* ===== 分区 ===== */
section.board { margin-top: 40px; }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

.section-head .badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-300);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
}
.section-head .badge svg { width: 18px; height: 18px; }
.section-head .en { color: var(--muted); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.section-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--card-border), transparent); }

.group-label {
  margin: 26px 2px 14px;
  color: var(--gold-400);
  font-size: 13px;
  letter-spacing: 0.18em;
  display: flex; align-items: center; gap: 10px;
}
.group-label::before, .group-label::after {
  content: ""; height: 1px; width: 34px; background: var(--card-border);
}

/* ===== 卡片 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

a.card, details.card.expandable {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--cream);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(6px);
}

a.card { padding: 22px 22px 20px; }

a.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.22s ease;
  pointer-events: none;
}

a.card:hover, a.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(212, 175, 55, 0.25);
}
a.card:hover::after { opacity: 1; }

.card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid var(--card-border);
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--gold-400); }

.card h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 6px; }
.card p.desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.card .arrow {
  position: absolute; top: 22px; right: 20px;
  color: var(--gold-500);
  transition: transform 0.22s ease;
}
a.card:hover .arrow { transform: translate(3px, -3px); }
.card .arrow svg { width: 18px; height: 18px; }

/* ===== 可展开卡片 ===== */
details.card.expandable > summary {
  list-style: none;
  padding: 22px 22px 20px;
  cursor: pointer;
  position: relative;
}
details.card.expandable > summary::-webkit-details-marker { display: none; }
details.card.expandable[open] { border-color: rgba(212, 175, 55, 0.5); }

.card .chevron {
  position: absolute; top: 24px; right: 20px;
  color: var(--gold-500);
  transition: transform 0.22s ease;
}
.card .chevron svg { width: 18px; height: 18px; }
details.card.expandable[open] .chevron { transform: rotate(180deg); }

.sub-links { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 20px; }

a.sub-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--cream);
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
a.sub-link:hover, a.sub-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.13);
  transform: translateX(3px);
}
.sub-link .dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}
.sub-link .sub-title { font-size: 15px; font-weight: 600; letter-spacing: 0.03em; }
.sub-link .sub-note { color: var(--muted); font-size: 12.5px; }
.sub-link .sub-go { margin-left: auto; color: var(--gold-500); }
.sub-link .sub-go svg { width: 15px; height: 15px; }

/* ===== 页脚 ===== */
footer {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  line-height: 1.9;
}
footer .gold { color: var(--gold-500); }
footer a { color: var(--gold-400); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px 48px; }
  header.hero { padding: 34px 16px 22px; }
  .grid { gap: 14px; }
  .portal { gap: 14px; margin-top: 26px; }
  a.portal-card { padding: 26px 22px 24px; }
  .logo-img { height: 84px; }
}
