/* 无疆桌面官网 — 样式表 */

:root {
  --bg: #080b14;
  --bg-soft: #0d1220;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --text: #e9eefb;
  --muted: #93a1bd;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #22d3ee;
  --radius: 18px;
  --wrap: 1180px;
  --pink: #f9a8d4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

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

.grad {
  background: linear-gradient(100deg, var(--accent-3), var(--accent) 40%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent-3), var(--accent) 45%, var(--accent-2));
  color: #04121f;
  box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(56, 189, 248, .95); }
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 11, 20, .55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(8, 11, 20, .88); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand img { border-radius: 9px; }
.brand-text em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-left: 7px;
  font-weight: 500;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 148px 0 96px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -320px; left: 50%;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(38% 42% at 30% 40%, rgba(34, 211, 238, .20), transparent 70%),
    radial-gradient(40% 45% at 70% 30%, rgba(129, 140, 248, .22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .09);
  color: #a5e8fb;
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.22;
  margin: 0 0 22px;
  letter-spacing: -.5px;
  font-weight: 800;
}
.lead { font-size: 16.5px; color: #b6c3dc; max-width: 34em; margin: 0 0 34px; }
.lead b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-meta li { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--text); font-size: 15px; font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* 手机外框 */
.phone {
  position: relative;
  width: 264px;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a3550, #131a2c 40%, #0b0f1c);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.phone::after {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  z-index: 3;
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}
.phone-screen img { width: 100%; height: auto; }
.phone-lg { width: 300px; }

.hero-pet {
  position: absolute;
  right: -52px;
  bottom: -34px;
  width: 306px;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .75));
  animation: float 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

/* ---------- 亮点条 ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.strip-item { display: flex; flex-direction: column; gap: 3px; }
.strip-item b { font-size: 16px; }
.strip-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 14px 0 14px;
  letter-spacing: -.4px;
  font-weight: 800;
  line-height: 1.3;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 特性卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, .42);
  background: linear-gradient(180deg, rgba(56,189,248,.10), rgba(255,255,255,.02));
}
.card-wide { grid-column: span 2; }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .24);
  font-size: 21px;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 9px; font-size: 18.5px; font-weight: 700; }
.card p { margin: 0; color: #a9b7d1; font-size: 14.8px; line-height: 1.78; }

/* ---------- 桌面宠物 ---------- */
.pet-section { position: relative; background: linear-gradient(180deg, transparent, rgba(129,140,248,.055) 40%, transparent); }
.pet-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 40% at 50% 45%, rgba(249, 168, 212, .12), transparent 72%);
  pointer-events: none;
}
.pet-stage {
  position: relative;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 56px;
  align-items: start;
}
.pet-showcase { position: sticky; top: 96px; }
.pet-frame {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 470px;
  padding: 20px 20px 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 55% at 50% 88%, rgba(255,255,255,.09), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden;
}
.pet-frame img {
  height: 452px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.6));
}
.pet-floor {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 190px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent);
  pointer-events: none;
}
.pet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .22s ease;
}
.chip:hover { color: var(--text); border-color: rgba(56,189,248,.4); }
.chip.is-active {
  background: linear-gradient(100deg, rgba(34,211,238,.20), rgba(129,140,248,.20));
  border-color: rgba(56,189,248,.5);
  color: #d7f2fe;
}
.pet-hint { text-align: center; color: #6f7d99; font-size: 13px; margin: 14px 0 0; }

.pet-copy h3 {
  font-size: 19.5px;
  margin: 0 0 10px;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}
.pet-copy h3 + p { margin-top: 0; }
.pet-copy > p { color: #a9b7d1; font-size: 15.2px; margin: 0 0 32px; }
.pet-copy > p:last-of-type { margin-bottom: 26px; }
.ticks { list-style: none; margin: 0 0 30px; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #b3c0d8;
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 0 12px rgba(56,189,248,.8);
}
.pet-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-tags span {
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-size: 13px;
  color: #93a1bd;
}

/* ---------- 截图 ---------- */
.shots { display: flex; gap: 46px; justify-content: center; flex-wrap: wrap; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.shot figcaption { color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- 下载 ---------- */
.download { padding-bottom: 118px; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: 24px;
  border: 1px solid rgba(56,189,248,.3);
  background:
    radial-gradient(80% 130% at 8% 0%, rgba(56,189,248,.17), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 30px 70px -40px rgba(56,189,248,.6);
}
.dl-left { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.dl-left img { border-radius: 20px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.9); }
.dl-left h2 { margin: 0 0 4px; font-size: 27px; font-weight: 800; }
.ver {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(56,189,248,.16);
  border: 1px solid rgba(56,189,248,.34);
  color: #a5e8fb;
  vertical-align: middle;
  margin-left: 8px;
}
.dl-sub { margin: 0; color: var(--muted); font-size: 14.5px; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.dl-step {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.num {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
  color: #04121f;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 13px;
}
.dl-step h4 { margin: 0 0 6px; font-size: 16px; }
.dl-step p { margin: 0; color: var(--muted); font-size: 14px; }

.notes {
  margin-top: 46px;
  padding: 30px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.notes h3 { margin: 0 0 16px; font-size: 17px; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { color: #a9b7d1; font-size: 14.6px; margin-bottom: 11px; }
.notes li:last-child { margin-bottom: 0; }
.notes b { color: var(--text); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 40px 0 46px; }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--muted); }
.footer-brand img { border-radius: 8px; }
.footer-brand b { color: var(--text); }
.footer-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { flex-basis: 100%; margin: 8px 0 0; color: #64708a; font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; }
  .hero-pet { right: -20px; bottom: -24px; width: 230px; }
  .pet-stage { grid-template-columns: 1fr; gap: 42px; }
  .pet-showcase { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding: 116px 0 72px; }
  .section { padding: 76px 0; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card { padding: 26px 22px; }
  .dl-left { margin-right: 0; }
  .dl-card .btn { width: 100%; }
  .notes { padding: 24px 22px; }
  .hero-pet { width: 150px; right: -18px; bottom: -14px; }
  .pet-frame img { height: 340px; }
  .pet-frame { min-height: 356px; }
  .phone-lg { width: 260px; }
  .footer-links { margin-left: 0; }
}
