﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}


:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #d7dce3;
  --line-strong: #101828;
  --blue: #2563eb;
  --blue-soft: #eef4ff;
  --green: #079455;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.notice { background: #fff8e6; border-bottom: 1px solid #f2d58a; color: #7a5b10; padding: 10px 0; font-size: 13px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { color: var(--text); font-weight: 900; font-size: 20px; }
.nav, .footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav a, .footer-links a { color: var(--text); border: 1px solid var(--line); background: #fff; padding: 7px 11px; border-radius: 8px; font-size: 14px; }
.nav a:hover, .footer-links a:hover { border-color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.hero { padding: 46px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 900; margin-bottom: 14px; }
.hero h1 { max-width: 900px; font-size: clamp(32px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.05em; margin-bottom: 16px; }
.hero p { max-width: 820px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; padding: 11px 16px; border-radius: 9px; border: 1px solid var(--line); font-weight: 900; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.secondary { background: #fff; color: var(--text); }
.quick-panel { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 980px; }
.quick-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.quick-item strong { display: block; color: var(--text); margin-bottom: 3px; }
.quick-item span { color: var(--muted); font-size: 13px; }
.section { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.04em; }
.section-note { max-width: 430px; color: var(--muted); }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card, .intro-box, .article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.card { padding: 20px; min-height: 170px; }
.card .num { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: #f2f4f7; color: var(--muted); font-size: 12px; font-weight: 800; margin-bottom: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card strong, td strong { color: var(--green); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-box { padding: 22px; }
.intro-box h3 { font-size: 24px; margin-bottom: 10px; }
.intro-box p, .intro-box li { color: var(--muted); }
.intro-box ul { margin: 12px 0 0 20px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f2f4f7; font-size: 13px; color: #344054; }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
summary { cursor: pointer; font-weight: 900; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 8px; color: var(--muted); }
.article { max-width: 860px; margin: 34px auto; padding: 30px; }
.article h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.05em; margin-bottom: 18px; }
.article h2 { font-size: 25px; margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.article p, .article li { color: var(--muted); margin-bottom: 12px; }
.article ul { margin-left: 20px; }
.site-footer { margin-top: 34px; padding: 30px 0; background: #fff; border-top: 1px solid var(--line); }
.site-footer p { margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .quick-panel, .grid-6, .intro-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-note { margin-top: 8px; }
}
