/* =========================================
   10jqko.com.cn 全站共享样式
   ========================================= */

/* 设计变量 */
:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-text-primary: #111111;
  --color-text-secondary: #3d3d3d;
  --color-text-muted: #6b6b6b;
  --color-border: #dcdad4;
  --color-accent: #1e40af;
  --color-accent-hover: #1e3a8a;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --container-max: 1200px;
  --spacing-section: 5rem;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* 流体排版 */
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; letter-spacing: -0.02em; color: var(--color-text-primary); }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
small { font-size: 0.875rem; color: var(--color-text-muted); }

/* 布局容器 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--spacing-section) 0; }

/* 页头与页脚 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 247, 244, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 36px; width: auto; }
.brand-name { font-size: 1.125rem; font-weight: 700; color: var(--color-text-primary); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--color-text-primary); }
.site-footer { background: var(--color-text-primary); color: #b0b0b0; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { color: #ffffff; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: #ffffff; }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid #333333; font-size: 0.85rem; color: #777777; }

/* 组件：按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 2rem; border-radius: var(--radius-sm); font-weight: 600; transition: all 0.25s ease; }
.btn-primary { background: var(--color-text-primary); color: #ffffff; }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { border: 1.5px solid var(--color-border); background: transparent; color: var(--color-text-primary); }
.btn-outline:hover { border-color: var(--color-text-primary); background: rgba(0,0,0,0.03); }

/* 组件：卡片 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 1.1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f5f4f1; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafaf8; }

/* 组件：FAQ (<details>/<summary>) */
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1.25rem; overflow: hidden; transition: box-shadow 0.2s ease; }
details:hover { box-shadow: var(--shadow-sm); }
summary { padding: 1.35rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.35rem 1.35rem; color: var(--color-text-secondary); margin-bottom: 0; line-height: 1.7; }

/* 无障碍焦点 */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* SVG 动效基础 */
.svg-container { width: 100%; max-width: 800px; margin: 0 auto; }
.svg-node { animation: node-pulse 4s infinite alternate ease-in-out; transform-origin: center; }
.svg-line { animation: draw-stroke 5s infinite linear; }
.stagger-0 { animation-delay: 0s; }
.stagger-1 { animation-delay: 0.6s; }
.stagger-2 { animation-delay: 1.2s; }
.stagger-3 { animation-delay: 1.8s; }
.stagger-4 { animation-delay: 2.4s; }
.stagger-5 { animation-delay: 3.0s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes draw-stroke {
  0% { stroke-dasharray: 0 1; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 1 0; stroke-dashoffset: 0; }
  100% { stroke-dasharray: 0 1; stroke-dashoffset: 0; }
}

@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;
  }
  .svg-node, .svg-line { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* 通用工具类 */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.section-intro { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.highlight-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.tag { display: inline-block; padding: 0.3rem 0.8rem; background: #eef0f2; border-radius: 20px; font-size: 0.85rem; color: var(--color-text-secondary); }
