/* ===== 字体引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --c-bg: #1a1a2e;
  --c-accent: #e94560;
  --c-light: #f5f5f5;
  --c-bg2: #16213e;
  --c-bg3: #0f3460;
  --c-text: #e8e8ec;
  --c-text-muted: #9999b3;
  --c-border: rgba(233,69,96,0.25);
  --c-card: #1e2040;
  --radius: 18px;
  --nav-h: 96px;
  --font-serif: 'Noto Serif TC', 'Georgia', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --max-prose: 760px;
  --max-site: 1200px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.3; }

/* ===== 站点包裹 ===== */
.site-wrapper { min-height: 100vh; overflow-x: hidden; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  will-change: transform;
}
.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 14px 24px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-link { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 36px; width: auto; }
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: 0.04em;
}
.contact-entry {
  color: var(--c-accent);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--c-accent);
  border-radius: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.contact-entry:hover { background: var(--c-accent); color: var(--c-light); opacity: 1; }

.header-nav-row {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 24px;
}
.main-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
}
.main-nav ol li a:hover {
  color: var(--c-light);
  background: rgba(233,69,96,0.08);
  border-bottom-color: var(--c-accent);
  opacity: 1;
}

/* ===== Hero 区（首页）===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-bg2);
}
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-wrap {
  position: absolute;
  overflow: hidden;
}
.hero-img-wrap--a {
  top: 0; left: 0;
  width: 58%; height: 100%;
  transform: skewX(-3deg) translateX(-2%);
  z-index: 1;
}
.hero-img-wrap--a img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.2);
}
.hero-img-wrap--b {
  top: 8%; right: 0;
  width: 50%; height: 85%;
  transform: skewX(-3deg);
  z-index: 1;
}
.hero-img-wrap--b img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}
.hero-slash {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 180px;
  height: 130%;
  background: var(--c-accent);
  transform: skewX(-8deg) translateX(-50%);
  opacity: 0.18;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 48px 24px;
  max-width: 680px;
  background: rgba(26,26,46,0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  margin: 0 auto;
}
.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 16px;
  line-height: 1.25;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  min-height: 48px;
  background: var(--c-accent);
  color: var(--c-light);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,69,96,0.45);
  opacity: 1;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 44px;
  background: transparent;
  color: var(--c-accent);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--c-accent);
  border-radius: 40px;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--c-accent);
  color: var(--c-light);
  opacity: 1;
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

/* ===== 主体布局 ===== */
.site-main {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
/* aside 在左 */
.site-main > .wrap { order: 2; min-width: 0; }
.site-main > aside { order: 1; }

/* wrap 内部：main > div.wrap > section > article */
.wrap { width: 100%; }

/* ===== 内容 section ===== */
.content-section {
  margin-bottom: 48px;
}
.content-section > article {}

/* ===== 文章排版 ===== */
.prose-article {}
.article-header { margin-bottom: 24px; }
.article-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 12px;
  margin-top: 8px;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.article-meta time { margin-right: 12px; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-accent); opacity: 1; }

.prose-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
}
.prose-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-light);
  margin: 2em 0 0.6em;
}
.prose-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-light);
  margin: 1.6em 0 0.5em;
}
.prose-body p { margin-bottom: 1.1em; }
.prose-body ul, .prose-body ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.1em;
}
.prose-body ol { list-style: decimal; }
.prose-body li { margin-bottom: 0.4em; }
.prose-body a { color: var(--c-accent); text-decoration: underline; }
.prose-body strong { color: var(--c-light); font-weight: 600; }
.prose-body blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 8px 16px;
  margin: 1.2em 0;
  background: rgba(233,69,96,0.06);
  border-radius: 0 8px 8px 0;
}

/* ===== hr 装饰 ===== */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  margin: 16px 0 28px;
  border-radius: 2px;
}

/* ===== Section 标题 ===== */
.index-section h2,
.quick-links-section h2,
.child-list-section h2,
.cta-section h2,
.faq-cta-section h2,
.about-links-section h2,
.contact-links-section h2,
.privacy-nav-section h2,
.pricing-note-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 6px;
}

/* ===== 卡片 ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 4px;
}
.card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card h3 a { color: var(--c-light); }
.card h3 a:hover { color: var(--c-accent); opacity: 1; }
.card p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.card time {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  display: block;
}

/* ===== 快速链接 ===== */
.quick-links-section { margin-bottom: 48px; }
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.ql-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--c-card);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.ql-item:hover {
  background: var(--c-accent);
  color: var(--c-light);
  border-color: var(--c-accent);
  opacity: 1;
}

