:root {
    color-scheme: light;
    --ink: #182e27;
    --muted: #546660;
    --green: #0e5a4a;
    --deep: #113c2d;
    --paper: #f5f7f2;
    --line: #d7e0d8;
    --white: #fff;
    font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, p, dl, dd { margin: 0; }
a { color: var(--green); text-underline-offset: 0.2em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #438e6f; outline-offset: 3px; }

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 8px 12px; background: var(--white); transform: translateY(-200%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { background: var(--white); }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 60px; padding-block: 10px; flex-wrap: wrap; }
.footer-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); border-radius: 9px; }
.brand-mark img { display: block; }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; }
.header-nav a { text-decoration: none; font-weight: 650; }
.header-nav a:hover { text-decoration: underline; }
.main-content { flex: 1; padding-block: clamp(32px, 6vw, 76px); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 8px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-small { min-height: 38px; padding: 6px 13px; }
.button-primary { background: var(--green); color: var(--white); }
.button-primary:hover { background: var(--deep); }
.button-primary:disabled { background: #deebe5; color: #476159; cursor: not-allowed; }
.button-outline { background: var(--white); border-color: var(--line); color: var(--green); }
.button-outline:hover { background: #e9f1eb; }
.eyebrow { color: var(--green); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #4d936b; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.muted { color: var(--muted); overflow-wrap: anywhere; }

.product-hero { max-width: 660px; margin-inline: auto; padding-block: clamp(18px, 3vw, 30px); text-align: center; }
.product-mark { width: 112px; height: 112px; margin: 0 auto 30px; border-radius: 26px; }
.product-hero h1 { margin-block: 8px 12px; font-size: clamp(2.55rem, 7vw, 4.5rem); line-height: 1.1; letter-spacing: -0.035em; }
.product-hero .muted { font-size: clamp(1rem, 2vw, 1.12rem); }
.product-actions { justify-content: center; }
.product-actions .button { min-width: 124px; }
.download-status { color: var(--muted); font-size: 0.85rem; }
.product-hero .download-status { margin-top: 12px; }

.release-page { max-width: 650px; margin-inline: auto; }
.back-link { display: inline-block; margin-bottom: 16px; font-size: 0.9rem; }
.release-card { padding: clamp(20px, 5vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.release-card h1 { margin-block: 4px 22px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; }
.release-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 16px; border-block: 1px solid var(--line); }
.release-facts dt { color: var(--muted); font-size: 0.85rem; }
.release-facts dd { margin-top: 4px; font-weight: 650; overflow-wrap: anywhere; }
.release-notes { margin-top: 24px; }
.release-notes h2 { margin-bottom: 8px; font-size: 1.15rem; }
.release-notes ul { margin: 0; padding-inline-start: 1.3em; }
.release-notes li { overflow-wrap: anywhere; }
.release-actions { align-items: center; }

.auth-card { width: min(100%, 510px); margin-inline: auto; padding: clamp(20px, 5vw, 40px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 15px 40px #183d2610; }
.auth-card h1, .dashboard h1 { margin-block: 4px 8px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 650; }
.field small { color: var(--muted); }
.field input { width: 100%; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid #a9bbb0; border-radius: 8px; background: #fcfdfa; color: var(--ink); }
.captcha-row { display: grid; grid-template-columns: 1fr minmax(0, 150px); align-items: center; gap: 10px; }
.captcha-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.notice { margin-top: 16px; padding: 9px 12px; border-radius: 8px; }
.notice-error { color: #8e2c2c; background: #fbeaea; }
.notice-success { color: #215d3e; background: #e8f4ea; }

.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.role-badge { background: #e1eee4; border: 1px solid #c5d9c9; border-radius: 100px; color: var(--green); padding: 5px 12px; font-size: 0.85rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card, .account-card { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: clamp(18px, 4vw, 28px); }
.stat-card dt, .account-details dt { color: var(--muted); }
.stat-card dd { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 730; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 10px; overflow-wrap: anywhere; }
.stat-primary { background: var(--green); border-color: var(--green); color: var(--white); }
.stat-primary dt { color: #deefe2; }
.account-card { margin-top: 20px; }
.account-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.account-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-details dd { font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .container { width: calc(100% - 32px); }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 390px) {
    .header-nav { gap: 10px; }
    .release-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-details { grid-template-columns: 1fr; }
    .captcha-row { grid-template-columns: 1fr minmax(0, 112px); }
}
