/* ============================================================
   通达信模拟金融终端 · 官网样式（金融红主题 / 商业站版式）
   ============================================================ */
: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 > a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
}
.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:hover .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; }

/* ---------------- 关于页 ---------------- */
.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; }
  .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; }
  .nav { height: auto; padding: 10px 0; }
  .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; }
}
