/* ============================================================
   BaigeSoft 白鸽软件 — 设计系统
   深色科技感 · 系统字体栈 · 零外部依赖
   ============================================================ */

:root {
  --bg: #06060c;
  --bg-soft: #0a0a13;
  --card: rgba(255, 255, 255, 0.028);
  --card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-2: rgba(233, 233, 244, 0.62);
  --text-3: rgba(233, 233, 244, 0.36);
  --accent: #8b7bff;
  --accent-deep: #6d5ce8;
  --p: #8b7bff; /* 产品主题色，卡片/子页上覆盖 */
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(139, 123, 255, 0.35); }

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

/* ---------- 语言：英文版排版微调 ---------- */
html[lang="en"] body { line-height: 1.65; }

/* ---------- 布局容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- 背景：网格 + 光晕 ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-field::after {
  content: "";
  position: absolute;
  top: -360px;
  left: 50%;
  width: 1200px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(109, 92, 232, 0.16), transparent 72%);
  filter: blur(8px);
}

/* ---------- 语言切换提示条（苹果官网式） ---------- */
.lang-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 44px;
  padding: 0 48px;
  background: rgba(16, 15, 30, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.lang-banner .lb-switch {
  appearance: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(139, 123, 255, 0.16);
  border: 1px solid rgba(139, 123, 255, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.lang-banner .lb-switch:hover { background: rgba(139, 123, 255, 0.3); }
.lang-banner .lb-close {
  appearance: none;
  position: absolute;
  right: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  color: var(--text-3);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-banner .lb-close:hover { color: var(--text); }
html[data-banner="1"] { --banner-h: 44px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: var(--banner-h, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(6, 6, 12, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand svg { display: block; }
.brand-name { font-size: 15px; letter-spacing: 0.02em; }
.brand-name .en { letter-spacing: 0.01em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  margin-left: 8px;
}
.lang-switch a {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- 通用小件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3.5px 10px;
  background: rgba(255, 255, 255, 0.025);
}
.badge svg { opacity: 0.7; }

/* App Store 下载按钮 */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 11px 22px 11px 18px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-store:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 123, 255, 0.12);
}
.btn-store svg { flex: none; }
.btn-store .s1 {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  line-height: 1.3;
}
.btn-store .s2 {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Hero ---------- */
.hero { padding: 168px 0 96px; position: relative; }
.hero-badge {
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 15em;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(115deg, #b3a7ff 0%, #8b7bff 38%, #6d8dff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 36em;
  text-wrap: pretty;
}
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.2s;
}
.link-arrow:hover { color: var(--text); }
.link-arrow svg { transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Hero 浮动图标带 */
.hero-orbit {
  margin-top: 72px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-orbit .app-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.hero-orbit .app-chip:hover {
  border-color: color-mix(in srgb, var(--pc) 55%, transparent);
  color: var(--text);
  transform: translateY(-2px);
}
.hero-orbit img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* ---------- 区块标题 ---------- */
.section { padding: 84px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}

/* ---------- 工作室介绍 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { color: var(--text-2); margin-top: 18px; text-wrap: pretty; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-contact {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}
.about-contact:hover { border-color: var(--border-strong); background: var(--card-hover); }
.about-contact .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.about-contact .mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}
.about-contact .mail:hover { color: var(--text); }
.about-contact .mail svg { color: var(--accent); opacity: 0.85; }
.fact {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px 22px 18px;
  transition: border-color 0.2s, background 0.2s;
}
.fact:hover { border-color: var(--border-strong); background: var(--card-hover); }
.fact .num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(140deg, #e6e2ff, #9c8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.fact .lbl { margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ---------- 产品网格 ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 22%, transparent), transparent 78%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--pc) 45%, var(--border));
  background: var(--card-hover);
  transform: translateY(-3px);
}
.product-card:hover::before { opacity: 1; }
.product-card .icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card img.icon {
  width: 56px;
  height: 56px;
  border-radius: 13.5px;
  box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--pc) 55%, transparent);
}
.product-card .go {
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
}
.product-card:hover .go { color: var(--text); transform: translate(2px, -2px); }
.product-card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.product-card .desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  flex: 1;
  text-wrap: pretty;
}
.product-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 产品子页 ---------- */
.p-hero { padding: 150px 0 64px; position: relative; }
.p-hero-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.p-hero-icon {
  flex: none;
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 24px 70px -18px color-mix(in srgb, var(--pc) 60%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}
.p-hero-info h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.p-hero-info .tag {
  margin-top: 12px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.p-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.p-hero-cta { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.p-hero-ver {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.feature:hover { border-color: var(--border-strong); background: var(--card-hover); }
.feature .f-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
}
.feature .f-name .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--pc) 70%, transparent);
}
.feature .f-desc { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }

/* 截图 */
.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.shot-frame img { border-radius: 10px; width: 100%; height: auto; }
.shots-row { display: grid; gap: 18px; }
.shots-row.cols-2 { grid-template-columns: 1fr 1fr; }
.shot-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
  text-align: center;
}

/* iPhone 截图（竖屏） */
.shots-phone { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone-frame {
  flex: none;
  width: min(260px, 76vw);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 8px;
  background: #0d0d15;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
}
.phone-frame img { border-radius: 19px; width: 100%; height: auto; }

/* 相关产品 */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.backline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 84px;
  transition: color 0.2s;
}
.backline:hover { color: var(--text); }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer .f-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer .f-brand p { font-size: 13px; color: var(--text-3); line-height: 1.8; text-wrap: pretty; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 3.5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-base {
  border-top: 1px solid var(--border);
}
.footer-base-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* ---------- 淡入动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .p-hero-grid { flex-direction: column; gap: 28px; }
  .p-hero-icon { width: 108px; height: 108px; border-radius: 25px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 128px; }
  .products-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .shots-row.cols-2 { grid-template-columns: 1fr; }
  .nav-links .nav-link.optional { display: none; }
  .footer-inner { flex-direction: column; }
}
