/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-hover: #181818;
  --color-text-primary: #f0ece4;
  --color-text-secondary: #a8a29e;
  --color-accent: #c9a84c;
  --color-accent-light: #e2cc78;
  --color-border: rgba(201, 168, 76, 0.25);
  --color-border-strong: rgba(201, 168, 76, 0.5);
  
  --font-heading: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
ul, ol { list-style: none; }
button, input[type="submit"], a[role="button"] { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* =========================================
   排版系统 (流体字号)
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem); margin-bottom: var(--spacing-sm); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); margin-bottom: var(--spacing-md); }
h3 { font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem); margin-bottom: var(--spacing-sm); }
p { margin-bottom: 1rem; color: var(--color-text-secondary); max-width: 65ch; }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--spacing-sm); }
.section { padding: var(--spacing-xl) 0; position: relative; }
.section + .section { border-top: 1px solid var(--color-border); }

/* =========================================
   页头与导航
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: var(--spacing-xs); font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; gap: var(--spacing-md); }
.nav a {
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.mobile-toggle { display: none; }

/* =========================================
   按钮组件
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #0a0a0a;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35); }
.btn-outline {
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent);
}
.btn-outline:hover { background: rgba(201, 168, 76, 0.1); border-color: var(--color-accent); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* =========================================
   网格与布局辅助
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); }
.asymmetric-left { grid-template-columns: 1.2fr 1fr; }
.asymmetric-right { grid-template-columns: 1fr 1.2fr; }

/* =========================================
   核心功能卡片
   ========================================= */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.feature-icon {
  width: 40px; height: 40px; margin-bottom: var(--spacing-sm);
  stroke: var(--color-accent); stroke-width: 1.5; fill: none;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* =========================================
   界面示意区块
   ========================================= */
.ui-mockup {
  background: #0f0f0f; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--spacing-md);
  position: relative; overflow: hidden;
}
.mock-chat {
  display: flex; flex-direction: column; gap: 1rem;
  background: #141414; border-radius: var(--radius-md); padding: var(--spacing-sm);
  min-height: 240px;
}
.chat-msg { padding: 0.6rem 0.9rem; border-radius: var(--radius-md); font-size: 0.9rem; max-width: 80%; position: relative; }
.msg-in { background: #2a2a2a; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-out { background: var(--color-accent); color: #0a0a0a; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-status { font-size: 0.75rem; color: var(--color-text-secondary); text-align: right; margin-top: 0.25rem; }

/* =========================================
   表格样式
   ========================================= */
.platform-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  border: 1px solid var(--color-border);
}
.platform-table th, .platform-table td {
  padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border);
}
.platform-table th { background: #111; color: var(--color-accent); font-weight: 500; }
.platform-table tr:hover td { background: rgba(201, 168, 76, 0.05); }

/* =========================================
   FAQ 样式
   ========================================= */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item details { padding: var(--spacing-sm) 0; }
.faq-item summary {
  font-weight: 500; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--color-accent); transition: transform var(--transition-base);
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding-top: var(--spacing-xs); font-size: 0.95rem; color: var(--color-text-secondary); }

/* =========================================
   动态卡片与阅读列表
   ========================================= */
.update-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--spacing-md);
  display: flex; flex-direction: column; height: 100%;
}
.update-card time { font-size: 0.8rem; color: var(--color-accent); margin-bottom: 0.5rem; display: block; }
.update-card h4 { font-size: 1rem; margin-bottom: 0.5rem; font-family: var(--font-body); font-weight: 600; }
.update-card p { font-size: 0.9rem; flex-grow: 1; margin-bottom: 1rem; }
.related-list li {
  padding: 0.75rem 0; border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.related-list a { font-weight: 500; transition: color var(--transition-base); }
.related-list a:hover { color: var(--color-accent); }
.related-list span { font-size: 0.85rem; color: var(--color-text-secondary); }

/* =========================================
   页脚
   ========================================= */
.site-footer {
  background: #050505; border-top: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  font-size: 0.9rem; color: var(--color-text-secondary);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--spacing-lg); justify-content: space-between; }
.footer-col h4 { color: var(--color-text-primary); margin-bottom: var(--spacing-sm); font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { margin-top: var(--spacing-md); padding-top: var(--spacing-md); border-top: 1px solid var(--color-border); text-align: center; font-size: 0.8rem; }

/* =========================================
   SVG 动效核心规则
   ========================================= */
.svg-anim-container { position: relative; width: 100%; max-width: 100%; overflow: hidden; }
.svg-anim-container svg { width: 100%; height: auto; }
.draw-path {
  stroke-linecap: round; stroke-linejoin: round;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.spin-slow { animation: spin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin-reverse { animation: spin-reverse 15s linear infinite; transform-box: fill-box; transform-origin: center; }
.float-subtle { animation: float 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.draw-animate { animation: draw-line 4s ease-out forwards; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes draw-line {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .spin-slow, .spin-reverse, .float-subtle, .draw-animate { animation: none !important; }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .grid-2, .asymmetric-left, .asymmetric-right { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .section { padding: var(--spacing-lg) 0; }
  .platform-table { font-size: 0.85rem; }
  .platform-table th, .platform-table td { padding: 0.6rem; }
}
