@charset "UTF-8";

/* ============================================================
   轮回丹脚本 · 站点皮肤（深靛 / 网格 / 直角）
   ============================================================ */

:root {
  --ink: #14142a;
  --ink-2: #1d1d33;
  --ink-3: #2a2a44;
  --primary: #303048;
  --primary-soft: #4a4a6e;
  --accent: #7d7dff;
  --accent-2: #a5a5ff;
  --paper: #f4f4fa;
  --paper-2: #ffffff;
  --muted: #61617a;
  --line: #dddcea;
  --radius: 2px;
  --shell: 1180px;
  --header-height: 74px;
  --shadow: 8px 8px 0 rgba(48, 48, 72, 0.12);
  --mono: "Consolas", "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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,
summary:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

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

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.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-plus::before { background-image: url("../icons/plus.svg"); }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #ececf8;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(calc(100% - 44px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand img {
  width: 36px;
  height: 36px;
  border: 1px solid #4a4a6e;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 8px 0 8px 14px;
  color: #c9c9e2;
  font-size: 13.5px;
  letter-spacing: 0.4px;
}

.primary-nav a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 160ms linear;
}

.primary-nav a:hover {
  color: #fff;
}

.primary-nav a:hover::before {
  opacity: 1;
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-download {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: #ffffff;
  background: transparent;
  transition: background 160ms linear, color 160ms linear;
}

.nav-download .icon {
  width: 15px;
  height: 15px;
  filter: invert(72%) sepia(22%) saturate(2200%) hue-rotate(206deg) brightness(105%);
}

.nav-download:hover {
  color: var(--ink);
  background: var(--accent);
}

.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 #4a4a6e;
  border-radius: var(--radius);
  color: #e7e7f6;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 19px;
  height: 19px;
  filter: invert(1);
}

/* ---------- 英雄区 ---------- */

.hero {
  padding: 58px 0 62px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #fbfbfe;
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 48, 72, 0.055) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(48, 48, 72, 0.055) 0 1px, transparent 1px 26px);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-left: 3px solid var(--accent);
  color: var(--primary-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(125, 125, 255, 0.09);
}

.hero h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 16px 0 14px;
  color: var(--ink);
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.35;
}

.hero-summary {
  max-width: 470px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.button {
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius);
}

.button-primary {
  border: 1px solid var(--primary);
  color: #ffffff;
  background: var(--primary);
  box-shadow: 6px 6px 0 rgba(125, 125, 255, 0.55);
  transition: transform 140ms linear, box-shadow 140ms linear, background 140ms linear;
}

.button-primary .icon {
  filter: invert(1);
}

.button-primary:hover {
  background: #3d3d5e;
  box-shadow: 2px 2px 0 rgba(125, 125, 255, 0.7);
  transform: translate(4px, 4px);
}

/* ---------- 英雄区：脚本任务日程表 ---------- */

.hero-schedule {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 12px 12px 0 rgba(48, 48, 72, 0.08);
}

.sch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  background: var(--ink-2);
}

.sch-head b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sch-badge {
  padding: 3px 9px;
  border: 1px solid rgba(165, 165, 255, 0.55);
  border-radius: 999px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

.sch-badge::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  content: "";
  background: #6ce39b;
  vertical-align: middle;
}

.sch-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sch-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px dashed var(--line);
}

.sch-row:last-child {
  border-bottom: 0;
}

.sch-clock {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sch-task strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.sch-task small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.sch-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #b9b9cc;
  border-radius: 50%;
  background: #fff;
}

.sch-row.is-done .sch-clock {
  color: #8a8aa6;
}

.sch-row.is-done .sch-dot {
  border-color: #2f9e64;
  background: #2f9e64;
}

.sch-row.is-live {
  background: rgba(125, 125, 255, 0.07);
}

.sch-row.is-live .sch-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(125, 125, 255, 0.22);
}

.sch-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  background: #f7f7fc;
}

/* ---------- 核心特色 ---------- */

.routes {
  padding: 70px 0 80px;
  background: var(--paper-2);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.fours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.four {
  position: relative;
  padding: 30px 30px 28px 34px;
  background: var(--paper-2);
  transition: background 160ms linear;
}

.four::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--line);
  transition: background 160ms linear;
}

.four:hover {
  background: #f7f7fd;
}

.four:hover::before {
  background: var(--accent);
}

