/* ============================================================
   鹉啦播带货 · 官方下载中心
   设计令牌：支付宝科技蓝 / 亮暗双主题 / 玻璃质感
   ============================================================ */

:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --g1: #0958d9;
  --g2: #1677ff;
  --g3: #00c6ff;
  --radius: 12px;

  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f4f7fd;
  --surface-3: #e9eff9;
  --border: #e6ebf5;
  --border-strong: #d5dfef;
  --text: #0f172a;
  --text-2: #5b6b85;
  --text-3: #8a99b0;
  --success: #00b578;
  --warning: #ff9f1c;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(22, 119, 255, 0.12);
  --shadow-lg: 0 24px 64px rgba(9, 88, 217, 0.18);
  --glass: rgba(255, 255, 255, 0.76);
  --glass-blur: 18px;

  --container: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
}

[data-theme='dark'] {
  --bg: #060b18;
  --bg-soft: #08101f;
  --surface: #0b1424;
  --surface-2: #101b30;
  --surface-3: #14213a;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #eaf1ff;
  --text-2: #a7b6ce;
  --text-3: #7c8ca6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.55);
  --glass: rgba(11, 20, 36, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(22, 119, 255, 0.24);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------- 头部 ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.32);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.header-nav a {
  position: relative;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.header-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}

.header-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g2), var(--g3));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------------------------------- 按钮 ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2) 58%, var(--g3));
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 119, 255, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--primary-active);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* -------------------------------- 顶部公告 -------------------------------- */

.announcement {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.1), rgba(0, 198, 255, 0.08) 45%, transparent);
  font-size: 13px;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
  color: var(--text-2);
}

.announcement-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.14);
  flex: 0 0 auto;
  animation: pulse-dot 2.4s infinite;
}

.announcement-text {
  flex: 1 1 auto;
  min-width: 0;
}

.announcement-link {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link svg {
  width: 13px;
  height: 13px;
}

.announcement-link:hover {
  text-decoration: underline;
}

.announcement-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.announcement-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.announcement-close svg {
  width: 14px;
  height: 14px;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(720px 380px at 18% 8%, rgba(22, 119, 255, 0.18), transparent 68%),
    radial-gradient(620px 320px at 88% 0%, rgba(0, 198, 255, 0.16), transparent 70%);
}

[data-theme='dark'] .hero::before {
  background:
    radial-gradient(760px 400px at 16% 4%, rgba(22, 119, 255, 0.28), transparent 70%),
    radial-gradient(640px 340px at 90% 0%, rgba(0, 198, 255, 0.18), transparent 72%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

[data-theme='dark'] .hero-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: rgba(22, 119, 255, 0.08);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.16);
}

.hero-title {
  margin: 20px 0 16px;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.4px;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--g1), var(--g2) 45%, var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-foot svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  flex: 0 0 auto;
}

/* Hero 右侧工作台插画 */

.hero-stage {
  position: relative;
  min-width: 0;
}

.stage-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.hero-stage:hover .stage-card {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg);
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.win-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.win-dot.r {
  background: #ff6b6b;
}

.win-dot.y {
  background: #ffc53d;
}

.win-dot.g {
  background: #3ddc97;
}

.stage-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.stage-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

.stage-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4d4f;
  animation: pulse-dot 1.6s infinite;
}

.stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.stage-screen {
  position: relative;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #0a2a63, #1064d6 46%, #00c6ff);
}

.stage-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.32), transparent 55%),
    linear-gradient(0deg, rgba(3, 12, 32, 0.55), transparent 60%);
}

.screen-person {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 46%;
  aspect-ratio: 1 / 1.05;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    radial-gradient(ellipse 66% 55% at 50% 100%, rgba(255, 255, 255, 0.78) 0 60%, transparent 62%);
  filter: blur(0.4px);
  opacity: 0.85;
}

.screen-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 11, 24, 0.6);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.badge-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff4d4f;
  animation: pulse-dot 1.6s infinite;
}

