/* ============ 基础变量 ============ */
:root {
  --bg: #0b0e14;
  --bg-soft: #11141d;
  --surface: #151926;
  --surface-2: #1b2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf2;
  --text-muted: #9aa2b8;
  --accent: #6ee7ff;
  --accent-2: #8b7cf6;
  --grad: linear-gradient(120deg, #6ee7ff 0%, #8b7cf6 100%);
  --radius: 14px;
  --maxw: 1200px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 52px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-sub { color: var(--text-muted); margin-top: 12px; font-size: 15px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  border: none;
  color: #0b0e14;
}
.btn-primary:hover { filter: brightness(1.1); color: #0b0e14; }

/* ============ 顶栏 ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: 1px; }
.logo img { height: 50px; width: 128px; object-fit: contain; }
.header .logo img { height: 50px; width: 128px; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #0b0e14; font-weight: 800; font-size: 18px;
}
.logo small { font-weight: 400; color: var(--text-muted); font-size: 12px; letter-spacing: 2px; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.active { color: var(--accent); background: rgba(110, 231, 255, 0.08); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(139, 124, 246, 0.22), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(110, 231, 255, 0.18), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; text-align: center; padding-top: 80px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.35);
  background: rgba(110, 231, 255, 0.06);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 26px auto 38px; max-width: 640px; color: var(--text-muted); font-size: 17px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 72px auto 0;
}
.metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 12px;
  backdrop-filter: blur(8px);
}
.metric b { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }

/* ============ 通用卡片 ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14px; }

/* 服务 */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-list { margin-top: 12px; }
.service-list li { color: var(--text-muted); font-size: 14px; list-style: none; padding: 3px 0; }
.service-list li::before { content: "◆"; color: var(--accent); font-size: 9px; margin-right: 8px; vertical-align: 1px; }

/* 数据 */
.stats-band {
  background: linear-gradient(120deg, rgba(110,231,255,0.08), rgba(139,124,246,0.1));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat b { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 14px; }

/* 作品分类 */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(transparent 30%, rgba(5, 8, 14, 0.9));
}
.cat-card .overlay b { font-size: 18px; }
.cat-card .overlay span { font-size: 13px; color: var(--text-muted); }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.cat-card:hover::after { border-color: rgba(110, 231, 255, 0.6); }

/* 项目 */
.projects-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 960px; margin: 0 auto; }
.tag {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}
.tag:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* 客户 */
.clients { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.client-item {
  padding: 20px 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.25s;
}
.client-item:hover { color: var(--text); border-color: var(--accent); }

/* CTA */
.cta-band {
  text-align: center;
  padding: 72px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(139, 124, 246, 0.18), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { font-size: 15px; margin-bottom: 16px; }
.footer p, .footer li { color: var(--text-muted); font-size: 13.5px; }
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 12.5px; flex-wrap: wrap; gap: 8px; }

/* ============ 页面头部（内页） ============ */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(139, 124, 246, 0.16), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.page-hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--text-muted); margin-top: 12px; }

/* ============ 关于页 ============ */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-intro img { border-radius: var(--radius); border: 1px solid var(--border); }
.about-intro h2 { font-size: 26px; margin-bottom: 16px; }
.about-intro h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-intro p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }

.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 34px 22px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -27px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--bg);
}
.timeline-item b { display: block; font-size: 18px; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14px; }

/* 团队构成 */
.team-bars { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.team-row { display: grid; grid-template-columns: 170px 1fr 56px; align-items: center; gap: 16px; font-size: 14px; }
.team-row .bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.team-row .fill { height: 100%; border-radius: 999px; background: var(--grad); }
.team-row b { text-align: right; font-size: 15px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.highlight-list { list-style: none; }
.highlight-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); font-size: 14.5px; }
.highlight-list li b { color: var(--text); font-weight: 600; margin-right: 8px; }
.highlight-list li::before { content: "◆"; color: var(--accent); font-size: 9px; margin-right: 10px; vertical-align: 1px; }

/* ============ 作品页 ============ */
.works-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.works-sidebar {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.works-sidebar button {
  text-align: left;
  background: none; border: none;
  color: var(--text-muted);
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; justify-content: space-between; align-items: center;
}
.works-sidebar button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.works-sidebar button.active { color: var(--accent); background: rgba(110,231,255,0.08); font-weight: 600; }
.works-sidebar button .cnt { font-size: 12px; color: var(--text-muted); opacity: 0.7; }

.works-main h2 { font-size: 24px; margin-bottom: 4px; }
.works-main .works-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--grad); border-color: transparent; color: #0b0e14; font-weight: 600; }

.masonry { columns: 3; column-gap: 16px; }
.masonry .item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s;
}
.masonry .item img { width: 100%; transition: transform 0.4s; }
.masonry .item:hover { border-color: rgba(110, 231, 255, 0.6); transform: translateY(-3px); }
.masonry .item:hover img { transform: scale(1.03); }

.works-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 8, 14, 0.94);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lightbox .cap { margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.lb-btn:hover { background: rgba(110,231,255,0.2); color: var(--accent); }
.lb-close { top: 28px; right: 28px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============ 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ic {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 20px;
  color: #0b0e14;
}
.contact-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 14px; }
.contact-item p.tofill { color: rgba(110, 231, 255, 0.6); font-style: italic; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .works-layout { grid-template-columns: 1fr; }
  .works-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .works-sidebar button { flex: 1 1 45%; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 1; }
  .timeline { padding-left: 18px; }
  .team-row { grid-template-columns: 1fr 1fr; }
  .team-row .bar { grid-column: 1 / -1; grid-row: 2; }
}
