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

:root {
  --primary: #1a5cff;
  --primary-dark: #0f3db8;
  --accent: #00c2a8;
  --text: #2b3245;
  --text-light: #6b7385;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --dark: #10182b;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(16, 24, 43, .08);
  --transition: all .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  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); }
.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-block { width: 100%; }

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 16px rgba(16, 24, 43, .08);
  padding: 12px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 9px;
  font-size: 18px;
}
.logo-text { font-size: 19px; color: #fff; transition: var(--transition); }
.site-header.scrolled .logo-text { color: var(--text); }

.main-nav { display: flex; gap: 30px; }
.nav-link {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.site-header.scrolled .nav-link { color: var(--text); }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}
.site-header.scrolled .nav-toggle span { background: var(--text); }

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 194, 168, .35), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(26, 92, 255, .45), transparent 55%),
    linear-gradient(135deg, #0b1230 0%, #10204d 60%, #0b1230 100%);
  z-index: -1;
}
.hero-content { text-align: center; padding-top: 90px; }
.hero h1 { font-size: 42px; letter-spacing: 2px; margin-bottom: 14px; }
.hero-sub {
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 6px;
  margin-bottom: 18px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats { margin-top: 70px; padding-bottom: 50px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 22px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.stat-item strong {
  display: block;
  font-size: 34px;
  color: var(--accent);
}
.stat-item span { font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ===== 通用区块 ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 6px;
}
.section-sub {
  text-align: center;
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 50px;
}

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h3 { font-size: 24px; margin-bottom: 18px; }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-points { margin-top: 22px; }
.about-points li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-points strong {
  display: inline-block;
  min-width: 60px;
  color: var(--primary);
  margin-right: 8px;
}
.about-visual { display: flex; justify-content: center; }
.about-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--primary), var(--primary-dark) 60%, #0a2a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.about-card-inner { text-align: center; }
.about-icon { font-size: 56px; color: var(--accent); }
.about-card h4 { font-size: 26px; margin: 14px 0 6px; letter-spacing: 3px; }
.about-card p { color: rgba(255, 255, 255, .7); letter-spacing: 2px; }

/* ===== 产品服务 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(16, 24, 43, .14);
}
.service-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 92, 255, .12), rgba(0, 194, 168, .12));
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); }

/* ===== 新闻动态 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  background: #fff;
  border: 1px solid #eceef4;
  border-radius: var(--radius);
  transition: var(--transition);
}
.news-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.news-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  border-right: 1px dashed #dfe3ec;
  padding-right: 16px;
}
.news-date strong { display: block; font-size: 28px; color: var(--primary); }
.news-date span { font-size: 12px; color: var(--text-light); }
.news-body h3 { font-size: 16px; margin-bottom: 8px; }
.news-body p { font-size: 13px; color: var(--text-light); }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid #e5e9f2;
}
.contact-label {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #dde1ea;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: var(--transition);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 255, .12);
}
.form-tip { font-size: 13px; min-height: 18px; text-align: center; }
.form-tip.success { color: #0a9d6c; }
.form-tip.error { color: #d33; }

/* ===== 页脚 ===== */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .7); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 20px 40px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}
.footer-bottom .icp { margin-top: 6px; }
.footer-bottom .icp a { color: rgba(255, 255, 255, .55); transition: var(--transition); }
.footer-bottom .icp a:hover { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 17px; letter-spacing: 3px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .services-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(75vw, 300px);
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: -6px 0 24px rgba(16, 24, 43, .12);
    padding: 90px 30px 30px;
    transition: right .35s ease;
    z-index: 99;
  }
  .main-nav.open { right: 0; }
  .main-nav .nav-link {
    color: var(--text);
    padding: 14px 0;
    border-bottom: 1px solid #eef0f5;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text); }
}
