/* ============================================================
   深圳加贝时代科技有限公司 - 企业官网样式
   备案合规版 | 纯静态
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #12283f;
  --accent: #2d7d7d;
  --accent-light: #e8f2f2;
  --bg: #ffffff;
  --bg-light: #f7f8fc;
  --text: #2c3e50;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 58, 92, 0.12);
  --radius: 10px;
  --container: 1200px;
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

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

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--bg-light);
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---------- 头部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

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

.nav a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 英雄区 ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  letter-spacing: 6px;
}

.hero .desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 公司简介 ---------- */
.about-content {
  max-width: 860px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 2;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-point {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all 0.25s ease;
}

.about-point:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.about-point .point-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.about-point h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.about-point p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 业务范围 ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.business-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.business-card .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.business-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.business-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- 联系信息 ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-card .contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.contact-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.contact-card p.phone {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- 联系我们页 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-page-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-page-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-light);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-row .info-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-row .info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.info-row .info-value.phone {
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.contact-page-note {
  background: var(--accent-light);
  border: 1px solid rgba(45, 125, 125, 0.25);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-page-note h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-page-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer p,
.footer li {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.footer .footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer .footer-brand small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-beian {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.beian-sep {
  opacity: 0.4;
  margin: 0 4px;
}

.beian-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .business-grid,
  .contact-info-grid,
  .about-points {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .tagline {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 56px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero .tagline {
    font-size: 14px;
  }

  .contact-card p.phone {
    font-size: 18px;
  }
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner {
  animation: fadeInUp 0.8s ease both;
}
