/* ============================================================
   荆州市婕辉智能网络科技有限公司 — 官网样式
   设计约束：
   - 无外部字体/CDN，全部系统字体，离线可用
   - 移动端优先，断点：375px 起 / 768px / 1200px
   - 文字对比度 ≥ 4.5:1；交互元素均有可见焦点态
   ============================================================ */

/* 兜底：HTML hidden 属性必须真正隐藏。
   本文件多处给 .form-success / .brand-mark 等设了 display，
   若不兜底，display 会覆盖 hidden 属性，导致未提交就显示成功提示。 */
[hidden] { display: none !important; }

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：深蓝（#0b3a75 对白字 ≈ 10.9:1） */
  --c-brand: #0b3a75;
  --c-brand-strong: #082c5a;
  --c-brand-soft: #eaf1fa;
  --c-accent: #b3541e;          /* 强调色，用于警示/标签，对白字 ≈ 5.3:1 */

  --c-text: #1b2330;            /* 正文 */
  --c-text-muted: #4a5566;      /* 次要文字，对白底 ≈ 7.5:1 */
  --c-bg: #ffffff;
  --c-bg-alt: #f4f7fb;
  --c-line: #d8e0ea;

  /* 待补占位：黄色警示底 + 深色字，保证醒目且可读 */
  --c-todo-bg: #fff3b0;
  --c-todo-line: #d9a300;
  --c-todo-text: #5c4200;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(11, 58, 117, .08);
  --shadow-lg: 0 10px 30px rgba(11, 58, 117, .12);

  --space: 16px;
  --container: 1200px;

  --fs-base: 16px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转时不被固定头部遮挡 */
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3 {
  line-height: 1.35;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  padding: .1em .4em;
  border-radius: 5px;
  font-size: .95em;
  word-break: break-all;
}

img { max-width: 100%; height: auto; }

/* ---------- 无障碍辅助 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--c-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* 统一可见焦点态：键盘 Tab 时始终清晰 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-head { margin-bottom: 28px; max-width: 720px; }
.section-sub { color: var(--c-text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--c-brand);
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: .95rem;
  line-height: 1.3;
  /* 窄屏下公司全称换行，避免溢出 */
  white-space: normal;
}
.brand-text small {
  font-size: .76rem;
  color: var(--c-text-muted);
}

/* 汉堡按钮（移动端） */
.nav-toggle {
  flex: none;
  width: 44px; height: 40px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--c-brand);
  border-radius: 2px;
}

/* 导航菜单：移动端默认收起 */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  display: none;
}
.primary-nav.is-open { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: 11px 4px;
  color: var(--c-text);
  border-bottom: 1px solid #eef2f7;
}
.primary-nav li:last-child a { border-bottom: 0; }
.primary-nav a:hover { color: var(--c-brand); }

.nav-cta {
  background: var(--c-brand);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  margin-top: 10px;
  padding: 11px 16px !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--c-brand-strong); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-align: center;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.btn-primary:hover { background: var(--c-brand-strong); text-decoration: none; }

.btn-ghost {
  background: #fff;
  color: var(--c-brand);
  border-color: var(--c-brand);
}
.btn-ghost:hover { background: var(--c-brand-soft); text-decoration: none; }

.btn-block { width: 100%; }

/* ---------- 首屏 ---------- */
.hero {
  background:
    linear-gradient(160deg, var(--c-brand-soft) 0%, #ffffff 62%);
  border-bottom: 1px solid var(--c-line);
  padding: 48px 0 52px;
}
.hero-inner { max-width: 760px; }
.hero-lead { font-size: 1.05rem; color: var(--c-text-muted); }

.hero-actions {
  display: flex;
  flex-direction: column;   /* 窄屏纵向铺开，便于单手点击 */
  gap: 12px;
  margin: 24px 0 22px;
}
.hero-actions .btn { width: 100%; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: .95rem;
}
.hero-points li { padding-left: 24px; position: relative; margin: 0; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 6px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-brand);
}

/* ---------- 卡片 ---------- */
.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.card-featured {
  border-color: #b9d2ee;
  border-top: 4px solid var(--c-brand);
}

.card-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--c-brand);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}
.card-tag-2 { background: var(--c-accent); }

.card-list { color: var(--c-text-muted); margin-bottom: 1em; }
.card-note {
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-brand);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  color: var(--c-text-muted);
  margin-bottom: 0;
}

/* ---------- 方法论 / 合规 ---------- */
.split { display: grid; gap: 24px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--c-brand);
  color: #fff;
  border-radius: 50%;
  font-size: .88rem;
  font-weight: 700;
}

