:root {
  color-scheme: light;
  --ink: #172134;
  --muted: #667085;
  --line: #e7e9f2;
  --purple: #6957e8;
  --purple-dark: #4d3acb;
  --purple-soft: #f1efff;
  --green: #1aa874;
  --paper: #fff;
  --wash: #f7f7fb;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
[id] { scroll-margin-top: 88px; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(105, 87, 232, .35); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 13px; color: #fff; border-radius: 8px; background: var(--purple-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(231,233,242,.85); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border-radius: 11px; background: linear-gradient(145deg, #8c7cff, #5843db); box-shadow: 0 8px 18px rgba(105,87,232,.24); }
nav { display: flex; gap: 30px; font-size: 14px; color: #475467; }
nav a:hover { color: var(--purple); }

main { overflow: hidden; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 72px; align-items: center; max-width: 1160px; min-height: 660px; padding: 88px 24px 92px; margin: auto; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; top: 80px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(105,87,232,.14), rgba(105,87,232,0) 68%); }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 5vw, 67px); line-height: 1.14; letter-spacing: -.055em; }
.lead { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,33,52,.10); }
.button.primary { color: #fff; border-color: var(--purple); background: var(--purple); }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { background: #fff; }
.microcopy { margin: 14px 0 0; color: #667085; font-size: 12px; }

.product-card { padding: 24px; border: 1px solid #e2defd; border-radius: 24px; background: linear-gradient(160deg, #fff, #f7f5ff); box-shadow: 0 28px 80px rgba(67,51,160,.16); }
.product-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #e9e5ff; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(26,168,116,.12); }
.product-card ol { display: grid; gap: 11px; padding: 0; margin: 18px 0 0; list-style: none; }
.product-card li { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 15px; background: rgba(255,255,255,.88); }
.product-card li > span { color: var(--purple); font: 700 13px/1 system-ui; }
.product-card strong, .product-card small { display: block; }
.product-card small { margin-top: 3px; color: var(--muted); }

.section { max-width: 1160px; padding: 90px 24px; margin: auto; }
.section h2 { max-width: 740px; margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.22; letter-spacing: -.04em; }
.invite-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr); gap: 36px; align-items: center; max-width: 1112px; padding: 42px; margin: 0 auto 40px; border: 1px solid #d9d3ff; border-radius: 24px; background: linear-gradient(135deg, #f8f7ff, #fff); }
.invite-landing[hidden] { display: none; }
.invite-landing h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.invite-landing p { color: var(--muted); }
.invite-code-panel { display: grid; gap: 10px; padding: 24px; border: 1px solid #e2defd; border-radius: 18px; background: #fff; }
.invite-code-panel > span { color: var(--muted); font-size: 13px; }
.invite-code-panel > strong { letter-spacing: .16em; font-size: 25px; }
.invite-code-panel p { min-height: 24px; margin: 0; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.feature-grid article { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.feature-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--purple); background: var(--purple-soft); font-weight: 900; }
.feature-grid h3 { margin: 30px 0 8px; font-size: 20px; }
.feature-grid p { margin: 0; color: var(--muted); }

.start { display: flex; align-items: center; justify-content: space-between; gap: 46px; max-width: 1112px; padding: 52px; border-radius: 26px; color: #fff; background: #1b2032; }
.start .section-kicker { color: #b7adff; }
.start h2 { font-size: clamp(28px, 3.4vw, 42px); }
.start p:not(.section-kicker) { max-width: 760px; margin: 18px 0 0; color: #c6cad5; }
.start .button { flex: 0 0 auto; }

.contact { text-align: center; }
.contact h2 { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 38px auto 0; text-align: left; }
.contact-grid a { display: grid; grid-template-columns: 1fr auto; padding: 24px; border: 1px solid var(--line); border-radius: 17px; transition: .2s ease; }
.contact-grid a:hover { border-color: #c8c0ff; transform: translateY(-2px); }
.contact-grid strong, .contact-grid span { grid-column: 1; }
.contact-grid span { color: var(--muted); font-size: 14px; }
.contact-grid b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--purple); font-size: 24px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1160px; padding: 30px 24px 42px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.analytics-privacy { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.analytics-toggle { padding: 7px 10px; border: 1px solid #d7dce7; border-radius: 9px; color: #566178; background: #fff; font: inherit; white-space: nowrap; cursor: pointer; }
.analytics-toggle:hover { color: var(--purple-dark); border-color: #c8c0ff; }
.config-status { position: fixed; left: 50%; bottom: 18px; z-index: 20; max-width: min(90vw, 680px); padding: 10px 16px; margin: 0; border-radius: 10px; color: #fff; background: #a13535; box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateX(-50%); }
.config-status:empty { display: none; }

@media (max-width: 860px) {
  nav { gap: 14px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 68px; }
  .product-card { max-width: 560px; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .invite-landing { grid-template-columns: 1fr; margin-inline: 18px; padding: 34px 28px; }
  .start { align-items: flex-start; flex-direction: column; margin-inline: 18px; padding: 38px 28px; }
}
@media (max-width: 560px) {
  .site-header { min-height: 64px; padding-inline: 18px; }
  .brand span:last-child { display: none; }
  nav { gap: 10px; }
  .hero { min-height: auto; padding: 54px 18px 72px; }
  h1 { font-size: 42px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 70px 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer, .analytics-privacy { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.info-page { min-height: 100vh; padding: 48px 18px; background: var(--wash); }
.info-card { max-width: 760px; padding: clamp(28px, 6vw, 58px); margin: 0 auto; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 70px rgba(23,33,52,.10); }
.info-card h1 { margin: 12px 0 22px; font-size: clamp(34px, 6vw, 54px); }
.info-card p, .steps { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--purple-dark); font-weight: 700; }
.notice-box { display: grid; gap: 6px; padding: 18px; margin: 28px 0; border-radius: 14px; background: var(--purple-soft); }
.notice-box span { color: var(--muted); }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.steps { display: grid; gap: 12px; padding-left: 22px; margin: 26px 0 32px; }

.download-page-card { max-width: 980px; }
.download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.download-option { display: flex; flex-direction: column; min-height: 360px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #fff, #faf9ff); }
.download-option-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.download-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--purple); background: var(--purple-soft); font-weight: 900; }
.release-status { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.release-status.pending { color: #8b5b13; background: #fff4d9; }
.release-status.review { color: #5141b2; background: #ece9ff; }
.release-status.ready { color: #087a55; background: #dcf8ed; }
.download-option h2 { margin: 24px 0 8px; font-size: 28px; line-height: 1.25; }
.download-option p { flex: 1; margin: 0; color: var(--muted); }
.release-meta { display: grid; gap: 8px; margin: 22px 0; font-size: 13px; }
.release-meta div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.release-meta dt { color: var(--muted); }
.release-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.download-disabled { color: #98a2b3; border-color: #e4e7ec; background: #f2f4f7; cursor: not-allowed; }
.download-disabled:hover { transform: none; box-shadow: none; }

.support-page-shell { max-width: 940px; margin: 0 auto; }
.support-page-intro { margin-bottom: 26px; }
.support-page-intro h1 { margin: 10px 0 14px; font-size: clamp(36px, 6vw, 58px); }
.support-page-intro > p:last-child, .support-client-tip { color: var(--muted); }
.web-support { overflow: hidden; border: 1px solid #dfe3ee; border-radius: 22px; background: #f4f6fa; box-shadow: 0 22px 70px rgba(23,33,52,.11); }
.web-support-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #e1e5ed; background: #fff; }
.web-support-header > div { display: flex; align-items: center; gap: 10px; }
.web-support-header > span { color: var(--muted); font-size: 13px; }
.support-online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(26,168,116,.12); }
.web-support-notice { display: none; padding: 10px 18px; color: #75510b; background: #fff4d9; font-size: 13px; }
.web-support-notice.show { display: block; }
.web-support-notice.error { color: #9b2c2c; background: #fff0f0; }
.web-support-messages { display: flex; flex-direction: column; gap: 14px; min-height: 390px; max-height: 560px; padding: 22px; overflow-y: auto; }
.support-empty { margin: auto; color: var(--muted); text-align: center; }
.support-message-row { display: flex; }
.support-message-row.user { justify-content: flex-end; }
.support-message-row.system { justify-content: center; }
.support-message-card { max-width: min(78%, 620px); padding: 12px 15px; border: 1px solid #dce1eb; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 4px 14px rgba(23,33,52,.05); }
.support-message-row.user .support-message-card { color: #fff; border-color: var(--purple); border-radius: 16px 16px 5px; background: var(--purple); }
.support-message-row.system .support-message-card { max-width: 88%; color: #785312; border: 0; border-radius: 10px; background: #fff4d9; box-shadow: none; text-align: center; }
.support-message-meta { margin-bottom: 5px; color: #7b8497; font-size: 11px; }
.support-message-row.user .support-message-meta { color: #ded9ff; }
.support-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message-state { margin-top: 5px; color: #8c94a5; font-size: 11px; }
.support-message-row.user .support-message-state { color: #ded9ff; }
.support-safety-state { margin-top: 8px; padding: 6px 8px; border-radius: 8px; color: #785312; background: #fff4d9; font-size: 12px; }
.support-message-images { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.support-message-image { display: block; width: 92px; height: 92px; border-radius: 9px; object-fit: cover; background: #eceff5; }
.support-image-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
.selected-images { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px; background: #fff; }
.selected-image { position: relative; margin-top: 12px; }
.selected-image img { display: block; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.selected-image button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: #a13535; cursor: pointer; }
.web-support-compose { padding: 16px 22px 20px; border-top: 1px solid #e1e5ed; background: #fff; }
.web-support-compose textarea { width: 100%; min-height: 110px; resize: vertical; padding: 13px 14px; border: 1px solid #ccd2df; border-radius: 13px; color: var(--ink); font: inherit; }
.web-support-compose textarea:focus { border-color: var(--purple); outline: 3px solid rgba(105,87,232,.13); }
.support-compose-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.support-compose-tools > div { display: flex; align-items: center; gap: 10px; }
.button.compact { min-height: 40px; padding: 0 16px; }
.support-file-input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.support-client-tip { margin: 20px 0 0; }

@media (max-width: 700px) {
  .download-options { grid-template-columns: 1fr; }
  .download-option { min-height: auto; }
  .support-page-shell { padding: 0; }
  .support-page-intro h1 { font-size: 38px; }
  .web-support-messages { min-height: 360px; padding: 15px; }
  .support-message-card { max-width: 88%; }
  .support-compose-tools { align-items: stretch; flex-direction: column; }
  .support-compose-tools > div { justify-content: space-between; }
}