.four .n {
  display: block;
  color: #c5c4d8;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.four h3 {
  margin: 12px 0 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- 界面展示 ---------- */

.screens {
  padding: 74px 0 84px;
  color: #e9e9f4;
  background: var(--ink);
  background-image: linear-gradient(180deg, #191930 0%, #14142a 100%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.screens .eyebrow {
  color: var(--accent-2);
  border-left-color: var(--accent-2);
  background: rgba(165, 165, 255, 0.12);
}

.screens .section-heading h2 {
  color: #ffffff;
}

.screens .section-heading > p:last-child {
  color: #a9a9c4;
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.covers figure {
  min-width: 0;
  margin: 0;
  border: 1px solid #343452;
  border-radius: var(--radius);
  background: #1e1e36;
  transition: transform 180ms ease, border-color 180ms ease;
}

.covers figure:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid #343452;
  background: #101024;
}

.covers b {
  display: block;
  padding: 12px 14px 0;
  color: #f2f2fb;
  font-size: 13.5px;
  font-weight: 700;
}

.covers small {
  display: block;
  padding: 4px 14px 14px;
  color: #9a9ab6;
  font-size: 11px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 76px 0 26px;
  background: var(--paper);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 160ms linear;
}

.faq-item[open] {
  border-color: #b9b8d6;
  box-shadow: 0 6px 0 rgba(48, 48, 72, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary h3 {
  margin: 0;
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms linear, border-color 180ms linear;
  filter: invert(20%) sepia(12%) saturate(2200%) hue-rotate(206deg) brightness(90%);
}

.faq-item[open] summary .icon {
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 18px;
  border-top: 1px dashed var(--line);
}

.faq-answer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- 官方入口 ---------- */

.official {
  padding: 10px 0 74px;
  background: var(--paper);
}

.official .section-heading {
  margin-bottom: 22px;
}

.official-fold {
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.official-fold summary::after {
  margin-left: auto;
  color: var(--accent);
  content: "＋";
  font-size: 17px;
  font-weight: 800;
}

.official-fold[open] summary::after {
  content: "－";
}

.official-link {
  padding: 13px 18px 16px;
  border-top: 1px dashed var(--line);
}

.official-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.official-link a {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  word-break: break-all;
}

.official-link a:hover {
  color: var(--accent);
}

/* ---------- 用户评价 ---------- */

.reviews {
  padding: 74px 0 80px;
  background: #eae9f4;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

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

.review-card {
  padding: 22px 24px 20px;
  border: 1px solid #d3d2e4;
  border-left: 4px solid var(--primary-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.review-card:nth-child(3n + 1) {
  border-left-color: var(--accent);
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review-card .who b {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.review-card time {
  color: #8b8aa4;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.review-card > p {
  margin: 12px 0 0;
  color: #45455c;
  font-size: 13.5px;
  line-height: 1.9;
}

.rv-site {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d9d8e8;
  color: var(--primary-soft);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- 下载区 ---------- */

.download-cta {
  padding: 66px 0 70px;
  color: #f3f3fc;
  background: var(--primary);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(125, 125, 255, 0.35) 0, transparent 46%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 12px);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.download-cta .eyebrow {
  color: #d5d5ff;
  border-left-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.08);
}

.download-cta .section-heading {
  margin-bottom: 26px;
}

.download-cta .section-heading h2 {
  color: #ffffff;
}

.download-cta .section-heading > p:last-child {
  color: #c6c6e0;
}

.download-cta .button-primary {
  border-color: #ffffff;
  color: var(--primary);
  background: #ffffff;
  box-shadow: 6px 6px 0 rgba(20, 20, 42, 0.35);
}

.download-cta .button-primary .icon {
  filter: invert(18%) sepia(14%) saturate(1600%) hue-rotate(206deg) brightness(85%);
}

.download-cta .button-primary:hover {
  background: var(--accent-2);
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 rgba(20, 20, 42, 0.35);
}

.disclaimer {
  max-width: 560px;
  margin: 26px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: #b9b9d6;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 32px 0 22px;
  color: #a3a3bf;
  background: #0f0f22;
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 12.5px;
}

.site-footer a {
  color: #d0d0e8;
  border-bottom: 1px dashed #4a4a6e;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.site-footer .icp a {
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 0;
}

/* ---------- 返回顶部 ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(48, 48, 72, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms linear, transform 180ms linear, visibility 180ms linear;
}

.to-top::before {
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

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

  .hero-schedule {
    margin: 0 auto;
    max-width: 560px;
  }

  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

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

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

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    border-bottom-width: 2px;
  }

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

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

  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 -15px;
    padding: 12px 15px 15px;
    border-top: 1px solid #34345a;
    background: var(--ink);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav a {
    padding: 9px 11px;
    border: 1px solid #33335a;
    border-radius: var(--radius);
    color: #d5d5ec;
    font-size: 13px;
  }

  .primary-nav a::before {
    display: none;
  }

  .nav-download {
    grid-column: 3;
    grid-row: 1;
    min-height: 34px;
    margin-left: auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 4;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 38px 0 42px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-schedule {
    box-shadow: 7px 7px 0 rgba(48, 48, 72, 0.09);
  }

  .sch-row {
    grid-template-columns: 54px minmax(0, 1fr) 12px;
    gap: 10px;
    padding: 14px;
  }

  .routes,
  .screens,
  .reviews {
    padding: 46px 0 50px;
  }

  .faq {
    padding: 46px 0 18px;
  }

  .official {
    padding: 8px 0 46px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .fours {
    grid-template-columns: 1fr;
  }

  .four {
    padding: 22px 22px 22px 26px;
  }

  .covers {
    gap: 12px;
  }

  .covers img {
    aspect-ratio: 1 / 1.4;
  }

  .rgrid {
    grid-template-columns: 1fr;
  }

  .download-cta {
    padding: 46px 0 50px;
  }

  .to-top {
    right: 14px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 14px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 34px;
    padding: 0;
  }

  .hero h1 {
    font-size: 33px;
  }
}
