/* ============================================================
   UWP 卸载工具官网 · base.css
   iOS 26 Liquid Glass 设计系统：令牌 / 背景 / 玻璃 / 导航 / 按钮
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;

  --bg: #eef2f9;
  --text: #0d1220;
  --text-2: rgba(13, 18, 32, 0.64);
  --text-3: rgba(13, 18, 32, 0.42);

  --accent: #0071e3;
  --accent-2: #2997ff;
  --accent-soft: rgba(0, 113, 227, 0.12);

  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 24px 70px rgba(24, 40, 84, 0.16);

  --blob-1: #6db5ff;
  --blob-2: #b18cff;
  --blob-3: #ff9ecb;
  --blob-4: #6ff0d2;
  --blob-opacity: 0.55;

  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 14px;

  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);

  --nav-h: 64px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #04060c;
  --text: #f4f7fc;
  --text-2: rgba(244, 247, 252, 0.66);
  --text-3: rgba(244, 247, 252, 0.42);

  --accent: #2997ff;
  --accent-2: #64b5ff;
  --accent-soft: rgba(41, 151, 255, 0.18);

  --glass-bg: rgba(20, 26, 40, 0.46);
  --glass-bg-strong: rgba(24, 31, 47, 0.62);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.32);
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);

  --blob-opacity: 0.32;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04060c;
    --text: #f4f7fc;
    --text-2: rgba(244, 247, 252, 0.66);
    --text-3: rgba(244, 247, 252, 0.42);

    --accent: #2997ff;
    --accent-2: #64b5ff;
    --accent-soft: rgba(41, 151, 255, 0.18);

    --glass-bg: rgba(20, 26, 40, 0.46);
    --glass-bg-strong: rgba(24, 31, 47, 0.62);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-hi: rgba(255, 255, 255, 0.32);
    --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);

    --blob-opacity: 0.32;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  transition: background 0.5s var(--ease-apple), color 0.5s var(--ease-apple);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

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

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- 动态壁纸背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
  animation: blob-drift 26s var(--ease-apple) infinite alternate;
}

.bg-blob--1 { width: 52vmax; height: 52vmax; background: var(--blob-1); top: -18vmax; left: -12vmax; }
.bg-blob--2 { width: 44vmax; height: 44vmax; background: var(--blob-2); top: 22vmax; right: -16vmax; animation-delay: -6s; animation-duration: 30s; }
.bg-blob--3 { width: 38vmax; height: 38vmax; background: var(--blob-3); bottom: -14vmax; left: 8vmax; animation-delay: -12s; animation-duration: 34s; }
.bg-blob--4 { width: 30vmax; height: 30vmax; background: var(--blob-4); bottom: 6vmax; right: 14vmax; animation-delay: -18s; animation-duration: 24s; }

@keyframes blob-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-5vmax, 5vmax, 0) scale(0.94); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 玻璃表面 ---------- */
/* 轻量玻璃：导航 / 小卡片 / 页脚 */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  border-radius: var(--r-md);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .liquid-blur { background: var(--glass-bg-strong); }
}

/* 液态玻璃：四层结构（模糊层 / 折射层 / 高光层 / 内容层） */
.liquid {
  position: relative;
  border-radius: var(--r-lg);
  isolation: isolate;
}

.liquid-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.liquid-spec {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 1px 1px 0 var(--glass-hi),
    inset -1px -1px 0 rgba(255, 255, 255, 0.12);
}

.liquid-spec::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, -20%),
    rgba(255, 255, 255, 0.22),
    transparent 62%
  );
  opacity: var(--spec-o, 0);
  transition: opacity 0.4s var(--ease-apple);
}

.liquid:hover .liquid-spec::after,
.liquid.is-lit .liquid-spec::after { --spec-o: 1; }

.liquid-content { position: relative; z-index: 3; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--spring),
    background 0.3s var(--ease-apple), filter 0.3s var(--ease-apple);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active, .btn.is-pressed { transform: scale(0.94); }
