/* ============================================================
   安鹏文化 官网样式
   ============================================================ */

:root {
  --primary: #0F172A;
  --primary-2: #1E293B;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --amber: #F59E0B;
  --teal: #14B8A6;
  --purple: #8B5CF6;
  --coral: #EF4444;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============ 顶部导航 ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.95);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name {
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.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: 160px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.hero-blob.b1 {
  width: 480px; height: 480px;
  background: #3B82F6;
  top: -120px; right: -100px;
}
.hero-blob.b2 {
  width: 380px; height: 380px;
  background: #F59E0B;
  bottom: -100px; left: -80px;
  opacity: 0.25;
}
.hero-blob.b3 {
  width: 300px; height: 300px;
  background: #8B5CF6;
  top: 40%; right: 30%;
  opacity: 0.15;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .hl {
  background: linear-gradient(135deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--ink-3);
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  margin: 0 auto;
}
.hero-stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============ 通用 section 头 ============ */

.section-head {
  margin-bottom: 60px;
  max-width: 720px;
}
.section-head.center {
  margin: 0 auto 60px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 4px;
  margin-bottom: 16px;
}
.section-eyebrow.light {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}
.section-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--primary);
}
.section-title.light { color: #fff; }
.section-sub {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.7;
}
.section-sub.light { color: rgba(255, 255, 255, 0.75); }

/* ============ 五大业务 ============ */

.services {
  padding: 120px 0;
  background: var(--bg-soft);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-num {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 40px;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  letter-spacing: -0.02em;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--bg-soft);
}
.service-icon svg {
  width: 30px;
  height: 30px;
}
.service-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags li {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

.accent-blue .service-icon { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.accent-amber .service-icon { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.accent-purple .service-icon { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.accent-teal .service-icon { background: rgba(20, 184, 166, 0.1); color: var(--teal); }
.accent-coral .service-icon { background: rgba(239, 68, 68, 0.1); color: var(--coral); }
.accent-dark .service-icon { background: rgba(15, 23, 42, 0.06); color: var(--primary); }

.accent-dark { background: var(--primary); color: #fff; }
.accent-dark .service-num { color: rgba(255, 255, 255, 0.15); }
.accent-dark .service-name { color: #fff; }
.accent-dark .service-desc { color: rgba(255, 255, 255, 0.75); }
.accent-dark .service-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }

.inline-link {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.15s;
}
.accent-dark .inline-link {
  color: #F59E0B;
}
.inline-link:hover { color: var(--accent-hover); }

/* ============ 关于我们 ============ */

.about {
  padding: 120px 0;
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-eyebrow { margin-bottom: 16px; }
.about-p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-highlights {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hi-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.hi-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.hi-body b {
  display: block;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}
.hi-body span {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.viz-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.2s;
}
.viz-card:hover { transform: translateY(-2px); }
.viz-label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 8px;
}
.viz-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.viz-num sup, .viz-num sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 2px;
  vertical-align: baseline;
}
.viz-num sub { font-size: 14px; }
.viz-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.viz-bar {
  margin-top: 12px;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.viz-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 3px;
}
.viz-1 { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border-color: transparent; }
.viz-2 { background: linear-gradient(135deg, #FFF7ED, #FEF3C7); border-color: transparent; }
.viz-3 { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); border-color: transparent; }
.viz-4 { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); border-color: transparent; }

/* ============ 案例 ============ */

.cases {
  padding: 120px 0;
  background: var(--bg-soft);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-item {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.case-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-item p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}
.case-more {
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-more h4 { color: #fff; }
.case-more p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.case-more .inline-link { color: var(--amber); }

/* ============ 联系我们 ============ */

.contact {
  padding: 120px 0;
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
  top: -200px; right: -200px;
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--amber);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.contact-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

/* ============ 页脚 ============ */

.site-footer {
  background: #0A1120;
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 30px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.copyright { line-height: 1.6; }
.icp a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.icp a:hover { color: rgba(255, 255, 255, 0.9); }

/* ============ 响应式 ============ */

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-title { font-size: 46px; }
  .section-title { font-size: 34px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav.open a:last-child { border-bottom: none; }

  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: 36px; line-height: 1.2; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 30px; padding-top: 30px; }
  .hero-stat b { font-size: 26px; }
  .btn { padding: 12px 22px; font-size: 14px; }

  .services, .about, .cases, .contact { padding: 80px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr 1fr; }

  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }

  .footer-top { flex-direction: column; gap: 20px; }
  .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
}