.levels {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.levels i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7ef0ff, #00c6ff);
  animation: level 1.1s ease-in-out infinite alternate;
  height: 30%;
}

.levels i:nth-child(2) { animation-delay: 0.12s; }
.levels i:nth-child(3) { animation-delay: 0.26s; }
.levels i:nth-child(4) { animation-delay: 0.05s; }
.levels i:nth-child(5) { animation-delay: 0.34s; }
.levels i:nth-child(6) { animation-delay: 0.18s; }
.levels i:nth-child(7) { animation-delay: 0.42s; }

.stage-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.side-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-3);
  text-transform: uppercase;
}

.side-line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
}

.side-line.w70 { width: 70%; }
.side-line.w90 { width: 90%; }
.side-line.w55 { width: 55%; }
.side-line.accent {
  background: linear-gradient(90deg, rgba(22, 119, 255, 0.55), rgba(0, 198, 255, 0.25));
}

.side-chip {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid rgba(22, 119, 255, 0.2);
  padding: 6px 8px;
  border-radius: 8px;
  align-self: flex-start;
}

.side-chip svg {
  width: 12px;
  height: 12px;
}

.stage-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 14px;
}

.stage-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.stage-stat b {
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.stage-stat span {
  font-size: 10px;
  color: var(--text-3);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.float-chip svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.chip-a {
  top: -16px;
  right: 6%;
}

.chip-b {
  bottom: -14px;
  left: -4%;
  animation-delay: -3s;
}

/* 弧形过渡 */

.hero-arc {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 160%;
  height: 120px;
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: -1;
}

/* ------------------------------- 发布日志条 ------------------------------- */

.release-strip {
  position: relative;
  margin-top: -56px;
  margin-bottom: 8px;
  z-index: 3;
}

.release-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-md);
  padding: 8px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 4px;
}

.release-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  min-width: 0;
  transition: background-color 0.2s var(--ease);
  text-align: left;
}

.release-item:hover {
  background: var(--surface-2);
}

.release-ver {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid rgba(22, 119, 255, 0.18);
  padding: 2px 8px;
  border-radius: 7px;
  line-height: 1.7;
}

.release-meta {
  min-width: 0;
}

.release-platform {
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.release-sum {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
}

.release-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.release-more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.release-more:hover svg {
  transform: translateX(3px);
}

/* --------------------------------- 区块标题 -------------------------------- */

.section {
  padding: 44px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* -------------------------------- 下载矩阵 -------------------------------- */

.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  min-height: 132px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.24s var(--ease);
  text-align: left;
  overflow: hidden;
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 120px at 100% 0%, rgba(22, 119, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 119, 255, 0.5);
  box-shadow: var(--shadow-md);
}

.tile:hover::after {
  opacity: 1;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3));
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.28);
}

.tile-icon svg {
  width: 21px;
  height: 21px;
}

.tile {
  cursor: pointer;
  font: inherit;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tile-name {
  font-size: 15px;
  font-weight: 700;
}

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--text-3);
}

.tile-meta .num {
  color: var(--text-2);
}

.tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.1);
  border: 1px solid rgba(22, 119, 255, 0.24);
  border-radius: 999px;
  padding: 2px 8px;
}

.tile-badge.device {
  color: var(--success);
  background: rgba(0, 181, 120, 0.1);
  border-color: rgba(0, 181, 120, 0.28);
}

/* --------------------------------- 胶囊入口 -------------------------------- */

.pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s var(--ease);
  text-align: left;
}

.pill:hover {
  border-color: rgba(22, 119, 255, 0.5);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary);
  flex: 0 0 auto;
}

.pill-icon svg {
  width: 17px;
  height: 17px;
}

.pill-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.pill-label {
  font-size: 13.5px;
  font-weight: 600;
}

