/* ============================================================
   长泰企业网 - 官网样式表
   自适应：桌面 / 平板 / 手机
   ============================================================ */

:root {
  --primary: #1457c4;
  --primary-dark: #0d3f8f;
  --primary-deep: #0a2f6b;
  --accent: #f6a821;
  --accent-dark: #d98c0a;
  --ink: #1f2937;
  --ink-light: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --line: #e6ebf3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 63, 143, 0.10);
  --shadow-lg: 0 18px 44px rgba(13, 63, 143, 0.16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 34px; font-size: 17px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(20, 87, 196, .32); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 87, 196, .38); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

.btn-phone { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; padding: 9px 20px; font-size: 15px; }
.btn-phone:hover { background: var(--accent); color: #fff; transform: none; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--primary-deep); color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar-phone { color: #ffd98a; font-weight: 600; }
.topbar-phone:hover { color: #fff; }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(15, 42, 90, .10); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(20, 87, 196, .35);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.logo-text small { font-size: 10.5px; font-weight: 600; color: var(--primary); letter-spacing: 2.4px; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text small { color: #9db9e8; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--primary); background: #eef4fd; }
.nav a.active { color: var(--primary); font-weight: 700; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(246, 168, 33, .28), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(64, 130, 255, .35), transparent 60%),
    linear-gradient(150deg, #0a2f6b 0%, #0d3f8f 45%, #1457c4 100%);
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.hero-tag {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: 3px; line-height: 1.25; margin-bottom: 18px; }
.hero-sub { font-size: clamp(15px, 2vw, 19px); color: rgba(255, 255, 255, .86); line-height: 2; margin-bottom: 36px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat { padding: 0 44px; border-left: 1px solid rgba(255, 255, 255, .22); text-align: center; }
.stat:first-child { border-left: none; }
.stat strong { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #ffd98a; line-height: 1.3; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .82); }

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

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 4px; color: var(--primary); text-transform: uppercase; margin-bottom: 10px; }
.section-alt .section-eyebrow, .section-alt .section-title { color: inherit; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--primary-deep); letter-spacing: 1px; margin-bottom: 12px; }
.section-desc { color: var(--ink-light); font-size: 16px; }

.section-cta {
  margin-top: 48px;
  text-align: center;
  background: linear-gradient(120deg, #eef4fd, #fdf3e0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  box-shadow: var(--shadow);
}
.section-cta p { font-size: 17px; font-weight: 600; color: var(--primary-deep); margin-bottom: 16px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9dcf8; }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #e8f1fe, #d7e6fd);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 19px; font-weight: 700; color: var(--primary-deep); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-light); }

.card-mini { padding: 26px 24px; }
.card-mini .card-icon { width: 50px; height: 50px; border-radius: 13px; margin-bottom: 14px; }
.card-mini .card-icon svg { width: 26px; height: 26px; }
.card-mini h3 { font-size: 17.5px; }
.card-mini p { font-size: 14px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-light); margin-bottom: 16px; font-size: 15.5px; }
.about-text .section-title { margin-bottom: 18px; }

.about-list { margin: 22px 0 30px; }
.about-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 15px; color: var(--ink); }
.about-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #1c8a4d;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.about-badge { display: grid; gap: 20px; }
.badge-main, .badge-sub {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 34px 20px;
}
.badge-main {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
}
.badge-main strong { display: block; font-size: 64px; font-weight: 800; color: #ffd98a; line-height: 1.1; }
.badge-main span { font-size: 15px; color: rgba(255, 255, 255, .9); letter-spacing: 2px; }
.badge-sub { background: #fff; border: 1px solid var(--line); }
.badge-sub strong { display: block; font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.badge-sub span { font-size: 14px; color: var(--ink-light); }

/* ---------- 服务流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffd98a;
  font-size: 18px; font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(20, 87, 196, .3);
}
.process-step h3 { font-size: 17.5px; font-weight: 700; color: var(--primary-deep); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--ink-light); }

/* ---------- 联系我们 ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  background: linear-gradient(150deg, #0a2f6b, #0d3f8f 55%, #1457c4);
  border-radius: 22px;
  padding: 56px 60px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  align-items: center;
}
.contact-card .section-eyebrow { color: #ffd98a; }
.contact-card .section-title { color: #fff; }
.contact-desc { color: rgba(255, 255, 255, .82); font-size: 15px; margin-bottom: 28px; }

.contact-list li { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.contact-list li:last-child { border-bottom: none; }
.contact-label { flex-shrink: 0; width: 78px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.contact-value { font-size: 17px; font-weight: 600; }
a.contact-value { color: #ffd98a; }
a.contact-value:hover { color: #fff; }

.contact-action { text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 40px 28px; }
.contact-action p:first-child { font-size: 19px; font-weight: 700; margin-bottom: 22px; }
.contact-tip { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

/* ---------- 页脚 ---------- */
.footer { background: #0a2448; color: rgba(255, 255, 255, .75); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: 60px 24px 44px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.9; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: #ffd98a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- 移动端悬浮电话 ---------- */
.float-call {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f6a821, #e08e06);
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(224, 142, 6, .45);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-call:hover { transform: translateY(-2px); }
.float-call span { display: none; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(224, 142, 6, .45); }
  50% { box-shadow: 0 10px 34px rgba(224, 142, 6, .7); }
}

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   响应式：平板 (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { padding: 44px 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   响应式：手机 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .container { padding: 0 18px; }

  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { display: none; }

  /* 汉堡菜单 */
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(15, 42, 90, .14);
    padding: 10px 18px 18px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 16px; border-bottom: 1px solid #f0f4fa; border-radius: 0; }
  .nav a:last-child { border-bottom: none; }

  .hero { padding: 64px 0 56px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .stat { padding: 0 18px; }
  .stat:nth-child(2) { border-left: none; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }

  .grid-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .contact-card { grid-template-columns: 1fr; gap: 30px; padding: 36px 22px; }
  .contact-list li { gap: 12px; }
  .contact-label { width: 66px; font-size: 13px; }
  .contact-value { font-size: 15.5px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 18px 36px; }

  .float-call span { display: inline; }
}

/* ============================================================
   响应式：小屏手机 (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-stats { gap: 10px; }
  .stat { padding: 0 12px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 12.5px; }
  .logo-text { font-size: 18px; }
  .logo-text small { font-size: 9.5px; }
}

/* ---------- 动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-call { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- 打印 ---------- */
@media print {
  .header, .topbar, .float-call, .footer, .hero-actions { display: none !important; }
  .hero { color: #000; background: #fff; padding: 30px 0; }
  .stat { color: #000; }
  .stat strong { color: var(--primary); }
}
