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

/* ===========================
   CSS 变量
=========================== */
:root {
  --c-bg: #0D0D0D;
  --c-gold: #C9A84C;
  --c-light: #F5F5F5;
  --c-glass: rgba(201,168,76,0.08);
  --c-glass-border: rgba(201,168,76,0.22);
  --c-muted: rgba(245,245,245,0.55);
  --c-dark2: #141414;
  --c-dark3: #1a1a1a;
  --font-head: 'Righteous', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-body: 'Poppins', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --radius: 4px;
  --radius-pill: 9999px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --max-content: 860px;
  --max-wide: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--c-bg);
  color: var(--c-light);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--c-bg);
  color: var(--c-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-light); }
ul { list-style: none; }

/* ===========================
   侧边栏导航（aside > nav > ul > li > a）
=========================== */
.site-aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-glass-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-aside nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0.75rem 0;
}

.nav-list li a.nav-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  border: 1px solid var(--c-glass-border);
  background: var(--c-glass);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  min-height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-list li a.nav-pill:hover,
.nav-list li a.nav-pill.active {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
  font-weight: 700;
}

/* 侧边辅助区（aside 里的额外内容） */
.aside-related {
  padding: 0 0 0 1.5rem;
  display: none; /* 在桌面端的侧边栏中显示，固定头部隐藏此部分 */
}

/* ===========================
   英雄区域 - 首页
=========================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 120px 3rem 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    var(--c-bg);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 60px,
    rgba(201,168,76,0.025) 60px,
    rgba(201,168,76,0.025) 61px
  );
  pointer-events: none;
}

.hero-inner {
  text-align: right;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 1.05;
  color: var(--c-light);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: heroReveal 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.hero-title.kinetic-title {
  background: linear-gradient(135deg, var(--c-light) 0%, var(--c-gold) 60%, var(--c-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroReveal 1s cubic-bezier(0.16,1,0.3,1) 0.2s both, textShimmer 4s linear 1.2s infinite;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  animation: fadeSlideUp 0.9s ease 0.5s both;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border-radius: var(--radius-pill);
  background: var(--c-gold);
  color: var(--c-bg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fadeSlideUp 0.9s ease 0.7s both;
  min-height: 48px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover {
  background: var(--c-light);
  color: var(--c-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}

.hero-deco {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.deco-word {
  font-family: var(--font-head);
  font-size: clamp(5rem, 12vw, 14rem);
  color: rgba(201,168,76,0.04);
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

/* ===========================
   页面英雄（非首页）
=========================== */
.page-hero {
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 3rem 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 100%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-glass-border);
}

.page-hero-inner {
  text-align: right;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.breadcrumb-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-glass-border);
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.breadcrumb-badge a {
  color: var(--c-muted);
}

.breadcrumb-badge a:hover {
  color: var(--c-gold);
}

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--c-light);
  margin-bottom: 0.75rem;
  animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

.page-hero-title.kinetic-title {
  background: linear-gradient(135deg, var(--c-light) 0%, var(--c-gold) 60%, var(--c-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both, textShimmer 4s linear 0.9s infinite;
}

.hero-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-gold);
  letter-spacing: 0.06em;
}

/* ===========================
   主内容区布局
   main > div.wrap > section > article
=========================== */
main {
  padding: 4rem 3rem 5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.wrap {
  width: 100%;
}

.wrap > section {
  margin-bottom: 4.5rem;
}

.wrap > section:last-child {
  margin-bottom: 0;
}

section > article {
  max-width: var(--max-content);
  /* 正文靠右，配合英雄右对齐视觉 */
  margin-left: auto;
}

/* ===========================
   标题装饰：h2 + p.subtitle
=========================== */
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--c-light);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.section-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: var(--c-gold);
  border-radius: 2px;
}

p.subtitle {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* ===========================
   正文内容
=========================== */
.page-content {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245,245,245,0.88);
}

.page-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--c-light);
  margin: 2.5rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.15rem;
  color: var(--c-gold);
  margin: 2rem 0 0.5rem;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.page-content a {
  color: var(--c-gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.4);
}

.page-content a:hover {
  color: var(--c-light);
  text-decoration-color: var(--c-light);
}

.page-content blockquote {
  border-left: 3px solid var(--c-gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--c-glass);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-muted);
}

.page-content strong {
  color: var(--c-light);
  font-weight: 600;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.5rem;
}

/* ===========================
   玻璃拟态卡片
=========================== */
.glass-card {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
}

.glass-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-light);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.glass-card h3 a {
  color: var(--c-light);
  transition: color var(--transition);
}

.glass-card h3 a:hover {
  color: var(--c-gold);
}

.glass-card p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.card-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--c-gold);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* ===========================
   卡片网格
=========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.card-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ===========================
   胶囊链接按钮
=========================== */
.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.pill-link:hover {
  background: var(--c-gold);
  color: var(--c-bg);
}

.more-link-wrap {
  text-align: right;
  margin-top: 2rem;
}

/* ===========================
   FAQ 特殊样式
=========================== */
.faq-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ===========================
   首页 - 特定段落
=========================== */
.home-article .page-content {
  border-left: 1px solid var(--c-glass-border);
  padding-left: 2rem;
}

