/* ============================================
   企业门户网站 - 全局样式
   ============================================ */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #e8effd;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
}

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

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-main);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 100%);
  padding: 90px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p {
  font-size: 18px;
  color: var(--text-sub);
  max-width: 640px;
  margin: 0 auto 36px;
}
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3); }
.btn-ghost { border: 1.5px solid var(--primary); color: var(--primary); margin-left: 14px; }
.btn-ghost:hover { background: var(--primary-light); }

/* ---------- 通用 Section ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 32px; font-weight: 700; }
.section-head p { color: var(--text-sub); margin-top: 10px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-sub); }

/* ---------- 数据亮点 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item .num span { font-size: 20px; }
.stat-item .label { color: var(--text-sub); margin-top: 6px; }

/* ---------- 新闻列表 ---------- */
.news-item {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  flex-shrink: 0;
  width: 76px;
  text-align: center;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 10px 0;
}
.news-date .day { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.news-date .ym { font-size: 12px; color: var(--text-sub); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { font-size: 14px; color: var(--text-sub); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info h3 { margin-bottom: 8px; }
.contact-info .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info .item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-brand p { margin-top: 12px; line-height: 1.8; }
.copyright {
  border-top: 1px solid #1f2937;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}

/* ---------- 内页头部 ---------- */
.page-hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 100%);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: 34px; font-weight: 700; }
.page-hero p { color: var(--text-sub); margin-top: 10px; }

/* ---------- 滚动进入动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .hero { padding: 60px 0 70px; }
}
