/* ============================================================
   WaveStore · 应用商店
   浅色纸感界面：低对比色阶、有机色斑、胶囊控件、紧凑字距
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  color-scheme: light;

  /* 画布与卡面：底色与卡面只差几个亮度值，靠色差分层，不靠阴影 */
  --canvas: #FAFCFD;
  --canvas-deep: #F2F7FB;
  --surface: #FFFFFF;
  --surface-soft: rgba(255, 255, 255, 0.88);
  --surface-softer: rgba(255, 255, 255, 0.5);
  --tint: #EFF5F9;
  --tint-2: #E5EFF6;
  --tint-3: #D9E7F1;

  /* 墨色四级 */
  --ink: #131A20;
  --ink-2: #4B565F;
  --ink-3: #6E7A83;
  --ink-4: #98A4AC;

  /* 描边：极淡，只用来切分，不制造重量 */
  --line: #E6EEF4;
  --line-2: #D8E4EC;
  --line-3: #C7D6E0;

  /* 品牌：深青蓝，克制；暖橙只做点缀 */
  --brand: #2B5C7D;
  --brand-ink: #1E4459;
  --brand-soft: #E2EDF5;
  --brand-wash: #EEF5F9;
  --accent: #DB8850;
  --accent-soft: #FBEEE1;

  --ok: #2C7A61;
  --ok-soft: #E0F0E8;
  --warn: #A5653A;
  --warn-soft: #F8ECDF;
  --err: #AC4A42;
  --err-soft: #F9E7E4;

  /* 形状 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* 节奏 */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: 58px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --base: 240ms;
  --slow: 460ms;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui,
    "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #0F1418;
    --canvas-deep: #12181D;
    --surface: #1A2229;
    --surface-soft: rgba(26, 34, 41, 0.7);
    --surface-softer: rgba(26, 34, 41, 0.46);
    --tint: #172026;
    --tint-2: #1D272F;
    --tint-3: #25313A;

    --ink: #EAF1F6;
    --ink-2: #A6B3BD;
    --ink-3: #7E8B95;
    --ink-4: #64717A;

    --line: #232E36;
    --line-2: #2C3942;
    --line-3: #3A4852;

    --brand: #9CC6E2;
    --brand-ink: #BBDDF3;
    --brand-soft: #1B2C38;
    --brand-wash: #16232C;
    --accent: #E5A272;
    --accent-soft: #2E2318;

    --ok: #79C0A4;
    --ok-soft: #16291F;
    --warn: #D7A277;
    --warn-soft: #2A2119;
    --err: #E0928A;
    --err-soft: #2C1B1A;
  }
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 104px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 极淡的顶部光晕，让纯色底不显得死板 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh 0 auto;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 22% 0%, rgba(190, 217, 236, 0.34), transparent 70%),
    radial-gradient(50% 50% at 82% 6%, rgba(214, 228, 240, 0.4), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      radial-gradient(60% 60% at 20% 0%, rgba(52, 86, 110, 0.3), transparent 70%),
      radial-gradient(50% 50% at 84% 4%, rgba(44, 66, 84, 0.28), transparent 72%);
  }
}

#main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.24;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: 32px; letter-spacing: -0.028em; }
h2 { font-size: 26px; letter-spacing: -0.024em; }
h3 { font-size: 16px; letter-spacing: -0.012em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(43, 92, 125, 0.16); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.wide {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: 8px;
  left: 50%;
  translate: -50% -200%;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--canvas);
  font-size: 13px;
  transition: translate var(--base) var(--ease);
}
.skip:focus-visible { translate: -50% 0; }

/* ---------- 3. 顶栏 ---------- */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 14px var(--gutter);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--container);
  margin-inline: auto;
}

/* 左侧导航胶囊：宽度随内容收缩，不在中间留空 */
.nav-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.03), 0 10px 24px -20px rgba(18, 40, 58, 0.3);
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease),
    box-shadow var(--base) var(--ease);
}

.top.scrolled .nav-pill,
.top.scrolled .account {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.03), 0 12px 28px -22px rgba(18, 40, 58, 0.26);
}