.notice {
  background: #fff;
  border: 1px solid #e6c9a8;
  border-left: 5px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.notice ul { margin-bottom: 0; font-size: .95rem; color: var(--c-text-muted); }

/* ---------- 结算方式 ---------- */
.pay-grid { display: grid; gap: 20px; }

.pay-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.pay-card-warn {
  border-color: #e6c9a8;
  background: #fffaf4;
}

.kv { margin: 0 0 .6em; }
.kv dt {
  font-size: .85rem;
  color: var(--c-text-muted);
  margin-top: 10px;
}
.kv dd {
  margin: 2px 0 0;
  font-weight: 600;
  word-break: break-word;
}
.kv dt:first-of-type { margin-top: 0; }

.pay-tip {
  font-size: .9rem;
  color: var(--c-text-muted);
  margin: 12px 0 0;
}

/* ---------- 企业信息 + 待补占位 ---------- */
.info-layout { display: grid; gap: 24px; }

.info-table { margin: 0; }
.info-row {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-row:first-child { border-top: 1px solid var(--c-line); }
.info-row dt { font-size: .88rem; color: var(--c-text-muted); }
.info-row dd { margin: 0; font-weight: 600; word-break: break-word; }

/* 醒目待补块：黄色警示底 + 粗边框，任何信息都不得臆造填充 */
.todo-block {
  background: var(--c-todo-bg);
  border: 2px dashed var(--c-todo-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--c-todo-text);
}
.todo-title { color: var(--c-todo-text); font-size: 1.05rem; }
.todo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}
.todo-list li {
  margin: 0;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #e8cf63;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.todo-chip {
  flex: none;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--c-accent);
  border-radius: 4px;
  padding: 2px 8px;
}
.todo-foot { margin: 0; font-size: .9rem; }

/* 行内/块级占位标签（用于页面其他位置的缺失信息） */
.ph {
  background: var(--c-todo-bg);
  border-bottom: 2px dashed var(--c-todo-line);
  color: var(--c-todo-text);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.ph-inline { display: inline-block; }
.ph-block {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
}

/* ---------- 联系表单 ---------- */
.contact-layout { display: grid; gap: 32px; }

.contact-points { color: var(--c-text-muted); font-size: .95rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .95rem;
}
.req { color: #b3261e; margin-left: 2px; }

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #a9c3de; }

/* 校验失败态 */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .1);
}

.err {
  margin: 6px 0 0;
  font-size: .88rem;
  color: #b3261e;   /* 对白底 ≈ 5.9:1 */
  font-weight: 600;
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: start;
}
.field-check input {
  width: 20px; height: 20px;
  margin-top: 3px;
  accent-color: var(--c-brand);
}
.field-check label { font-weight: 500; margin: 0; }
.field-check .err { grid-column: 1 / -1; }

.privacy-note {
  font-size: .86rem;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
}

.form-success {
  margin-top: 16px;
  background: #e7f6ec;
  border: 1px solid #9bd3ae;
  border-radius: 8px;
  padding: 14px 16px;
  color: #14532d;
  display: grid;
  gap: 4px;
  font-size: .95rem;
}
.form-success span { color: #2c6b45; font-size: .9rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-brand-strong);
  color: #eaf1fa;
  padding: 40px 0 32px;
  margin-top: 0;
}
.footer-inner { display: grid; gap: 26px; }

.footer-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.footer-meta { margin: 0 0 4px; font-size: .9rem; color: #cfe0f2; }
.footer-meta code {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-nav a { color: #eaf1fa; }
.footer-nav a:hover { color: #fff; }

.footer-legal .ph-block {
  /* 深色底上仍保持醒目 */
  background: var(--c-todo-bg);
  color: var(--c-todo-text);
}
.footer-note {
  font-size: .88rem;
  color: #cfe0f2;
  margin: 0 0 6px;
}

/* ============================================================
   断点 1：≥768px（平板）
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.22rem; }
  body { font-size: 17px; }

  .section { padding: 72px 0; }
  .hero { padding: 72px 0 76px; }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  .hero-actions .btn { width: auto; }

  .hero-points { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card { padding: 28px; }

  .info-row {
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .pay-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { gap: 40px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ============================================================
   断点 2：≥1200px（桌面）
   ============================================================ */
@media (min-width: 1200px) {
  .brand-text strong { font-size: 1.02rem; }

  /* 桌面端改为横向导航，隐藏汉堡按钮 */
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    display: block !important;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .primary-nav a {
    border-bottom: 0;
    padding: 8px 14px;
    border-radius: 8px;
  }
  .primary-nav a:hover { background: var(--c-brand-soft); }
  .nav-cta { margin-top: 0; margin-left: 8px; }

  .hero-inner { max-width: 860px; }
  .hero { padding: 96px 0 100px; }

  .cards { grid-template-columns: 1.15fr 1fr; }
  .split { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .info-layout { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

  .footer-inner { grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
  .footer-legal { grid-column: auto; }
}

/* ============================================================
   断点 3：≤374px（超窄屏兜底）
   ============================================================ */
@media (max-width: 374px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.65rem; }
  .brand-text small { display: none; }
  .btn { padding: 12px 16px; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .nav-toggle, .contact-form, .hero-actions { display: none; }
  body { color: #000; }
  .card, .pay-card, .contact-form { box-shadow: none; }
}

/* ---------- 品牌标识（2026-11-24 定稿 logo 配套） ---------- */
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.25rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  margin-bottom: .75rem;
}

@media (max-width: 480px) {
  .hero-logo { width: 88px; height: 88px; }
  .brand-logo { width: 34px; height: 34px; }
}
