/* ===== 基础与变量 ===== */
:root {
  --primary: #0a4d8c;
  --primary-dark: #063a6b;
  --primary-light: #1a6bb5;
  --accent: #00a8e8;
  --accent-soft: rgba(0, 168, 232, 0.15);
  --bg: #f5f8fc;
  --bg-dark: #0b1c2d;
  --bg-card: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5a6a7a;
  --text-light: #a0b0c0;
  --border: #e2eaf2;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(10, 77, 140, 0.08);
  --shadow-hover: 0 12px 40px rgba(10, 77, 140, 0.15);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 77, 140, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 28, 45, 0.92);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 14px;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 168, 232, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(10, 77, 140, 0.4) 0%, transparent 45%),
    linear-gradient(180deg, #0b1c2d 0%, #0a2a4a 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-desc {
  max-width: 620px;
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 通用 Section ===== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 关于我们 ===== */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.about-text strong {
  color: var(--primary);
}

.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.info-card h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 产品 ===== */
.products {
  background: var(--bg);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: transparent;
  transform: translateY(-4px);
}

.product-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.core-products {
  margin-top: 48px;
  text-align: center;
}

.core-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

.core-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.core-list span {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 解决方案 ===== */
.solutions {
  background: #fff;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.solution-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.solution-header {
  margin-bottom: 20px;
}

.solution-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.solution-badge.industrial {
  background: #0d7377;
}

.solution-card h3 {
  font-size: 20px;
  color: var(--text);
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cap-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cap-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.cap-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cap-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 服务 ===== */
.services {
  background: var(--bg-dark);
  color: #fff;
}

.services .section-tag {
  color: var(--accent);
}

.services .section-title {
  color: #fff;
}

.services .section-desc {
  color: var(--text-light);
}

.service-cycle {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cycle-item {
  text-align: center;
  padding: 24px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.cycle-item:hover {
  background: rgba(0, 168, 232, 0.12);
  border-color: var(--accent);
}

.cycle-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.cycle-item h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.cycle-item p {
  font-size: 12px;
  color: var(--text-light);
}

.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.detail-card > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.detail-card ul {
  margin-bottom: 16px;
}

.detail-card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.detail-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.detail-note {
  font-size: 13px;
  color: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.service-tags span {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 客户 ===== */
.clients {
  background: #fff;
}

.client-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.client-cat {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.client-cat:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.client-cat h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--primary);
}

.client-cat li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.client-cat li:last-child {
  border-bottom: none;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 36px 24px;
  color: #fff;
}

.ach-item {
  text-align: center;
}

.ach-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ach-label {
  font-size: 13px;
  opacity: 0.85;
}

/* ===== 历程 ===== */
.history {
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== 联系 ===== */
.contact {
  background: #fff;
}

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

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 16px;
  color: var(--text);
}

.contact-slogan {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-cycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-row,
  .client-categories,
  .achievements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .about-grid,
  .solution-grid,
  .service-details,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-cycle {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .about-cards,
  .capability-row,
  .client-categories,
  .achievements,
  .service-cycle {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 0 60px;
  }
}