@media (prefers-color-scheme: dark) {
  .nav-pill {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(20, 27, 33, 0.72);
  }
  .top.scrolled .nav-pill,
  .top.scrolled .account {
    background: rgba(20, 27, 33, 0.94);
    border-color: var(--line);
    box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.7);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 10px 3px 3px;
  border-radius: var(--r-full);
  transition: background var(--fast) var(--ease);
}
.brand:hover { background: rgba(43, 92, 125, 0.06); }

.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(160deg, #CFE3F2, #B9D5E9);
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.brand-icon svg { width: 18px; height: 18px; }

@media (prefers-color-scheme: dark) {
  .brand-icon {
    background: linear-gradient(160deg, #29465C, #1E3646);
    color: #CFE6F5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.brand-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
nav a svg { display: none; }
nav a:hover { color: var(--ink); background: rgba(43, 92, 125, 0.06); }
nav a.current {
  color: var(--brand-ink);
  background: var(--brand-soft);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  nav a.current { color: var(--brand-ink); }
}

.account {
  flex: none;
  display: inline-flex;
  align-items: center;
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--base) var(--ease);
}
.account:hover {
  border-color: var(--line-2);
  transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
  .account {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(20, 27, 33, 0.72);
  }
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  padding: clamp(48px, 5.6vw, 68px) clamp(18px, 4vw, 44px) clamp(44px, 5.2vw, 60px);
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(38% 34% at 84% 20%, rgba(219, 136, 80, 0.2), transparent 72%),
    radial-gradient(58% 62% at 9% 6%, rgba(160, 200, 229, 0.44), transparent 70%),
    radial-gradient(56% 58% at 95% 96%, rgba(176, 206, 232, 0.46), transparent 72%),
    radial-gradient(50% 46% at 50% 108%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(178deg, #F6FAFD 0%, #EBF3FA 58%, #E7F0F8 100%);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .hero {
    border-color: rgba(255, 255, 255, 0.05);
    background:
      radial-gradient(38% 34% at 84% 20%, rgba(219, 136, 80, 0.1), transparent 72%),
      radial-gradient(58% 62% at 9% 6%, rgba(48, 84, 108, 0.42), transparent 70%),
      radial-gradient(56% 58% at 95% 96%, rgba(40, 70, 92, 0.46), transparent 72%),
      linear-gradient(178deg, #151E25 0%, #131B22 60%, #111820 100%);
  }
}

/* 修正：模糊色块在圆角裁剪下会产生竖带伪影，改用径向渐变叠加，边缘绝对柔和 */

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin-inline: auto;
}

/* 顶部小标签 */
.hero-copy::before {
  content: "ANDROID · WEAR OS · 不限速";
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-bottom: 22px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
}
@media (prefers-color-scheme: dark) {
  .hero-copy::before {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
    color: var(--brand);
  }
}

.hero h1 {
  margin: 0 0 17px;
  max-width: 15em;
  font-size: clamp(31px, 4.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.038em;
  font-weight: 600;
  color: var(--ink);
}

.hero p {
  max-width: 30em;
  margin: 0 0 30px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: -0.004em;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  margin: 0 0 18px;
  padding: 7px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.04), 0 20px 42px -32px rgba(18, 40, 58, 0.34);
  transition: box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.hero-search:focus-within {
  border-color: rgba(43, 92, 125, 0.34);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.04), 0 20px 42px -30px rgba(18, 40, 58, 0.4);
}
@media (prefers-color-scheme: dark) {
  .hero-search {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(28, 38, 46, 0.9);
    box-shadow: none;
  }
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  font-size: 14.5px;
  letter-spacing: -0.006em;
}
.hero-search input::placeholder { color: var(--ink-4); }
.hero-search input:focus-visible { outline: 0; }

.hero-search .button {
  height: 44px;
  padding: 0 24px;
  flex: none;
}

.platforms {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.44);
}
@media (prefers-color-scheme: dark) {
  .platforms {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
  }
}

.platforms button {
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.platforms button:hover { color: var(--ink); }
.platforms button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(18, 40, 58, 0.09);
}
@media (prefers-color-scheme: dark) {
  .platforms button[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink);
    box-shadow: none;
  }
}

/* hero 右侧插画在新版里退场，让排版成为唯一焦点 */
.hero-art { display: none; }

/* ---------- 5. 区块与网格 ---------- */
.section { margin-top: var(--section); }
.hero + .section { margin-top: calc(var(--section) + 14px); }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.section-title h2 { font-size: 25px; }
.section-title a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.004em;
  transition: color var(--fast) var(--ease), gap var(--fast) var(--ease);
}
.section-title a::after {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.section-title a:hover { color: var(--brand); gap: 8px; }

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

/* 正好四张时排成 2×2，避免出现 3+1 的孤行 */
@media (min-width: 961px) {
  .grid:has(> .app-card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 卡片不足三张时改成整行宽条，避免右侧留出空洞 */
@media (min-width: 961px) {
  .grid:has(> .app-card:only-child) { display: block; max-width: 780px; }
  .grid:has(> .app-card:only-child) > .app-card { padding: 22px 26px; }
  .grid:has(> .app-card:only-child) .app-icon,
  .grid:has(> .app-card:only-child) .icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 17px;
  }
  .grid:has(> .app-card:only-child) h3 { font-size: 17px; }
  .grid:has(> .app-card:only-child) .meta { font-size: 13.5px; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) { display: block; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) > .app-card + .app-card { margin-top: 10px; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) .app-card { padding: 18px 22px; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) .app-icon,
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) .icon-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) h3 { font-size: 16px; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) .meta { font-size: 13px; }
  .grid:has(> .app-card:first-child:nth-last-child(-n+2)) .card-platforms { font-size: 11.5px; }
}

/* ---------- 6. 应用卡片 ---------- */
.app-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease),
    transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}

