/* ============================================================
   EUP XML Refit — 官网静态站（现代简约风）
   浅色为主；data-theme 手动切换（默认跟随系统）；无构建工具依赖。
   ============================================================ */

:root {
  --bg: #faf8f5;
  --bg-soft: #f1ede6;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-2: #57534e;
  --ink-3: #9a948a;
  --line: #e5e0d6;
  --line-strong: #cbc4b8;
  --accent: #e8590c;
  --accent-deep: #c2410c;
  --accent-soft: #ffede3;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 24, 18, 0.05), 0 8px 24px rgba(28, 24, 18, 0.06);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', Consolas, 'JetBrains Mono', monospace;
}

/* 无 JS 时跟随系统深色 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #161412;
    --bg-soft: #1e1b18;
    --surface: #24211d;
    --ink: #ece7e0;
    --ink-2: #b3aba0;
    --ink-3: #7d766c;
    --line: #37322c;
    --line-strong: #4c463e;
    --accent: #fb923c;
    --accent-deep: #fdba74;
    --accent-soft: #3d1c0b;
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* 手动切换深色 */
:root[data-theme="dark"] {
  --bg: #161412;
  --bg-soft: #1e1b18;
  --surface: #24211d;
  --ink: #ece7e0;
  --ink-2: #b3aba0;
  --ink-3: #7d766c;
  --line: #37322c;
  --line-strong: #4c463e;
  --accent: #fb923c;
  --accent-deep: #fdba74;
  --accent-soft: #3d1c0b;
  --danger: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--line);
}
:root[data-theme="dark"] .brand-logo {
  box-shadow: 0 0 0 1px var(--line-strong);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.lang-label {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.lang-select {
  height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  max-width: 130px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-select:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}
.lang-select:focus {
  outline: none;
  border-color: var(--accent);
}

.nav-burger {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .nav-burger {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 6px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 10px 12px;
  }
  .nav-cta {
    margin-left: 0;
  }
}

/* ---------------- 通用按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232, 89, 12, 0.28);
}
.btn-primary:hover {
  background: var(--accent-deep);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--ink-3);
  background: var(--bg-soft);
}
.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

/* ---------------- 布局 ---------------- */

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

.page-head {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.page-head h1 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.page-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 640px;
}

footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  color: var(--ink-3);
  font-size: 13px;
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--ink-2);
}

/* ---------------- 首页 ---------------- */

.hero {
  padding: 84px 0 64px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .sub {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 17px;
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 72px;
}
.stat {
  background: var(--surface);
  padding: 26px 20px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-family: var(--mono);
}
.stat span {
  font-size: 13.5px;
  color: var(--ink-2);
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sec-block {
  margin-bottom: 72px;
}
.sec-block h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.sec-block .sec-sub {
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 640px;
}

/* 三大配置集卡片 */
.mod-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .mod-cards {
    grid-template-columns: 1fr;
  }
}
.mod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 24, 28, 0.09);
}
.mod-card .count {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.mod-card h3 {
  margin: 0;
  font-size: 18px;
}
.mod-card ul {
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

/* 能力速览（两列网格） */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}
.feat-item {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.feat-item .ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}
.feat-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.feat-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------------- 截图占位（全站通用） ---------------- */

.shot {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  color: var(--ink-3);
  text-align: center;
}
.shot svg {
  opacity: 0.55;
}
.shot .shot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.shot .shot-hint {
  font-size: 12px;
}
.shot .shot-id {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.shot.tall {
  min-height: 320px;
}
.shot.mid {
  min-height: 220px;
}
.shot.compact {
  padding: 26px 16px;
  min-height: 150px;
}

/* 截图替换位：用真实截图时直接把 .shot 块换成下面的 img */
.shot-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 18px 0 6px;
}

/* ---------------- 功能介绍页 ---------------- */

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 84px;
  font-size: 13.5px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-right: 8px;
}
@media (max-width: 900px) {
  .toc {
    position: static;
    display: none;
  }
}
.toc .toc-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--ink-2);
  border-left: 2px solid transparent;
}
.toc a:hover {
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
}
.toc a.toc-l2 {
  padding-left: 22px;
  font-size: 13px;
}

.doc h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  padding-top: 8px;
}
.doc h2 .no {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 17px;
  margin-right: 10px;
  vertical-align: 2px;
}
.doc h3 {
  font-size: 18px;
  margin: 30px 0 10px;
}
.doc h4 {
  font-size: 15.5px;
  margin: 22px 0 8px;
}
.doc p {
  margin: 10px 0;
  color: var(--ink-2);
}
.doc ul,
.doc ol {
  margin: 8px 0 14px;
  padding-left: 22px;
  color: var(--ink-2);
}
.doc ol {
  padding-left: 26px;
}
.doc li {
  margin: 5px 0;
}
.doc li > ul {
  margin: 4px 0 6px;
}
.doc pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--ink);
  margin: 16px 0;
}
.doc li strong {
  color: var(--ink);
}
.doc .kbd {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  white-space: nowrap;
  color: var(--ink);
}
.doc code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--accent-deep);
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin: 14px 0 20px;
}
.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: var(--bg-soft);
  font-weight: 700;
}
.doc tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-soft) 45%, transparent);
}

.doc-section {
  margin-bottom: 56px;
  scroll-margin-top: 84px;
}
.doc-section > .shot {
  margin: 18px 0 6px;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 14px;
  margin: 16px 0;
}
.callout strong {
  color: var(--accent-deep);
}

/* ---------------- 用户指南页 ---------------- */

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 40px;
}
@media (max-width: 860px) {
  .guide-steps {
    grid-template-columns: 1fr;
  }
}
.gstep {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.gstep .n {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  display: inline-block;
  border-radius: 6px;
  padding: 2px 9px;
  margin-bottom: 10px;
}
.gstep h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}
.gstep p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* FAQ 折叠 */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 17px 6px;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.faq details[open] summary::before {
  content: '−';
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq .faq-body {
  padding: 2px 6px 18px 34px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.faq .faq-body ul {
  margin: 6px 0;
  padding-left: 20px;
}

/* 快捷键表 */
.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0 22px;
}
@media (max-width: 760px) {
  .shortcuts {
    grid-template-columns: 1fr;
  }
}
.shortcuts .sc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.shortcuts .sc:nth-last-child(-n + 2) {
  border-bottom: none;
}
@media (max-width: 760px) {
  .shortcuts .sc:last-child {
    border-bottom: none;
  }
}
.shortcuts .sc span {
  color: var(--ink-2);
}

/* 打印 / 小屏微调 */
@media (max-width: 520px) {
  .page-head h1 {
    font-size: 26px;
  }
  .hero {
    padding: 56px 0 44px;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}