:root {
  /* Default: Warm Cream Light Mode (米白色护眼亮色模式) */
  --bg-deep: #f5f0e6;
  --bg-mid: #ece5d8;
  --glow-blue: rgba(114, 152, 236, 0.16);
  --glow-pink: rgba(206, 148, 232, 0.14);

  --card-bg: rgba(255, 252, 246, 0.88);
  --card-surface: rgba(244, 238, 227, 0.86);
  --card-border: rgba(108, 120, 168, 0.20);
  --card-shadow: 0 20px 50px rgba(64, 54, 42, 0.10), 0 0 32px rgba(130, 148, 220, 0.08);
  --divider-color: rgba(108, 120, 168, 0.16);

  --text-main: #1f2437;
  --text-muted: #4b526a;
  --text-soft: #6f768f;
  --heading-grad: linear-gradient(90deg, #27407d 0%, #6b3d99 58%, #a65c2b 100%);

  --btn-bg: linear-gradient(135deg, rgba(84, 134, 255, 0.12) 0%, rgba(190, 118, 255, 0.12) 100%);
  --btn-bg-hover: linear-gradient(135deg, rgba(84, 134, 255, 0.20) 0%, rgba(190, 118, 255, 0.19) 100%);
  --btn-border: rgba(96, 124, 214, 0.34);
  --btn-border-hover: rgba(88, 116, 212, 0.62);
  --btn-shadow: 0 10px 24px rgba(58, 52, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --btn-shadow-hover: 0 14px 30px rgba(74, 88, 152, 0.16), 0 0 20px rgba(132, 166, 255, 0.16);
  --btn-icon-bg: rgba(255, 255, 255, 0.72);
  --btn-icon-border: rgba(114, 132, 198, 0.22);
  --btn-title-color: #1c2238;
  --btn-arrow-color: #465da6;

  --pill-bg: rgba(255, 252, 246, 0.82);
  --pill-bg-hover: rgba(255, 255, 255, 0.98);
  --pill-border: rgba(108, 120, 168, 0.24);
  --pill-border-hover: rgba(88, 110, 186, 0.48);

  --badge-bg: rgba(86, 132, 236, 0.12);
  --badge-border: rgba(86, 132, 236, 0.28);
  --badge-text: #2e53a8;

  --shot-bg: rgba(240, 234, 223, 0.78);
  --shot-border: rgba(108, 120, 168, 0.20);
  --shot-img-bg: #e7e0d2;

  --callout-bg: rgba(242, 237, 227, 0.85);
  --callout-border: rgba(108, 120, 168, 0.20);
  --callout-warn-bg: rgba(250, 236, 208, 0.72);
  --callout-success-bg: rgba(216, 242, 228, 0.72);

  --accent-blue: #4f83eb;
  --accent-gold: #d48c1c;
  --accent-green: #229c6b;

  --kbd-bg: rgba(255, 255, 255, 0.86);
  --kbd-border: rgba(108, 120, 168, 0.30);
  --kbd-text: #222940;
  --code-bg: rgba(96, 114, 178, 0.11);
  --code-text: #2e488a;
  --portrait-border: rgba(108, 120, 168, 0.22);

  --dl-bg: linear-gradient(135deg, rgba(34, 156, 107, 0.12) 0%, rgba(79, 131, 235, 0.12) 100%);
  --dl-bg-hover: linear-gradient(135deg, rgba(34, 156, 107, 0.20) 0%, rgba(79, 131, 235, 0.20) 100%);
  --dl-border: rgba(34, 156, 107, 0.38);
  --dl-border-hover: rgba(34, 156, 107, 0.68);
  --dl-tag-bg: rgba(34, 156, 107, 0.16);
  --dl-tag-text: #167a52;
}

:root[data-theme="dark"] {
  --bg-deep: #090b16;
  --bg-mid: #131833;
  --glow-blue: rgba(98, 152, 255, 0.30);
  --glow-pink: rgba(214, 128, 255, 0.24);

  --card-bg: rgba(20, 25, 52, 0.78);
  --card-surface: rgba(28, 34, 68, 0.72);
  --card-border: rgba(168, 180, 255, 0.22);
  --card-shadow: 0 24px 64px rgba(4, 6, 16, 0.68), 0 0 42px rgba(130, 148, 255, 0.14);
  --divider-color: rgba(168, 180, 255, 0.16);

  --text-main: #f4f6ff;
  --text-muted: #b7c2e2;
  --text-soft: #8d9ac2;
  --heading-grad: linear-gradient(90deg, #dbe8ff 0%, #f5d8ff 55%, #ffe6b8 100%);

  --btn-bg: linear-gradient(135deg, rgba(84, 134, 255, 0.22) 0%, rgba(190, 118, 255, 0.20) 100%);
  --btn-bg-hover: linear-gradient(135deg, rgba(96, 148, 255, 0.32) 0%, rgba(204, 132, 255, 0.28) 100%);
  --btn-border: rgba(168, 190, 255, 0.36);
  --btn-border-hover: rgba(198, 212, 255, 0.65);
  --btn-shadow: 0 10px 26px rgba(5, 8, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --btn-shadow-hover: 0 16px 34px rgba(5, 8, 22, 0.56), 0 0 28px rgba(132, 166, 255, 0.26);
  --btn-icon-bg: rgba(255, 255, 255, 0.10);
  --btn-icon-border: rgba(255, 255, 255, 0.16);
  --btn-title-color: #ffffff;
  --btn-arrow-color: #e4ecff;

  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-bg-hover: rgba(255, 255, 255, 0.15);
  --pill-border: rgba(176, 192, 255, 0.24);
  --pill-border-hover: rgba(196, 210, 255, 0.45);

  --badge-bg: rgba(106, 163, 255, 0.18);
  --badge-border: rgba(106, 163, 255, 0.34);
  --badge-text: #dbe8ff;

  --shot-bg: rgba(10, 13, 28, 0.72);
  --shot-border: rgba(168, 180, 255, 0.20);
  --shot-img-bg: #0d101f;

  --callout-bg: rgba(28, 34, 68, 0.72);
  --callout-border: rgba(154, 174, 255, 0.22);
  --callout-warn-bg: rgba(58, 44, 22, 0.34);
  --callout-success-bg: rgba(20, 52, 42, 0.34);

  --accent-blue: #6aa3ff;
  --accent-gold: #ffd993;
  --accent-green: #5ae4a8;

  --kbd-bg: rgba(255, 255, 255, 0.12);
  --kbd-border: rgba(255, 255, 255, 0.24);
  --kbd-text: #eef3ff;
  --code-bg: rgba(255, 255, 255, 0.08);
  --code-text: #d6e4ff;
  --portrait-border: rgba(255, 255, 255, 0.18);

  --dl-bg: linear-gradient(135deg, rgba(90, 228, 168, 0.16) 0%, rgba(106, 163, 255, 0.16) 100%);
  --dl-bg-hover: linear-gradient(135deg, rgba(90, 228, 168, 0.26) 0%, rgba(106, 163, 255, 0.25) 100%);
  --dl-border: rgba(90, 228, 168, 0.36);
  --dl-border-hover: rgba(90, 228, 168, 0.68);
  --dl-tag-bg: rgba(90, 228, 168, 0.18);
  --dl-tag-text: #7ef2c0;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(680px 440px at 18% 12%, var(--glow-blue), transparent 70%),
    radial-gradient(620px 440px at 85% 88%, var(--glow-pink), transparent 70%),
    linear-gradient(155deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  transition: background 0.22s ease, color 0.22s ease;
}

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

/* Home Center Layout (3-column symmetric: Center stays dead-center) */
.home-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 24px 56px;
}

.home-shell {
  width: 100%;
  max-width: 1520px;
}

.home-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 580px) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 320px;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-expert-card {
  width: 100%;
  padding: 22px 20px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--btn-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.side-community-card {
  width: 100%;
  padding: 20px 20px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--dl-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
}

.side-community-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 15px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #d96b43 0%, #c94e7c 100%);
  box-shadow: 0 10px 24px rgba(201, 78, 124, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.side-community-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(201, 78, 124, 0.34);
}

.side-expert-card.drag-over {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 131, 235, 0.25), var(--card-shadow);
}

.side-expert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.side-expert-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.side-expert-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 32%;
  border: 2px solid var(--btn-border);
  background: #f5efe6;
}

.side-expert-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.side-expert-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--accent-green);
  font-weight: 600;
}