.btn:hover { transform: scale(1.03); }
.btn:active, .btn.is-pressed { transform: scale(0.94); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

.btn-glass:hover { background: var(--glass-bg-strong); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

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

/* ---------- 导航 ---------- */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1120px, 100%);
  height: var(--nav-h);
  padding-inline: 10px 14px;
  border-radius: 999px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: transform 0.4s var(--spring);
  flex: none;
}

.nav-brand:hover { transform: scale(1.04); }
.nav-brand:active { transform: scale(0.95); }

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(10, 30, 80, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: transform 0.4s var(--spring), color 0.25s, background 0.25s;
  transform-origin: 50% 100%;
}

/* Dock 式悬停放大 */
.nav-link:hover { transform: scale(1.1) translateY(-1px); color: var(--text); background: var(--accent-soft); }
.nav-link:active { transform: scale(0.94); }

.nav-link.is-active { color: var(--text); font-weight: 650; }

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 语言切换 · iOS 分段控件 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.35s var(--spring);
}

.lang-btn:hover { color: var(--text); transform: scale(1.06); }
.lang-btn:active { transform: scale(0.9); }

.lang-btn.is-active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  transition: transform 0.4s var(--spring), background 0.25s;
}

.icon-btn:hover { transform: scale(1.1); background: var(--glass-bg-strong); }
.icon-btn:active { transform: scale(0.88); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-burger { display: none; }

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: calc(18px + var(--nav-h) + 10px);
  left: 16px;
  right: 16px;
  z-index: 99;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--r-md);
  transform-origin: 50% 0;
  animation: menu-in 0.4s var(--spring);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 13px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s, transform 0.35s var(--spring);
}

.mobile-menu a:hover { background: var(--accent-soft); color: var(--text); }
.mobile-menu a:active { transform: scale(0.97); }
.mobile-menu a.is-active { color: var(--accent); }

@keyframes menu-in {
  from { opacity: 0; transform: scale(0.92) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 页面骨架 ---------- */
main { padding-top: calc(18px + var(--nav-h) + 40px); }

.page-head { text-align: center; margin-bottom: 52px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 20px;
}

.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

h1.title {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2.title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.subtitle {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 640px;
  margin-inline: auto;
}

section { margin-bottom: 96px; }

.section-head { margin-bottom: 36px; }

/* ---------- 文档型内容（功能 / 隐私 / 关于） ---------- */
.doc-card { padding: clamp(24px, 4vw, 44px); }

.doc-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-card h3 .h-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.doc-card h3 .h-icon svg { width: 20px; height: 20px; }

.doc-card p, .doc-card li { color: var(--text-2); line-height: 1.85; font-size: 15.5px; }

.doc-card ul { list-style: none; display: grid; gap: 12px; }

.doc-card ul li {
  position: relative;
  padding-left: 26px;
}

.doc-card ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.5);
}

.doc-card code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 7px;
}

.doc-grid { display: grid; gap: 22px; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 40px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 44px clamp(20px, 5vw, 56px) 34px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 11px; }
.footer-tag { margin-top: 10px; color: var(--text-2); font-size: 14px; }

.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 14.5px; transition: color 0.2s, transform 0.3s var(--spring); }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 灯箱（长按 / 点击预览） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(8, 12, 24, 0.45);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-apple);
}

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox figure {
  max-width: min(1060px, 94vw);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), inset 0 1px 0 var(--glass-hi);
  transform: scale(0.86);
  transition: transform 0.5s var(--spring);
  background: rgba(20, 26, 40, 0.6);
}

.lightbox.is-open figure { transform: scale(1); }

.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; }

.lightbox figcaption {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--spring);
}

.lightbox-close:hover { transform: scale(1.1) rotate(90deg); }
.lightbox-close:active { transform: scale(0.9); }

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple);
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .lang-btn { padding: 6px 9px; font-size: 11.5px; }
  .nav-brand span { display: none; }
  section { margin-bottom: 64px; }
}
