@charset "UTF-8";

/* ===== 殇痕画质助手 · 暗色调校台主题 ===== */
:root {
  --bg: #0B1220;
  --bg-soft: #0F1A2E;
  --card: #111C31;
  --green: #166BA3;
  --green-bright: #2284C5;
  --green-dim: #143853;
  --line: #1E293B;
  --ink: #E2E8F0;
  --muted: #A98CBE;
  --radius: 8px;
  --shell: 1180px;
  --header-height: 70px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

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

a { color: inherit; text-decoration: none; }

button { color: inherit; font: inherit; }

a, button { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; }

.page-shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }

.icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle; }
.icon::before { display: block; width: 100%; height: 100%; content: ""; background: center / contain no-repeat; }
.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(8px);
}

.nav-shell { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 48px), var(--shell)); min-height: var(--header-height); margin: 0 auto; gap: 20px; }

.brand { display: inline-flex; align-items: center; min-width: max-content; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: 0.5px; }
.brand img { width: 34px; height: 34px; border: 1px solid var(--green-dim); border-radius: 6px; background: #07101F; object-fit: contain; }

.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 34px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { position: relative; display: inline-block; padding: 7px 0; color: var(--muted); font-family: Consolas, monospace; font-size: 12.5px; letter-spacing: 0.5px; transition: color 160ms ease; }
.primary-nav a::before { content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--green-bright); opacity: 0; transform: translateY(-50%); transition: opacity 160ms ease; }
.primary-nav a:hover,
.primary-nav a:focus-visible { color: #FFFFFF; }
.primary-nav a:hover::before,
.primary-nav a:focus-visible::before { opacity: 1; }

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border-radius: 6px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-download { min-width: 130px; padding: 0 15px; border: 1px solid var(--green); color: var(--green-bright); background: transparent; }
.nav-download .icon,
.button-primary .icon { filter: invert(62%) sepia(52%) saturate(1210%) hue-rotate(84deg) brightness(97%) contrast(92%); }
.nav-download:hover { color: #04120A; background: var(--green-bright); box-shadow: 0 0 18px rgba(34, 132, 197, 0.35); }
.nav-download:hover .icon { filter: brightness(0); }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }
.menu-toggle .icon { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ===== 英雄区：帧率面板 ===== */
.hero {
  padding: 56px 0 62px;
  background:
    radial-gradient(560px 320px at 82% 0%, rgba(22, 107, 163, 0.16) 0%, rgba(22, 107, 163, 0) 70%),
    linear-gradient(180deg, #0B1220 0%, #0A1526 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr); align-items: center; gap: 46px; }

.hero-copy { max-width: 520px; }

.eyebrow { margin: 0 0 14px; color: var(--green-bright); font-family: Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: 3px; }
.eyebrow::before { content: "> "; color: #4AA3DE; }

.hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.12; overflow-wrap: anywhere; }
.hero h1::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 9px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 12px rgba(34, 132, 197, 0.8); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.hero-title { margin: 15px 0 14px; font-size: clamp(20px, 2.3vw, 26px); font-weight: 700; color: #BBE0F7; line-height: 1.4; }

.hero-summary { max-width: 470px; margin: 0 0 27px; color: var(--muted); font-size: 14.5px; }

.button { min-width: 170px; padding: 0 22px; }

.button-primary { border: 1px solid var(--green-bright); color: #04120A; background: var(--green-bright); box-shadow: 0 0 0 rgba(34, 132, 197, 0); }
.button-primary .icon { filter: brightness(0); }
.button-primary:hover { background: #4AA3DE; box-shadow: 0 0 24px rgba(34, 132, 197, 0.4); transform: translateY(-1px); }

/* 帧率面板 */
.fpsPanel {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 16px 18px 18px;
  border: 1px solid #3B214B;
  border-radius: 12px;
  background: linear-gradient(180deg, #0E1A2D 0%, #0A1322 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(170, 148, 184, 0.08);
}

.fpHead { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fpHead b { font-family: Consolas, monospace; font-size: 12.5px; letter-spacing: 1px; color: #D8CBE1; }
.fpLive { padding: 2px 8px; border: 1px solid var(--green-dim); border-radius: 999px; color: #4AA3DE; font-size: 9.5px; letter-spacing: 0.5px; }
.fpLive::before { content: "● "; font-size: 7px; }
.fpHead em { margin-left: auto; color: #4AA3DE; font-family: Consolas, monospace; font-style: normal; font-size: 15px; font-weight: 700; }

.fpChart { padding: 10px 0 4px; }
.fpChart svg { display: block; width: 100%; height: 116px; }
.fpAxis { display: flex; justify-content: space-between; padding: 0 2px; color: #654B79; font-family: Consolas, monospace; font-size: 8.5px; }

.fpSliders { display: grid; gap: 12px; margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); }

.fpSldTop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.fpSldTop span { color: #BFA9D0; font-size: 11px; }
.fpSldTop b { color: var(--green-bright); font-family: Consolas, monospace; font-size: 10.5px; }

.fpTrack { position: relative; height: 8px; border: 1px solid #3D234C; border-radius: 4px; background: #0A1424; }
.fpTrack i { display: block; height: 100%; width: var(--w, 50%); border-radius: 3px; background: linear-gradient(90deg, #155580, var(--green-bright)); }
.fpTrack u { position: absolute; top: 50%; left: var(--x, 50%); width: 14px; height: 14px; border: 2px solid #86C6EF; border-radius: 50%; background: #0B1220; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(34, 132, 197, 0.5); }

/* ===== 核心特色 ===== */
.routes { padding: 64px 0 68px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 12px); }

.section-heading { max-width: 640px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.4px; line-height: 1.24; color: #F1F5F9; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

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

.four { position: relative; min-width: 0; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.four::before { content: ""; position: absolute; top: 0; left: 22px; width: 34px; height: 2px; background: var(--green-bright); }

.four .n { display: block; margin-bottom: 9px; color: #4AA3DE; font-family: Consolas, monospace; font-size: 11px; letter-spacing: 1px; }
.four h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; color: #E8EEF7; }
.four p { margin: 0; color: var(--muted); font-size: 13.4px; }

/* ===== 界面展示 ===== */
.screens { padding: 64px 0 70px; background: var(--bg); scroll-margin-top: calc(var(--header-height) + 12px); }

.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.covers figure { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.covers img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; border-radius: 4px; background: #0A1424; }
.covers b { display: block; margin-top: 8px; color: #E2E8F0; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11.5px; }
.covers small { display: block; margin-top: 2px; color: #866B9B; font-size: 9.5px; }

/* ===== FAQ ===== */
.faq { padding: 64px 0 16px; background: var(--bg-soft); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 12px); }

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

.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #0C1729; }
.faq-item[open] { border-color: #243950; }

.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 11px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; color: #E9DCF2; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.faq-item summary .icon { width: 13px; height: 13px; transition: transform 180ms ease; filter: invert(62%) sepia(52%) saturate(1210%) hue-rotate(84deg) brightness(97%) contrast(92%); }
.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 18px 15px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 13.4px; }

/* ===== 官方入口 ===== */
.official { padding: 20px 0 62px; background: var(--bg-soft); }

.official-fold { border: 1px solid #243950; border-radius: var(--radius); background: #0C1729; }
.official-fold summary { display: flex; align-items: center; gap: 10px; min-height: 51px; padding: 0 18px; color: #86C6EF; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 700; }
.official-fold summary::-webkit-details-marker { display: none; }
.official-fold summary::after { content: "[+]"; margin-left: auto; font-family: Consolas, monospace; font-size: 12px; }
.official-fold[open] summary::after { content: "[-]"; }
.official-link { padding: 10px 18px 15px; border-top: 1px dashed #243950; }
.official-link p { margin: 0; font-size: 13px; color: var(--muted); }
.official-link a { color: #4AA3DE; font-family: Consolas, monospace; word-break: break-all; }

/* ===== 用户评价 ===== */
.reviews { padding: 64px 0 70px; background: #071120; scroll-margin-top: calc(var(--header-height) + 12px); }

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

.rv { display: flex; min-height: 226px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #0C1729; }
.rv header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.who b { color: #86C6EF; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11.5px; }
.rv time { color: #654B79; font-family: Consolas, monospace; font-size: 9px; }
.rv > p { margin: 12px 0 11px; color: #D6C3E4; font-size: 13.2px; line-height: 1.82; }
.rv-site { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); color: #4AA3DE; font-family: Consolas, monospace; font-size: 9.5px; }

/* ===== 下载 CTA ===== */
.download-cta {
  padding: 64px 0 68px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(480px 240px at 50% 0%, rgba(22, 107, 163, 0.18) 0%, rgba(22, 107, 163, 0) 72%),
    #0A1526;
  text-align: center;
  scroll-margin-top: calc(var(--header-height) + 12px);
}
.download-cta .section-heading { max-width: 650px; margin-right: auto; margin-left: auto; text-align: center; }
.disclaimer { margin: 18px 0 0; color: #866B9B; font-size: 11.5px; }

/* ===== 页脚 ===== */
.site-footer { padding: 30px 0 20px; border-top: 1px solid var(--line); color: #866B9B; background: #060D19; text-align: center; }
.site-footer p { margin: 0 0 6px; font-size: 11.5px; }
.site-footer a { color: #BFA9D0; }
.site-footer a:hover { color: #4AA3DE; }
.site-footer .icp { margin: 0; color: #654B79; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #0C1729;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}
.to-top::before { content: ""; width: 8px; height: 8px; border-top: 2px solid #4AA3DE; border-left: 2px solid #4AA3DE; transform: rotate(45deg) translate(1px, 1px); }
.to-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--green-bright); box-shadow: 0 0 14px rgba(34, 132, 197, 0.35); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero-copy { max-width: 640px; }
  .fpsPanel { max-width: 560px; margin: 0 auto; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --header-height: 62px; }

  body { padding-top: var(--header-height); }

  .site-header { position: fixed; right: 0; left: 0; width: 100%; background: var(--bg); }

  .page-shell,
  .nav-shell { width: min(calc(100% - 32px), var(--shell)); }

  .nav-shell { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: var(--header-height); min-height: var(--header-height); column-gap: 7px; }

  .brand { grid-row: 1; grid-column: 1; gap: 7px; font-size: 14.5px; letter-spacing: 0; }
  .brand img { width: 28px; height: 28px; }

  .primary-nav { display: none; grid-row: 2; grid-column: 1 / -1; margin: 0 -16px; padding: 0 16px 12px; border-top: 1px solid var(--line); background: var(--bg); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 11px; }
  .primary-nav a { padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: #0C1729; font-size: 12px; }

  .nav-download { grid-row: 1; grid-column: 3; min-width: auto; min-height: 33px; margin-left: auto; padding: 0 9px; font-size: 11px; }
  .nav-download .icon { width: 14px; height: 14px; }
  .menu-toggle { display: inline-flex; grid-row: 1; grid-column: 4; width: 33px; height: 33px; }

  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 31px; }
  .hero-title { font-size: 19px; }
  .hero-summary { font-size: 13.4px; }

  .fpsPanel { padding: 12px 13px 14px; }
  .fpHead em { font-size: 13px; }
  .fpChart svg { height: 96px; }

  .routes { padding: 46px 0 48px; }
  .screens { padding: 46px 0 50px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h2 { font-size: 25px; }
  .fours { grid-template-columns: minmax(0, 1fr); }

  .covers { gap: 10px; }

  .faq { padding: 46px 0 14px; }
  .official { padding: 16px 0 46px; }
  .reviews { padding: 46px 0 48px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rv { min-height: auto; }
  .download-cta { padding: 46px 0 50px; }
  .download-cta .button-primary { width: 100%; }
  .to-top { right: 16px; bottom: 136px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 12.5px; }
  .nav-download span { display: none; }
  .nav-download { width: 33px; padding: 0; }
  .hero h1 { font-size: 27px; }
  .primary-nav ul { grid-template-columns: 1fr; }
}
