/* ==================== fogcdub 客户端 · QQ 风格下载页 ==================== */
:root {
  --brand: #FF8A00;
  --brand-strong: #F97316;
  --brand-deep: #EA580C;
  --brand-soft: #FFF1DE;
  --brand-glow: rgba(255, 138, 0, 0.22);

  --ink: #17233d;
  --ink-2: #44536e;
  --ink-3: #8a97ad;
  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;

  --footer-bg: #0d1b2e;
  --footer-text: #93a6bd;
  --footer-link: #c8d6e8;

  --radius: 12px;
  --shadow: 0 12px 32px rgba(23, 35, 61, 0.10);
  --shadow-btn: 0 8px 20px rgba(255, 138, 0, 0.32);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ==================== 顶部导航 ==================== */
.dl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.dl-header__inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dl-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.dl-logo__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: transparent;
}

.dl-logo__icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 9px;
  object-fit: cover;
}

.dl-logo__name { color: var(--brand-strong); }

.dl-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease, background 0.15s ease;
}

.dl-nav__link:hover { color: var(--brand-strong); background: var(--brand-soft); }

/* ==================== 首屏 ==================== */
.dl-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 50% -120px, var(--brand-glow), transparent 70%),
    linear-gradient(180deg, #fff7ec 0%, #ffffff 62%);
  border-bottom: 1px solid var(--line);
}

.dl-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dl-product {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: transparent;
  box-shadow:
    0 0 0 8px rgba(255, 138, 0, 0.10),
    0 18px 44px rgba(255, 138, 0, 0.35);
  margin-bottom: 26px;
}

.dl-product img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 26px;
  object-fit: cover;
}

.dl-hero__name {
  margin: 0 0 10px;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.dl-hero__tagline {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--ink-2);
}

.dl-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.dl-badge--version {
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.dl-badge--win {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid rgba(255, 138, 0, 0.28);
}

/* 下载按钮 */
.dl-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 288px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.dl-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(255, 138, 0, 0.42);
  transform: translateY(-2px);
}

.dl-btn:active { transform: translateY(0) scale(0.98); }

.dl-download__note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.dl-download__dot { color: var(--line); }

/* 平台切换（仅 Windows 可用） */
.dl-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dl-platform {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg);
}

.dl-platform--on {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-strong);
  border-color: rgba(255, 138, 0, 0.4);
  background: var(--brand-soft);
  font-weight: 600;
}

.dl-platform--off { color: var(--ink-3); cursor: default; }

/* ==================== 通用区块 ==================== */
.dl-section {
  padding: 72px 0;
  scroll-margin-top: 60px;
}

.dl-section--alt { background: var(--bg-soft); }

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

.dl-section__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.dl-section__sub {
  margin: 0 0 40px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-3);
}

/* ==================== 功能亮点 ==================== */
.dl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.dl-feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(23, 35, 61, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dl-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 0, 0.45);
  box-shadow: var(--shadow);
}

.dl-feature__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  margin-bottom: 16px;
}

.dl-feature__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.dl-feature__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ==================== 系统要求 ==================== */
.dl-req {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(23, 35, 61, 0.04);
  overflow: hidden;
}

.dl-req__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}

.dl-req__item:last-child { border-bottom: none; }

.dl-req__label {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.dl-req__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* ==================== 更新日志 ==================== */
.dl-changelog {
  max-width: 640px;
  margin: 0 auto;
}

.dl-log {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(23, 35, 61, 0.04);
}

.dl-log__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dl-log__version {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-strong);
}

.dl-log__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.dl-log__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.dl-log__list li { margin: 4px 0; }

/* ==================== 页脚 ==================== */
.dl-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.dl-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.dl-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

.dl-footer__nav a {
  font-size: 13px;
  color: var(--footer-link);
  transition: color 0.15s ease;
}

.dl-footer__nav a:hover { color: #ffffff; }

.dl-footer__copy {
  margin: 0;
  font-size: 12.5px;
}

/* ==================== 提示 Toast ==================== */
.dl-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(92vw, 420px);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(23, 35, 61, 0.94);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(13, 27, 46, 0.35);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.dl-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ==================== 公告条（管理后台可配置） ==================== */
.dl-announce {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 138, 0, 0.25);
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
  .dl-header__inner { padding: 0 16px; }
  .dl-nav { display: none; }

  .dl-hero__inner { padding: 52px 18px 64px; }
  .dl-product { width: 80px; height: 80px; border-radius: 22px; }
  .dl-hero__name { font-size: 40px; }
  .dl-hero__tagline { font-size: 15px; }
  .dl-btn { min-width: 0; width: 100%; max-width: 320px; padding: 15px 24px; font-size: 16px; }

  .dl-section { padding: 56px 0; }
  .dl-section__inner { padding: 0 18px; }
  .dl-section__title { font-size: 24px; }

  .dl-req__item { flex-direction: column; gap: 4px; align-items: flex-start; }
  .dl-req__value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