.app-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: var(--line-2);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.03), 0 18px 32px -26px rgba(18, 40, 58, 0.4);
}
.app-card:active { transform: translateY(0); }

@media (prefers-color-scheme: dark) {
  .app-card:hover { box-shadow: 0 18px 32px -26px rgba(0, 0, 0, 0.8); }
}

.app-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--tint);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 2px rgba(18, 40, 58, 0.05);
}
@media (prefers-color-scheme: dark) {
  .app-icon { border-color: rgba(255, 255, 255, 0.06); }
}

.icon-placeholder {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tint-2);
  color: var(--ink-3);
  font-size: 17px;
  font-weight: 600;
}

.app-card .card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.app-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card .meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.card-platforms {
  display: block;
  margin-top: 1px;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.018em;
  font-variant-numeric: tabular-nums;
}

/* 右侧细箭头 */
.app-card::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-top: 1.5px solid var(--ink-4);
  border-right: 1.5px solid var(--ink-4);
  transform: rotate(45deg);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.app-card:hover::after {
  border-color: var(--brand);
  transform: rotate(45deg) translate(1px, -1px);
}

/* ---------- 7. 面板与列表 ---------- */
.panel {
  min-width: 0;
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel > h2 { margin-top: 6px; font-size: 19px; letter-spacing: -0.018em; }
.panel > h2:first-child { margin-top: 0; }
.panel > h3 { font-size: 15px; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.wide-gap { gap: 26px; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.meta {
  color: var(--ink-3);
  font-size: 12.8px;
  line-height: 1.6;
  letter-spacing: -0.002em;
  font-variant-numeric: tabular-nums;
}
.meta a { color: var(--ink-2); }
.meta a:hover { color: var(--brand); }

.entry {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.entry.row-between {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry:first-child { padding-top: 0; }
.entry h3, .entry strong { font-size: 14.5px; font-weight: 600; }

.quiet {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease);
}
.quiet:hover { color: var(--brand); text-decoration-color: currentColor; }

.description {
  color: var(--ink-2);
  font-size: 14.8px;
  line-height: 1.78;
  white-space: pre-wrap;
  letter-spacing: -0.002em;
}

.empty {
  padding: 22px 0;
  color: var(--ink-3);
  font-size: 13.5px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--tint);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.004em;
  white-space: nowrap;
}
.pill.active { background: var(--brand-soft); color: var(--brand-ink); }

.notice {
  padding: 12px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--warn-soft);
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.6;
}
.notice.error {
  border-color: var(--err-soft);
  background: var(--err-soft);
  color: var(--err);
}

/* ---------- 8. 按钮与表单 ---------- */
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 43px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.008em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.button:hover {
  background: var(--brand-ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(18, 40, 58, 0.6);
}
.button:active { transform: translateY(0) scale(0.994); }
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .button { color: #0E1B24; }
  .button:hover { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.9); }
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--tint);
  border-color: var(--line-3);
  color: var(--ink);
  box-shadow: none;
}

/* 表单里的多按钮分出主次 */
form.panel .cluster > .button:not(:last-child) {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
form.panel .cluster > .button:not(:last-child):hover {
  background: var(--tint);
  border-color: var(--line-3);
  color: var(--ink);
  box-shadow: none;
}

/* 表单 */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.002em;
}
label.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: -0.006em;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease);
}
textarea {
  height: auto;
  min-height: 118px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}
