/* =========================================================================
 * 峰汇科技 企业官网 — 样式表
 * 设计：现代科技风，浅色主体 + 深色渐变 Hero，蓝紫主色
 * ========================================================================= */

:root {
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --text: #0f172a;
  --muted: #5b6b86;
  --border: #e6ebf4;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(31, 45, 79, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 45, 79, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================ 导航栏 ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(31, 45, 79, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.brand-name { letter-spacing: .5px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

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

/* 语言切换 */
.lang-switch { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s ease;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-menu li:hover { background: var(--bg-alt); color: var(--primary); }
.lang-menu li.active { color: var(--primary); background: rgba(37,99,235,.08); }
.lang-menu li .check { opacity: 0; }
.lang-menu li.active .check { opacity: 1; }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Hero ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #1e2a52 0%, #0f172a 60%, #0b1020 100%);
  padding: var(--nav-h) 0 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.blob.b1 { width: 420px; height: 420px; background: #2563eb; top: -80px; left: -60px; }
.blob.b2 { width: 380px; height: 380px; background: #7c3aed; bottom: -100px; right: -40px; animation-delay: -5s; }
.blob.b3 { width: 300px; height: 300px; background: #06b6d4; top: 40%; left: 55%; animation-delay: -9s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.08); }
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  background: rgba(255,255,255,.06);
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.82);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint::after {
  content: "";
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scrolldot 2s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .3; } }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ============================ 通用区块 ============================ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  border-radius: 4px;
  background: var(--grad);
}

/* ============================ 关于我们 ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stats-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stats-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num {
  font-size: 38px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ============================ 卡片网格 ============================ */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  font-size: 28px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ============================ 新闻 ============================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb {
  height: 160px;
  background: var(--grad);
  position: relative;
  display: grid; place-items: center;
  font-size: 44px;
}
.news-thumb .news-date {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.news-body { padding: 22px; }
.news-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.45; }
.news-body p { font-size: 14px; color: var(--muted); }

/* ============================ 联系我们 ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,.1);
  font-size: 22px;
}
.info-item h4 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.info-item p { font-size: 16px; font-weight: 600; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 14px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-feedback { margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-feedback.ok { color: #16a34a; }
.form-feedback.err { color: #dc2626; }

/* ============================ 页脚 ============================ */
.footer { background: #0f172a; color: #cbd5e1; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { font-size: 14.5px; color: #94a3b8; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.footer-links li { margin-bottom: 10px; font-size: 14.5px; color: #94a3b8; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}
.footer-icp { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.footer-icp a { color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer-icp a:hover { color: #fff; }
.icp-detail { color: #64748b; font-size: 12.5px; }

/* ============================ 滚动揭示动画 ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .news-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - var(--nav-h));
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(110%);
    transition: transform .3s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .menu-toggle { display: flex; }
  .section { padding: 70px 0; }
  .card-grid, .card-grid-3, .card-grid-4, .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .stats-list { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 420px) {
  .stats-list { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