.side-expert-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.side-expert-tips {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card-surface);
  border: 1px dashed var(--btn-border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.side-expert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4b7df0 0%, #8e61e2 100%);
  box-shadow: 0 10px 24px rgba(75, 110, 210, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.side-expert-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(75, 110, 210, 0.36);
}

.right-rail {
  position: sticky;
  top: 24px;
  width: 100%;
  max-width: 264px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-bundle-card,
.side-toolbox-card {
  width: 100%;
  padding: 20px 18px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--dl-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
}

.side-toolbox-card {
  border-color: var(--btn-border);
}

.side-toolbox-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #6d5ce8 0%, #3d8de6 100%);
  box-shadow: 0 10px 22px rgba(72, 96, 210, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.side-toolbox-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(72, 96, 210, 0.34);
}

.side-bundle-title {
  margin: 8px 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-main);
}

.side-bundle-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.side-bundle-list {
  margin: 0 0 16px;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

.side-bundle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #27a272 0%, #3d7be6 100%);
  box-shadow: 0 10px 22px rgba(40, 120, 140, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.side-bundle-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(40, 120, 140, 0.32);
}

.side-bundle-size {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}

@media (max-width: 1140px) {
  .home-body {
    padding: 20px 16px 56px;
  }

  .home-shell {
    max-width: 580px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .showcase {
    order: 1;
  }

  .left-rail {
    order: 2;
    position: static;
    max-width: 100%;
    justify-self: stretch;
  }

  .right-rail {
    order: 3;
    position: static;
    max-width: 100%;
    justify-self: stretch;
  }
}

.showcase {
  width: 100%;
  padding: 34px 28px 32px;
  border-radius: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.visual-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.portrait-wrap {
  width: 136px;
  height: 172px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--portrait-border);
  box-shadow: 0 12px 28px rgba(30, 26, 20, 0.16);
  background: var(--card-surface);
  flex-shrink: 0;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-icon-wrap {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(30, 26, 20, 0.14),
    0 0 22px rgba(100, 145, 240, 0.16);
  flex-shrink: 0;
}

.app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.site-title {
  margin: 22px 0 0;
  font-size: clamp(20px, 3.2vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: var(--heading-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.action-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

/* Big Interactive Action Button */
.big-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  box-shadow: var(--btn-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.big-btn:hover {
  transform: translateY(-2px);
  border-color: var(--btn-border-hover);
  background: var(--btn-bg-hover);
  box-shadow: var(--btn-shadow-hover);
}

.big-btn:active {
  transform: translateY(0);
}

.big-btn-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.big-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--btn-icon-bg);
  border: 1px solid var(--btn-icon-border);
  flex-shrink: 0;
}

.big-btn-text {
  min-width: 0;
}

.big-btn-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--btn-title-color);
  line-height: 1.35;
}

.big-btn-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.big-btn-arrow {
  font-size: 20px;
  font-weight: 700;
  color: var(--btn-arrow-color);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.big-btn:hover .big-btn-arrow {
  transform: translateX(4px);
}

/* Subpage Layout */
.guide-body {
  padding: 24px 16px 64px;
}

.page-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

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

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  box-shadow: 0 4px 12px rgba(40, 36, 30, 0.06);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.pill-btn:hover,
.theme-toggle:hover {
  background: var(--pill-bg-hover);
  border-color: var(--pill-border-hover);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.brand-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--portrait-border);
}

.panel {
  padding: 28px 26px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--divider-color);
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  margin-bottom: 10px;
}

.page-title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  background: var(--heading-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-lead {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.section-block + .section-block {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #5d8ef5 0%, #a56ce8 100%);
  flex-shrink: 0;
}

.shot-card {
  margin: 14px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--shot-bg);
  border: 1px solid var(--shot-border);
}

.shot-card img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  background: var(--shot-img-bg);
}

.shot-card.compact img {
  width: auto;
  max-width: 100%;
  margin: 4px auto;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid rgba(108, 120, 168, 0.18);
}

.shot-caption {
  margin: 10px 4px 2px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

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

.shot-pair .shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shot-pair .shot-card img {
  max-height: 440px;
}

.callout {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-left: 4px solid var(--accent-blue);
}

.callout.warn {
  border-left-color: var(--accent-gold);
  background: var(--callout-warn-bg);
}

.callout.success {
  border-left-color: var(--accent-green);
  background: var(--callout-success-bg);
}

.callout.danger {
  border-left-color: #e2556b;
  background: rgba(235, 87, 112, 0.12);
}

.big-btn.danger {
  background: linear-gradient(135deg, rgba(226, 85, 107, 0.14) 0%, rgba(190, 96, 168, 0.12) 100%);
  border-color: rgba(226, 85, 107, 0.40);
}

.big-btn.danger:hover {
  background: linear-gradient(135deg, rgba(226, 85, 107, 0.22) 0%, rgba(190, 96, 168, 0.20) 100%);
  border-color: rgba(226, 85, 107, 0.72);
}

.big-btn.danger .big-btn-arrow {
  color: #d6455d;
}

:root[data-theme="dark"] .big-btn.danger .big-btn-arrow {
  color: #ff98a8;
}

.callout-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.callout p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.step-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.step-list li {
  margin-bottom: 8px;
}

.step-list strong {
  color: var(--text-main);
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kbd-text);
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-radius: 6px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: var(--code-text);
  background: var(--code-bg);
}

.next-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--divider-color);
}

/* Download Cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--dl-bg);
  border: 1px solid var(--dl-border);
  box-shadow: var(--btn-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--dl-bg-hover);
  border-color: var(--dl-border-hover);
  box-shadow: var(--btn-shadow-hover);
}

.download-btn-main {
  min-width: 0;
}

.download-btn-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--btn-title-color);
  line-height: 1.35;
}

.download-btn-sub {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  word-break: break-all;
}

.download-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dl-tag-text);
  background: var(--dl-tag-bg);
  flex-shrink: 0;
}

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

/* Method Cards */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.method-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
}