.pill-hint {
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-arrow {
  color: var(--text-3);
  flex: 0 0 auto;
}

.pill-arrow svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------- 产品卡片 -------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.22s var(--ease);
  text-align: left;
  min-height: 190px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 119, 255, 0.42);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(160deg, rgba(22, 119, 255, 0.14), rgba(0, 198, 255, 0.08));
  border: 1px solid rgba(22, 119, 255, 0.16);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card-title {
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(22, 119, 255, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
  letter-spacing: 0.3px;
}

.card-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  flex: 1 1 auto;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}

.card-foot svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.card:hover .card-foot svg {
  transform: translateX(3px);
}

/* --------------------------------- 页脚 ---------------------------------- */

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 32px;
  padding: 48px 0 36px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-2);
  max-width: 300px;
  line-height: 1.8;
}

.footer-support {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
}

.footer-qr {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-3);
  flex: 0 0 auto;
  overflow: hidden;
}

.footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-qr svg {
  width: 22px;
  height: 22px;
}

.footer-support-text {
  min-width: 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-support-text b {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
  width: fit-content;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* ---------------------------------- 弹窗 ---------------------------------- */

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 10, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade-in 0.2s var(--ease);
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.24s var(--ease);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 0;
}

.modal-head .tile-icon {
  width: 44px;
  height: 44px;
}

.modal-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.modal-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-2);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 18px 22px 22px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.spec {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.spec span {
  display: block;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.spec b {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.4;
}

.modal-note {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.75;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  background: rgba(22, 119, 255, 0.06);
  margin-bottom: 16px;
}

.modal-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-3);
  word-break: break-all;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  margin-bottom: 16px;
}

.modal-qr img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}

.modal-qr-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

.modal-qr-text b {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 3px;
}

.modal-tip {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
}

/* ------------------------------- 更新日志页 ------------------------------- */

.page-head {
  padding: 56px 0 30px;
  position: relative;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: -64px 0 auto 0;
  height: 280px;
  z-index: -1;
  background: radial-gradient(620px 260px at 20% 0%, rgba(22, 119, 255, 0.16), transparent 70%),
    radial-gradient(520px 220px at 80% 0%, rgba(0, 198, 255, 0.14), transparent 72%);
}

.page-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.8;
}

.page-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.page-crumbs a:hover {
  color: var(--primary);
}

.updates-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 56px;
}

.release-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.nav-group + .nav-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.nav-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.2px;
  text-align: left;
}

.nav-group-head:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-group-head .chev {
  margin-left: auto;
  transition: transform 0.2s var(--ease);
  color: var(--text-3);
}

.nav-group-head .chev svg {
  width: 14px;
  height: 14px;
  display: block;
}

.nav-group.is-collapsed .chev {
  transform: rotate(-90deg);
}

.nav-group.is-collapsed .nav-group-list {
  display: none;
}

.nav-group-count {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.6;
}

.nav-group-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  transition: all 0.18s var(--ease);
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.is-active {
  background: rgba(22, 119, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.nav-item .num {
  font-size: 12px;
}

.nav-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  flex: 0 0 auto;
}

.nav-item-date {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.release-detail {
  min-height: 420px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
}

.detail-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-ver {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.2px;
}

.chip-latest {
  color: var(--primary);
  background: rgba(22, 119, 255, 0.1);
  border-color: rgba(22, 119, 255, 0.24);
}

.chip-stable {
  color: var(--success);
  background: rgba(0, 181, 120, 0.1);
  border-color: rgba(0, 181, 120, 0.24);
}

.chip-beta {
  color: var(--warning);
  background: rgba(255, 159, 28, 0.1);
  border-color: rgba(255, 159, 28, 0.28);
}

.chip-muted {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--border);
}

.detail-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}

.detail-meta b {
  color: var(--text-2);
  font-weight: 600;
}

.detail-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(22, 119, 255, 0.08), rgba(0, 198, 255, 0.05));
  border: 1px solid rgba(22, 119, 255, 0.16);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.detail-section-title {
  margin: 26px 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-3);
  text-transform: uppercase;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--g2), var(--g3));
}

.detail-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