/* ===========================
   About - 功能特色网格
=========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-icon {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--c-gold);
  line-height: 1;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-light);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* ===========================
   Contact - 提示列表
=========================== */
.tips-list {
  max-width: var(--max-content);
  margin-left: auto;
}

.tips-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips-list li {
  font-size: 0.95rem;
  color: rgba(245,245,245,0.8);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-glass-border);
  transition: background var(--transition);
}

.tips-list li:last-child { border-bottom: none; }

.tips-list li:hover {
  background: rgba(201,168,76,0.05);
  border-radius: var(--radius);
}

.tips-list li a {
  color: var(--c-gold);
  font-weight: 500;
}

/* ===========================
   Privacy - 摘要卡片
=========================== */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.summary-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-gold);
  margin-bottom: 0.5rem;
}

.summary-item p {
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* ===========================
   页脚
   footer > section×n
=========================== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-glass-border);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
}

.site-footer > section {
  padding: 3rem 2rem;
  border-right: 1px solid var(--c-glass-border);
}

.site-footer > section:last-of-type {
  border-right: none;
}

.footer-brand {
  grid-column: 1 / 2;
  display: flex;
  align-items: center;
}

.footer-logo-text {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  color: var(--c-gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer ul li a {
  font-size: 0.88rem;
  color: var(--c-muted);
  transition: color var(--transition);
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
}

.site-footer ul li a:hover {
  color: var(--c-gold);
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--c-glass-border);
  border-right: none !important;
  background: rgba(0,0,0,0.3);
}

.footer-copyright p {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}

.footer-note {
  font-size: 0.75rem !important;
  color: rgba(245,245,245,0.3) !important;
}

/* ===========================
   动画 @keyframes
=========================== */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(40px) skewY(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stagger list animation for cards */
.card-grid li {
  animation: staggerFadeIn 0.5s ease both;
}

.card-grid li:nth-child(1) { animation-delay: 0.05s; }
.card-grid li:nth-child(2) { animation-delay: 0.1s; }
.card-grid li:nth-child(3) { animation-delay: 0.15s; }
.card-grid li:nth-child(4) { animation-delay: 0.2s; }
.card-grid li:nth-child(5) { animation-delay: 0.25s; }
.card-grid li:nth-child(6) { animation-delay: 0.3s; }

/* ===========================
   prefers-reduced-motion
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-title.kinetic-title,
  .page-hero-title.kinetic-title {
    background: none;
    -webkit-text-fill-color: var(--c-light);
    color: var(--c-light);
  }
}

/* ===========================
   Intersection Observer 触发类
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   响应式断点
=========================== */
@media (max-width: 1024px) {
  main { padding: 3rem 2rem 4rem; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .footer-brand {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--c-glass-border);
  }

  .site-footer > section {
    border-right: none;
    border-bottom: 1px solid var(--c-glass-border);
    padding: 2rem 1.5rem;
  }

  .hero-section { padding: 110px 2rem 4rem; }
  .page-hero { padding: 90px 2rem 2.5rem; }

  .hero-deco { left: 1rem; }
}

@media (max-width: 768px) {
  .site-aside {
    min-height: 56px;
    padding: 0 1rem;
  }

  .nav-list {
    gap: 0.25rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar { display: none; }

  .nav-list li a.nav-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.85rem;
    min-height: 40px;
  }

  .hero-section {
    min-height: 100svh;
    padding: 90px 1.5rem 3.5rem;
    align-items: flex-end;
  }

  .hero-inner { text-align: right; }

  .hero-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .hero-deco {
    left: 0.75rem;
    top: 55%;
  }

  .deco-word {
    font-size: clamp(4rem, 18vw, 8rem);
  }

  .hero-sub { max-width: 100%; }

  .page-hero {
    min-height: 36vh;
    padding: 80px 1.5rem 2rem;
  }

  main { padding: 2.5rem 1.5rem 3.5rem; }

  .section-heading { font-size: 1.4rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .features-grid { grid-template-columns: 1fr; }
  .summary-cards { grid-template-columns: 1fr; }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
    padding: 2rem 1.5rem;
  }

  .footer-logo-text { font-size: 2rem; }

  .site-footer > section { padding: 1.5rem; }

  .aside-related { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.8rem, 11vw, 3rem); }
  .hero-badge { font-size: 0.7rem; }
  .hero-cta { padding: 0.7rem 1.8rem; font-size: 0.9rem; }

  main { padding: 2rem 1.25rem 3rem; }

  .glass-card { padding: 1.25rem; }

  .page-hero-title { font-size: clamp(1.6rem, 8vw, 2.5rem); }
}

/* ===========================
   桌面端：侧边栏固定 + 内容区布局
   aside 在内容左侧（视觉实现）
=========================== */
@media (min-width: 1200px) {
  .site-aside {
    /* 改为真正侧边栏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .aside-related {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0 0.5rem 2rem;
    border-left: 1px solid var(--c-glass-border);
    margin-left: 1.5rem;
  }

  .aside-heading {
    font-size: 0.72rem;
    color: var(--c-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
  }

  .aside-links {
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .aside-links li a {
    font-size: 0.78rem;
    color: var(--c-muted);
    white-space: nowrap;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
  }

  .aside-links li a:hover {
    color: var(--c-gold);
    border-color: var(--c-glass-border);
  }
}
