/* Book Manager · 官网样式（暗色，与应用截图一致） */

:root {
  --bg: #16171d;
  --bg-2: #1c1e26;
  --panel: #22242e;
  --panel-2: #2a2d39;
  --line: #333746;
  --text: #e9ebf2;
  --muted: #9aa1b4;
  --accent: #5b7cfa;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(91, 124, 250, 0.18), transparent 60%),
    radial-gradient(900px 460px at 92% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei', 'PingFang SC',
    'Noto Sans CJK SC', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

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

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 23, 29, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

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

.brand-ico {
  font-size: 20px;
}

.brand-ver {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.lang-ico {
  font-size: 15px;
}

.lang select {
  appearance: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang select:hover {
  border-color: var(--accent);
}

/* --------------------------------------------------------------- hero */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  padding: 64px 0 8px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 124, 250, 0.28);
}

.btn.primary:hover {
  background: #6d8bff;
}

.btn.ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost:hover {
  border-color: var(--accent);
}

.cta-note {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 4px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.badges li {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}

/* --------------------------------------------------- 首屏截图轮播 */

.carousel {
  margin: 34px auto 0;
}

.car-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.car-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  position: relative;
  flex: 0 0 100%;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
}

.slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 30px 16px 12px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 13px;
  text-align: left;
  pointer-events: none;
}

.slide-cap strong {
  font-size: 14px;
}

.slide-cap span {
  opacity: 0.82;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 17, 22, 0.62);
  color: var(--text);
  font: 22px/1 'Segoe UI', system-ui, sans-serif;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}

.car-btn:hover,
.car-btn:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.car-prev {
  left: 14px;
}

.car-next {
  right: 14px;
}

.car-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.car-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.car-dot:hover {
  background: var(--panel-2);
}

.car-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .car-btn {
    display: none;
  }
}

/* ------------------------------------------------------------- 通用段 */

.sec {
  padding: 56px 0 0;
}

.sec h2 {
  font-size: 26px;
  margin: 0 0 18px;
}

.sec h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}

.muted,
.note {
  color: var(--muted);
}

.note {
  font-size: 14px;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 12px;
  margin: 22px 0;
}

.list {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin: 5px 0;
}

/* --------------------------------------------------------------- 卡片 */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card-ico {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.card h3,
.card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tgroup {
  margin-top: 26px;
}

.tgroup h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------- 截图 */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 18px;
}

.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.shot figcaption strong {
  color: var(--text);
  font-size: 14.5px;
}

@media (max-width: 760px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

/* 窄屏：品牌 + 导航 + 语言选择挤在一行会撑出横向滚动，这里让导航横向滚动 */
@media (max-width: 760px) {
  .hdr-in {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .lang {
    margin-left: auto;
  }
}

/* ----------------------------------------------------------- 快速开始 */

.cols {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.3fr);
  gap: 26px;
}

@media (max-width: 820px) {
  .cols {
    grid-template-columns: 1fr;
  }
}

.cmds {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cmds td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.cmds code {
  color: var(--text);
  white-space: nowrap;
}

.code {
  background: #101116;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #cfd6e6;
}

code {
  font-family: 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.94em;
}

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

.ftr {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.ftr-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 20px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.ftr-in .dot {
  opacity: 0.5;
}
