/* ==========================================================
   仰赞网络官网首页 - 样式表
   风格：浅色简洁（白底蓝调）
   ========================================================== */

/* ---------- 变量与基础 ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --grad-start: #2563eb;
  --grad-end: #7c3aed;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(37, 99, 235, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--bg-light); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { border-radius: 10px; flex-shrink: 0; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: 1px; }

.nav-menu { display: flex; gap: 8px; }
.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: rgba(37, 99, 235, 0.06); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  padding: 88px 0 110px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(37, 99, 235, 0.08), transparent 60%);
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  font-size: 48px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.grad-text {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-light); margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45); }
.btn-ghost {
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: rgba(37, 99, 235, 0.06); transform: translateY(-2px); }

/* Hero 代码窗口装饰 */
.hero-visual { flex: 1; min-width: 0; position: relative; }
.code-window {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.code-title {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
}
.code-body {
  padding: 22px 24px 26px;
  font-size: 13.5px;
  line-height: 2;
  color: #e2e8f0;
  overflow-x: auto;
}
.c-keyword { color: #c084fc; }
.c-fn { color: #60a5fa; }
.c-str { color: #34d399; }
.c-comment { color: #64748b; }

.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.25));
  filter: blur(70px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* 服务卡片 */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-light); }

/* 案例卡片 */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-thumb {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-thumb svg { width: 56px; height: 56px; opacity: 0.9; }
.thumb-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.thumb-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.thumb-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.case-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  padding: 3px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.case-body { padding: 24px 26px 28px; }
.case-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--text-light); }

/* ---------- 关于我们 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { font-size: 34px; font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }
.about-list { margin-top: 24px; }
.about-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-weight: 500;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-unit { font-size: 18px; font-weight: 700; color: var(--primary); }
.stat-card p { margin-top: 6px; color: var(--text-light); font-size: 14px; }

/* ---------- 联系我们 ---------- */
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.35);
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.contact-card p {
  font-size: 15px;
  color: var(--text-light);
  word-break: break-all;
  margin-bottom: 14px;
}
.contact-action { font-size: 14px; font-weight: 600; color: var(--primary); }
.contact-action.muted { color: var(--text-light); }

/* ---------- 页脚 ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #fff; }
.logo-icon-sm { border-radius: 8px; }
.footer-info { font-size: 14px; text-align: right; }
.footer-info a { color: #93c5fd; transition: color 0.2s; }
.footer-info a:hover { color: #fff; }
.footer-info p + p { margin-top: 6px; }
.footer-sep { margin: 0 10px; color: #475569; }

/* ---------- 滚动淡入动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; max-width: 560px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-text h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .about-text h2 { font-size: 26px; }

  /* 移动端导航 */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 16px; font-size: 16px; }
}

@media (max-width: 480px) {
  .code-body { font-size: 12px; padding: 18px 16px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { text-align: center; }
}
