/* =========================================================
   天健科技有限公司 - 企业官网全局样式
   风格：简约大气 · 科技感 · 响应式
   ========================================================= */

:root {
  /* 主色 */
  --color-navy: #0a1f3f;          /* 深海军蓝 */
  --color-blue: #2563eb;          /* 品牌蓝 */
  --color-blue-dark: #1d4ed8;
  --color-cyan: #06b6d4;          /* 科技青 */
  --color-sky: #38bdf8;

  /* 中性色 */
  --color-bg: #f5f7fb;
  --color-white: #ffffff;
  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #e5eaf2;

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-dark: linear-gradient(160deg, #0a1f3f 0%, #12336b 100%);

  /* 尺寸与阴影 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 63, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 63, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 31, 63, 0.16);

  --max-width: 1160px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.20);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.btn-outline:hover {
  background: var(--color-blue);
  color: #fff;
}

/* ---------- 页头导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.5px;
}
.brand-text span {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.22s ease;
}
.nav a:hover {
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.06);
}
.nav a.active {
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.10);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 22, 45, 0.88) 0%,
    rgba(10, 31, 63, 0.55) 55%,
    rgba(10, 31, 63, 0.25) 100%
  );
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-inner {
  max-width: 620px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #67e8f9, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 48px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  font-size: 30px;
  font-weight: 700;
  display: block;
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--color-bg);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--color-muted);
  font-size: 16px;
}

/* ---------- 首页核心业务 ---------- */
.core-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.core-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.core-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}
.core-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 22px;
}
.core-card h3 {
  font-size: 21px;
  color: var(--color-navy);
  margin-bottom: 12px;
}
.core-card p {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.core-card .link {
  color: var(--color-blue);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.core-card .link:hover {
  gap: 10px;
}

/* ---------- 首页优势栅格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-item .f-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 {
  font-size: 17px;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.feature-item p {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---------- 首页 CTA 引导区 ---------- */
.cta-band {
  border-radius: 22px;
  background: var(--grad-dark);
  color: #fff;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}
.cta-band h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  max-width: 520px;
}
.cta-band .btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ---------- 页面内页 Hero（次级横幅） ---------- */
.page-hero {
  position: relative;
  padding: 96px 0 80px;
  color: #fff;
  background: var(--grad-dark);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 80% 20%,
      rgba(56, 189, 248, 0.22),
      transparent 45%
    ),
    radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.16), transparent 40%);
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 560px;
}
.crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}
.crumb a:hover {
  color: #a5f3fc;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--color-cyan);
  border-radius: var(--radius);
  z-index: -1;
}
.about-body h2 {
  font-size: 30px;
  color: var(--color-navy);
  margin-bottom: 18px;
}
.about-body p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.value-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.value-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.value-item .v-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.value-item h4 {
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.value-item p {
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 16px 40px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item .dot {
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}
.timeline-item:nth-child(odd) .dot {
  right: -7px;
}
.timeline-item:nth-child(even) .dot {
  left: -7px;
}
.timeline-item .year {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-blue);
}
.timeline-item h4 {
  font-size: 16px;
  color: var(--color-navy);
  margin: 4px 0;
}
.timeline-item p {
  font-size: 14px;
  color: var(--color-muted);
}

/* ---------- 产品服务 ---------- */
.service-block {
  margin-bottom: 72px;
}
.service-block:last-child {
  margin-bottom: 0;
}
.service-block-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.service-block-grid.reverse {
  direction: rtl;
}
.service-block-grid.reverse > * {
  direction: ltr;
}
.service-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.service-body h3 {
  font-size: 26px;
  color: var(--color-navy);
  margin-bottom: 14px;
}
.service-body .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.service-body p {
  color: var(--color-muted);
  margin-bottom: 18px;
}
.service-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 15px;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.85;
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info h3 {
  font-size: 24px;
  color: var(--color-navy);
  margin-bottom: 22px;
}
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child {
  border-bottom: none;
}
.contact-item .c-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item h4 {
  font-size: 15px;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-item p {
  color: var(--color-text);
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.contact-form .sub {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: #fbfcfe;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p {
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
}
.site-footer .brand-text strong {
  color: #fff;
}
.site-footer .brand-text span {
  color: rgba(255, 255, 255, 0.5);
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-col a,
.footer-col li {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.66);
}
.footer-col a:hover {
  color: #a5f3fc;
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 26px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 38px;
  }
  .about-grid,
  .service-block-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .service-block-grid.reverse {
    direction: ltr;
  }
  .about-media::after {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 20px 20px;
    gap: 4px;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 560px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-stats {
    gap: 28px;
  }
  .section {
    padding: 60px 0;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .core-cards {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .value-list {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 28px;
  }
  .page-hero {
    padding: 72px 0 60px;
  }
  .page-hero h1 {
    font-size: 32px;
  }

  .timeline::before {
    left: 10px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 14px 0 14px 40px;
  }
  .timeline-item .dot,
  .timeline-item:nth-child(even) .dot {
    left: 3px;
    right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
