:root {
  --bg: #f8f7f4;
  --text: #1a1a1a;
  --muted: #666666;
  --muted-light: #9b9a97;
  --line: #e9e9e7;
  --line-soft: #f0efe9;
  --card-bg: #ffffff;
  --brand: #d46a2f;
  --brand-soft: #fff5ee;
  --brand-glow: rgba(212, 106, 47, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 22px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  border-radius: 8px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 244px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--card-bg);
}

.sidebar-logo {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 26px;
  color: var(--text);
  padding: 6px 0;
}

.sidebar-logo-link {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  padding: 5px 8px 7px;
  margin: -5px -8px -7px;
  transform-origin: left center;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.sidebar-logo-link:hover {
  color: var(--brand);
  text-decoration: none;
  background: linear-gradient(135deg, #fffaf4, #fff2e7);
  box-shadow: 0 10px 26px rgba(212, 106, 47, 0.12);
  transform: scale(1.018);
}

.sidebar-logo-link::after {
  content: attr(data-home-hint);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1f232b, #2b3038);
  box-shadow: 0 10px 28px rgba(31, 35, 43, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.sidebar-logo-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-logo-link:focus-visible {
  outline: 2px solid rgba(212, 106, 47, 0.3);
  outline-offset: 3px;
}

.sidebar-toggle {
  display: none;
}

.sidebar-logo small {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.sidebar-logo span {
  color: var(--muted-light);
  font-weight: 400;
  font-size: 0.94em;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.sidebar-link {
  display: block;
  font-size: 14px;
  color: #555555;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: #f0ede8;
  color: var(--text);
}

.sidebar-link.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-soft);
}

.main {
  flex: 1;
  padding: 64px 80px;
  max-width: 960px;
}

.page-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}

.subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 44px;
  line-height: 1.6;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 52px 0 18px;
  color: var(--text);
  padding-top: 44px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 14px;
  color: var(--text);
}

p {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text);
}

.highlight-box {
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  margin: 14px 0;
  background: linear-gradient(to right, #fffaf5, #fffcf9);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  box-shadow: 0 1px 4px var(--brand-glow);
}

.card,
.step-box,
.scenario-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
}

.card,
.resource-card {
  padding: 16px 20px;
  margin-bottom: 10px;
}

.card:hover,
.step-box:hover,
.scenario-card:hover,
.resource-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: #d4b8a0;
}

.card,
.step-box,
.scenario-card,
.resource-card {
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card h4,
.step-box h4,
.scenario-card h4,
.resource-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text);
}

.card p,
.step-box p,
.scenario-card p,
.resource-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.step-box {
  padding: 18px;
}

.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #e07a42);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.scenario-card {
  padding: 16px 20px;
  margin-bottom: 10px;
}

.scenario-card .role-tag {
  display: inline-block;
  padding: 3px 9px;
  background: linear-gradient(135deg, #f7f6f3, #f0ede8);
  border: 1px solid #e0ddd8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #888888;
}

.mistake-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.mistake-item:last-child,
.faq-item:last-child {
  border-bottom: none;
}

.mistake-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #e07a42);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mistake-item p {
  font-size: 15px;
  line-height: 1.6;
}

.mistake-item strong {
  font-weight: 700;
}

.faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.template-block {
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}

.template-block .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-block p {
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.75;
}

.section-intro {
  font-size: 15px;
  color: #888888;
  margin-bottom: 20px;
}

.resource-card h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.resource-card h4 .platform-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f7f6f3, #f0ede8);
  border: 1px solid #e0ddd8;
  border-radius: 20px;
  color: #888888;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.resource-card h4 .link-icon {
  font-size: 12px;
  color: var(--brand);
  flex-shrink: 0;
}

.resource-card h4 a {
  color: var(--text);
  transition: color 0.15s;
}

.resource-card h4 a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.bottom-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

.bottom-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, transform 0.15s;
}

.nav-prev,
.nav-next-alt {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--line);
}

.nav-prev:hover {
  background: #f7f6f3;
  transform: translateX(-2px);
}

.nav-next-alt:hover {
  background: #f7f6f3;
  transform: translateX(2px);
}

.spacer {
  height: 48px;
}

.toc {
  display: none;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #b0aaa0;
  text-align: center;
}

