/* FluentCleaner 中文站 - Fluent Design 风格样式 */
:root {
  --accent: #0067c0;
  --accent-hover: #1975c5;
  --accent-light: #4cc2ff;
  --bg: #f3f4f6;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-solid: #ffffff;
  --text: #1b1b1f;
  --text-secondary: #5c5f66;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --header-bg: rgba(243, 244, 246, 0.82);
  --code-bg: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4cc2ff;
    --accent-hover: #6ccaff;
    --accent-light: #4cc2ff;
    --bg: #1e1f22;
    --bg-card: rgba(43, 44, 48, 0.82);
    --bg-card-solid: #2b2c30;
    --text: #f3f3f6;
    --text-secondary: #a9acb4;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.28), 0 12px 28px rgba(0, 0, 0, 0.32);
    --header-bg: rgba(30, 31, 34, 0.85);
    --code-bg: rgba(255, 255, 255, 0.08);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }

.nav-brand svg { flex: 0 0 auto; }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 12px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--code-bg); color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }
:root { }
@media (prefers-color-scheme: dark) { .nav-cta { color: #003e6b; } }

@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
}

/* ===== 首页 Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(640px 340px at 12% -8%, rgba(0, 103, 192, 0.16), transparent 65%),
    radial-gradient(560px 320px at 88% 4%, rgba(76, 194, 255, 0.14), transparent 60%);
}

.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; padding: 0 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0f9d58;
  box-shadow: 0 0 8px rgba(15, 157, 88, 0.8);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero .lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 103, 192, 0.35);
}
.btn-primary:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #003e6b; box-shadow: 0 4px 14px rgba(76, 194, 255, 0.22); }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--bg-card-solid); }

.hero-meta { font-size: 13.5px; color: var(--text-secondary); }
.hero-meta span { margin: 0 6px; }

/* 截图模拟窗口 */
.app-window {
  max-width: 900px;
  margin: 52px auto 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.app-window .titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.app-window .titlebar .win-controls { margin-left: auto; display: flex; gap: 22px; color: var(--text-secondary); }

.app-window .body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.app-window .sidebar {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-window .sidebar .item {
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text-secondary);
}
.app-window .sidebar .item.active {
  background: var(--code-bg);
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.app-window .sidebar .item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.app-window .main-area { padding: 26px 28px; }

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.stat-card {
  flex: 1 1 180px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--bg);
}
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 13px; color: var(--text-secondary); }

.progress-list { display: flex; flex-direction: column; gap: 14px; }
.progress-item { font-size: 14px; }
.progress-item .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.progress-item .row b { font-weight: 600; }
.progress-item .row span { color: var(--text-secondary); }
.bar { height: 6px; border-radius: 4px; background: var(--code-bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 32px; }
  .app-window .body { grid-template-columns: 1fr; }
  .app-window .sidebar { display: none; }
}

/* ===== 通用区块 ===== */
section { padding: 64px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-head p { color: var(--text-secondary); font-size: 16.5px; }

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 18px 40px rgba(0,0,0,0.1); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 103, 192, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .feature-icon { background: rgba(76, 194, 255, 0.13); } }

.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-secondary); }

/* 对比表 */
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-card-solid); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--code-bg); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: #0f9d58; font-weight: 600; }
.compare-table .no { color: #d93025; font-weight: 600; }
.compare-wrap { overflow-x: auto; }

/* 内容卡片 / 文章 */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

/* CTA 下载条 */
.cta-band {
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(0, 103, 192, 0.25), transparent 65%),
    radial-gradient(500px 260px at 85% 100%, rgba(76, 194, 255, 0.2), transparent 60%),
    var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 44px 36px;
  text-align: center;
}
.cta-band h2 { font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 26px; }

/* FAQ 手风琴 */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
  flex: 0 0 auto;
}
.faq-item details[open] summary::after,
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--text-secondary); font-size: 15px; }
.faq-item .faq-body ul, .faq-item .faq-body ol { padding-left: 22px; margin: 8px 0; }
.faq-item .faq-body code { background: var(--code-bg); padding: 2px 7px; border-radius: 5px; font-size: 13.5px; font-family: Consolas, "Courier New", monospace; }

/* 文章排版 */
.page-content h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.4px; }
.page-content .subtitle { color: var(--text-secondary); margin-bottom: 8px; font-size: 15px; }
.page-content h2 { font-size: 24px; margin: 40px 0 16px; padding-top: 12px; }
.page-content h3 { font-size: 19px; margin: 28px 0 12px; }
.page-content p { margin: 12px 0; color: var(--text); }
.page-content ul, .page-content ol { padding-left: 24px; margin: 12px 0; }
.page-content li { margin: 6px 0; }
.page-content code {
  background: var(--code-bg);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}
.page-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}
.breadcrumb { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 26px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* 下载卡片 */
.download-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.download-card .dl-icon {
  width: 96px; height: 96px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 103, 192, 0.35);
}
.download-card h2 { font-size: 22px; margin-bottom: 6px; }
.download-card .dl-meta { color: var(--text-secondary); font-size: 14px; }
.download-card .dl-meta span { margin-right: 14px; }
@media (max-width: 720px) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-card .dl-icon { margin: 0 auto; }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 36px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 7px 0; }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--accent); }
.footer-note { border-top: 1px solid var(--border); padding-top: 22px; font-size: 13px; line-height: 1.8; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* 回到顶部 */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}
#back-to-top.show { display: flex; }
