/* ============================================================
   江西天承皓网络科技有限公司 官网样式
   设计基调：B2B 技术服务 —— 专业、克制、可信
   ============================================================ */

:root {
  --brand: #1a5fb4;
  --brand-dark: #14498d;
  --brand-soft: #eaf1fb;
  --accent: #ff8a00;
  --ink: #1a202c;
  --ink-2: #4a5568;
  --ink-3: #718096;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --navy: #16233a;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 600; }
p { margin: 0.75em 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; }
.section-head .sub { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.section-head::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--brand); margin: 18px auto 0; border-radius: 2px;
}

/* ---------- 顶部 ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo__mark {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: -1px;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text b { font-size: 17px; color: var(--ink); }
.logo__text span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }

.nav { margin-left: auto; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: block; padding: 10px 14px; color: var(--ink-2); font-size: 15px;
  border-radius: var(--radius-sm); transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav__link.is-active { color: var(--brand); font-weight: 600; }
.nav__link .caret { font-size: 10px; margin-left: 4px; }

.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; list-style: none; margin: 0; display: none;
}
.nav__item:hover .nav__sub, .nav__item.is-open .nav__sub { display: block; }
.nav__sub a { display: block; padding: 9px 12px; color: var(--ink-2); font-size: 14px; border-radius: var(--radius-sm); }
.nav__sub a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.header__cta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header__tel { font-size: 15px; font-weight: 600; color: var(--ink); }
.header__tel:hover { color: var(--brand); text-decoration: none; }

.burger {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0; margin-left: auto;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform 0.2s var(--ease); }

.drawer {
  position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 78%; max-width: 320px;
  background: #fff; padding: 24px; overflow-y: auto; transform: translateX(100%);
  transition: transform 0.28s var(--ease);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink-2); float: right; line-height: 1; }
.drawer__title { font-size: 15px; color: var(--ink-3); margin: 8px 0 18px; clear: both; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list > li > a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 16px;
}
.drawer__list ul { list-style: none; margin: 0; padding: 0 0 8px 14px; }
.drawer__list ul a { display: block; padding: 9px 0; color: var(--ink-2); font-size: 14px; }
.drawer__tel { display: block; margin-top: 24px; text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm); font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s var(--ease); text-decoration: none;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 88px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #14498d 0%, #1a5fb4 55%, #2c7ad6 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; margin-bottom: 18px; max-width: 22em; }
.hero__lead { font-size: 17px; max-width: 34em; opacity: 0.92; margin-bottom: 12px; }
.hero__meta { font-size: 14px; opacity: 0.8; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页面头图（内页） ---------- */
.pagehead {
  position: relative; padding: 56px 0; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #14498d 0%, #1a5fb4 100%);
}
.pagehead::before {
  content: ''; position: absolute; inset: 0; opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pagehead__inner { position: relative; z-index: 1; }
.pagehead h1 { font-size: 32px; }
.pagehead p { margin: 10px 0 0; opacity: 0.9; font-size: 15px; max-width: 40em; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); padding: 14px 0; }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 6px; }
.crumbs--light { color: rgba(255,255,255,.75); margin-bottom: 12px; }
.crumbs--light a { color: rgba(255,255,255,.85); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: block; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); text-decoration: none; }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--brand);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.card__more { font-size: 14px; color: var(--brand); font-weight: 600; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat__label { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------- 流程时间轴 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step { text-align: center; position: relative; }
.step__dot {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 600;
}
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 22px; left: 60%; right: -40%;
  border-top: 1px dashed var(--line);
}

/* ---------- 缩略图占位块 ---------- */
.thumb-box {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eaf1fb, #d6e3f7); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.thumb-box svg { width: 56px; height: 56px; opacity: 0.55; }

/* ---------- CTA 通栏 ---------- */
.cta-band { background: linear-gradient(135deg, #14498d, #1a5fb4); color: #fff; padding: 56px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; }
.cta-band p { margin: 8px 0 0; opacity: 0.9; font-size: 15px; }

/* ---------- 关于 / 内容 ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { color: var(--ink-2); }

.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.info-table th { background: var(--bg-soft); width: 160px; white-space: nowrap; font-weight: 600; }
.info-table td { color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 20px; }
.timeline li::before {
  content: ''; position: absolute; left: -35px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.timeline .year { font-weight: 600; color: var(--brand); }
.timeline p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { background: var(--brand-soft); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ic { color: var(--brand); flex: 0 0 auto; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list .k { font-size: 13px; color: var(--ink-3); }
.contact-list .v { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.contact-list .v.plain { color: var(--ink-2); font-weight: 400; }

.map-box {
  margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; font-size: 14.5px;
}
.map-box strong { font-size: 15px; }
.map-box span { color: var(--ink-2); }
.map-box__note { font-size: 13px; color: var(--ink-3); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { display: none; color: #d64545; font-size: 13px; margin-top: 6px; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #d64545; }
.field.is-error .err { display: block; }
.checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-2); }
.checkline input { width: 16px; height: 16px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.form-msg { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14.5px; }
.form-msg.is-ok { display: block; background: #eaf7ee; color: #1c7c43; border: 1px solid #bfe3cd; }
.form-msg.is-warn { display: block; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #cbdcf5; }


/* ---------- 占位内容标记 ---------- */
.ph {
  background: #fff7e6; border: 1px dashed var(--warn-line, #f0b429); color: #8a6100;
  padding: 1px 6px; border-radius: 3px; font-size: 0.95em;
}
.ph-label {
  display: inline-block; font-size: 11px; background: #f0b429; color: #fff;
  border-radius: 3px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 56px 0 0; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: #fff; }
.footer__about p { margin: 0 0 12px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo .logo__mark { background: #fff; color: var(--brand); }
.footer__logo b { color: #fff; font-size: 17px; }
.footer__contact li { display: flex; gap: 8px; }
.footer__bottom {
  margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 28px;
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.footer__icp { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.footer__icp a { color: rgba(255, 255, 255, 0.72); }
.footer__links a { margin-left: 16px; }

/* ---------- 悬浮工具条 ---------- */
.fab { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab__btn {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  color: var(--brand); cursor: pointer; position: relative;
}
.fab__btn svg { width: 22px; height: 22px; }
.fab__btn:hover { background: var(--brand); color: #fff; }
.fab__btn .tip {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 10px; border-radius: var(--radius-sm);
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease);
}
.fab__btn:hover .tip { opacity: 1; visibility: visible; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 100px 0; }
.nf h1 { font-size: 88px; color: var(--brand); line-height: 1; }
.nf p { color: var(--ink-2); margin: 16px 0 28px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .container, .header__inner { max-width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .step:not(:last-child)::after { display: none; }
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .container, .header__inner { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 25px; }
  .hero__lead { font-size: 15.5px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .section-head h2 { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .pagehead h1 { font-size: 24px; }
  .form { padding: 22px 18px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .fab { right: 12px; bottom: 74px; }
  .card { padding: 24px 20px; }
  .info-table th { width: 110px; }
}
