/* 密库 · 商业秘密保护与存证平台 · 共享样式（零外部资源） */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1f3a5f;
  --primary-light: #eef3f9;
  --accent: #b8860b;
  --ok: #1a7f4b;
  --warn: #b25000;
  --danger: #b21f2d;
  --line: #d8dee8;
  --bg: #f5f7fa;
  --text: #26303c;
  --muted: #6b7684;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }

/* 顶栏 */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.topbar .brand small { font-weight: 400; opacity: .75; margin-left: 10px; font-size: 12px; }
.topbar nav a { color: #dbe4f0; margin-left: 22px; font-size: 14px; }
.topbar nav a:hover, .topbar nav a.cur { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }

/* 通用卡片 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(31,58,95,.06);
}
.card h2 { font-size: 18px; color: var(--primary); margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--accent); }
.card h3 { font-size: 15px; color: var(--primary); margin: 12px 0 8px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12.5px; }

/* 按钮 */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { opacity: .9; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.warn { background: var(--warn); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 4px 12px; font-size: 12.5px; }

/* 表单 */
input[type=text], input[type=password], input[type=file], select, textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,58,95,.25); }
label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--primary-light); color: var(--primary); font-weight: 600; white-space: nowrap; }
tr:nth-child(even) td { background: #fafbfd; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; word-break: break-all; }

/* 徽章 */
.tag { display: inline-block; border-radius: 20px; padding: 1px 10px; font-size: 12px; white-space: nowrap; }
.tag.ok { background: #e3f3ea; color: var(--ok); }
.tag.doing { background: #fdf0e0; color: var(--warn); }
.tag.todo { background: #eef0f3; color: var(--muted); }
.tag.blue { background: var(--primary-light); color: var(--primary); }
.tag.gold { background: #f7efdd; color: var(--accent); }

/* 首页（旧版 hero，其他页面可能引用） */
.hero { background: linear-gradient(135deg, #1f3a5f 0%, #2c4f80 100%); color: #fff; padding: 64px 24px 56px; text-align: center; }
.hero h1 { font-size: 30px; margin-bottom: 14px; letter-spacing: 2px; }
.hero p { opacity: .85; max-width: 760px; margin: 0 auto 8px; }
.hero .btns { margin-top: 26px; }
.hero .btn { background: var(--accent); font-size: 15px; padding: 11px 30px; margin: 0 8px; }
.hero .btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.feature .num { color: var(--accent); font-weight: 700; font-size: 20px; }
.notice {
  background: #f7efdd;
  border: 1px solid #e0cfa4;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5314;
  margin-top: 14px;
}

/* 流程步骤条（六环节，工作台等页面引用） */
.stepper { display: flex; gap: 0; margin: 18px 0 6px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 128px;
  text-align: center;
  position: relative;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  margin: 4px;
  transition: box-shadow .15s;
}
.step:hover { box-shadow: 0 2px 8px rgba(31,58,95,.15); }
.step .snum { font-size: 11px; color: var(--muted); }
.step .sname { font-weight: 700; font-size: 13.5px; margin: 2px 0; color: var(--primary); }
.step .spct { font-size: 12px; color: var(--muted); }
.step.done { border-color: var(--ok); background: #f0f9f4; }
.step.doing { border-color: var(--warn); background: #fdf6ec; }
.step.cur { outline: 2px solid var(--primary); }

/* 进度环 */
.ring { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring .val b { font-size: 26px; color: var(--primary); }
.ring .val span { font-size: 12px; color: var(--muted); }

/* 时间线 */
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; padding-left: 18px; }
.timeline li { position: relative; padding: 4px 0 12px; }
.timeline li::before {
  content: "";
  position: absolute; left: -24px; top: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline .t { font-size: 12px; color: var(--muted); }

/* 结果区 */
.result { border-radius: 8px; padding: 14px 18px; margin-top: 12px; font-size: 14px; }
.result.ok { background: #e3f3ea; border: 1px solid #9fd4b7; color: #14532d; }
.result.bad { background: #fbe7e9; border: 1px solid #e3a3a9; color: #7a1c25; }
.result.info { background: var(--primary-light); border: 1px solid #b9cbe2; color: var(--primary); }

/* 管理员 */
.gate { max-width: 420px; margin: 80px auto; }
.statcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 860px) { .statcards { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-align: center; }
.stat b { display: block; font-size: 28px; color: var(--primary); }
.stat span { font-size: 13px; color: var(--muted); }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.bar-row .lbl { width: 110px; font-size: 13px; text-align: right; color: var(--muted); }
.bar-row .bar { flex: 1; height: 18px; background: #eef0f3; border-radius: 9px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--primary); border-radius: 9px; }
.bar-row .num { width: 46px; font-size: 13px; }

footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 24px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

/* ===== 全端自适应：电脑 / 平板 / 手机（2026-08-25 增补，零依赖纯 CSS）===== */

/* 平板（≤1024px）：收紧页面留白与导航间距 */
@media (max-width: 1024px) {
  .topbar { padding: 0 18px; }
  .topbar nav a { margin-left: 16px; }
  .container { padding: 24px 16px 52px; }
}

/* 手机 / 窄平板（≤860px）：顶栏两行化、导航横滑、宽表格与流程图卡片内横滚 */
@media (max-width: 860px) {
  body { font-size: 14.5px; }
  .topbar { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 14px; row-gap: 2px; }
  .topbar .brand { font-size: 16px; }
  .topbar .brand small { display: none; }
  .topbar nav { order: 2; width: 100%; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { display: inline-block; margin: 0 16px 0 0; padding: 5px 0; flex: 0 0 auto; }
  .container { padding: 16px 12px 44px; }
  .card { padding: 16px 14px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card h2 { font-size: 16.5px; margin-bottom: 10px; }
  table { min-width: 620px; }
  .hero { padding: 38px 14px 34px; }
  .hero h1 { font-size: 22px; letter-spacing: 1px; }
  .hero p { font-size: 13.5px; }
  .hero .btns { margin-top: 20px; }
  .hero .btn { display: block; max-width: 300px; margin: 0 auto 10px; }
  .statcards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat b { font-size: 22px; }
  .step { min-width: 104px; }
  .step .sname { font-size: 12.5px; }
  .step .spct { font-size: 11px; }
  .ring { width: 110px; height: 110px; }
  .ring .val b { font-size: 22px; }
  .bar-row .lbl { width: 84px; font-size: 12px; }
  .btn { padding: 8px 16px; }
  footer { padding: 18px 14px 24px; }
}

/* 小屏手机（≤480px） */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 12.5px; }
  .step { min-width: 92px; }
  .topbar nav a { margin-right: 13px; font-size: 13px; }
  table { min-width: 560px; }
}

/* ================================================================== */
/* ===== 首页增强样式（2026-08-25 国际化设计优化，仅 index.html 引用）===== */
/* ================================================================== */

/* --- 沉浸式首屏 Hero --- */
.hero2 {
  background: linear-gradient(135deg, #152d4a 0%, #1f3a5f 40%, #2c4f80 100%);
  color: #fff;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 0;
  position: relative;
  overflow: hidden;
}
.hero2::before {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(184,134,11,.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero2::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -90px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero2-inner { position: relative; z-index: 1; max-width: 820px; }
.hero2-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 30px;
  padding: 5px 18px;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero2-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero2-dot { color: var(--accent); margin: 0 6px; }
.hero2-sub {
  font-size: 15px;
  opacity: .82;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hero2-btns { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero2-btn {
  display: inline-block;
  border-radius: 6px;
  padding: 13px 34px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.hero2-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,134,11,.3);
}
.hero2-btn.primary:hover { background: #c99615; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(184,134,11,.45); }
.hero2-btn.ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.hero2-btn.ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* 首屏统计栏 */
.hero2-stats {
  display: flex;
  width: 100%;
  max-width: 840px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero2-stat {
  flex: 1;
  text-align: center;
  padding: 24px 8px 30px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero2-stat:last-child { border-right: none; }
.hero2-stat b { display: block; font-size: 34px; color: var(--accent); margin-bottom: 4px; font-weight: 700; }
.hero2-stat span { font-size: 13px; opacity: .72; }

/* --- 区块标题 --- */
.sec-head { text-align: center; margin-bottom: 28px; margin-top: 8px; }
.sec-num {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 6px;
}
.sec-head h2 { font-size: 26px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 14px; }

/* --- 产品形态卡片 --- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.pkg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 26px;
  text-align: center;
  transition: all .25s;
}
.pkg-card:hover {
  box-shadow: 0 10px 34px rgba(31,58,95,.12);
  transform: translateY(-5px);
  border-color: var(--accent);
}
.pkg-num { font-size: 30px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.pkg-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }

/* --- 打包定价卡 --- */
.price-card {
  background: linear-gradient(135deg, #fff 0%, #f8fafd 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 2px 14px rgba(31,58,95,.08);
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.price-col { text-align: center; }
.price-col.main { border-right: 2px solid var(--line); padding-right: 56px; }
.price-label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 8px; }
.price-val { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.price-currency { font-size: 20px; color: var(--primary); }
.price-val b { font-size: 38px; color: var(--primary); font-weight: 700; }
.price-col.promo .price-val b { color: var(--accent); }
.price-unit { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.price-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

/* --- 两层存证可视化 --- */
.ev-layers { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.ev-layer { border-radius: 12px; padding: 22px 26px; position: relative; }
.ev-layer.base { background: var(--primary-light); border: 1px solid #b9cbe2; }
.ev-layer.top { background: #f7efdd; border: 1px solid #e0cfa4; margin-left: 48px; }
.ev-layer-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ev-layer.base .ev-layer-tag { background: var(--primary); color: #fff; }
.ev-layer.top .ev-layer-tag { background: var(--accent); color: #fff; }
.ev-layer h3 { font-size: 16px; margin-bottom: 8px; }
.ev-layer.base h3 { color: var(--primary); }
.ev-layer.top h3 { color: #8a6308; }

/* --- 六环节步骤 --- */
.steps2 { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.step2 {
  flex: 1;
  min-width: 142px;
  max-width: 180px;
  text-align: center;
  padding: 22px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: all .25s;
}
.step2:hover {
  box-shadow: 0 8px 24px rgba(31,58,95,.12);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.step2-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: all .25s;
}
.step2:hover .step2-circle { background: var(--accent); }
.step2-name { font-weight: 700; font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.step2-desc { font-size: 12px; color: var(--muted); }

/* --- 安全架构卡片 --- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  transition: all .25s;
}
.sec-card:hover {
  box-shadow: 0 6px 22px rgba(31,58,95,.10);
  transform: translateY(-3px);
}
.sec-card-num { font-size: 24px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.sec-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 8px; }

/* --- 案例卡片 --- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  transition: all .25s;
}
.case-card:hover {
  box-shadow: 0 6px 22px rgba(31,58,95,.10);
  transform: translateY(-4px);
}
.case-card .tag { margin-bottom: 10px; }
.case-card h3 { font-size: 15px; color: var(--primary); margin-bottom: 10px; }

/* --- 痛点 / 方案卡片 --- */
.card.pain { border-left: 4px solid var(--danger); }
.card.solution { border-left: 4px solid var(--ok); }
.card.pain h3 { color: var(--danger); }
.card.solution h3 { color: var(--ok); }

/* --- 公共栏目 --- */
.pub-feature { text-align: center; padding: 36px 30px; }
.pub-feature h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }

/* ===== 首页新增元素 · 全端自适应 ===== */
@media (max-width: 1024px) {
  .pkg-grid, .sec-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .hero2-title { font-size: 32px; }
}
@media (max-width: 860px) {
  .hero2 { padding: 50px 14px 0; min-height: 440px; }
  .hero2-title { font-size: 24px; letter-spacing: 1px; }
  .hero2-sub { font-size: 13.5px; line-height: 1.8; }
  .hero2-btns { flex-direction: column; align-items: center; }
  .hero2-btn { display: block; max-width: 300px; text-align: center; }
  .hero2-stats { flex-wrap: wrap; }
  .hero2-stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero2-stat b { font-size: 26px; }
  .pkg-grid, .sec-grid, .case-grid { grid-template-columns: 1fr; }
  .price-row { gap: 24px; }
  .price-col.main { border-right: none; border-bottom: 2px solid var(--line); padding-right: 0; padding-bottom: 24px; }
  .price-val b { font-size: 30px; }
  .ev-layer.top { margin-left: 0; }
  .steps2 { gap: 10px; }
  .step2 { min-width: 100px; padding: 16px 8px; }
  .step2-circle { width: 38px; height: 38px; font-size: 16px; }
  .sec-head h2 { font-size: 20px; }
  .pkg-card, .sec-card, .case-card { padding: 18px 16px; }
}
@media (max-width: 480px) {
  .hero2-title { font-size: 20px; }
  .hero2-stat { flex: 1 1 50%; }
  .hero2-stat b { font-size: 22px; }
  .step2 { min-width: 90px; }
  .hero2-badge { font-size: 12px; }
  .sec-head h2 { font-size: 18px; }
}
