/* ============================================================
   通达信模拟金融终端 · 官网样式（金融红主题 / 商业站版式）
   ============================================================ */
:root {
  --primary: #e60012;
  --primary-dark: #b3000e;
  --primary-soft: #fff1f2;
  --gold: #f5a623;
  --ink: #1a1f29;
  --ink-2: #3a4150;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #14181f;
  --line: #e8eaed;
  --up: #e60012;     /* A股：涨=红 */
  --down: #0aa86b;   /* A股：跌=绿 */
  --shadow: 0 10px 30px rgba(20, 24, 31, .08);
  --shadow-hover: 0 16px 40px rgba(230, 0, 18, .14);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: none; color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--maxw), 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--primary); font-weight: 700; letter-spacing: 2px;
  font-size: 13px; margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section.dark .section-head p { color: #aeb6c2; }

/* ---------------- 顶部公告栏 ---------------- */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; font-size: 13px; text-align: center; padding: 7px 0;
}
.topbar a { color: #ffe08a; font-weight: 700; }

/* ---------------- 导航 ---------------- */
.site-header {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { text-decoration: none; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #ff3b30);
  color: #fff; font-weight: 900; font-size: 15px; box-shadow: 0 4px 12px rgba(230,0,18,.35);
}
.logo-img { height: 44px; width: 44px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 4px 12px rgba(20,24,31,.12); }
.logo-img-lg { height: 80px; width: 80px; border-radius: 16px; object-fit: contain; background: #fff; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(20,24,31,.2); }
.brand-name { font-size: 17px; letter-spacing: .5px; white-space: nowrap; }
.brand-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.menu { display: flex; gap: 18px; align-items: center; }
.menu a { color: var(--ink-2); font-size: 14px; font-weight: 600; position: relative; white-space: nowrap; flex-shrink: 0; }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -22px; height: 3px; width: 0;
  background: var(--primary); transition: width .25s; border-radius: 3px;
}
.menu a:hover, .menu a.active { color: var(--primary); }
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu .btn { padding: 8px 16px; font-size: 14px; }
.menu .btn::after { display: none; }

/* 导航下拉菜单（点击展开） */
.has-dropdown { position: relative; }
.has-dropdown > .menu-parent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
}
.menu-parent {
  appearance: none; background: none; border: 0; margin: 0; padding: 0; cursor: pointer;
  font: inherit; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; position: relative;
  white-space: nowrap; flex-shrink: 0; transition: color .2s;
}
.menu-parent:hover, .menu-parent.active { color: var(--primary); }
.menu-parent::after {
  content: ""; position: absolute; left: 0; bottom: -22px; height: 3px; width: 0;
  background: var(--primary); transition: width .25s; border-radius: 3px;
}
.menu-parent:hover::after, .menu-parent.active::after { width: 100%; }
.menu-parent .caret { font-size: 10px; line-height: 1; transition: transform .25s; }
.has-dropdown.open .menu-parent .caret { transform: rotate(180deg); }
.body-tdx .menu-parent { color: #c3cad8; }
.body-tdx .menu-parent:hover, .body-tdx .menu-parent.active { color: #fff; }
.body-tdx .menu-parent.active::after, .body-tdx .menu-parent:hover::after { background: #ff5b6e; }
.dropdown {
  display: none; position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(20,24,31,.14); padding: 8px; min-width: 240px; z-index: 60;
}
.has-dropdown.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 14px; border-radius: 8px; color: var(--ink-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.btn:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px rgba(230,0,18,.28); }
.btn.primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 26px rgba(179,0,14,.34); }
.btn.light { background: #fff; color: var(--primary); border-color: #fff; }
.btn.light:hover { background: #ffe9ea; color: var(--primary-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.lg { padding: 16px 36px; font-size: 16px; }
.btn.sm { padding: 9px 18px; font-size: 14px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,90,70,.25), transparent 60%),
    linear-gradient(135deg, #1a0a0e 0%, #2a0f15 45%, #3a1118 100%);
  color: #fff; padding: 80px 0 90px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
  position: relative; z-index: 2;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  font-size: 13px; color: #ffd9dc; margin-bottom: 22px;
}
.hero .badge b { color: #fff; }
.hero h1 { font-size: 46px; margin-bottom: 18px; letter-spacing: .5px; }
.hero h1 .hl { color: #ff5b6e; }
.hero .lead { color: #d7dbe2; font-size: 18px; max-width: 520px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .mini { margin-top: 18px; color: #9aa3b1; font-size: 13px; }
.hero .mini span { margin-right: 18px; }

/* 真实软件截图展示 */
.shot-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #161c26; border-bottom: 1px solid rgba(255,255,255,.06);
}
.shot-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.shot-bar .dot.r { background: #ff5f57; }
.shot-bar .dot.y { background: #febc2e; }
.shot-bar .dot.g { background: #28c840; }
.shot-bar .t { color: #8b94a3; font-size: 12px; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-shot {
  background: #0f141c; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); overflow: hidden;
  max-width: 520px; margin: 0 auto;
}
.hero-shot img { display: block; width: 100%; height: auto; }

.shot-stage {
  background: #0f141c; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5); overflow: hidden;
}
.shot-stage > img { display: block; width: 100%; height: auto; background: #0b0f15; }
.shot-thumbs {
  display: flex; gap: 10px; padding: 12px 14px; background: #161c26; border-top: 1px solid rgba(255,255,255,.06);
}
.shot-thumbs button {
  background: transparent; border: 2px solid transparent; border-radius: 8px; padding: 0;
  cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s, transform .15s;
}
.shot-thumbs button img { width: 120px; height: auto; border-radius: 6px; display: block; }
.shot-thumbs button:hover { opacity: .9; transform: translateY(-2px); }
.shot-thumbs button.active { opacity: 1; border-color: var(--primary); }

/* 产品自动轮播 */
.product-carousel { position: relative; }
.product-carousel .product-slide { display: none; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.product-carousel .product-slide.active { display: grid; }
.product-info h3 { font-size: 22px; margin-bottom: 10px; }
.product-info p { color: var(--muted); margin-bottom: 18px; }
.product-info .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.product-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--line); transition: all .2s; padding: 0;
}
.product-dots button.active { background: var(--primary); width: 28px; border-radius: 999px; }

/* 软件介绍页：选择菜单 */
.sw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.sw-tab {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color .2s, box-shadow .2s, transform .15s;
}
.sw-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sw-tab.active { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.sw-tab .sw-ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.sw-tab .sw-ic svg { width: 24px; height: 24px; }
.sw-tab .sw-name { font-weight: 800; font-size: 16px; line-height: 1.3; }
.sw-tab .sw-name small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.sw-panel { display: none; }
.sw-panel.active { display: block; }
.sw-intro { margin-top: 28px; }
.sw-intro h2 { font-size: 26px; margin-bottom: 10px; }
.sw-intro p { color: var(--muted); max-width: 760px; }
.sw-intro .sw-actions { margin-top: 16px; }
.sw-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 24px; }
.sw-detail h3 { font-size: 22px; margin-bottom: 10px; }
.sw-detail p { color: var(--muted); }

/* 视频窗口（封面 + 播放按钮） */
.video-box {
  background: #0f141c; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08);
}
.video-box video, .video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.video-cover { position: relative; display: block; cursor: pointer; aspect-ratio: 16 / 9; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,.05) 0%, rgba(10,13,18,.35) 100%);
}
.video-cover .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(230,0,18,.45); transition: transform .2s, box-shadow .2s;
}
.video-cover .play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.video-cover:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 16px 40px rgba(230,0,18,.55); }
.video-cover .video-tip {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  background: rgba(10,13,18,.72); color: #cfd6e2; font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.video-cover.shake { animation: vshake .5s; }
@keyframes vshake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
}

@media (max-width: 760px) {
  .sw-tabs { grid-template-columns: 1fr; }
  .sw-detail { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shot-thumbs button img { width: 80px; }
  .shot-bar .t { max-width: 180px; }
  .product-carousel .product-slide, .product-carousel .product-slide.active { grid-template-columns: 1fr; }
}

/* ---------------- 统计条 ---------------- */
.stats { background: var(--primary); color: #fff; }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; text-align: center; }
.stats .num { font-size: 38px; font-weight: 900; line-height: 1; }
.stats .num small { font-size: 18px; font-weight: 700; }
.stats .lab { margin-top: 8px; font-size: 14px; color: #ffd9dc; }

/* ---------------- 三步上手 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .no {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 900; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step .arrow { position: absolute; right: -16px; top: 40px; color: var(--line); font-size: 26px; z-index: 3; }

/* ---------------- 功能网格 ---------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd2d6; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), #ffe3e6); margin-bottom: 16px;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .tag { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------------- 适用人群 ---------------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case .ph { height: 120px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.case .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case:nth-child(1) .ph { background: linear-gradient(135deg, #e60012, #ff5b6e); }
.case:nth-child(2) .ph { background: linear-gradient(135deg, #2b6cb0, #4a9ad6); }
.case:nth-child(3) .ph { background: linear-gradient(135deg, #0aa86b, #34c98f); }
.case:nth-child(4) .ph { background: linear-gradient(135deg, #f5a623, #ffce6b); }
.case .ph svg { width: 46px; height: 46px; }
.case .body { padding: 18px 20px; }
.case .body h3 { font-size: 17px; margin-bottom: 6px; }
.case .body p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------------- 优势促销 ---------------- */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.adv .item { background: #1c222c; padding: 30px 24px; text-align: center; }
.adv .item .ic { color: var(--gold); margin-bottom: 12px; }
.adv .item .ic svg { width: 34px; height: 34px; }
.adv .item h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.adv .item p { color: #aeb6c2; font-size: 13px; margin: 0; }
.promo-cta { text-align: center; margin-top: 40px; }

/* ---------------- 教程 ---------------- */
.tuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tut {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tut:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tut .ph { height: 150px; background: linear-gradient(135deg, #20283a, #2f3b52); display: grid; place-items: center; color: #fff; }
.tut .ph svg { width: 54px; height: 54px; opacity: .9; }
.tut .body { padding: 20px 22px; }
.tut .body h3 { font-size: 17px; margin-bottom: 6px; }
.tut .body p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.tut .body a { font-weight: 700; font-size: 14px; }

/* ---------------- 新闻 ---------------- */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.news-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.news-tabs a {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  color: var(--ink-2); font-weight: 600; background: #fff;
}
.news-tabs a.active, .news-tabs a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: box-shadow .2s, transform .2s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-item .date { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.news-item .date .d { font-size: 26px; font-weight: 900; color: var(--primary); line-height: 1; }
.news-item .date .y { font-size: 12px; color: var(--muted); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.news-item .cat { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; }
.news-side { position: sticky; top: 90px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.side-box h4 { font-size: 16px; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--primary); }
.side-box li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-box li:last-child { border-bottom: none; }
.side-box li a { color: var(--ink-2); }
.side-box li a:hover { color: var(--primary); }
.side-box .tagcloud a { display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; background: var(--bg-soft); border-radius: 999px; font-size: 13px; color: var(--ink-2); }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #ff4d4d);
  color: #fff; text-align: center; border-radius: 20px; padding: 56px 30px;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #ffe2e4; font-size: 16px; margin-bottom: 26px; }

/* ---------------- 下载页 ---------------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dl-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; gap: 18px; align-items: center; }
.dl-card .os { width: 60px; height: 60px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.dl-card .os svg { width: 32px; height: 32px; }
.dl-card h3 { font-size: 18px; margin-bottom: 4px; }
.dl-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.badge-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); margin-right: 6px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 30px; }
.req h3 { font-size: 18px; margin-bottom: 14px; }
.req ul li { padding: 8px 0 8px 24px; position: relative; color: var(--ink-2); font-size: 14px; border-bottom: 1px dashed var(--line); }
.req ul li::before { content: "✓"; position: absolute; left: 0; color: var(--down); font-weight: 900; }

/* ---------------- 软件介绍页：产品大卡（图在上 / 文在下） ----------------
   ★ 原来 features.html 复用了下载页的 .dl-card（横排、给 60×60 小图标设计），
     塞进整幅截图后图片与文字互抢宽度 → 标题/描述爆行、按钮错位。
     这里给产品卡单独一套样式，不再与下载页共用。 */
.pcard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #f0c3c8; }
.pcard.hot { border-color: var(--primary); }
.pcard.hot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--primary), #ff5b6e);
}
.pcard .thumb {
  --th: 300px;   /* 缩略图区高度 */
  --tp: 22px;    /* 内边距（同时决定图片上限） */
  display: grid; place-items: center;
  height: var(--th); padding: var(--tp);
  background: linear-gradient(160deg, #fbfcfd 0%, #edf0f4 100%);
  border-bottom: 1px solid var(--line);
}
.pcard .thumb img {
  /* ★ 必须用 px 上限：百分比 max-height 在 auto 行高的 grid 里解析不出确定值，会失效溢出 */
  max-width: 100%; max-height: calc(var(--th) - var(--tp) * 2);
  width: auto; height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 24, 31, .18), 0 2px 6px rgba(20, 24, 31, .1);
  transition: transform .25s;
}
.pcard:hover .thumb img { transform: scale(1.015); }
.pcard .body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.pcard-tag {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; line-height: 1.6;
  color: var(--primary); background: var(--primary-soft);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pcard .body h3 { font-size: 20px; }
.pcard .body h3 .ver { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 7px; white-space: nowrap; }
.pcard .body p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
.pcard .actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 22px;
}
.pcard .actions .btn { flex: 1 1 0; min-width: 132px; padding: 12px 18px; }

/* ---------------- 关于页 ---------------- */
.about-hero { text-align: center; max-width: 820px; margin: 0 auto; }
.about-hero h1 { font-size: 38px; margin-bottom: 16px; }
.about-hero p { color: var(--muted); font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .ic { color: var(--primary); margin-bottom: 12px; }
.value .ic svg { width: 32px; height: 32px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 14px; margin: 0; }
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 22px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline .yr { font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.timeline h4 { font-size: 17px; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------- 联系页 ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .item .ic svg { width: 22px; height: 22px; }
.contact-info .item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info .item p { color: var(--muted); font-size: 14px; margin: 0; }
.map-ph { height: 220px; border-radius: 14px; background: linear-gradient(135deg, #2f3b52, #20283a); margin-top: 20px; display: grid; place-items: center; color: #fff; }

/* ---------------- 表单 ---------------- */
.form-wrap { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.note { background: #eafaf1; color: #117a4d; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid #c8efd7; }
.note.err { background: #fdecea; color: #c0392b; border-color: #f5c6c0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--bg-dark); color: #aeb6c2; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid .col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid .col a { display: block; color: #aeb6c2; font-size: 14px; padding: 5px 0; }
.footer-grid .col a:hover { color: #fff; }
.footer-grid .brand .logo { margin-bottom: 14px; }
.footer-grid .brand p { font-size: 13px; color: #8b94a3; }
.footer-grid .qr { background: #fff; border-radius: 10px; width: 110px; height: 110px; display: grid; place-items: center; color: var(--ink-2); font-size: 12px; text-align: center; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px; text-align: center; font-size: 13px; color: #8b94a3; }
.footer-bottom a { color: #aeb6c2; }

/* ---------------- 文章详情 ---------------- */
.article { max-width: 820px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.article .meta .cat { color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; margin-right: 10px; }
.article h1 { font-size: 32px; margin-bottom: 14px; }
.article h2 { font-size: 22px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article p { color: var(--ink-2); font-size: 16px; }
.back-link { display: inline-block; margin-top: 30px; font-weight: 600; }

/* ---------------- 后台 ---------------- */
.admin-bar { background: var(--ink); color: #fff; padding: 12px 0; }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: #fff; }
.admin-nav { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.admin-nav a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-weight: 600; }
.admin-nav a:hover, .admin-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; font-size: 14px; }
table.tbl th { background: var(--bg-soft); font-weight: 700; }
table.tbl tr:hover td { background: #fffafb; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-cards .st { border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; background: #fff; }
.stat-cards .st b { font-size: 30px; color: var(--primary); display: block; }
.stat-cards .st span { color: var(--muted); font-size: 14px; }
.login-box { max-width: 400px; margin: 80px auto; border: 1px solid var(--line); border-radius: 16px; padding: 36px; background: #fff; box-shadow: var(--shadow); }
.login-box h2 { text-align: center; margin-bottom: 24px; }
.error { color: #c0392b; margin-bottom: 14px; font-size: 14px; }
.preview-img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel h3 { margin-bottom: 18px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { margin-bottom: 24px; }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .menu { gap: 12px; }
  .menu a { font-size: 13px; }
  .menu .btn { padding: 7px 12px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .brand-name small { font-size: 10px; }
  .logo-img { height: 38px; width: 38px; }
}
@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 32px; }
  .steps, .grid, .cases, .adv, .tuts, .values, .dl-grid, .contact-layout { grid-template-columns: 1fr; }
  /* ★ minmax(0,1fr)：1fr 隐含 min-width:auto，会被 nowrap 内容撑破导致横向溢出 */
  .pcard-grid { grid-template-columns: minmax(0, 1fr); }
  .pcard .thumb { --th: 230px; --tp: 16px; }
  .pcard .actions .btn { min-width: 0; padding: 12px 10px; font-size: 14px; }
  .stats .row { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 26px; }
  .menu { gap: 14px; font-size: 14px; flex-wrap: wrap; flex-basis: 100%; }
  .nav { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .has-dropdown { position: static; }
  .has-dropdown.open { flex-basis: 100%; }
  .has-dropdown > .menu-parent::before { display: none; }
  .dropdown {
    position: static; transform: none; box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 4px 16px; min-width: 0; width: 100%;
  }
  .dropdown a { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .date { border-right: none; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}

/* ============================================================
   产品页 · 双主题
   A. 飞雪模拟股票训练软件 —— 深色金融终端风（.pterm / body.body-tdx）
   B. 飞雪脚本录制软件   —— 明亮效率工具风（.prec）
   ============================================================ */
.mono, .readout .num, .term-mock-body, .rec-mock-body, .tick, .loop-num, .flow-num, .keycap {
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

/* ---------- A. 终端风：整页深色 ---------- */
.body-tdx .site-header { background: rgba(13, 16, 22, .92); border-bottom-color: rgba(255,255,255,.08); }
.body-tdx .brand { color: #fff; }
.body-tdx .brand-name small { color: #8b94a5; }
.body-tdx .menu a { color: #c3cad8; }
.body-tdx .menu a:hover, .body-tdx .menu a.active { color: #fff; }
.body-tdx .menu a.active::after, .body-tdx .menu a:hover::after { background: #ff5b6e; }

.pterm {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0b0e14;
  background-size: 44px 44px, 44px 44px, auto;
  color: #e6eaf2;
}

/* 终端 Hero */
.term-hero {
  position: relative; overflow: hidden; padding: 76px 0 88px;
  background:
    radial-gradient(640px 340px at 82% 18%, rgba(230, 0, 18, .16), transparent 65%),
    radial-gradient(520px 300px at 8% 90%, rgba(10, 168, 107, .07), transparent 60%);
}
.term-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.term-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #ff8d9a; background: rgba(230, 0, 18, .12); border: 1px solid rgba(230, 0, 18, .35);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5f; box-shadow: 0 0 0 0 rgba(255, 77, 95, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 77, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 95, 0); } }
.term-hero h1 { font-size: 46px; line-height: 1.22; margin-bottom: 18px; color: #fff; }
.term-hero h1 .hl { color: #ff5b6e; }
.term-hero .lead { color: #aab4c6; font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.term-hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.term-mini { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #7e8ba0; font-size: 13px; }

/* 终端窗口 + 涨跌 tick */
.term-hero-shot { position: relative; }
.term-window {
  background: #10151d; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(230, 0, 18, .08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .4s;
}
.term-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px;
}
.term-bar .t { color: #9aa6ba; margin-left: 8px; font-weight: 600; }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .dot.r { background: #ff5f57; }
.term-bar .dot.y { background: #febc2e; }
.term-bar .dot.g { background: #28c840; }
.rec-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 12px;
}
.rec-bar .t { color: var(--muted); margin-left: 8px; font-weight: 600; }
.rec-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.rec-bar .dot.r { background: #ff5f57; }
.rec-bar .dot.y { background: #febc2e; }
.rec-bar .dot.g { background: #28c840; }
.term-window img { display: block; width: 100%; height: auto; }
.tick {
  position: absolute; font-size: 14px; font-weight: 800; padding: 8px 14px; border-radius: 10px;
  background: rgba(13, 16, 22, .9); border: 1px solid; backdrop-filter: blur(4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.tick-up { color: #ff5b6e; border-color: rgba(230, 0, 18, .5); top: -18px; right: -14px; animation: floaty 4s ease-in-out infinite; }
.tick-down { color: #0aa86b; border-color: rgba(10, 168, 107, .5); bottom: -16px; left: -18px; animation: floaty 5s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* 数据读出条 */
.term-readouts { border-block: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); }
.readout-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout { padding: 34px 26px; text-align: center; position: relative; }
.readout + .readout::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.08); }
.readout .num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.readout .num .unit { font-size: 16px; color: #ff5b6e; margin-left: 4px; font-weight: 700; }
.readout .label { margin-top: 10px; font-size: 14px; font-weight: 700; color: #cdd5e2; }
.readout .sub { font-size: 12px; color: #6d7889; margin-top: 3px; }

/* 深色分区与标题 */
.term-section { padding: 76px 0; }
.term-section + .term-section { border-top: 1px solid rgba(255,255,255,.05); }
.dark-head h2 { color: #fff; }
.dark-head p { color: #8b96a8; }
.dark-head .eyebrow { color: #ff5b6e; }

/* 训练闭环 */
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loop-step {
  position: relative; background: #12171f; border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  padding: 26px 22px; transition: border-color .25s, transform .25s;
}
.loop-step:hover { border-color: rgba(230, 0, 18, .45); transform: translateY(-4px); }
.loop-step::after {
  content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: #ff5b6e; font-weight: 800; font-size: 18px; z-index: 2;
}
.loop-step:last-child::after { display: none; }
.loop-num { font-size: 13px; font-weight: 800; color: #ff5b6e; letter-spacing: 1px; margin-bottom: 12px; }
.loop-step h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.loop-step p { font-size: 13px; color: #8b96a8; margin: 0; line-height: 1.75; }

/* 终端风视频框 */
.term-video { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); border-color: rgba(255,255,255,.1); }

/* 终端风卡片网格 */
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.term-card {
  background: #12171f; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 26px 24px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.term-card:hover { border-color: rgba(230, 0, 18, .45); transform: translateY(-5px); box-shadow: 0 18px 44px rgba(230, 0, 18, .12); }
.term-card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(230, 0, 18, .12); color: #ff5b6e; border: 1px solid rgba(230, 0, 18, .25);
}
.term-card .ic svg { width: 24px; height: 24px; }
.term-card h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.term-card p { font-size: 13px; color: #8b96a8; margin: 0; line-height: 1.75; }
.adv-grid { grid-template-columns: repeat(3, 1fr); }

/* 终端风重点拆解 */
.term-detail { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.term-detail:last-child { margin-bottom: 0; }
.term-detail.rev .term-detail-text { order: 2; }
.term-detail-text h3 { font-size: 24px; color: #fff; margin-bottom: 14px; }
.term-detail-text h3 .dic { margin-right: 10px; }
.term-detail-text p { color: #8b96a8; font-size: 15px; line-height: 1.9; margin: 0; }
.term-mock { background: #10151d; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.term-mock-body { padding: 26px 28px; color: #aab4c6; font-size: 14px; line-height: 2.1; }
.term-mock-body b { color: #fff; }

/* 终端风 CTA */
.term-cta {
  text-align: center; padding: 64px 32px; border-radius: 20px; position: relative; overflow: hidden;
  background: radial-gradient(560px 260px at 50% 0%, rgba(230, 0, 18, .22), transparent 70%), #12171f;
  border: 1px solid rgba(230, 0, 18, .3);
}
.term-cta .eyebrow { color: #ff5b6e; }
.term-cta h2 { font-size: 32px; color: #fff; margin: 10px 0 12px; }
.term-cta p { color: #8b96a8; margin-bottom: 28px; }

/* ---------- B. 工具风：整页明亮 ---------- */
.rec-hero { padding: 72px 0 80px; background: radial-gradient(720px 380px at 78% 12%, rgba(230, 0, 18, .06), transparent 65%), #fff; }
.rec-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.rec-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid #ffd2d6; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.rec-hero h1 { font-size: 46px; line-height: 1.22; margin-bottom: 18px; }
.rec-hero h1 .hl { color: var(--primary); }
.rec-hero .lead { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.rec-hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 键帽 */
.keyrow { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keycap {
  display: inline-grid; place-items: center; min-width: 52px; padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); border-bottom: 3px solid #d6d9e0;
  font-size: 15px; font-weight: 800; color: var(--ink); box-shadow: 0 2px 6px rgba(20, 24, 31, .06);
}
.keycap.dark { background: var(--ink); color: #fff; border-bottom-color: #000; }
.keylabel { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 14px; }

/* 工具风窗口 */
.rec-hero-shot { position: relative; }
.rec-window {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(20, 24, 31, .14);
}
.rec-window img { display: block; width: 100%; height: auto; }

/* 三步流程 */
.rec-section { padding: 76px 0; }
.flow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.flow-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(20, 24, 31, .12); }
.flow-num {
  font-size: 15px; font-weight: 800; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #ff3b30); color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(230, 0, 18, .3);
}
.flow-card h3 { font-size: 20px; margin-bottom: 10px; }
.flow-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.85; }
.flow-arrow { display: grid; place-items: center; color: var(--primary); font-size: 26px; font-weight: 800; }

/* 工具风视频框 */
.rec-video { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20, 24, 31, .12); }

/* 工具风卡片 */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rec-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #ffd2d6; }
.rec-card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--primary-soft); color: var(--primary);
}
.rec-card .ic svg { width: 26px; height: 26px; }
.rec-card h3 { font-size: 17px; margin-bottom: 8px; }
.rec-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.8; }

/* 工具风重点拆解 */
.rec-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.rec-detail:last-child { margin-bottom: 0; }
.rec-detail.rev .rec-detail-text { order: 2; }
.rec-detail-text h3 { font-size: 24px; margin-bottom: 14px; }
.rec-detail-text h3 .dic { margin-right: 10px; }
.rec-detail-text p { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0; }
.rec-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(20, 24, 31, .12); }
.rec-mock-body { padding: 26px 28px; color: var(--ink-2); font-size: 14px; line-height: 2.1; background: var(--bg-soft); }
.rec-mock-body b { color: var(--primary); }

/* 场景卡 */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.scene-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.scene-ic { font-size: 38px; margin-bottom: 14px; }
.scene-card h3 { font-size: 16px; margin-bottom: 8px; }
.scene-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.75; }

/* 工具风 CTA */
.rec-cta {
  text-align: center; padding: 64px 32px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #ff3b30);
  box-shadow: 0 24px 60px rgba(230, 0, 18, .3);
}
.rec-cta .eyebrow { color: #ffd2d6; }
.rec-cta h2 { font-size: 32px; margin: 10px 0 12px; }
.rec-cta p { color: #ffe2e4; margin-bottom: 28px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .term-hero-grid, .rec-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .term-hero-shot, .rec-hero-shot { max-width: 560px; }
  .term-hero h1, .rec-hero h1 { font-size: 36px; }
  .term-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-step::after { display: none; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .term-detail, .rec-detail { grid-template-columns: 1fr; gap: 26px; margin-bottom: 44px; }
  .term-detail.rev .term-detail-text, .rec-detail.rev .rec-detail-text { order: 0; }
}
@media (max-width: 640px) {
  .term-badge { font-size: 11px; letter-spacing: 1px; }
  .term-hero, .rec-hero { padding: 48px 0 56px; }
  .term-section, .rec-section { padding: 52px 0; }
  .term-hero h1, .rec-hero h1 { font-size: 30px; }
  .readout-grid { grid-template-columns: repeat(2, 1fr); }
  .readout { padding: 24px 14px; }
  .readout .num { font-size: 30px; }
  .readout:nth-child(3)::before { display: none; }
  .term-grid, .loop-grid, .rec-grid, .scene-grid, .adv-grid { grid-template-columns: 1fr; }
  .term-window { transform: none; }
  .tick-up { right: 0; } .tick-down { left: 0; }
  .term-cta, .rec-cta { padding: 44px 20px; }
  .term-cta h2, .rec-cta h2 { font-size: 26px; }
}

/* ---------------- 后台 · 产品分区管理 ---------------- */
.sec-block { margin-bottom: 36px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; }
.sec-block h3 { font-size: 18px; margin-bottom: 16px; }
.sec-block h3 small { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 8px; }
.sec-block .form-wrap { max-width: 640px; margin-bottom: 18px; }
.sec-block .tbl { margin-top: 4px; }
