:root {
  --paper: #f7f5f1;
  --white: #ffffff;
  --ink: #111111;
  --muted: #747474;
  --line: #ddddda;
  --soft: #efede9;
  --red: #e32626;
  --red-dark: #c81919;
  --green: #169c58;
  --blue: #2563eb;
  --radius: 6px;
  color-scheme: light;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.7; }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(680px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 18px; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 650; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button-primary { border-color: var(--red); background: var(--red); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { border-color: var(--red-dark); background: var(--red-dark); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover, .button-outline:focus-visible { background: var(--ink); color: white; }
.button-danger { border-color: #d8332b; background: white; color: #c51f18; }
.button-danger:hover, .button-danger:focus-visible { background: #fff1f0; }
.button-group { display: flex; flex-wrap: wrap; gap: 10px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(17,17,17,.08); background: rgba(247,245,241,.98); }
.header-inner { width: min(1220px, calc(100% - 48px)); min-height: 66px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
#site-nav { display: flex; align-items: center; gap: 32px; }
#site-nav a { font-size: 14px; text-decoration: none; color: #404040; }
#site-nav a:hover, #site-nav a:focus-visible { color: var(--ink); }
.nav-account { padding: 0; border: 0; background: transparent; color: #404040; font-size: 14px; cursor: pointer; }
.nav-account:hover, .nav-account:focus-visible { color: var(--red); }
#site-nav .nav-download { padding: 8px 17px; border-radius: var(--radius); background: var(--ink); color: white; font-weight: 700; }
.menu-button { display: none; min-width: 48px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; }

.hero { min-height: 610px; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { padding: 88px 0 0; text-align: center; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.15; letter-spacing: 0; }
.hero h1 span { font-size: .88em; }
.hero-lead { margin: 18px 0 0; font-size: 27px; font-weight: 750; }
.hero-copy { max-width: 700px; margin: 4px auto 26px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.preview-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; }
.preview-strip figure { height: 160px; margin: 0; padding: 10px; overflow: hidden; border: 1px solid #e7e5e1; border-radius: var(--radius) var(--radius) 0 0; background: white; box-shadow: 0 4px 18px rgba(0,0,0,.035); }
.preview-strip img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.mini-placeholder { height: 100%; display: grid; place-items: center; background: #f1f1ef; color: #777; font-size: 13px; line-height: 1.4; }

.overview { padding: 62px 0 82px; background: var(--paper); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.stats div { display: grid; gap: 2px; }
.stats strong { font-size: 42px; line-height: 1.1; }
.stats span, .overview > p { color: var(--muted); }
.overview > p { margin: 42px 0 0; }

.trust-band { padding: 28px 0; background: var(--soft); border-block: 1px solid #e3e0dc; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust-grid article { display: flex; gap: 14px; }
.trust-grid article > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e2e0dc; color: #6d6d6a; font-size: 12px; }
.trust-grid h2 { margin: 0; font-size: 16px; }
.trust-grid p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.featured, .applications, .license, .community, .contact { padding: 86px 0; }
.section-heading { margin-bottom: 54px; text-align: center; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.section-heading > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.section-heading small { display: block; margin: 5px auto 0; color: #999; }

.feature-row { min-height: 420px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 64px; align-items: center; margin-bottom: 76px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-reverse { grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); }
.feature-reverse .feature-media { order: 2; }
.feature-media { height: 410px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f7f6; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: contain; }
.phone-media img { object-fit: contain; }
.feature-copy h3 { margin: 6px 0 0; font-size: 34px; line-height: 1.25; }
.feature-copy > p:not(.platform):not(.subtitle) { margin: 12px 0 20px; color: #404040; }
.subtitle { margin: 4px 0 0; color: #999; }
.platform { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #999; font-size: 13px; }
.badge { padding: 3px 9px; border-radius: 4px; font-size: 12px; }
.badge.windows { color: var(--blue); background: #eaf0ff; }
.badge.android { color: var(--green); background: #e9f7ef; }
.badge.chrome { color: #bd6d00; background: #fff1d8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: #555; font-size: 13px; }

.applications { background: var(--paper); }
.filters { width: fit-content; margin: -20px auto 30px; padding: 4px; display: flex; gap: 2px; border-radius: var(--radius); background: #e9e7e3; }
.filters button { min-height: 34px; padding: 4px 18px; border: 0; border-radius: 4px; background: transparent; color: #6b6b6b; cursor: pointer; }
.filters button.active { background: var(--ink); color: white; }
.app-list { display: grid; gap: 12px; }
.app-row { display: grid; grid-template-columns: 34px 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.app-row[hidden] { display: none; }
.app-number { align-self: start; color: #aaa; font-size: 12px; }
.app-thumb { width: 80px; height: 80px; margin: 0; padding: 4px; border: 1px solid #e4e4e2; border-radius: var(--radius); overflow: hidden; background: #f7f7f6; }
.app-thumb img { width: 100%; height: 100%; object-fit: contain; }
.app-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #999; font-size: 11px; text-align: center; }
.app-summary h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 17px; }
.app-version { color: #999; font-size: 12px; font-weight: 400; }
.app-summary p { margin: 5px 0 0; color: #666; font-size: 13px; }
.app-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.app-actions .button { min-height: 36px; padding: 5px 12px; font-size: 13px; }
.details-button { border-color: var(--line); background: white; color: var(--ink); }
.details-button:hover { border-color: var(--ink); }

.license { background: var(--paper); }
.trial-panel { max-width: 1000px; margin: 0 auto 38px; padding: 26px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.trial-panel h2 { margin: 0 0 10px; text-align: center; font-size: 20px; }
.trial-panel ol { max-width: 540px; margin: 0 auto; padding: 0; list-style: none; }
.trial-panel li { display: flex; align-items: center; gap: 12px; padding: 5px 0; color: #555; font-size: 14px; }
.trial-panel li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0efec; font-size: 11px; }
.trial-panel > p { margin: 8px 0 0; color: #aaa; text-align: center; font-size: 12px; }
.license .section-heading { margin-bottom: 36px; }
.license-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.license-compare article { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.license-compare h3 { margin: 0 0 14px; font-size: 20px; }
.license-compare ul { margin: 0; padding-left: 18px; color: #555; }
.license-compare li { margin: 8px 0; }
.license-compare li::marker { color: #b9b9b9; }
.license-compare .activated li::marker { color: var(--green); }
.activation-flow { margin-top: 22px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.activation-flow h3 { margin: 0 0 20px; text-align: center; }
.activation-flow ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.activation-flow li { position: relative; padding: 0 18px; text-align: center; }
.activation-flow li:not(:last-child)::after { content: ""; position: absolute; top: 18px; right: -12px; width: 24px; border-top: 1px solid #ccc; }
.activation-flow strong { width: 38px; height: 38px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: #f0efec; font-size: 12px; }
.activation-flow span { display: block; color: #555; font-size: 13px; }
.support-line { margin: 22px 0 0; text-align: center; color: #888; font-size: 13px; }
.support-line a, .email-fallback a, .contact-feedback a { color: var(--red); text-decoration: none; }

.community { background: white; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 64px; align-items: start; }
.community .section-heading { margin-bottom: 34px; text-align: left; }
.message-list { display: grid; gap: 12px; }
.message-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #999; font-size: 12px; }
.message-meta strong { color: var(--ink); font-size: 14px; }
.message-delete { min-height: 30px; margin-left: auto; padding: 3px 10px; font-size: 12px; }
.message-content { margin: 10px 0 0; color: #3e3e3e; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-reply { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--red); background: var(--paper); }
.message-reply strong { font-size: 12px; }
.message-reply p { margin: 4px 0 0; color: #555; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { margin: 0; padding: 30px 20px; border: 1px dashed var(--line); color: #888; text-align: center; }
.load-more { width: 100%; margin-top: 14px; }
.message-compose { position: sticky; top: 94px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.message-compose h3 { margin: 0; font-size: 22px; }
.message-compose > p { margin: 5px 0 22px; color: #777; font-size: 13px; }
#message-form, .account-form, .inline-form { display: grid; gap: 17px; }
.field { color: #333; font-size: 14px; font-weight: 650; }
.field > span { color: var(--red); }
.field { display: grid; gap: 9px; }
.field em { color: #999; font-size: 12px; font-style: normal; font-weight: 400; }
.field textarea, .field input, .admin-card textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: white; outline: 0; }
.field textarea { min-height: 162px; resize: vertical; padding: 14px 16px; }
.field input { min-height: 52px; padding: 10px 16px; }
.field textarea:focus, .field input:focus, .admin-card textarea:focus { border-color: #777; }
.field small { margin-top: -6px; color: #999; font-weight: 400; text-align: right; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-check { display: flex; align-items: flex-start; gap: 10px; color: #666; font-size: 13px; }
.privacy-check input { margin-top: 5px; }
.privacy-check a { color: var(--red); text-decoration: none; }
.feedback-submit { width: 100%; border-color: var(--ink); background: var(--ink); color: white; }
.feedback-submit:hover, .feedback-submit:focus-visible { background: #333; }
.feedback-submit:disabled { border-color: #aaa; background: #aaa; cursor: wait; }
.form-status { min-height: 24px; margin: -12px 0 0; color: #666; text-align: center; font-size: 13px; }
.form-status.error { color: var(--red); }
.form-status.success { color: var(--green); }
.review-note { padding-top: 18px; border-top: 1px solid var(--line); }
.status { padding: 2px 7px; border-radius: 3px; }
.status-pending { background: #fff2d8; color: #8b5a00; }
.status-approved { background: #e4f5eb; color: #117342; }
.status-hidden { background: #eeeeec; color: #666; }

.contact { background: var(--paper); text-align: center; }
.contact h2 { margin: 0; font-size: 32px; }
.contact > .shell > p { color: var(--muted); }
.contact-mail { width: fit-content; margin: 26px auto; padding: 15px 24px; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: left; text-decoration: none; }
.contact-mail span { color: #999; font-size: 12px; }
.contact-mail strong { font-size: 16px; }
.contact-feedback { font-size: 13px; }

.site-footer { padding: 44px 0; background: #191919; color: #d8d8d8; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-inner > div { display: grid; gap: 5px; }
.footer-inner > div:last-child { text-align: right; }
.footer-inner strong { color: white; }
.footer-inner span, .footer-inner a { color: #aaa; font-size: 12px; text-decoration: none; }

dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 22px 70px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog-close { position: sticky; top: 14px; z-index: 2; float: right; width: 40px; height: 40px; margin: 14px 14px 0 0; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 24px; line-height: 1; cursor: pointer; }
.dialog-head { padding: 42px 48px 24px; }
.dialog-head h2, .privacy-dialog h2 { margin: 4px 0 5px; font-size: 30px; }
.dialog-head p { margin: 0; color: #666; }
.dialog-platform { font-size: 12px; font-weight: 700; }
.dialog-media { height: 340px; margin: 0 48px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f7f6; }
.dialog-media img { width: 100%; height: 100%; object-fit: contain; }
.dialog-placeholder { height: 100%; display: grid; place-items: center; color: #888; text-align: center; }
.dialog-columns { padding: 32px 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dialog-columns h3 { margin: 0 0 12px; font-size: 17px; }
.dialog-columns ul, .dialog-columns ol { margin: 0; padding-left: 20px; color: #555; font-size: 14px; }
.dialog-columns li { margin: 6px 0; }
.dialog-downloads { padding: 0 48px 42px; display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-dialog { padding: 42px 48px; }
.privacy-dialog p { color: #555; }
.account-dialog { width: min(760px, calc(100% - 32px)); }
.account-dialog-inner { padding: 44px 48px; display: grid; gap: 32px; }
.account-tabs { width: fit-content; padding: 3px; display: flex; background: var(--soft); border-radius: var(--radius); }
.account-tabs[hidden] { display: none; }
.account-tabs button { min-width: 88px; min-height: 36px; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.account-tabs button.active { background: var(--ink); color: white; }
.account-form h2 { margin: 0 0 5px; }
.account-form[hidden] { display: none; }
.account-help { margin: -5px 0 0; color: #777; font-size: 13px; }
.account-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.account-links button, .text-button { width: fit-content; padding: 0; border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 13px; }
.account-links button[hidden] { display: none; }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.account-heading h2 { margin: 0; }
.account-heading p:not(.eyebrow) { margin: 4px 0 0; color: #777; }
.account-dialog section { padding-top: 24px; border-top: 1px solid var(--line); }
.account-dialog section h3 { margin: 0 0 16px; }
.message-list.compact { max-height: 360px; overflow: auto; }
.message-list.compact .message-card { padding: 16px 18px; }
.inline-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.inline-form .form-status { grid-column: 1 / -1; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-heading select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 5px 10px; }
.admin-stats { color: #777; font-size: 13px; }
.admin-list { display: grid; gap: 12px; max-height: 560px; overflow: auto; }
.admin-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-card textarea { min-height: 88px; margin-top: 14px; padding: 10px 12px; resize: vertical; }
.admin-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions .button { min-height: 36px; padding: 5px 11px; font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { position: relative; }
  .menu-button { display: block; }
  #site-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; padding: 18px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
  #site-nav.open { display: grid; }
  #site-nav a { padding: 7px 4px; }
  .nav-account { padding: 7px 4px; text-align: left; }
  .preview-strip { grid-template-columns: repeat(3, 1fr); }
  .preview-strip figure:nth-child(n+4) { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-reverse .feature-media { order: 0; }
  .feature-media { height: 380px; }
  .app-row { grid-template-columns: 30px 72px minmax(0, 1fr); }
  .app-actions { grid-column: 3; justify-content: flex-start; }
  .activation-flow ol { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .activation-flow li:nth-child(2)::after { display: none; }
  .community-layout { grid-template-columns: 1fr; gap: 38px; }
  .message-compose { position: static; }
  .inline-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1220px); }
  .header-inner { width: min(100% - 28px, 1220px); }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 58px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 21px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; max-width: 230px; margin: 0 auto; }
  .preview-strip { gap: 6px; margin-top: 34px; }
  .preview-strip figure { height: 104px; padding: 5px; }
  .overview { padding: 44px 0 58px; }
  .stats strong { font-size: 32px; }
  .stats span { font-size: 12px; }
  .overview > p { margin-top: 28px; font-size: 13px; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .featured, .applications, .license, .community, .contact { padding: 62px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 28px; }
  .feature-row { min-height: 0; margin-bottom: 60px; }
  .feature-media { height: 270px; padding: 10px; }
  .feature-copy h3 { font-size: 28px; }
  .filters { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .filters button { flex: 0 0 auto; padding-inline: 14px; }
  .app-row { grid-template-columns: 26px 64px minmax(0, 1fr); padding: 14px 12px; gap: 10px; }
  .app-thumb { width: 64px; height: 64px; }
  .app-summary h3 { font-size: 15px; }
  .app-summary p { display: none; }
  .app-actions { grid-column: 2 / -1; }
  .license-compare { grid-template-columns: 1fr; }
  .trial-panel { padding-inline: 20px; }
  .activation-flow { padding-inline: 10px; }
  .activation-flow ol { grid-template-columns: 1fr; }
  .activation-flow li { padding: 8px 16px; }
  .activation-flow li::after { display: none; }
  .choice-row span { padding-inline: 12px; }
  .contact h2 { font-size: 27px; }
  .footer-inner { flex-direction: column; }
  .footer-inner > div:last-child { text-align: left; }
  .dialog-head, .privacy-dialog { padding: 52px 22px 22px; }
  .dialog-head h2 { font-size: 26px; }
  .dialog-media { height: 220px; margin: 0 22px; }
  .dialog-columns { padding: 26px 22px; grid-template-columns: 1fr; gap: 22px; }
  .dialog-downloads { padding: 0 22px 30px; }
  .account-dialog-inner { padding: 50px 22px 28px; }
  .account-heading { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