/* ===== 侧边栏 ===== */
.site-aside {
  background: var(--c-bg2);
  border-radius: var(--radius);
  padding: 24px 18px;
  border: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.aside-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.site-aside nav ol { display: flex; flex-direction: column; gap: 2px; }
.site-aside nav ol li a {
  display: block;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  min-height: 36px;
  line-height: 1.4;
}
.site-aside nav ol li a:hover {
  background: rgba(233,69,96,0.1);
  color: var(--c-light);
  opacity: 1;
}
.aside-block { margin-top: 24px; border-top: 1px solid var(--c-border); padding-top: 18px; }
.aside-block h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.aside-links { display: flex; flex-direction: column; gap: 4px; }
.aside-links li a {
  display: block;
  padding: 6px 10px;
  font-size: 0.83rem;
  color: var(--c-text-muted);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.aside-links li a:hover {
  background: rgba(233,69,96,0.1);
  color: var(--c-light);
  opacity: 1;
}

/* ===== feature 页 Hero ===== */
.feature-hero-banner {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--c-bg3);
}
.feature-hero-banner .feature-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}
.feature-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 30%, rgba(26,26,46,0.95) 100%);
}

/* ===== page-band（通用内页标题栏）===== */
.page-band {
  position: relative;
  overflow: hidden;
  background: var(--c-bg2);
  padding: 56px 24px 52px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: -20px;
}
.page-band::before {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 60%; height: 100%;
  background: var(--c-bg3);
  transform: skewX(-6deg);
  z-index: 0;
}
.page-band::after {
  content: '';
  position: absolute;
  top: 0; left: 30%;
  width: 12px; height: 100%;
  background: var(--c-accent);
  opacity: 0.6;
  transform: skewX(-6deg);
  z-index: 1;
}
.page-band-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-site);
  margin: 0 auto;
}
.page-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  background: rgba(233,69,96,0.12);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.page-band h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 10px;
  line-height: 1.25;
}
.page-band time {
  font-size: 0.83rem;
  color: var(--c-text-muted);
}
.about-band-img {
  position: absolute;
  right: 5%; top: 10%;
  width: 300px; height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  z-index: 2;
  opacity: 0.5;
  transform: skewX(-2deg);
}
.about-band-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 子页列表（section > article×n）===== */
.child-list-section { margin-bottom: 48px; }
.child-list-section > article {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--c-border);
  transition: transform var(--transition);
}
.child-list-section > article:hover { transform: translateX(4px); }
.child-list-section > article h3 { font-size: 1rem; margin-bottom: 6px; }
.child-list-section > article h3 a { color: var(--c-light); }
.child-list-section > article h3 a:hover { color: var(--c-accent); opacity: 1; }
.child-list-section > article p { font-size: 0.88rem; color: var(--c-text-muted); }
.child-list-section > article time { font-size: 0.78rem; color: var(--c-text-muted); display: block; margin-top: 6px; }

/* ===== 特定页面 main 变体 ===== */
.site-main--feature,
.site-main--pricing,
.site-main--faq,
.site-main--about,
.site-main--contact,
.site-main--privacy {
  padding-top: 52px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0d0d1f;
  border-top: 1px solid var(--c-border);
  padding: 56px 24px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-border);
}
.footer-brand-big {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.87rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 260px;
}
.footer-nav-col nav ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-nav-col nav ol li a {
  display: block;
  padding: 7px 0;
  font-size: 0.87rem;
  color: var(--c-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
  line-height: 1.5;
}
.footer-nav-col nav ol li a:hover {
  color: var(--c-accent);
  padding-left: 6px;
  opacity: 1;
}
.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-link {
  font-size: 0.87rem;
  color: var(--c-text-muted);
  padding: 8px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--c-accent); opacity: 1; }
.footer-bottom {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* ===== Scroll Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
  .reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
  .reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
  .reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
  .reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
  .reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
  .reveal-stagger.visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.48s; }

  /* 视差层 */
  .hero-img-wrap--a { transition: transform 0.1s linear; }
  .hero-img-wrap--b { transition: transform 0.1s linear; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ===== 移动端断点 ===== */
@media (max-width: 768px) {
  :root { --nav-h: 120px; }

  .site-main {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 24px;
  }
  .site-main > .wrap { order: 1; }
  .site-main > aside { order: 2; }
  .site-aside { position: static; }

  .header-nav-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav ol { flex-wrap: nowrap; }
  .main-nav ol li a { white-space: nowrap; padding: 10px 12px; }

  .hero-section { min-height: 60vh; }
  .hero-img-wrap--a { width: 100%; }
  .hero-img-wrap--b { display: none; }
  .hero-copy { margin: 16px; padding: 32px 16px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand-big { font-size: 2rem; }

  .cards-row { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }

  .page-band { clip-path: none; margin-bottom: 0; }
  .page-band::before { display: none; }
  .about-band-img { display: none; }

  .feature-hero-banner { height: 180px; }

  .cta-links { flex-direction: column; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .header-brand-row { padding: 10px 14px 8px; }
  .brand-text { font-size: 1.1rem; }
  .hero-h1 { font-size: 1.35rem; }
  .quick-links-grid { grid-template-columns: 1fr 1fr; }
}
