/* =========================================
   lojqko.com.cn 全站共享样式
   设计系统 · 排版 · 组件 · SVG 动效 · 响应式
   ========================================= */

/* --- 设计变量 --- */
:root {
  --color-bg: #0b1f1a;
  --color-surface: #122b24;
  --color-surface-elevated: #1a3d33;
  --color-text-primary: #f0fdf4;
  --color-text-secondary: #a3c4b8;
  --color-accent-start: #059669;
  --color-accent-end: #34d399;
  --color-gradient-accent: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  --color-border: rgba(52, 211, 153, 0.25);
  --color-focus: #6ee7b7;
  --font-heading: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --spacing-section: clamp(3rem, 8vw, 6rem);
  --spacing-container: clamp(1rem, 4vw, 3rem);
}

/* --- 基础重置与排版 --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text-primary); line-height: 1.6; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw + 0.8rem, 2.4rem); margin-top: 0; }
h3 { font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem); margin-top: 0; }
p { margin: 0 0 1em; color: var(--color-text-secondary); }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { padding-left: 1.2em; margin: 0; }
li { margin-bottom: 0.4em; }

/* --- 通用容器 --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-container); }
.section { padding: var(--spacing-section) 0; position: relative; }
.section-grid { display: grid; gap: 2rem; }
.section-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* --- 页头与页脚 --- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 31, 26, 0.85); backdrop-filter: blur(12px); 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: 0.8rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--color-text-primary); }
.nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; padding: 0.4rem 0; font-size: 0.95rem; color: var(--color-text-secondary); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text-primary); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--color-gradient-accent); border-radius: 2px; }
.footer { border-top: 1px solid var(--color-border); padding: 3rem 0 2rem; background: var(--color-surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-title { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.8rem; color: var(--color-text-primary); }
.footer-links { list-style: none; }
.footer-link { display: block; padding: 0.3rem 0; color: var(--color-text-secondary); }
.footer-link:hover { color: var(--color-accent-end); }
.copyright { text-align: center; font-size: 0.85rem; color: rgba(163, 196, 184, 0.7); margin-top: 2rem; }

/* --- 按钮与交互 --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; border: none; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.btn-primary { background: var(--color-gradient-accent); color: #042b21; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-primary); }
.btn-outline:hover { background: rgba(52, 211, 153, 0.1); border-color: var(--color-accent-end); }
.btn:active { transform: scale(0.98); }

/* --- 卡片 --- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-meta { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }

/* --- 表格 --- */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-elevated); font-weight: 600; color: var(--color-text-primary); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
details summary { cursor: pointer; padding: 1rem 0; font-weight: 500; color: var(--color-text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0.5rem 0 1rem; color: var(--color-text-secondary); line-height: 1.7; }

/* --- SVG 动效基础 --- */
.svg-stage { position: relative; width: 100%; max-width: 100%; overflow: hidden; }
.anim-flow { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowLine 8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.anim-pulse { animation: pulseDot 3s ease-in-out infinite; }
@keyframes flowLine { 0% { stroke-dashoffset: 1; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes drawPath { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.3); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .anim-flow, .anim-draw, .anim-pulse { animation: none !important; }
}

/* --- 响应式 --- */
@media (max-width: 900px) {
  .section-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; height: auto; padding: 1rem 0; gap: 0.8rem; }
  .nav-list { justify-content: center; }
  .section-grid { grid-template-columns: 1fr; }
}
