/* ==========================================================
   天字通讯官网  fstianzi.com
   南海天字通讯 微信服务号官网版
   ========================================================== */

:root {
  --brand: #0a6cff;
  --brand-dark: #0052cc;
  --brand-light: #eaf2ff;
  --accent: #ff7a00;
  --ink: #1a2332;
  --ink-2: #4a5568;
  --ink-3: #8a94a6;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e6ebf2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 60, 130, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 60, 130, 0.14);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #4d9bff);
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 108, 255, 0.35);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.brand-name small {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--ink-3); letter-spacing: 1px; line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(10, 108, 255, 0.3);
}
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 45%, #d9e9ff 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; right: -160px; top: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 108, 255, 0.14), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -200px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.10), transparent 65%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 92px 0 96px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #d8e6ff; color: var(--brand);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10, 108, 255, 0.08);
  margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.hero h1 {
  font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: 0.5px;
}
.hero h1 .hl { color: var(--brand); }
.hero .sub {
  margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 520px;
}
.hero .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .tags span {
  font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,0.75);
  border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px;
}
.hero-btns { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(10, 108, 255, 0.35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #d5e2f5; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; max-width: 520px; }
.stat {
  background: rgba(255,255,255,0.85); border: 1px solid #dbe9ff;
  border-radius: var(--radius); padding: 16px 14px; text-align: center;
  box-shadow: 0 4px 14px rgba(10, 60, 130, 0.06);
}
.stat b { font-size: 24px; color: var(--brand); font-weight: 800; display: block; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-3); }

.hero-card {
  background: #fff; border-radius: 22px; padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid #eef4fd;
  position: relative;
}
.hero-card-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.wx-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px;
  background: linear-gradient(135deg, #07c160, #059b50);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.wx-name { font-weight: 700; font-size: 16px; }
.wx-name small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.wx-verified {
  font-size: 11px; color: #fff; background: #07c160; padding: 2px 8px;
  border-radius: 4px; font-weight: 600; margin-top: 4px; display: inline-block;
}
.hero-card-body { padding: 18px 0 6px; font-size: 14px; color: var(--ink-2); }
.hero-card-body .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #f0f4fa; }
.hero-card-body .row:last-child { border-bottom: none; }
.hero-card-body .k { color: var(--ink-3); }
.hero-card-body .v { font-weight: 600; color: var(--ink); }
.qr-box {
  margin-top: 16px; text-align: center;
  border: 1px dashed #c9d9f0; border-radius: 12px; padding: 14px;
  background: #f8fbfe;
}
.qr-ph {
  width: 96px; height: 96px; margin: 0 auto 8px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: #fff;
}
.qr-ph::after { content: none; }
.qr-box p { font-size: 12px; color: var(--ink-3); }

/* ---------- 区块通用 ---------- */
.section { padding: 86px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); background: var(--brand-light);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sec-head h2 { font-size: 32px; font-weight: 800; letter-spacing: 0.5px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--ink-2); margin-bottom: 16px; font-size: 15.5px; }
.about-points { margin-top: 26px; display: grid; gap: 14px; }
.about-points li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 16px; border-radius: 12px; box-shadow: 0 2px 8px rgba(10,60,130,0.04);
}
.about-points .ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.about-points b { font-size: 14.5px; display: block; }
.about-points span { font-size: 13px; color: var(--ink-3); }
.about-panel {
  background: linear-gradient(160deg, #0a6cff, #0052cc);
  border-radius: 22px; padding: 36px 32px; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about-panel::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.09);
}
.about-panel .big { font-size: 44px; font-weight: 800; line-height: 1.15; }
.about-panel .big span { color: #ffd9a8; }
.about-panel p { margin-top: 14px; font-size: 14px; opacity: 0.92; }
.about-panel .rows { margin-top: 24px; display: grid; gap: 12px; }
.about-panel .rows div {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 10px;
}
.about-panel .rows .k { opacity: 0.8; }
.about-panel .rows .v { font-weight: 600; text-align: right; }

/* ---------- 业务 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: all 0.25s; cursor: default;
}
.biz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.biz-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; margin-bottom: 16px;
}
.biz-card h3 { font-size: 17px; margin-bottom: 8px; }
.biz-card p { font-size: 13.5px; color: var(--ink-2); }
.biz-list { margin-top: 12px; display: grid; gap: 6px; }
.biz-list li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; }
.biz-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--brand);
}

/* ---------- 服务流程 / 保障 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; position: relative;
}
.step .no {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-3); }

/* ---------- 资讯 ---------- */
.news-head-center { text-align: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { height: 168px; position: relative; }
.news-thumb .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}
.news-date {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(16, 24, 40, 0.72); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-body .cat {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-light); padding: 3px 10px; border-radius: 4px;
  align-self: flex-start; margin-bottom: 10px;
}
.news-body h3 { font-size: 15.5px; line-height: 1.5; margin-bottom: 8px; }
.news-body p { font-size: 13px; color: var(--ink-3); flex: 1; }
.news-body a.more { margin-top: 12px; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .ci-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px;
}
.ci-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ci-row b { font-size: 15px; display: block; }
.ci-row span { font-size: 13.5px; color: var(--ink-3); display: block; margin-top: 2px; }
.ci-row a.tel { font-size: 20px; color: var(--brand); font-weight: 800; letter-spacing: 0.5px; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 19px; margin-bottom: 6px; }
.contact-form > p { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-row label { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fafcff; transition: 0.2s; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.12); background: #fff;
}
.form-tip { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: #0f1c30; color: #b7c3d6; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer p, .footer li { font-size: 13.5px; line-height: 2; }
.footer .brand-name { color: #fff; }
.footer .brand-logo { margin-bottom: 14px; }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 22px; text-align: center; font-size: 12.5px; color: #8d9bb0;
}
.footer .legal p { margin: 4px 0; line-height: 1.7; }
.footer .legal .copyright { color: #b7c3d6; }
.footer .legal .co { color: #fff; font-weight: 600; }
.footer .legal .records {
  width: 100%;
  text-align: center;
  padding: 4px 0;
  font-size: 0;
}
.footer .legal .records > a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  font-size: 12.5px;
  margin: 0 14px;
  white-space: nowrap;
}
.footer .legal .records .sep {
  display: inline-block;
  vertical-align: middle;
  font-size: 12.5px;
  color: #4a5a72;
  margin: 0 2px;
}
.footer a.icp { color: #8d9bb0; white-space: nowrap; }
.footer a.icp:hover { color: #fff; }
.footer a.mps { color: #8d9bb0; display: inline-flex; align-items: center; white-space: nowrap; }
.footer a.mps:hover { color: #fff; }
.footer .ba-icon { width: auto; height: 13px; margin-right: 5px; vertical-align: middle; }
.wx-mini-qr { display: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 0 70px; }
  .hero-card { max-width: 460px; }
  .hero-stats { max-width: 100%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10,60,130,0.12);
    transform: translateY(-120%); transition: transform 0.3s ease; display: none;
  }
  .nav-links.open { transform: translateY(0); display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid #f2f6fb; font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero h1 { font-size: 31px; }
  .hero .sub { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 19px; }
  .stat span { font-size: 10.5px; }
  .section { padding: 60px 0; }
  .sec-head h2 { font-size: 25px; }
  .biz-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-panel .big { font-size: 34px; }
  .footer .legal-line { flex-wrap: wrap; gap: 6px 14px; }
  .footer .records { gap: 10px; }
}
