/* 辉创视频下载工具站点样式
   配色：暖纸色背景、主色 #164a52、强调色 #d9783a
   无外部字体或图库请求。 */

:root {
  --ink: #12262a;
  --ink-soft: #3d4f53;
  --muted: #66757a;
  --teal: #164a52;
  --teal-deep: #0d3338;
  --teal-mid: #1d616b;
  --foam: #e7f1f1;
  --sand: #f4f1ea;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #e4ddd2;
  --line-strong: #d2c9ba;
  --orange: #d9783a;
  --orange-deep: #c2652b;
  --orange-soft: #f6e6d6;
  --ok: #1f8a5b;
  --ok-bg: #e5f6ee;
  --shadow: 0 8px 24px rgba(18, 38, 42, 0.07);
  --shadow-lg: 0 22px 48px rgba(18, 38, 42, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 64px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1080px;
  --max-wide: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3 { font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code, .path {
  font-family: Consolas, "SF Mono", "Segoe UI Mono", monospace;
  font-size: 0.92em;
  background: var(--foam);
  color: var(--teal-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  word-break: break-all;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(var(--max-wide), calc(100% - 32px));
  margin: 0 auto;
}

/* —— 页顶提示条 —— */
.proto-bar {
  background: var(--teal);
  color: #f4efe6;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.proto-bar strong { color: #fff; font-weight: 650; }

/* —— 页头 —— */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--teal-deep); text-decoration: none; }

.brand-mark { width: 32px; height: 32px; flex: none; }

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

.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a.is-current { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 9px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-primary:hover { background: var(--orange-deep); color: #fff; border-color: var(--orange-deep); }

.btn-teal {
  background: var(--teal);
  color: #f4efe6;
  border-color: var(--teal);
}

.btn-teal:hover { background: var(--teal-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--line-strong);
}

.btn-ghost:hover { background: var(--foam); color: var(--teal-deep); }

.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— 首页 Hero —— */
.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 120, 58, 0.14), transparent 28%),
    radial-gradient(circle at 8% 80%, rgba(22, 74, 82, 0.08), transparent 32%),
    var(--paper);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }

.lead { font-size: 17px; color: var(--ink-soft); max-width: 42em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

.hero-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* 首页示意卡片（不是广告，也不是本机窗口网页） */
.hero-cards { display: grid; gap: 14px; }

.intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.intro-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--foam);
  border-radius: 999px;
  padding: 2px 8px;
}

.intro-card p { color: var(--ink-soft); font-size: 14px; }

/* —— 通用区块 —— */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--ink-soft); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.section-alt .feature { background: var(--sand); }

.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14px; }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--foam);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.feature-icon svg { width: 20px; height: 20px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #f4efe6;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.step h3 { font-size: 16px; }
.step p { color: var(--ink-soft); font-size: 14px; }

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entry-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.entry-card h3 { font-size: 18px; color: var(--teal); }
.entry-card p { color: var(--ink-soft); font-size: 14px; }

/* —— FAQ / 说明页 —— */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px 4px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-body {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 0 0 14px;
}

.privacy-card,
.notice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.page-body { padding: 36px 0 64px; flex: 1; }

.page-title { font-size: clamp(26px, 3vw, 32px); margin-bottom: 8px; }
.page-lead { color: var(--ink-soft); font-size: 16px; max-width: 46em; margin-bottom: 28px; }

.install-steps {
  display: grid;
  gap: 14px;
  margin: 8px 0 28px;
}

.install-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.install-step h3 { font-size: 16px; margin-bottom: 4px; }
.install-step p { color: var(--ink-soft); font-size: 14px; }

.store-note {
  background: var(--orange-soft);
  border: 1px solid #ead2bb;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink);
}

.store-note p { margin: 0; }

.path-box {
  background: var(--foam);
  border: 1px dashed var(--teal-mid);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: Consolas, "SF Mono", "Segoe UI Mono", monospace;
  font-size: 13px;
  color: var(--teal-deep);
  word-break: break-all;
  margin: 10px 0 0;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.info-card h3 { font-size: 16px; }
.info-card p, .info-card li { color: var(--ink-soft); font-size: 14px; }
.info-card ol, .info-card ul { margin: 0; padding-left: 1.2em; }

/* —— 下载进行页：左右两侧广告 + 中间任务 —— */
.page-download { background: var(--sand); }

.download-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  padding: 28px 0 48px;
}

.ad-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.ad-slot {
  border: 1px dashed var(--teal-mid);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--foam),
      var(--foam) 10px,
      #f3f8f8 10px,
      #f3f8f8 20px
    );
  border-radius: 10px;
  color: var(--teal);
  text-align: center;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
}

.ad-slot strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-deep);
}

.ad-slot span {
  font-size: 12px;
  color: var(--muted);
}

.ad-sky { min-height: 600px; width: 100%; }

.ad-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.progress-main { min-width: 0; }

.proto-callout {
  background: var(--orange-soft);
  border: 1px solid #ead2bb;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--ink);
}

.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  margin-bottom: 20px;
}

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.task-label { font-size: 18px; margin: 0; }

.status-pill {
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
}

.status-pill.is-paused {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.status-pill.is-done {
  background: var(--foam);
  color: var(--teal);
}

.task-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--foam);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}

.file-icon svg { width: 22px; height: 22px; }

.file-name { font-weight: 650; flex: 1; min-width: 0; word-break: break-all; }

.demo-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.bar {
  height: 10px;
  background: var(--foam);
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal));
  border-radius: inherit;
}

.pct { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }

.task-stats { font-size: 13px; color: var(--ink-soft); }

.copyright-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.fail-hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }

/* —— 页脚 —— */
.site-footer {
  background: var(--teal-deep);
  color: #c9d4d6;
  padding: 22px 0;
  margin-top: auto;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #e7f1f1; }
.footer-links a:hover { color: #fff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--teal-deep);
  color: #f4efe6;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
  max-width: calc(100% - 32px);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— 响应式 —— */
@media (max-width: 1100px) {
  .download-shell {
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 16px;
  }
  .ad-sky { min-height: 480px; }
}

@media (max-width: 900px) {
  .hero-grid,
  .features,
  .steps,
  .entry-grid,
  .split-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 33px);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    gap: 0;
  }

  .is-nav-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }

  .download-shell {
    grid-template-columns: 1fr;
  }

  .ad-col { position: static; }

  /* 窄屏改为：任务在中，两侧广告位上下排列，避免挤掉进度 */
  .ad-col-left { order: 2; }
  .progress-main { order: 1; }
  .ad-col-right { order: 3; }

  .ad-sky { min-height: 250px; }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 40px; }
  .section { padding: 44px 0; }
  .task-file { flex-wrap: wrap; }
  .wrap, .wrap-wide { width: calc(100% - 28px); }
}


/* —— 语言切换 —— */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.lang-switch a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
}

.lang-switch a:hover { color: var(--teal); text-decoration: none; background: var(--foam); }

.lang-switch a.is-current {
  color: var(--teal);
  background: var(--foam);
  pointer-events: none;
}

@media (max-width: 900px) {
  .lang-switch {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