input::placeholder,
textarea::placeholder { color: var(--ink-4); }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-3); }

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 92, 125, 0.12);
}
@media (prefers-color-scheme: dark) {
  input:focus,
  select:focus,
  textarea:focus { box-shadow: 0 0 0 3px rgba(156, 198, 226, 0.16); }
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: url("/assets/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
  cursor: pointer;
}

input[type="file"] {
  height: auto;
  padding: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
}
input[type="file"]:hover { border-color: var(--line-3); }
input[type="file"]::file-selector-button {
  margin-right: 11px;
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
input[type="file"]::file-selector-button:hover {
  background: var(--tint);
  border-color: var(--line-3);
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  cursor: pointer;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.filter > input,
.filter > select { flex: 1 1 148px; min-width: 130px; }
.filter > input:first-child { flex: 2.2 1 250px; }
.filter > label {
  flex: 0 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 43px;
  white-space: nowrap;
  font-size: 12.5px;
}
.filter > label > select {
  flex: 1;
  width: auto;
  min-width: 112px;
  height: 43px;
}
.filter .button { flex: 0 0 auto; order: 9; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screenshots {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.screenshots img {
  flex: none;
  height: 168px;
  width: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--tint);
}

progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  border-radius: var(--r-full);
  background: var(--tint-2);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--tint-2); border-radius: var(--r-full); }
progress::-webkit-progress-value { background: var(--brand); border-radius: var(--r-full); }
progress::-moz-progress-bar { background: var(--brand); border-radius: var(--r-full); }

/* ---------- 9. 应用详情 ---------- */
.app-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0 2px;
}

.app-heading .app-icon,
.app-icon.large {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.app-heading .stack { gap: 5px; }
.app-heading h1 {
  font-size: clamp(25px, 3.1vw, 32px);
  letter-spacing: -0.03em;
}
.app-heading p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* 未登录时的「反馈给开发者」做成描边胶囊 */
.app-heading + .cluster > a.quiet {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--tint-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.app-heading + .cluster > a.quiet:hover {
  border-color: transparent;
  color: var(--brand-ink);
  background: var(--brand-soft);
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.compat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  font-size: 13px;
}
.compat dt {
  padding: 9px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.4;
}
.compat dd {
  margin: 0;
  padding: 2px 0 9px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
.compat > :nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 1px; }

.history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.history-entry:last-child { border-bottom: 0; }

/* 历史版本里的下载降级为次要按钮，避免与右侧主下载抢焦点 */
.entry .button {
  height: 33px;
  padding: 0 14px;
  font-size: 12.5px;
  background: transparent;
  border-color: var(--line-2);
  color: var(--brand);
  box-shadow: none;
}
.entry .button:hover {
  background: var(--brand-wash);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: none;
  transform: none;
}

/* ---------- 10. 登录与账户 ---------- */
.auth {
  max-width: 418px;
  margin: 12vh auto 0;
  padding: 34px;
}
.auth h1 { font-size: 27px; letter-spacing: -0.03em; }
.auth .cluster { justify-content: center; gap: 16px; margin-top: 4px; }

/* ---------- 11. 页脚 ---------- */
.footer { margin: 52px auto 40px; }

.footer-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding: 30px 32px;
  border-radius: var(--r-2xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(176deg, #F1F7FB, #EAF2F8);
}
@media (prefers-color-scheme: dark) {
  .footer-card {
    border-color: rgba(255, 255, 255, 0.05);
    background: linear-gradient(176deg, #141C22, #11171C);
  }
}

.footer-card::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 400px;
  height: 340px;
  background: rgba(178, 206, 231, 0.4);
  border-radius: 54% 46% 42% 58% / 48% 55% 45% 52%;
  filter: blur(30px);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .footer-card::after { background: rgba(46, 78, 100, 0.4); }
}

.footer-lead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
}
.footer-mark svg { width: 15px; height: 15px; }

.footer-note {
  position: relative;
  z-index: 1;
  flex: 1 1 320px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 12.8px;
  line-height: 1.65;
}

.footer-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-tags span {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 11px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .footer-tags span,
  .footer-mark { background: rgba(255, 255, 255, 0.07); }
}

/* ---------- 12. Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 80;
  translate: -50% 0;
  max-width: min(90vw, 420px);
  padding: 12px 20px;
  border-radius: var(--r-full);
  background: #1A2128;
  color: #F4F8FB;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  box-shadow: 0 18px 40px -20px rgba(10, 20, 30, 0.7);
  animation: toast-in var(--base) var(--ease-out);
}
#toast[hidden] { display: none; }
#toast.error { background: #8E3A34; }
@keyframes toast-in {
  from { opacity: 0; translate: -50% 10px; }
  to { opacity: 1; translate: -50% 0; }
}

/* ---------- 13. 涟漪 ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.14;
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out 620ms var(--ease) forwards;
}
@keyframes ripple-out {
  to { transform: scale(1); opacity: 0; }
}

.app-card, .button, .platforms button, .account, .pill, nav a { position: relative; }
.pill { overflow: hidden; }

/* ---------- 14. 滚动条 ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: var(--r-full);
  background-clip: content-box;
  background-color: var(--line-2);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--line-3); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter > label:first-child { grid-column: span 3; }
}

@media (max-width: 860px) {
  body { padding-top: 76px; padding-bottom: 84px; }
  .top { padding: 10px var(--gutter); }
  .nav-pill {
    padding: 5px 7px 5px 5px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .filter { grid-template-columns: 1fr 1fr; }
  .filter > label:first-child { grid-column: span 2; }
  .filter .button { grid-column: span 2; }
  .app-heading { gap: 15px; }
  .app-heading .app-icon,
  .app-icon.large { width: 68px; height: 68px; border-radius: 18px; }
  :root { --section: 42px; }
  .section-title h2 { font-size: 22px; }

  /* 移动端：底部导航 */
  nav {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    margin: 0;
    padding: 5px;
    gap: 2px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 1px 2px rgba(18, 40, 58, 0.04), 0 20px 40px -26px rgba(18, 40, 58, 0.4);
  }
  nav a {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    height: 52px;
    padding: 0;
    border-radius: var(--r-md);
    font-size: 10.5px;
    font-weight: 500;
  }
  nav a svg { display: block; width: 19px; height: 19px; }
  nav a.current { background: var(--brand-soft); }
  nav a:hover { background: transparent; }
  nav a.current:hover { background: var(--brand-soft); }

  .hero { border-radius: var(--r-xl); padding: 30px 16px 28px; }
  .hero h1 { font-size: clamp(26px, 7.2vw, 32px); letter-spacing: -0.032em; margin-bottom: 12px; }
  .hero p { font-size: 14.5px; margin-bottom: 24px; }
  .hero-copy::before { margin-bottom: 18px; height: 24px; font-size: 9.5px; }
  .hero-search { width: 100%; }
  .hero-search .button { padding: 0 18px; }
  .footer { margin: 36px auto 20px; }
  .footer-card { padding: 24px; border-radius: var(--r-xl); }
}

@media (prefers-color-scheme: dark) {
  nav {
    background: rgba(22, 30, 37, 0.94);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
  }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 9px; }
  .app-card { padding: 13px; border-radius: var(--r-md); }
  .app-icon { width: 44px; height: 44px; border-radius: 12px; }
  .panel { padding: 18px; border-radius: var(--r-lg); }
  .filter { grid-template-columns: 1fr; }
  .filter > label:first-child,
  .filter .button { grid-column: span 1; }
  .filter .button { margin-left: auto; }
  .auth { padding: 22px; margin-top: 3vh; }
  .section-title { align-items: center; }
  .screenshots img { height: 148px; }
}

/* ---------- 16. 手表端（320px） ---------- */
@media (max-width: 340px) {
  body { padding: 6px 8px 66px; font-size: 13px; }
  .top { position: static; padding: 0 0 6px; }
  .nav-pill {
    padding: 4px 7px 4px 4px;
    border-radius: 12px;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--line);
  }
  .brand-icon { width: 24px; height: 24px; border-radius: 8px; }
  .brand-icon svg { width: 14px; height: 14px; }
  .brand-text { font-size: 12.5px; }
  .account { padding: 5px 11px; font-size: 11px; }
  .wide { padding-inline: 0; }

  .hero { padding: 16px 12px; border-radius: 14px; }
  .hero-copy::before { display: none; }
  .hero h1 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
  .hero p { font-size: 11px; margin-bottom: 10px; line-height: 1.5; }
  .hero-search { padding: 3px; border-radius: 10px; margin-bottom: 8px; }
  .hero-search input { height: 30px; font-size: 11px; padding: 0 9px; }
  .hero-search .button { height: 30px; padding: 0 11px; font-size: 11px; }
  .platforms { padding: 3px; }
  .platforms button { height: 24px; padding: 0 8px; font-size: 9.5px; }

  .section { margin-top: 14px; }
  .section-title { margin-bottom: 7px; }
  .section-title h2 { font-size: 13px; }
  .section-title a { font-size: 10px; }
  .grid { grid-template-columns: 1fr; gap: 7px; }
  .app-card { padding: 8px 10px; border-radius: 11px; gap: 9px; }
  .app-card::after { display: none; }
  .app-icon, .icon-placeholder { width: 30px; height: 30px; border-radius: 8px; }
  .icon-placeholder { font-size: 12px; }
  .app-card h3 { font-size: 11.5px; }
  .app-card .meta { font-size: 9.5px; }
  .card-platforms { font-size: 8.5px; }

  .panel { padding: 12px; border-radius: 13px; }
  .panel > h2 { font-size: 13px; }
  .stack { gap: 9px; }
  .wide-gap { gap: 12px; }
  .button { height: 32px; padding: 0 12px; font-size: 11.5px; }
  input, select, textarea { height: 32px; font-size: 11.5px; }
  .description { font-size: 11px; }
  .meta { font-size: 9.5px; }

  nav {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 3px;
    border-radius: 13px;
  }
  nav a { height: 40px; font-size: 8.5px; gap: 1px; }
  nav a svg { width: 15px; height: 15px; }

  .footer { display: none; }
  #toast { bottom: 54px; font-size: 11px; padding: 8px 13px; }
}