/* ── 搜索功能 ── */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  margin-top: 4px;
  background: #f7f6f3;
  border: 1px solid #e9e9e7;
  border-radius: 6px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  font-family: inherit;
}
.search-trigger:hover { background: #f0ede8; border-color: #d4b8a0; color: #555; }
.search-trigger .kbd {
  margin-left: auto;
  font-size: 10px;
  background: #fff;
  border: 1px solid #e9e9e7;
  border-radius: 3px;
  padding: 1px 5px;
  color: #aaa;
  font-family: monospace;
}
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.active { display: flex; }
.search-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0ede8;
}
.search-input-wrap svg { flex-shrink: 0; color: #888; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  background: transparent;
}
.search-input::placeholder { color: #bbb; }
.search-results { padding: 8px 0; max-height: 400px; overflow-y: auto; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover { background: #f7f6f3; }
.search-result-item .result-num {
  font-size: 11px;
  font-weight: 700;
  color: #d46a2f;
  background: #fff5ee;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.search-result-item .result-num.resource {
  color: #888;
  background: #f5f4f0;
}
.search-result-item .result-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.search-result-item .result-type { font-size: 11px; color: #aaa; margin-top: 1px; }
.search-no-result { padding: 24px 18px; text-align: center; color: #aaa; font-size: 14px; }
.search-close {
  padding: 12px 18px;
  border-top: 1px solid #f0ede8;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

.back-link {
  margin-bottom: 16px;
}

.back-link a {
  font-size: 14px;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notice-box {
  border-left: 4px solid var(--brand);
  background: #fffaf5;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.notice-list {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.notice-list a {
  color: var(--brand);
  font-weight: 600;
}

.media-frame {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.media-frame img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.media-frame--strong {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-stack {
  margin-bottom: 24px;
}

.section-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.soft-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #f7f6f3;
}

.install-steps {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
}

.install-step {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.install-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.install-step--media {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.step-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-content {
  font-size: 15px;
  color: var(--text);
}

.install-step-title {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.install-step-note {
  margin-left: 44px;
  font-size: 14px;
  color: #444444;
  margin-top: 4px;
}

.install-step-note a {
  color: var(--brand);
  font-weight: 600;
}

.install-step-image {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.platform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #f7f6f3;
  margin-bottom: 12px;
}

.platform-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.platform-card-preview {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.platform-card-preview img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.platform-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.platform-card-copy {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.action-link--dark { background: #1a1a1a; }
.action-link--blue { background: #007ecc; }
.action-link--github { background: #24292e; }
.action-link--vscode { background: #007acc; }

.inline-code {
  background: var(--line);
  padding: 2px 6px;
  border-radius: 4px;
}

.terminal-block {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.terminal-text {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  color: #cccccc;
  line-height: 2;
}

.terminal-line {
  display: block;
}

.terminal-line + .terminal-line {
  margin-top: 4px;
}

.terminal-prompt { color: #10A37F; }
.terminal-path { color: #e8d5b7; }
.terminal-command,
.terminal-output { color: #6b6b6b; }
.terminal-success { color: #10A37F; }

.lesson-complete {
  text-align: center;
  padding: 36px 0 20px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

.complete-btn {
  background: linear-gradient(135deg, #d46a2f, #e07a42);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 106, 47, 0.35);
  transition: all 0.2s;
}

.complete-tip {
  font-size: 12px;
  color: #c0b8b0;
  margin-top: 10px;
  margin-bottom: 0;
}

/* ── 恭喜学完 ── */
.complete-banner {
  background: linear-gradient(135deg, #fff8f0, #fff3e8);
  border: 1px solid #f5d8b8;
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 12px;
  text-align: center;
}
.complete-banner .check-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #d46a2f, #e07a42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,106,47,0.35);
}
.complete-banner h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.complete-banner p { font-size: 14px; color: #888; margin-bottom: 0; }
.complete-banner .next-hint {
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
}
.complete-banner .next-hint a { color: #d46a2f; font-weight: 600; }
.complete-banner .next-hint a:hover { text-decoration: underline; }

/* ── 移动端优化 ── */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .layout {
    display: block;
    min-height: auto;
    padding-bottom: 0;
  }

  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(24,18,12,0.08);
    overflow: clip;
    transition: max-height 0.22s ease, box-shadow 0.22s ease;
    max-height: 64px;
  }

  .sidebar.expanded {
    max-height: calc(100vh - 12px);
    overflow-y: auto;
  }

  .sidebar-logo {
    padding: 14px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }

  .sidebar-logo::after {
    content: none;
    display: none;
  }

  .sidebar-logo-link {
    flex: 1;
    min-width: 0;
    margin: -4px -8px -6px;
    padding: 4px 8px 6px;
  }

  .sidebar-logo-link::after {
    display: none;
  }

  .sidebar-logo small {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .sidebar-logo span {
    font-size: 0.9em;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff8f1, #fff1e4);
    color: #7d6a59;
    border-color: #ebd9c7;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .sidebar-section {
    display: none;
    padding: 0 14px;
    margin: 0 0 14px;
  }

  .sidebar .search-trigger {
    display: none;
    margin: 0 14px 14px;
  }

  .sidebar.expanded .sidebar-section,
  .sidebar.expanded .search-trigger {
    display: block;
  }

  .sidebar-link {
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 10px;
    margin-bottom: 4px;
  }

  .sidebar-link.active {
    font-size: 15px;
  }

  .main {
    max-width: 100%;
    padding: 88px 18px 28px;
  }

  h1 {
    font-size: 30px;
    margin-bottom: 12px;
    line-height: 1.14;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 26px;
    line-height: 1.7;
  }

  h2 {
    font-size: 20px;
    margin: 34px 0 14px;
    padding-top: 24px;
  }

  p {
    font-size: 15px;
    line-height: 1.75;
  }

  .page-label {
    font-size: 11px;
    margin-bottom: 8px;
  }

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

  .back-link {
    margin-bottom: 14px !important;
  }

  .card,
  .resource-card,
  .scenario-card {
    padding: 16px 15px;
    border-radius: 14px;
  }

  .card h4,
  .resource-card h4,
  .scenario-card h4 {
    font-size: 15px;
  }

  .card p,
  .resource-card p,
  .scenario-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 图片圆角统一 */
  img {
    border-radius: 10px;
  }

  /* 模板代码块 */
  .template-block {
    border-radius: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .template-block p {
    font-size: 12.5px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .bottom-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 18px;
    margin-top: 32px;
  }

  .bottom-nav a {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .highlight-box {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.75;
  }

  /* 场景卡片 */
  .scenario-card .role-tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* 平台标签 */
  .resource-card h4 .platform-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  footer {
    padding: 20px 0;
    font-size: 12px;
  }

  .search-overlay { padding: 14px 10px 0; align-items: flex-start; }
  .search-box { border-radius: 16px; max-width: 100%; max-height: min(82vh, 720px); }
  .search-results { max-height: min(58vh, 520px); }

  .complete-banner { padding: 20px 16px; }
  .complete-banner h3 { font-size: 16px; }
}

/* ── 侧边栏折叠按钮 ── */
.sidebar-logo {
  cursor: pointer;
  user-select: none;
}

/* 最新动态折叠 */
.update-more {
  margin-top: 6px;
  border-top: 1px solid #eee4d9;
}

.update-more[open] {
  padding-top: 4px;
}

.update-more-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 0 8px;
  cursor: pointer;
  color: #7f746a;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.update-more-toggle::-webkit-details-marker {
  display: none;
}

.update-more-toggle:hover {
  color: #d46a2f;
}

.update-more-toggle::after {
  content: "↓";
  font-size: 13px;
  color: #b38c6a;
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.update-more[open] .update-more-toggle::after {
  transform: rotate(180deg);
}

.update-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4e9;
  color: #c9733b;
  font-size: 12px;
  font-weight: 700;
}

.update-more-list .update-item:first-child {
  border-top: 1px solid #eee4d9;
}

/* 手机端进度条和CTA */
@media (max-width: 768px) {
  #site-progress {
    border-radius: 10px;
    padding: 14px 16px !important;
    margin-bottom: 24px !important;
  }

  .cta-section[style*="border-radius"] {
    padding: 28px 20px !important;
    border-radius: 14px !important;
    margin: 28px 0 !important;
  }

  .cta-section[style*="border-radius"] .cta-title {
    font-size: 22px !important;
  }

  #lesson-complete-btn {
    padding: 28px 0 16px !important;
    margin-top: 32px !important;
  }

  .lesson-complete {
    padding: 28px 0 16px;
    margin-top: 32px;
  }

  #completeBtn {
    padding: 12px 28px !important;
    font-size: 15px !important;
  }

  .complete-btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .platform-card-grid {
    grid-template-columns: 1fr;
  }

  .install-step--media {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .install-step-note {
    margin-left: 0;
  }

  .update-more-toggle {
    padding: 12px 0 8px;
    font-size: 13px;
  }

  .update-more-count {
    min-width: 28px;
    height: 22px;
    padding: 0 7px;
    font-size: 12px;
  }
}