.method-card.recommended {
  border-color: var(--dl-border);
  background: var(--callout-success-bg);
}

.method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.method-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.method-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
}

.method-card.recommended .method-tag {
  color: var(--dl-tag-text);
  background: var(--dl-tag-bg);
  border-color: var(--dl-border);
}

/* Video Card */
.video-card {
  margin: 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--shot-bg);
  border: 1px solid var(--shot-border);
}

.video-player {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: 12px;
  background: #0d101f;
  outline: none;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0 4px;
}

.video-meta-text {
  font-size: 13px;
  color: var(--text-soft);
}

/* Resident Expert Bot Widget */
.home-body,
.guide-body {
  padding-bottom: 92px;
}

.expert-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--btn-border);
  box-shadow: 0 14px 34px rgba(18, 22, 42, 0.22), 0 0 20px rgba(106, 163, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
  color: var(--text-main);
}

.expert-launcher:hover {
  transform: translateY(-2px);
  border-color: var(--btn-border-hover);
  box-shadow: 0 18px 40px rgba(18, 22, 42, 0.28), 0 0 26px rgba(106, 163, 255, 0.24);
}

.expert-launcher.hidden {
  display: none;
}

.expert-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.expert-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid rgba(106, 163, 255, 0.45);
  background: #f5efe6;
}

