/* ===== 白洞工作室 · 苹果风格样式 ===== */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0c;
  --fg: #f5f5f7;
  --fg-dim: #a1a1a6;
  --fg-dimmer: #6e6e73;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --maxw: 980px;
  --nav-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== 全站星空背景 ===== */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #11131a 0%, #000 60%);
}
#whitehole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 22px;
  transform: translateY(-4%);
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: #cfd2ff;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero-title {
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #b9c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.35s forwards;
}
.hero-sub {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--fg-dim);
  margin-top: 22px;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.55s forwards;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.75s forwards;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: var(--fg-dim);
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--fg);
  color: #000;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== 区块 ===== */
.section {
  padding: 120px 22px;
  position: relative;
}
.section-alt { background: transparent; }
.section-dark {
  background: radial-gradient(circle at 50% 0%, rgba(20,22,31,0.55) 0%, rgba(0,0,0,0.15) 70%);
  text-align: center;
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: #8e92c9;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.section-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--fg-dim);
  max-width: 720px;
  margin: 24px auto 0;
}

/* 关于数据 */
.stat-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 28px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.stat-num {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #b9c0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 13px; color: var(--fg-dimmer); }

/* 服务卡片 */
.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 36px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.06);
}
.card-icon {
  font-size: 34px;
  margin-bottom: 18px;
  color: #cfd2ff;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--fg-dim); font-size: 15px; }

/* 作品画廊 */
.gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.work {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  transition: transform 0.4s var(--ease);
}
.work:hover { transform: translateY(-6px); }
.work-thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.thumb-a { background: linear-gradient(135deg, #1b2a4a, #0a0f1f); }
.thumb-b { background: linear-gradient(135deg, #143a3a, #06181a); }
.thumb-c { background: linear-gradient(135deg, #2a1b4a, #120a1f); }
.thumb-d { background: linear-gradient(135deg, #3a2a14, #1a1206); }
.work-meta { padding: 22px 24px 26px; }
.work-meta h3 { font-size: 19px; margin-bottom: 6px; }
.work-meta p { color: var(--fg-dim); font-size: 14px; }

/* 联系 */
.contact-actions {
  margin: 36px 0 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-mail {
  font-size: 15px;
  color: var(--fg-dimmer);
  letter-spacing: 1px;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 22px;
  background: transparent;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-weight: 600; }
.footer-copy { font-size: 13px; color: var(--fg-dimmer); }

/* 滚动揭示动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    flex-direction: column;
    background: rgba(10,10,12,0.95);
    backdrop-filter: blur(20px);
    width: 200px;
    padding: 18px 22px;
    gap: 18px;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 80px 18px; }
}