/* ---------- 17. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 头像 ---------- */
.avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tint-2);
  border: 1px solid var(--line);
}

.avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}

.avatar-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.avatar-side .meta {
  margin: 0;
}

.nav-avatar {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
}

@media (max-width: 520px) {
  .avatar {
    width: 60px;
    height: 60px;
  }
  .avatar-empty {
    font-size: 22px;
  }
}


/* hidden 属性要能压住 .avatar 的 display */
.avatar[hidden] {
  display: none !important;
}

/* ============================================================
   15. 下载线路选择（底部面板）
   ============================================================ */
body.sheet-open { overflow: hidden; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 27, 36, 0);
  transition: background 220ms var(--ease);
}
.sheet-backdrop.open { background: rgba(14, 27, 36, 0.34); }

.sheet {
  width: min(520px, 100%);
  margin: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  padding: 20px 20px 18px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgba(15, 32, 45, 0.5);
  opacity: 0;
  transform: translateY(14px);
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}
.sheet-backdrop.open .sheet { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .sheet {
    margin: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sheet-head h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.sheet-head .meta { margin: 0; }
.sheet-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.sheet-close:hover { background: var(--tint); color: var(--ink); }

.mirror-list { display: grid; gap: 8px; }

.mirror {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}
.mirror:hover { border-color: var(--brand); background: var(--brand-wash); }
.mirror:active { transform: scale(0.995); }
.mirror:disabled { opacity: 0.5; cursor: not-allowed; }
.mirror:disabled:hover { border-color: var(--line-2); background: var(--surface); }

.mirror-badge {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mirror-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mirror-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink);
}
.mirror-desc { font-size: 12px; color: var(--ink-3); }
.mirror-rtt {
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.mirror-rtt.bad { color: var(--err); }
.pill.reco { background: var(--ok-soft); color: var(--ok); }

.sheet-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
}

/* ---------- 16. 协议与法律入口 ---------- */
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 2px 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.consent label { flex: 1; display: block; }
.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.legal-links a {
  color: var(--ink-4);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.legal-links a:hover { color: var(--ink-2); border-bottom-color: var(--ink-4); }
