/* ==================================================================
   前台样式 —— 商务科技风
   配色：深 corporate 蓝 + 科技青，浅色底 + 白色卡片，克制、少装饰
   改版时优先改这里的 CSS 变量，整站配色会同步变化
   ================================================================== */

:root {
  --brand: #0b2545;        /* 主色：深蓝 */
  --brand-2: #133a63;      /* 主色浅一档 */
  --accent: #1b6ff3;       /* 科技蓝（按钮、链接） */
  --accent-2: #00c2ff;     /* 科技青（点缀） */
  --ink: #0f1b2d;          /* 正文深色 */
  --muted: #64748b;        /* 次要文字 */
  --line: #e3e9f2;         /* 分隔线/边框 */
  --bg: #f6f8fb;           /* 页面底色 */
  --bg-alt: #eef2f8;       /* 交替区块底色 */
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --max: 1200px;
}

* { box-sizing: border-box; }

/* 关键：元素一旦带上 hidden 属性就必须隐藏，
   否则 .qr-modal 这类设置了 display:grid 的样式会覆盖浏览器的 [hidden] 默认规则 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.dot { margin: 0 6px; color: #cbd5e1; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 6px 16px rgba(27, 111, 243, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 26px; }
.nav a { font-size: 15px; color: #334155; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------------- 首屏 ---------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a2135 0%, #123b60 55%, #0d3355 100%); color: #fff; padding: 72px 0 80px; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0, 194, 255, .28), transparent 65%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(26px, 7.2vw, 42px); line-height: 1.25; margin: 0 0 18px; font-weight: 700; letter-spacing: -.5px; }
.hero .lead { font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 0 24px; max-width: 620px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #eaf3ff; }
.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { font-size: 14px; color: rgba(255, 255, 255, .85); padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.check-list .ok { color: #4ade80; margin-right: 8px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: .18s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #0f5fe0); color: #fff; box-shadow: 0 8px 20px rgba(27, 111, 243, .28); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: var(--brand); width: 100%; }
.btn-outline { border-color: var(--line); color: var(--accent); background: #fff; }
.btn-outline:hover { border-color: var(--accent); background: #f2f7ff; }

/* ---------------- 数据条 ---------------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -.5px; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; }
.section-head h2 { font-size: clamp(22px, 5.6vw, 30px); margin: 10px 0 10px; letter-spacing: -.3px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.more { color: var(--accent); font-size: 14px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 27, 45, .05), 0 14px 32px rgba(15, 27, 45, .09); }
.card h3 { font-size: 18px; margin: 0 0 10px; }
.card p { margin: 0; font-size: 14.5px; }

/* 服务卡片 */
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf2ff, #e6f7ff); color: var(--accent); margin-bottom: 16px;
}
.ico { width: 24px; height: 24px; }
.point-list { list-style: none; padding: 0; margin: 16px 0 0; }
.point-list li { position: relative; padding-left: 16px; font-size: 14px; color: #475569; margin-bottom: 7px; }
.point-list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.point-list.cols li { color: var(--ink); }

/* 优势卡片 */
.adv-card { position: relative; }
.adv-no { font-size: 26px; font-weight: 700; color: #dbe6f5; margin-bottom: 8px; letter-spacing: -1px; }

/* 流程 */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.process-step { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -1px; }
.process-body h3 { margin: 6px 0 6px; font-size: 17px; }
.process-body p { margin: 0; font-size: 14px; }

/* 关于 */
.about-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; }
.about-sub { margin: 0 0 18px; font-size: 16px; font-weight: 500; color: var(--brand); }
.about-content p { margin: 0 0 14px; color: #475569; }
.about-content { margin-bottom: 8px; }
.about-side { display: flex; flex-direction: column; gap: 14px; }
.side-stat {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column;
}
.side-stat strong { font-size: 24px; }
.side-stat span { font-size: 13px; opacity: .8; }

/* 文章卡片 */
.post-card { display: block; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chip {
  font-size: 12px; padding: 3px 10px; border-radius: 6px;
  background: #eef4ff; color: var(--accent); font-weight: 500;
}
.post-card h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.5; }
.post-card p { font-size: 14px; }
.post-foot { margin-top: 14px; }

/* 文章列表页 */
.page-head { background: linear-gradient(160deg, #0a2135, #123b60); color: #fff; padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(24px, 6.4vw, 32px); margin: 8px 0 8px; }
.page-head .eyebrow { color: var(--accent-2); }
.page-head .muted { color: rgba(255, 255, 255, .75); }
.chip-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-tab {
  font-size: 14px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85);
}
.chip-tab.active { background: #fff; color: var(--brand); border-color: #fff; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.pager-item { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.pager-item.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* 文章详情 */
.article-page { padding: 48px 0 24px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.article-page h1 { font-size: clamp(23px, 6vw, 32px); line-height: 1.4; margin: 0 0 12px; }
.article-meta { display: flex; gap: 6px; }
.article-summary {
  background: #eef4ff; border-left: 3px solid var(--accent); padding: 14px 18px;
  border-radius: 0 8px 8px 0; color: #334155; margin: 22px 0;
}
.article-content { font-size: 16px; color: #24344a; }
.article-content h3 { font-size: 19px; margin: 28px 0 10px; }
.article-content p { margin: 0 0 16px; }
.article-content ol, .article-content ul { padding-left: 22px; margin: 0 0 18px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  margin: 20px 0; padding: 14px 18px; background: var(--bg-alt);
  border-left: 3px solid var(--accent-2); color: #334155; border-radius: 0 8px 8px 0;
}
.article-back { margin-top: 40px; }
.article-back a { color: var(--accent); }

/* 联系 */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.ci-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.ci-row:last-child { border-bottom: 0; }
.ci-row span { width: 56px; color: var(--muted); font-size: 14px; }
.ci-row strong { font-weight: 500; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
/* 微信二维码（后台填写了 contact.qr 才显示） */
.qr-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.qr-box img {
  width: 132px; height: 132px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 15px;
  font-family: inherit; background: #fbfcfe; outline: none; transition: .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(27, 111, 243, .1); }
.form-tip { font-size: 13px; margin: 0; min-height: 20px; }
.form-tip.ok { color: #16a34a; }
.form-tip.err { color: #dc2626; }

/* 下载页 */
.file-list { display: flex; flex-direction: column; gap: 14px; }
.file-row { display: flex; align-items: center; gap: 16px; }
.file-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #eaf2ff; color: var(--accent); flex: none; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-size: 16px; font-weight: 500; word-break: break-all; }
.file-desc { margin-top: 2px; }
.file-meta { margin-top: 4px; }
/* 下载页：登录区与登录状态条 */
.dl-login { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.dl-login h3 { margin: 0; font-size: 17px; }
.dl-login p { margin: 0; }
.dl-login-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-login .btn { align-self: flex-start; }
.dl-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.dl-status-user { display: flex; flex-direction: column; }
.dl-status-user strong { font-size: 16px; }

/* 联系我们：右侧微信二维码卡片 */
.contact-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
}
.contact-qr img {
  width: 220px; height: 220px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px;
}
.contact-qr h3 { margin: 0; font-size: 18px; }
.contact-qr p { margin: 0; }
.contact-qr .btn { width: 100%; max-width: 240px; }

/* ---------------- 点选式汉字验证码 ---------------- */
.captcha-box { display: flex; flex-direction: column; gap: 6px; }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cap-label { font-size: 13px; color: var(--muted); }
.cap-refresh, .cap-clear { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 4px 6px; }
.cap-refresh:disabled { color: var(--muted); cursor: not-allowed; }
.cap-hint { font-size: 14px; color: var(--ink); margin: 4px 0 2px; }
.cap-hint b { color: var(--accent); font-weight: 600; }
.cap-arrow { margin: 0 3px; color: #cbd5e1; }
.cap-stage { position: relative; width: 336px; max-width: 100%; }
.cap-img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.cap-overlay {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr);
}
.cap-cell { position: relative; cursor: pointer; border-radius: 8px; transition: background .12s; }
.cap-cell:hover { background: rgba(27, 111, 243, .08); }
.cap-cell.on { background: rgba(27, 111, 243, .16); box-shadow: inset 0 0 0 2px var(--accent); }
.cap-cell.on::after {
  content: attr(data-order);
  position: absolute; left: 4px; top: 2px;
  width: 18px; height: 18px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 50%;
}
.cap-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cap-progress { font-size: 13px; color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.notice { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* 页脚 */
.site-footer { background: var(--brand); color: rgba(255, 255, 255, .8); padding: 44px 0; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.brand-mini { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-inner .muted { color: rgba(255, 255, 255, .6); margin: 4px 0; }
.footer-right { text-align: right; }
.footer-links a { margin-left: 6px; }
.footer-links a:hover { color: #fff; }

/* ---------------- 手机端底部快捷操作栏（桌面端隐藏） ---------------- */
.mobile-bar { display: none; }

.mb-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px;                     /* 触摸目标 ≥ 44px，方便手指点按 */
  padding: 6px 4px;
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--brand);
  border-radius: 10px;
}
.mb-item .ico { width: 20px; height: 20px; }
.mb-item.mb-primary {
  background: linear-gradient(135deg, var(--accent), #0f5fe0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 111, 243, .28);
}

/* 微信二维码弹层 */
.qr-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.qr-modal-mask { position: absolute; inset: 0; background: rgba(9, 20, 35, .55); }
.qr-modal-box {
  position: relative; background: #fff; border-radius: 16px; padding: 22px 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); max-width: 300px;
}
.qr-modal-box img { width: 200px; height: 200px; object-fit: contain; }
.qr-modal-box p { margin: 0; text-align: center; }

/* ---------------- 移动端适配 ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 52px 0 56px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 6px 20px 14px;
    display: none; box-shadow: 0 12px 24px rgba(15, 27, 45, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 16px; }
  .nav a.active::after { display: none; }
  .section { padding: 52px 0; }
  .grid-3, .grid-4, .process { grid-template-columns: 1fr; }
  .brand-text em { display: none; }
  .hero-btns .btn { flex: 1; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .file-row { flex-wrap: wrap; }
  .file-row .btn { width: 100%; }

  /* 显示手机端底部快捷操作栏，并给页面留出空间（含 iPhone 底部安全区） */
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--line);
  }
  body { padding-bottom: 80px; }

  /* iOS 上输入框字号小于 16px 会自动放大整个页面，这里统一为 16px */
  .field input, .field textarea, .field select { font-size: 16px; }

  /* 触摸目标加大，手指点按更准 */
  .btn { min-height: 46px; }
  .pager-item, .chip-tab { min-height: 38px; display: inline-flex; align-items: center; }

  /* 卡片留白收一点，手机上信息密度更合适 */
  .card { padding: 20px 18px; }
  .wrap { padding: 0 16px; }

  /* 联系信息改成竖排：长地址、长公司名不挤在一起 */
  .ci-row { flex-direction: column; gap: 2px; }
  .ci-row span { width: auto; }

  /* 长文本、长文件名不撑破布局 */
  .article-content, .post-card, .file-name, .hero .lead { word-break: break-word; }
  .article-content ol, .article-content ul { padding-left: 18px; }

  /* 下载页登录区在手机上改单列 */
  .dl-login-row { grid-template-columns: 1fr; }
  .dl-status { flex-direction: column; align-items: flex-start; }
  /* 二维码与验证码在窄屏上的尺寸 */
  .contact-qr img { width: 180px; height: 180px; }
  .cap-stage { width: 100%; }
}
