* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #393b31; --muted: #676b5e; --line: #dddccd; --paper: #faf8f0; --green: #496244; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
a { color: var(--green); text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6c884d; outline-offset: 5px; }
.download-page { max-width: 1040px; margin: 0 auto; padding: 30px 40px 28px; }
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand, .back { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 650; letter-spacing: 1.8px; }
.brand img { object-fit: contain; margin-right: 2px; }
.brand span { font-weight: 400; color: var(--muted); }
.back { font-size: 13px; color: var(--muted); }
.back span { margin-left: 6px; }
.download-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0 54px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: 2px; color: var(--green); }
h1 { margin: 0 0 16px; font: 600 36px/1.35 "Hannotate SC", "Kaiti SC", "PingFang SC", sans-serif; letter-spacing: -.6px; }
.intro { font-size: 19px; line-height: 1.7; margin: 0; }
.hero-description { margin: 10px 0 26px; color: var(--muted); font-size: 14px; }
.download-action { min-height: 104px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 48px; padding: 10px 22px; border-radius: 12px; background: var(--green); color: #fff; text-decoration: none; font-weight: 550; }
.primary-action:hover { background: #394f35; }
.retry { border: 0; padding: 8px 0; background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.retry:disabled { opacity: .55; cursor: wait; }
.compatibility, .release-note, #download-status { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 9px 0 0; }
.release-note { margin-top: 4px; }
#download-status { max-width: 330px; }
.preview-scene { position: relative; height: 290px; border: 1px solid #d6d7c6; border-radius: 20px; background: #e9eddf; overflow: hidden; }
.preview-menubar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 18px; border-bottom: 1px solid #d6d7c6; background: #f4f5eb; font-size: 10px; color: #7c8270; }
.preview-menubar img { width: 22px; height: 22px; object-fit: contain; }
.preview-caption { margin-top: 24px; text-align: center; font-size: 12px; letter-spacing: 2px; color: #737e63; }
.companion-preview { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; width: 268px; height: 66px; margin: 20px auto 0; background: #fbf7e8; border: 1.5px solid #596248; border-bottom: 4px solid #829567; border-radius: 17px 17px 12px 12px; box-shadow: 0 10px 24px #53623b14; }
#preview { display: flex; align-items: end; gap: 6px; }
#preview svg { width: 34px; height: 38px; }
.preview-divider { width: 1px; height: 30px; background: #d9d9c7; }
.preview-timer { font-size: 17px; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.preview-timer small { display: block; color: #7b826f; font-size: 9px; letter-spacing: 1px; text-align: center; }
.preview-work { width: 73%; height: 80px; margin: -4px auto 0; background: #ffffff3d; border: 1px solid #d8ddcb; border-radius: 0 0 10px 10px; padding: 20px 18px; }
.preview-work span { display: block; height: 4px; margin: 0 0 9px; background: #c9d1bd; border-radius: 2px; width: 73%; }
.preview-work span:nth-child(2) { width: 90%; }
.preview-work span:last-child { width: 45%; }
.preview-label { text-align: center; margin: 13px 0 0; font-size: 10px; color: #7c8270; }
.setup-section { padding: 32px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 24px; }
h2 { font-size: 19px; font-weight: 600; line-height: 1.5; margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.install-steps li { display: flex; align-items: baseline; gap: 12px; }
.step-number { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--green); border-bottom: 1px solid #bdcbb3; line-height: 1.8; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 7px; }
.install-steps p { font-size: 13px; color: var(--muted); line-height: 1.85; margin: 0; }
.install-steps strong { font-weight: 500; overflow-wrap: anywhere; }
.menubar-tip { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 20px; background: #eeeee2; border-radius: 10px; }
.brand-icon { width: 28px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.menubar-tip p { margin: 0; font-size: 13px; line-height: 1.8; }
.menubar-tip strong { font-weight: 550; }
.menubar-tip span { display: block; color: var(--muted); font-size: 12px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 36px 0 38px; }
.help-grid .section-heading { margin-bottom: 18px; }
.daily-actions { margin: 0; }
.daily-actions > div { display: grid; grid-template-columns: 70px 1fr; gap: 16px; margin-bottom: 17px; font-size: 13px; }
.daily-actions dt { font-weight: 550; }
.daily-actions dd { margin: 0; color: var(--muted); }
details { border-bottom: 1px solid var(--line); font-size: 13px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; padding: 12px 0; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--muted); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 18px 14px 0; color: var(--muted); line-height: 1.85; }
.page-footer { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-footer p { margin: 0; }
.noscript-note { font-size: 13px; }
@media (max-width: 760px) {
  .download-page { padding: 24px 24px 28px; max-width: 580px; }
  .download-hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  h1 { font-size: 32px; }
  .intro { font-size: 18px; }
  .hero-description { margin-bottom: 22px; }
  .preview-scene { height: 252px; }
  .preview-caption { margin-top: 15px; }
  .companion-preview { margin-top: 15px; }
  .preview-work { height: 65px; padding-top: 15px; }
  .preview-label { margin-top: 10px; }
  .setup-section { padding-block: 28px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 6px; }
  .install-steps { grid-template-columns: 1fr; gap: 22px; }
  .install-steps li { gap: 16px; }
  .step-number { flex: 0 0 24px; }
  h3 { margin-bottom: 4px; }
  .menubar-tip { align-items: flex-start; padding: 15px; gap: 10px; }
  .brand-icon { width: 24px; height: 28px; }
  .help-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 28px; }
  .daily-actions > div { gap: 16px; margin-bottom: 14px; }
  .page-footer { display: block; }
}
@media (max-width: 360px) {
  .download-page { padding-inline: 18px; }
  .brand { font-size: 12px; }
  .back { font-size: 12px; }
  h1 { font-size: 30px; }
  .companion-preview { width: 244px; gap: 12px; }
}