.expert-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #27c27e;
  border: 2px solid var(--card-bg);
}

.expert-launcher-text {
  text-align: left;
  line-height: 1.3;
}

.expert-launcher-title {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.expert-launcher-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-soft);
}

.expert-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 920;
  width: min(390px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 36px));
  display: none;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--btn-border);
  box-shadow: 0 24px 64px rgba(12, 16, 36, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.expert-panel.open {
  display: flex;
}

.expert-panel.drag-over::after {
  content: "松开鼠标上传截图，反重力专家立刻帮你识别";
  position: absolute;
  inset: 10px;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 16px;
  border: 2px dashed #7fb3ff;
  background: rgba(34, 52, 108, 0.88);
  pointer-events: none;
}

.expert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider-color);
  background: var(--card-surface);
}

.expert-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.expert-head-left .expert-avatar-wrap {
  width: 38px;
  height: 38px;
}

.expert-head-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.expert-head-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-soft);
}

.expert-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.expert-icon-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.expert-icon-btn:hover {
  background: var(--pill-bg-hover);
  color: var(--text-main);
}

.expert-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expert-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 100%;
}

.expert-msg.user {
  flex-direction: row-reverse;
}

.expert-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  flex-shrink: 0;
  border: 1px solid var(--portrait-border);
}

.expert-bubble {
  max-width: calc(100% - 38px);
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
  color: var(--text-main);
  background: var(--card-surface);
  border: 1px solid var(--card-border);
}

.expert-msg.user .expert-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, #4b7df0 0%, #8e61e2 100%);
  border-color: transparent;
}

.expert-bubble img.msg-thumb {
  display: block;
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  margin-bottom: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.12);
}

.expert-bubble a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 600;
}

.expert-msg.user .expert-bubble a {
  color: #eef4ff;
}

.expert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.expert-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--pill-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.expert-chip:hover {
  background: var(--pill-bg-hover);
  border-color: var(--btn-border-hover);
}

.expert-compose {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--divider-color);
  background: var(--card-surface);
}

.expert-preview-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
}

.expert-preview-bar.show {
  display: flex;
}

.expert-preview-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.expert-preview-left img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.expert-preview-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expert-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.expert-textarea {
  flex: 1;
  min-height: 38px;
  max-height: 96px;
  resize: none;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
}

.expert-textarea:focus {
  border-color: var(--accent-blue);
}

