@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

/* ===========================
   设计令牌
   =========================== */
:root {
  --c-rose:    #eb879c;
  --c-pink:    #ffb6c1;
  --c-dark:    #26171a;
  --c-dark2:   #3a2228;
  --c-dark3:   #4d2f38;
  --c-light:   #fff5f7;
  --c-muted:   #c9a0aa;
  --c-border:  #e8b4be;
  --c-text:    #26171a;
  --c-text-lt: #5c3040;
  --c-bg:      #fff5f7;
  --c-white:   #ffffff;

  --font-head: 'Orbitron', 'Exo 2', sans-serif;
  --font-body: 'Exo 2', system-ui, sans-serif;

  --radius:    10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(235,135,156,.15), 0 1px 3px rgba(38,23,26,.08);
  --shadow-md: 0 4px 16px rgba(235,135,156,.2), 0 2px 6px rgba(38,23,26,.1);
  --shadow-lg: 0 8px 32px rgba(235,135,156,.25), 0 4px 12px rgba(38,23,26,.12);

  --nav-h:     64px;
  --max-w:     1100px;
  --content-w: 780px;
}

/* ===========================
   重置 & 基础
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-rose);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
a:hover { color: var(--c-dark3); }
a:focus-visible {
  outline: 2px solid var(--c-rose);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,h2,h3,h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--c-dark);
}

p { margin-bottom: .9em; }
ul,ol { padding-left: 1.4em; margin-bottom: .9em; }
li { margin-bottom: .3em; }

hr {
  border: none;
  border-top: 2px solid var(--c-border);
  margin: 1.2rem 0 1.6rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===========================
   顶部导航
   =========================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  border-bottom: 2px solid var(--c-rose);
  height: var(--nav-h);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-rose);
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: .5rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.brand:hover { color: var(--c-pink); }

.top-nav nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  flex-wrap: wrap;
}

.nav-dl {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-dl dt, .nav-dl dd {
  display: contents;
}

.nav-dl dt a,
.nav-dl dd a {
  color: var(--c-muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background .2s, color .2s;
}
.nav-dl dt a:hover,
.nav-dl dd a:hover {
  background: rgba(235,135,156,.12);
  color: var(--c-pink);
}

.nav-dl--right {
  margin-left: auto;
}

.btn-contact {
  background: var(--c-rose) !important;
  color: var(--c-white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: .55rem 1rem !important;
}
.btn-contact:hover {
  background: var(--c-dark3) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .6rem;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-pink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Hero — 首页
   =========================== */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-dark);
  overflow: hidden;
  text-align: center;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(235,135,156,.22) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem 1.5rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: .06em;
  text-shadow: 0 2px 20px rgba(235,135,156,.4);
  margin-bottom: .6rem;
}

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--c-muted);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--c-rose);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .25s, box-shadow .25s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--c-dark3);
  color: var(--c-pink);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--c-rose);
  color: var(--c-pink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .25s, color .25s, transform .2s;
}
.btn-outline:hover {
  background: var(--c-rose);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* ===========================
   Hero — 内页（小版）
   =========================== */
.page-hero {
  position: relative;
  min-height: 22vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-dark);
  overflow: hidden;
  text-align: center;
}

.page-hero .hero-inner {
  padding: 2.5rem 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--c-white);
  letter-spacing: .05em;
  text-shadow: 0 2px 16px rgba(235,135,156,.35);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ===========================
   主容器 & 布局
   =========================== */
.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.content-section {
  margin-bottom: 3rem;
}

.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.content-body {
  min-width: 0;
}

.content-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

/* ===========================
   正文内容
   =========================== */
.page-content h2,
.page-content h3 {
  font-family: var(--font-head);
  color: var(--c-dark);
  margin: 1.6em 0 .5em;
}

.page-content h2 { font-size: 1.25rem; }
.page-content h3 { font-size: 1.05rem; }

.page-content p { margin-bottom: .85em; }

