/* ============================================================
   WinIsland 官网 — style.css
   ============================================================ */
:root {
  --bg: #05070d;
  --bg-soft: #0a0f1a;
  --text: #eef2f8;
  --text-dim: #9aa7bd;
  --text-faint: #5f6d85;
  --line: rgba(255,255,255,.08);
  --glass: rgba(255,255,255,.045);
  --glass-strong: rgba(20,28,44,.72);
  --blue: #0a84ff;
  --cyan: #5ac8fa;
  --purple: #a78bfa;
  --green: #34d399;
  --orange: #fbbf24;
  --pink: #f472b6;
  --yellow: #fde047;
  --teal: #2dd4bf;
  --radius: 18px;
  --radius-lg: 26px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "JetBrains Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(10,132,255,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(90,200,250,.10), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(167,139,250,.08), transparent 60%),
    var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code {
  font-family: var(--mono);
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .45em;
  font-size: .9em;
  color: #cde3ff;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(5,7,13,.55);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 700; font-size: 1.08rem; letter-spacing: .2px; }
.brand-pill {
  position: relative; width: 34px; height: 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 2px 12px rgba(10,132,255,.45);
  flex: none;
}
.brand-pill i { position: absolute; top: 4px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.9); }
.brand-pill i:first-child { left: 5px; width: 8px; }
.brand-pill i:last-child { left: 16px; right: 6px; opacity: .65; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .nav-gh {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  background: var(--glass); color: var(--text);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 24px 90px; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-1 { width: 420px; height: 420px; left: -120px; top: 40px; background: rgba(10,132,255,.35); animation: float 12s ease-in-out infinite; }
.orb-2 { width: 320px; height: 320px; right: -80px; top: 120px; background: rgba(90,200,250,.25); animation: float 15s ease-in-out infinite reverse; }
.orb-3 { width: 260px; height: 260px; left: 50%; top: 480px; transform: translateX(-50%); background: rgba(167,139,250,.22); animation: float 18s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(90,200,250,.28); background: rgba(90,200,250,.08);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(3.2rem, 10vw, 6rem); font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.hero h1 .dot { color: var(--cyan); }
.sub { margin: 18px auto 0; max-width: 620px; color: var(--text-dim); font-size: 1.06rem; }

/* 灵动岛演示 */
.island-demo { margin: 44px auto 0; }
.demo-screen {
  position: relative; max-width: 620px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    var(--bg-soft);
  padding: 96px 30px 56px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
}
.demo-screen::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 6px; border-radius: 0 0 999px 999px; background: rgba(255,255,255,.16);
}
.demo-island {
  position: relative; margin: 0 auto;
  width: 430px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40,48,64,.96), rgba(18,24,38,.96));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; user-select: none;
  transition: border-radius .6s cubic-bezier(.34,1.3,.4,1), padding .6s cubic-bezier(.34,1.3,.4,1);
}
.demo-island:hover { border-color: rgba(90,200,250,.5); }
.demo-cover {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 14px rgba(90,120,255,.4);
}
.demo-meta { flex: 1; min-width: 0; text-align: left; }
.demo-title { font-size: .85rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-artist { font-size: .72rem; color: var(--text-dim); }
.demo-lyric { position: relative; margin-top: 3px; height: 17px; overflow: hidden; border-radius: 5px; font-size: .72rem; color: var(--text-dim); }
.lyr-bg { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr-fill {
  position: absolute; inset: 0; white-space: nowrap; overflow: hidden;
  color: #fff; text-shadow: 0 0 8px rgba(90,200,250,.8);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .12s linear;
}
.demo-ctrl { display: flex; align-items: center; gap: 2px; flex: none; }
.demo-ctrl button {
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: .7rem; cursor: default;
}
.demo-ctrl button.play { background: rgba(90,200,250,.85); }
.demo-island.is-expanded { border-radius: 26px; }
.demo-island.is-expanded .demo-cover { width: 150px; height: 150px; border-radius: 18px; font-size: 2.4rem; }
.demo-island.is-expanded .demo-ctrl { display: flex; }
.demo-extra {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.34,1.3,.4,1);
  width: 100%;
}
.demo-island.is-expanded .demo-extra { grid-template-rows: 1fr; }
.demo-extra-inner { overflow: hidden; }
.demo-hint { margin-top: 16px; font-size: .8rem; color: var(--text-faint); }

/* CTA */
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 30px; font-size: 1rem; font-weight: 650;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff; box-shadow: 0 10px 30px rgba(10,132,255,.4);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(10,132,255,.55); }
.btn-ghost { border-color: var(--line); background: var(--glass); color: var(--text); }
.btn-ghost:hover { border-color: rgba(90,200,250,.5); background: rgba(90,200,250,.1); }
.hero-note { margin-top: 20px; font-size: .8rem; color: var(--text-faint); }

/* ---------- 通用区块 ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 90px 24px; }
.section-alt { max-width: none; padding: 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 750; letter-spacing: -.5px; }
.section-head p { color: var(--text-dim); margin-top: 10px; }
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card, .dl-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover, .dl-card:hover { transform: translateY(-5px); border-color: rgba(90,200,250,.4); background: rgba(255,255,255,.07); }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.15rem; margin-bottom: 16px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.c-blue  { background: linear-gradient(135deg,#38bdf8,#0a84ff); }
.c-cyan  { background: linear-gradient(135deg,#5eead4,#22d3ee); }
.c-purple{ background: linear-gradient(135deg,#c4b5fd,#8b5cf6); }
.c-green { background: linear-gradient(135deg,#6ee7b7,#10b981); }
.c-orange{ background: linear-gradient(135deg,#fcd34d,#f97316); }
.c-pink  { background: linear-gradient(135deg,#f9a8d4,#ec4899); }
.c-yellow{ background: linear-gradient(135deg,#fde68a,#eab308); }
.c-teal  { background: linear-gradient(135deg,#99f6e4,#14b8a6); }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .92rem; }

/* ---------- 预览 ---------- */

/* ---------- 下载 ---------- */
.downloads { grid-template-columns: repeat(3, 1fr); }
.dl-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-os {
  font-size: .72rem; letter-spacing: .1em; color: var(--cyan);
  border: 1px solid rgba(90,200,250,.25); background: rgba(90,200,250,.08);
  border-radius: 999px; padding: 3px 12px;
}
.dl-card h3 { font-size: 1.15rem; }
.dl-card p { color: var(--text-dim); font-size: .9rem; }
.dl-size { font-size: .8rem; color: var(--text-faint); }
.dl-card .btn { margin-top: auto; width: 100%; }
.dl-alt { text-align: center; margin-top: 26px; color: var(--text-dim); font-size: .9rem; }

/* ---------- 上岛 API ---------- */
.section-alt { background: linear-gradient(180deg, transparent, rgba(10,132,255,.06), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.api-inner { max-width: 1120px; margin: 0 auto; padding: 90px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.api-text h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 4px 0 14px; }
.api-text > p { color: var(--text-dim); margin-bottom: 18px; }
.api-list { list-style: none; margin-bottom: 24px; }
.api-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--text-dim); font-size: .92rem; }
.api-list li:last-child { border-bottom: none; }
.api-code {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #070b14; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.api-code pre { padding: 24px 26px; font-family: var(--mono); font-size: .85rem; line-height: 1.75; color: #c6d4ea; }
.api-code .k { color: #93c5fd; }
.api-code .u { color: #5eead4; }
.api-code .c { color: #64748b; font-style: italic; }

/* ---------- 指标 ---------- */
.specs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.spec {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; backdrop-filter: blur(10px);
}
.spec strong { display: block; font-size: 1.25rem; background: linear-gradient(135deg, var(--cyan), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec span { font-size: .78rem; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 24px 40px; text-align: center; }
.footer-inner { max-width: 760px; margin: 0 auto; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; }
.footer-tag { margin: 16px auto; color: var(--text-dim); font-size: .92rem; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin: 18px 0 26px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-faint); font-size: .8rem; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .api-inner { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(5,7,13,.96); border-bottom: 1px solid var(--line); padding: 14px 24px 20px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 130px 18px 70px; }
  .cards { grid-template-columns: 1fr; }
  .demo-island { width: 100%; }
  .demo-screen { padding: 96px 14px 46px; }
  .demo-ctrl { display: none; }
  .demo-island.is-expanded .demo-cover { width: 110px; height: 110px; font-size: 1.8rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .demo-island, .reveal { animation: none !important; transition: none !important; }
}