.expert-send-btn {
  padding: 9px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #4b7df0 0%, #8e61e2 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.expert-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.expert-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-soft);
}

.expert-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.expert-upload-btn:hover {
  border-color: var(--btn-border-hover);
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 18, 28, 0.84);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(94vw, 1080px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (max-width: 680px) {
  .panel {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .shot-pair {
    grid-template-columns: 1fr;
  }

  .big-btn {
    padding: 16px 16px;
  }

  .brand-mini {
    display: none;
  }
}

/* Standalone Full-Page Expert Chat */
.expert-page-body {
  padding: 18px 16px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.expert-page-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.expert-full-panel {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  height: calc(100vh - 104px);
  min-height: 540px;
  display: flex;
  flex: 1;
}

.expert-full-panel .expert-messages {
  padding: 20px 22px;
  gap: 16px;
}

.expert-full-panel .expert-bubble {
  max-width: min(760px, calc(100% - 44px));
  padding: 13px 16px;
  font-size: 14.5px;
}

.expert-full-panel .expert-bubble img.msg-thumb {
  max-height: 320px;
  cursor: zoom-in;
}

.expert-full-panel .expert-compose {
  padding: 14px 18px 16px;
}

.expert-full-panel .expert-textarea {
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14.5px;
}

/* Community Forum Page */
.comm-composer {
  padding: 20px;
  border-radius: 18px;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.comm-composer.drag-over {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 131, 235, 0.22);
}

.comm-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comm-input,
.comm-select,
.comm-textarea {
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.comm-input:focus,
.comm-select:focus,
.comm-textarea:focus {
  border-color: var(--accent-blue);
}

.comm-input-title {
  flex: 1;
  min-width: 220px;
}

.comm-input-author {
  width: 170px;
}

.comm-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.comm-upload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.comm-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.comm-thumb-item {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--shot-img-bg);
}

.comm-thumb-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comm-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 22, 34, 0.78);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.comm-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.comm-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.comm-tab.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4b7df0 0%, #8e61e2 100%);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-card {
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
}

.post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.post-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-badge.success {
  color: var(--dl-tag-text);
  background: var(--dl-tag-bg);
  border: 1px solid var(--dl-border);
}

.tag-badge.help {
  color: #d6455d;
  background: rgba(226, 85, 107, 0.14);
  border: 1px solid rgba(226, 85, 107, 0.36);
}

:root[data-theme="dark"] .tag-badge.help {
  color: #ff98a8;
}

.tag-badge.tip {
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: #5c3b00;
  background: linear-gradient(135deg, #ffe29a 0%, #ffc457 100%);
}

.post-author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.post-time {
  font-size: 12px;
  color: var(--text-soft);
}

.post-title {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text-main);
}

.post-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.post-images img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--shot-border);
  background: var(--shot-img-bg);
  cursor: zoom-in;
}

.comment-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--divider-color);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  line-height: 1.55;
}

.comment-item-body {
  min-width: 0;
  color: var(--text-muted);
  word-break: break-word;
}

.comment-item-body strong {
  color: var(--text-main);
}

.comment-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-form .comm-input-reply {
  flex: 1;
  min-width: 180px;
}

/* Clickable Post Summary & Full-Page Detail */
.post-card.summary {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.post-card.summary:hover {
  transform: translateY(-2px);
  border-color: var(--btn-border-hover);
  box-shadow: var(--btn-shadow-hover);
}

.post-summary-preview {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-summary-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.post-summary-thumbs img {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--shot-border);
  background: var(--shot-img-bg);
}

.post-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--divider-color);
  font-size: 13px;
  color: var(--text-soft);
}

.post-summary-enter {
  font-weight: 700;
  color: var(--accent-blue);
}

.post-detail-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.post-detail-images img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--shot-border);
  background: var(--shot-img-bg);
  cursor: zoom-in;
}

/* Toolbox Upload & Cards */
.tool-dropzone {
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 2px dashed var(--btn-border);
  background: var(--pill-bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.tool-dropzone:hover,
.tool-dropzone.drag-over {
  border-color: var(--accent-blue);
  background: var(--pill-bg-hover);
}

.tool-dropzone-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.tool-dropzone-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.tool-progress-wrap {
  display: none;
  margin-top: 12px;
}

.tool-progress-wrap.show {
  display: block;
}

.tool-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--divider-color);
  overflow: hidden;
}

.tool-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4b7df0 0%, #27a272 100%);
  transition: width 0.12s linear;
}

.tool-progress-text {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--divider-color);
}

.tool-file-meta {
  font-size: 13px;
  color: var(--text-soft);
  word-break: break-all;
}
