/* ==========================================================
   YYIDC 官网主题样式（浅色企业版）
   结构：顶栏 / 白色主导航 / 点阵Hero+终端窗 / 编号区块 /
        表格化报价 / 横向流程 / 问答块 / 浅色页脚
   ========================================================== */

:root {
  --ink: #1e293b;
  --body-c: #475569;
  --muted: #7c8aa0;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff3ea;
  --teal: #0f766e;
  --teal-soft: #ecfdf8;
  --ok: #0a9169;
  --dark: #182430;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(23, 36, 48, 0.08);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--body-c);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
ul, ol, li { list-style: none; }
::selection { background: #ffd9bd; color: #7c2d12; }
img, svg { vertical-align: middle; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部工具条 ---------- */
.topbar { background: var(--dark); color: #9fb2c4; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar b { color: #fff; font-weight: 500; }
.topbar .tb-right { display: flex; gap: 18px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; }

/* ---------- 主导航 ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
.head-row { display: flex; align-items: center; height: 64px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(160deg, #fb923c, #ea580c);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.brand-name { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.brand-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 3px; }

.nav { flex: 1; }
.nav ul { display: flex; gap: 4px; }
.nav li a {
  display: block; padding: 8px 13px; border-radius: 6px;
  color: var(--body-c); font-size: 15px;
}
.nav li a:hover { color: var(--brand); background: var(--brand-soft); }
.nav li a.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.head-cta { flex-shrink: 0; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 19px; color: var(--ink); cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 7px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  font-family: inherit; line-height: 1.4;
}
.btn-hot { background: var(--brand); color: #fff; }
.btn-hot:hover { background: var(--brand-dark); }
.btn-line { border-color: #d4dce6; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-more { color: var(--brand); font-size: 14px; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 18px 0 2px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--body-c); }
.crumbs a:hover { color: var(--brand); }
.crumbs .arr { margin: 0 8px; color: #b6c0cd; }
.crumbs .cur { color: var(--brand); font-weight: 600; }

/* ---------- Hero（点阵背景 + 终端窗） ---------- */
.hero {
  background-image: radial-gradient(rgba(14, 55, 92, 0.075) 1px, transparent 1.4px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 46px; align-items: center; padding: 66px 0 74px; }
.kicker {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--teal);
  border: 1px solid rgba(15, 118, 110, 0.35); background: var(--teal-soft);
  padding: 4px 12px; border-radius: 4px; margin-bottom: 18px; font-weight: 600;
}
.hero h1 { font-size: 40px; line-height: 1.32; font-weight: 700; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.34em 0 #ffd9bd; }
.hero .sub { margin: 18px 0 30px; font-size: 16.5px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; font-size: 13.5px; color: var(--body-c); }
.hero-facts b { color: var(--ok); font-weight: 700; margin-right: 4px; }

/* 终端模拟窗 */
.term {
  background: #0f1a26; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 26, 38, 0.28); border: 1px solid #223143;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 13px; line-height: 1.9; color: #a8bdd2;
}
.term-bar { display: flex; gap: 7px; padding: 11px 14px; background: #16232f; border-bottom: 1px solid #223143; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d5169; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #34d399; }
.term-body { padding: 16px 18px 20px; }
.term-body .c { color: #4f6a85; }
.term-body .g { color: #34d399; }
.term-body .y { color: #fbbf24; }
.term-body .o { color: #fb923c; }
.term-body div { white-space: nowrap; }

/* ---------- 子页头 ---------- */
.page-head { padding: 46px 0 30px; background-image: radial-gradient(rgba(14, 55, 92, 0.06) 1px, transparent 1.4px); background-size: 22px 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head .sub { margin-top: 12px; max-width: 840px; }
.feat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.feat-row span { font-size: 13px; color: var(--body-c); border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 4px; }
.feat-row span::before { content: "•"; color: var(--brand); margin-right: 6px; font-weight: 700; }

/* ---------- 区块 ---------- */
.sec { padding: 70px 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-label { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--brand); margin-bottom: 10px; }
.sec-label::before { content: "—— "; color: #d8c7ba; }
.sec h2.ttl { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.sec .desc { max-width: 780px; color: var(--body-c); }
.sec-head-c { text-align: center; }
.sec-head-c .desc { margin: 0 auto; }

/* ---------- 卡片 ---------- */
.cols { display: grid; gap: 20px; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }

.pane {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: all 0.2s ease;
}
.pane:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #f3c8a8; }
.pane h3 { font-size: 17px; margin-bottom: 8px; }
.pane p { font-size: 14px; }

.prod { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.prod-ico {
  width: 52px; height: 52px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); display: inline-flex; align-items: center; justify-content: center;
}
.prod-ico svg { width: 26px; height: 26px; }
.prod .price-tag { margin-top: 10px; font-size: 13px; color: var(--muted); }
.prod .price-tag b { color: var(--brand); font-size: 19px; font-weight: 700; }
.prod .link-more { display: inline-block; margin-top: 10px; }

.num-card { position: relative; padding-top: 8px; }
.num-card .n {
  font-size: 15px; font-weight: 700; color: var(--brand);
  font-family: Consolas, monospace; letter-spacing: 1px; margin-bottom: 10px; display: block;
}
.num-card h3 { font-size: 16.5px; margin-bottom: 6px; }

/* ---------- 勾选列表 ---------- */
.ok-list { margin-top: 12px; }
.ok-list li { position: relative; padding: 5px 0 5px 24px; font-size: 14px; }
.ok-list li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  color: var(--ok); font-weight: 700;
}

/* ---------- 表格 ---------- */
.tab-box { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
table.tab { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
.tab th { background: var(--brand-soft); color: var(--ink); text-align: left; padding: 12px 15px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid #f3ddc9; }
.tab td { padding: 12px 15px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.tab tr:last-child td { border-bottom: none; }
.tab tr:hover td { background: #fafcff; }
.tab td.hot { background: #fff8f2; }
.tab .price-cell { color: var(--brand); font-weight: 700; white-space: nowrap; }
.tab-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 报价矩阵（表格化套餐） ---------- */
.matrix-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 720px; text-align: left; }
.matrix th { padding: 14px 16px; border-bottom: 2px solid var(--brand); background: #fff; }
.matrix th .m-name { font-size: 16px; color: var(--ink); font-weight: 700; display: block; }
.matrix th .m-for { font-size: 12px; color: var(--muted); font-weight: 400; display: block; margin-top: 3px; }
.matrix th.hi { background: var(--brand-soft); color: var(--brand); }
.matrix td { padding: 11px 16px; border-bottom: 1px solid #eef2f7; font-size: 14px; color: var(--body-c); }
.matrix td.hi { background: #fff8f2; }
.matrix tr.m-price td { border-bottom: none; padding: 14px 16px 18px; }
.matrix .m-price b { font-size: 21px; color: var(--brand); font-weight: 700; }
.matrix .m-price em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 流程时间线 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 18px 0 0; }
.flow li + li { padding-left: 34px; }
.flow li::before {
  content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, #f0b283 0 7px, transparent 7px 13px);
}
.flow li:last-child::before { display: none; }
.flow .st-n {
  position: relative; z-index: 1; display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); color: var(--brand);
  align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px;
}
.flow h3 { font-size: 16px; margin-bottom: 6px; }
.flow p { font-size: 13.5px; }

/* ---------- 场景行 ---------- */
.scene-rows li {
  display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px dashed #dbe3ec;
}
.scene-rows li:first-child { border-top: 1px dashed #dbe3ec; }
.scene-rows .sn { font-size: 26px; font-weight: 700; color: #f3c8a8; font-family: Consolas, monospace; }
.scene-rows h3 { font-size: 16.5px; display: inline; margin-right: 10px; }
.scene-rows p { display: inline; font-size: 14px; }

/* ---------- 问答块（非折叠，静态展示） ---------- */
.qa { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 6px; padding: 18px 22px; margin-bottom: 14px; }
.qa h3 { font-size: 15.5px; margin-bottom: 6px; }
.qa h3::before { content: "Q"; display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: var(--brand); color: #fff; border-radius: 4px; font-size: 13px; margin-right: 10px; }
.qa p { font-size: 14px; }
.qa p a { color: var(--brand); text-decoration: underline; }

/* ---------- 提示框 ---------- */
.tip { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 6px; padding: 15px 18px; font-size: 14px; margin: 20px 0; }
.tip b { color: var(--brand-dark); }
.tip-warn { background: #fffaeb; border-left-color: #d97706; }
.tip-warn b { color: #b45309; }
.tip a { color: var(--brand); text-decoration: underline; }

/* ---------- 文章卡 / 列表 ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: all 0.2s ease; }
.post:hover { box-shadow: var(--shadow); border-color: #f3c8a8; }
.post .p-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 14px; }
.post .p-meta .cat { color: var(--teal); font-weight: 600; }
.post h3 { font-size: 16.5px; line-height: 1.55; }
.post h3 a:hover { color: var(--brand); }
.post p { margin-top: 8px; font-size: 13.5px; }
.post .link-more { display: inline-block; margin-top: 10px; }

.post-list li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 2px; border-bottom: 1px solid var(--line); }
.post-list .pd { font-size: 13px; color: var(--muted); font-family: Consolas, monospace; padding-top: 3px; }
.post-list h3 { font-size: 17px; margin-bottom: 6px; }
.post-list h3 a:hover { color: var(--brand); }
.post-list p { font-size: 14px; }
.post-list .link-more { margin-left: 10px; }

/* ---------- 文章正文 ---------- */
.article { max-width: 800px; margin: 0 auto; }
.art-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 13px; color: var(--muted); margin: 12px 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.art-body h2 { font-size: 22px; margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.art-body h3 { font-size: 17.5px; margin: 24px 0 8px; }
.art-body p { margin: 10px 0; }
.art-body ul, .art-body ol { margin: 10px 0 10px 24px; }
.art-body ul li { list-style: disc; margin: 5px 0; }
.art-body ol li { list-style: decimal; margin: 5px 0; }
.art-body a { color: var(--brand); text-decoration: underline; }
.art-body code { background: #f1f5f9; border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-family: Consolas, monospace; font-size: 13px; color: #b45309; }

/* ---------- CTA ---------- */
.cta-lite {
  background: linear-gradient(115deg, #fff3ea 0%, #fffdfb 55%, #ecfdf8 100%);
  border: 1px solid #f3ddc9; border-radius: 12px;
  padding: 40px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-lite h2 { font-size: 22px; }
.cta-lite p { margin-top: 6px; font-size: 14.5px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--dark); color: #93a6b8; margin-top: 0; padding: 54px 0 0; font-size: 13.5px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.25fr; gap: 30px; padding-bottom: 34px; }
.foot-cols h4 { color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 14px; letter-spacing: 1px; }
.foot-cols p { font-size: 13px; line-height: 1.85; }
.foot-cols li { padding: 3px 0; }
.foot-cols li a { color: #93a6b8; }
.foot-cols li a:hover { color: #fb923c; }
.kw-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.kw-strip a { color: #7d919f; font-size: 13px; }
.kw-strip a:hover { color: #fb923c; }
.foot-line { border-top: 1px solid #2b3c4c; padding: 18px 0; font-size: 12.5px; line-height: 1.9; }
.foot-copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2b3c4c; padding: 16px 0 22px; font-size: 12.5px; }

/* ---------- 返回顶部 ---------- */
.totop {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px;
  border-radius: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--brand); font-size: 18px; cursor: pointer; display: none;
  box-shadow: var(--shadow); z-index: 80;
}
.totop.show { display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero h1 { font-size: 32px; }
  .term { max-width: 520px; }
  .c4 { grid-template-columns: repeat(2, 1fr); }
  .c3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .flow li + li { padding-left: 0; }
  .flow li::before { display: none; }
  .topbar .tb-right { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav li a { padding: 11px 12px; }
  .head-cta { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 25px; }
}
@media (max-width: 640px) {
  .sec { padding: 54px 0; }
  .c2, .c3, .c4, .flow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .hero .sub { font-size: 15px; }
  .scene-rows li { grid-template-columns: 52px 1fr; }
  .scene-rows .sn { font-size: 20px; }
  .post-list li { grid-template-columns: 1fr; gap: 6px; }
  .cta-lite { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 44px 1fr; }
  .prod-ico { width: 44px; height: 44px; }
  h2.ttl { font-size: 21px; }
  .topbar .wrap { height: auto; padding: 6px 22px; flex-wrap: wrap; }
}