.page-content a {
  color: var(--c-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content ul,
.page-content ol {
  margin-bottom: .85em;
}

.legal-content { font-size: .96rem; }

/* ===========================
   Figure / div 元信息
   =========================== */
.intro-figure figcaption,
.about-tagline,
.contact-figure figcaption {
  font-style: italic;
  color: var(--c-text-lt);
  font-size: .95rem;
  margin-bottom: 1rem;
  padding-left: .8rem;
  border-left: 3px solid var(--c-rose);
}

.article-meta {
  margin-bottom: 1rem;
}

.privacy-figure {
  margin-bottom: .5rem;
}

.article-dates {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.pub-date, .mod-date, .page-date {
  font-size: .82rem;
  color: var(--c-muted);
  font-family: var(--font-head);
  letter-spacing: .04em;
}

/* ===========================
   面包屑
   =========================== */
.breadcrumb {
  font-size: .82rem;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-rose); }
.breadcrumb span[aria-current] { color: var(--c-text-lt); }

/* ===========================
   侧边栏
   =========================== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.content-aside h3 {
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .1em;
  color: var(--c-rose);
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.aside-links li { margin-bottom: .15rem; }

.aside-links a {
  display: block;
  font-size: .86rem;
  color: var(--c-text-lt);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.aside-links a:hover {
  background: rgba(235,135,156,.1);
  color: var(--c-rose);
}
.aside-links a[aria-current="page"] {
  color: var(--c-rose);
  font-weight: 600;
}

.aside-block {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

.aside-block--notice p {
  font-size: .82rem;
  color: var(--c-text-lt);
  line-height: 1.5;
  margin: 0;
}

/* ===========================
   FAQ 카드 그리드 (首页)
   =========================== */
.faq-section {
  margin-bottom: 2rem;
}

.faq-section h2 {
  font-size: 1.4rem;
  font-family: var(--font-head);
  color: var(--c-dark);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.faq-card {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.faq-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-rose);
  transform: translateY(-3px);
}

.card-title {
  font-size: .96rem;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.card-title a { color: var(--c-dark); }
.card-title a:hover { color: var(--c-rose); }

.card-date {
  font-size: .75rem;
  color: var(--c-muted);
  font-family: var(--font-head);
  display: block;
  margin-bottom: .4rem;
  letter-spacing: .04em;
}

.card-desc {
  font-size: .85rem;
  color: var(--c-text-lt);
  margin: 0;
  line-height: 1.55;
}

/* ===========================
   相关指南 (FAQ 页)
   =========================== */
.related-section {
  margin-top: 2.5rem;
}

.related-section h2 {
  font-size: 1.2rem;
  font-family: var(--font-head);
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.sib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sib-card {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.sib-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-rose);
  transform: translateY(-2px);
}
.sib-card h3 {
  font-size: .88rem;
  margin-bottom: .3rem;
}
.sib-card h3 a { color: var(--c-dark); }
.sib-card h3 a:hover { color: var(--c-rose); }
.sib-card time {
  font-size: .72rem;
  color: var(--c-muted);
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-head);
}
.sib-card p {
  font-size: .82rem;
  color: var(--c-text-lt);
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   页脚
   =========================== */
.site-footer {
  background: var(--c-dark);
  border-top: 2px solid var(--c-dark3);
  padding: 2rem 1.25rem 1.25rem;
}

.site-footer > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* 两栏布局：品牌 + 导航 */
.site-footer {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1;
  max-width: 260px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-rose);
  letter-spacing: .06em;
  display: block;
  margin-bottom: .5rem;
}

.footer-desc {
  font-size: .8rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin: 0;
}

.footer-nav {
  grid-column: 2;
  grid-row: 1;
}

.footer-dl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .1rem;
}

.footer-dl dt,
.footer-dl dd {
  display: contents;
}

.footer-dl dt a,
.footer-dl dd a {
  font-size: .8rem;
  color: var(--c-muted);
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  min-height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.footer-dl dt a:hover,
.footer-dl dd a:hover {
  color: var(--c-pink);
  background: rgba(235,135,156,.08);
}

.footer-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid var(--c-dark3);
  padding-top: 1rem;
}
.footer-copy p {
  font-size: .76rem;
  color: var(--c-dark3);
  color: #6b4555;
  margin: 0;
  text-align: center;
  letter-spacing: .04em;
}

/* ===========================
   Scroll Reveal 动效
   =========================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===========================
   移动端响应式
   =========================== */
@media (max-width: 860px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    margin-top: 1.5rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .footer-brand,
  .footer-nav {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .top-nav nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--c-dark);
    border-bottom: 2px solid var(--c-rose);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
  }
  .top-nav nav.nav-open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-dl {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .nav-dl--right {
    margin-left: 0;
    border-top: 1px solid var(--c-dark3);
    padding-top: .5rem;
    margin-top: .25rem;
  }
  .nav-dl dt a,
  .nav-dl dd a {
    font-size: .9rem;
    padding: .6rem .8rem;
    width: 100%;
    min-height: 44px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .sib-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-title { letter-spacing: .03em; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
  .breadcrumb { font-size: .78rem; }
  .footer-dl { flex-direction: column; }
  .footer-dl dt a,
  .footer-dl dd a { white-space: normal; }
}
