:root {
  color-scheme: light;
  --brand: #214d3b; --brand-dark: #173e2e; --gold: #c6a65c; --ink: #23392e;
  --secondary: #788078; --line: #e4e5dc; --page: #f8f7f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.topbar { max-width: 1040px; margin: auto; padding: calc(22px + env(safe-area-inset-top)) 24px 0; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--brand); text-decoration: none; }
.brand span { border-left: 1px solid #cecfbf; padding-left: 10px; color: var(--secondary); font-size: 12px; font-weight: 400; }
.page-shell { max-width: 1040px; margin: auto; padding: 0 24px max(24px, env(safe-area-inset-bottom)); }
.download-section { padding: 32px 0 24px; text-align: center; }
.app-icon { display: block; width: 88px; height: 88px; margin: auto; border-radius: 21px; box-shadow: 0 9px 24px #214d3b12; }
h1 { margin: 15px 0 6px; font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; }
.app-description { margin: 0; font-size: 14px; color: var(--secondary); letter-spacing: .12em; }
.download-controls { max-width: 380px; margin: 26px auto 0; }
.platform-tabs { display: flex; gap: 4px; padding: 4px; background: #eeeee6; border-radius: 12px; }
.platform-tabs button { flex: 1; min-width: 0; padding: 11px 5px; border: 0; border-radius: 9px; background: transparent; color: #70786f; font-size: 14px; white-space: nowrap; }
.platform-tabs button[aria-pressed="true"] { background: #fffefb; color: var(--brand); box-shadow: 0 2px 6px #243b2e0a; font-weight: 650; }
.release-summary, .status { margin: 20px 0 18px; min-height: 43px; font-size: 14px; line-height: 1.6; }
.release-summary p { margin: 0; overflow-wrap: anywhere; }
.release-summary p + p { margin-top: 3px; color: var(--secondary); font-size: 12px; }
.status { color: var(--secondary); }
.status.error { color: #a33d31; }
.download-button { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 18px; border-radius: 12px; background: var(--brand); color: white; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: 0 5px 14px #214d3b12; }
.download-button:hover { background: var(--brand-dark); }
.download-button.disabled { pointer-events: none; background: #b6beb3; box-shadow: none; }
.platform-hint { min-height: 19px; margin: 11px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.65; }
.history-link { margin-top: 13px; padding: 6px 18px; border: 0; color: var(--brand); background: transparent; font-size: 13px; }
.history-link span { margin-left: 5px; color: var(--gold); font-size: 18px; vertical-align: -1px; }
.showcase { display: none; }
.showcase.has-preview { display: block; }
.app-preview { padding: 14px 0 30px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--secondary); font-size: 12px; letter-spacing: .15em; }
.phone-preview { display: inline-block; max-width: min(100%, 252px); padding: 6px; border: 1px solid #dedfcf; border-radius: 25px; background: #fffef9; box-shadow: 0 14px 38px #23392e0a; }
.phone-preview img { display: block; max-width: 100%; max-height: 500px; width: auto; height: auto; border-radius: 19px; }
.desktop-qr { display: none; }
.support-sections { max-width: 620px; margin: 4px auto 0; border-top: 1px solid var(--line); }
.info-section { border-bottom: 1px solid var(--line); }
.info-section summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 12px 0; font-size: 14px; cursor: pointer; list-style: none; }
.info-section summary::-webkit-details-marker { display: none; }
.info-section summary span { font-size: 20px; color: #9a9f90; }
.info-section[open] summary span { transform: rotate(90deg); }
.steps { margin: 0; padding: 0 0 16px 22px; color: var(--secondary); font-size: 13px; line-height: 1.8; }
.steps li { padding: 0 0 8px 2px; }
.section-copy { margin: 0; padding: 0 0 18px; color: var(--secondary); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.package-data { margin: 0; padding: 0 0 16px; }
.package-data > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; font-size: 12px; line-height: 1.7; }
.package-data dt { color: var(--secondary); }
.package-data dd { margin: 0; overflow-wrap: anywhere; }
.hash-row dd { display: flex; gap: 10px; align-items: flex-start; }
.hash-row code { min-width: 0; flex: 1; word-break: break-all; font-size: 11px; }
.hash-row button, .text-button { flex-shrink: 0; border: 0; padding: 0; color: var(--brand); background: transparent; font-size: 12px; }
.history-view { max-width: 620px; min-height: 62vh; margin: 32px auto; }
.history-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.history-heading button { width: 34px; height: 44px; border: 0; background: transparent; color: var(--brand); font-size: 32px; }
.history-heading p { margin: 0; color: var(--secondary); font-size: 12px; }
.history-heading h1 { margin: 4px 0 0; font-size: 24px; letter-spacing: 0; }
.history-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.history-item h2 { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; }
.history-item p { margin: 0; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.history-item a { flex-shrink: 0; color: var(--brand); font-size: 13px; text-decoration: none; }
.history-current { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 400; color: #927536; vertical-align: 1px; }
footer { padding: 30px 0 8px; color: #969c90; font-size: 11px; line-height: 1.8; text-align: center; }
footer p { margin: 0 0 3px; }
footer a { color: var(--secondary); text-decoration: none; }
.wechat-guide { position: fixed; inset: 0; z-index: 20; padding: max(72px, env(safe-area-inset-top)) 24px 24px; background: #14291ff2; color: white; text-align: right; }
.guide-arrow { font-size: 48px; line-height: 1; }
.wechat-guide strong { display: block; margin-top: 18px; font-size: 19px; }
.wechat-guide p { font-size: 14px; line-height: 1.6; color: #ffffffbc; }
.wechat-guide button { padding: 10px 20px; border: 1px solid #ffffff70; border-radius: 8px; color: white; background: transparent; }
@media (min-width: 800px) {
  .topbar { text-align: left; padding: 30px 36px 0; }
  .page-shell { padding-left: 36px; padding-right: 36px; }
  .download-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; min-height: 620px; padding: 40px 10px; }
  .download-section { padding: 0; }
  .download-section h1 { font-size: 34px; }
  .app-icon { width: 96px; height: 96px; }
  .showcase, .showcase.has-preview { display: flex; align-items: center; flex-direction: column; justify-content: center; }
  .app-preview { padding: 0 0 24px; }
  .phone-preview img { max-height: 440px; }
  .desktop-qr { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; }
  .desktop-qr img { width: 108px; height: 108px; }
  .desktop-qr h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
  .desktop-qr p { margin: 0; color: var(--secondary); font-size: 11px; }
}
@media (max-width: 360px) { .page-shell { padding-left: 20px; padding-right: 20px; } .download-section { padding-top: 26px; } }