/* -------------------------------- 状态与动画 ------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.no-glass .site-header,
.no-glass .release-card {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.no-motion *,
.no-motion *::before,
.no-motion *::after {
  animation: none !important;
  transition: none !important;
}

.no-motion .reveal {
  opacity: 1;
  transform: none;
}

.loading {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 13.5px;
  gap: 12px;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.86); }
}

@keyframes level {
  from { height: 22%; }
  to { height: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------- 语言切换 -------------------------------- */

.lang-switch {
  position: relative;
}

.lang-switch .icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.lang-switch .icon-btn svg {
  width: 12px;
  height: 12px;
}

.lang-cur {
  letter-spacing: 0.3px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
}

.lang-switch.is-open .lang-menu {
  display: block;
  animation: fade-in 0.16s var(--ease);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.14s var(--ease);
}

.lang-option:hover {
  background: var(--surface-2);
  color: var(--text);
}

.lang-option[aria-current='true'] {
  color: var(--primary);
  background: rgba(22, 119, 255, 0.08);
  font-weight: 600;
}

/* -------------------------------- 主题按钮 -------------------------------- */

@media (max-width: 1176px) {
  .hero-title {
    font-size: 50px;
  }
  .hero-inner {
    gap: 40px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 56px 0 88px;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-stage {
    max-width: 560px;
  }
  .stage-card {
    transform: none;
  }
  .float-chip.chip-a {
    right: 0;
  }
  .float-chip.chip-b {
    left: 0;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .updates-layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .release-detail {
    padding: 26px 24px;
  }
}

@media (max-width: 930px) {
  .header-nav a:nth-child(n + 3) {
    display: none;
  }
  .release-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .release-more {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 12px;
  }
  .release-item:nth-child(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 58px;
  }
  .container {
    padding: 0 18px;
  }
  .brand-sub {
    display: none;
  }
  .header-nav {
    display: none;
  }
  .hero {
    padding: 40px 0 76px;
  }
  .hero-title {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 14.5px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .release-strip {
    margin-top: -44px;
  }
  .release-card {
    grid-template-columns: 1fr;
  }
  .release-item:nth-child(n) {
    display: flex;
  }
  .release-item:nth-child(3) {
    display: none;
  }
  .section {
    padding: 34px 0;
  }
  .section-title {
    font-size: 22px;
  }
  .matrix {
    grid-template-columns: 1fr;
  }
  .tile {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 14px 16px;
    gap: 14px;
  }
  .tile-icon {
    width: 38px;
    height: 38px;
  }
  .tile-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .tile-badge {
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
  }
  .tile-badge + .tile-arrow {
    display: none;
  }
  .tile-badge {
    position: static;
    transform: none;
    margin-left: auto;
  }
  .pills {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 0;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 36px 0 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .page-head {
    padding: 36px 0 22px;
  }
  .page-title {
    font-size: 30px;
  }
  .updates-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .release-nav {
    position: static;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }
  .release-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-group {
    flex: 0 0 auto;
  }
  .nav-group + .nav-group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .nav-group-head {
    display: none;
  }
  .nav-group-list {
    flex-direction: row;
    padding: 0;
  }
  .nav-item {
    white-space: nowrap;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 999px;
  }
  .nav-item.is-active {
    border-color: rgba(22, 119, 255, 0.4);
  }
  .nav-item-date,
  .nav-item .dot {
    display: none;
  }
  .release-detail {
    padding: 20px 18px 24px;
  }
  .detail-ver {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 33px;
  }
  .hero-stage {
    display: none;
  }
  .announcement-text {
    font-size: 12px;
  }
  .announcement-link {
    display: none;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .modal-specs {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-actions .btn {
    width: 100%;
  }
}

@media (max-width: 414px) {
  .hero-title {
    font-size: 30px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-foot {
    font-size: 11.5px;
  }
  .release-item {
    padding: 12px 12px;
  }
  .release-sum {
    -webkit-line-clamp: 3;
  }
  .page-title {
    font-size: 26px;
  }
}
