/* 只由公开首页加载。网站外观与软件、私人页面的设置相互独立。 */
:root {
  --site-surface: rgba(255, 255, 255, 0.64);
  --site-soft: rgba(255, 255, 255, 0.4);
  --site-edge: rgba(255, 255, 255, 0.86);
  --site-button: #2c6255;
  --site-glow: rgba(187, 220, 204, 0.36);
  --site-backdrop: rgba(30, 48, 44, 0.22);
}
:root[data-site-accent='blue'] {
  --accent: #496dc0;
  --accent-deep: #36569f;
  --site-button: #3d60b2;
  --site-glow: rgba(187, 203, 242, 0.4);
}
:root[data-site-accent='purple'] {
  --accent: #8063af;
  --accent-deep: #694d98;
  --site-button: #70549e;
  --site-glow: rgba(218, 198, 239, 0.4);
}
:root[data-site-theme='dark'] {
  color-scheme: dark;
  --canvas: #151f21;
  --ink: #e4ede9;
  --muted: #a3b7ae;
  --accent: #9acbb6;
  --accent-deep: #afdbc8;
  --border: rgba(160, 191, 177, 0.18);
  --glass: rgba(35, 50, 49, 0.74);
  --shadow: 0 24px 65px rgba(0, 9, 10, 0.15);
  --site-surface: rgba(36, 51, 50, 0.72);
  --site-soft: rgba(51, 67, 64, 0.46);
  --site-edge: rgba(181, 211, 196, 0.16);
  --site-backdrop: rgba(0, 8, 12, 0.56);
  --site-glow: rgba(61, 106, 90, 0.23);
}
:root[data-site-theme='dark'][data-site-accent='blue'] {
  --accent: #aac2fc;
  --accent-deep: #bfd1fb;
  --site-glow: rgba(68, 94, 150, 0.26);
}
:root[data-site-theme='dark'][data-site-accent='purple'] {
  --accent: #cdb6ec;
  --accent-deep: #d8c3f3;
  --site-glow: rgba(105, 75, 145, 0.26);
}
.home-page {
  background: var(--canvas);
}
.home-page::before {
  background:
    radial-gradient(ellipse at 0 0, var(--site-glow), transparent 52%),
    radial-gradient(ellipse at 100% 25%, var(--site-glow), transparent 56%),
    var(--canvas);
}
.home-page .ambient-one {
  background: var(--site-glow);
}
.home-page .ambient-two {
  background: var(--site-glow);
  opacity: 0.22;
}
.home-page [hidden] {
  display: none !important;
}
.home-page :where(a, button, input):focus-visible {
  outline-color: var(--accent);
}
.home-page .site-header {
  padding: 23px 0;
}
.home-header-actions {
  gap: 17px;
}
.home-page .auth-pill,
.site-settings-trigger {
  background: var(--site-surface);
  border: 1px solid var(--site-edge);
  box-shadow: inset 0 1px 0 var(--site-edge);
}
.home-page .auth-pill:hover {
  background: var(--site-soft);
}
.home-page .brand-mark {
  background: var(--site-button);
}
.site-settings-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  min-height: 40px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}
.site-settings-trigger:hover,
.site-settings-trigger[aria-expanded='true'] {
  color: var(--accent-deep);
  border-color: var(--accent);
}
.home-page .home-main {
  padding-top: 64px;
  padding-bottom: 58px;
  gap: clamp(34px, 5vw, 74px);
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
}
.home-page .hero h1 {
  font-size: clamp(3.1rem, 5.4vw, 4.8rem);
  margin-bottom: 21px;
}
.home-page .hero .intro {
  font-size: 1rem;
  max-width: 510px;
  margin-bottom: 23px;
}
.hero-download-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}
.hero-version {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--site-surface);
  font-size: 0.74rem;
  color: var(--accent-deep);
  font-weight: 700;
}
.hero-platform-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.7;
}
.hero-other-links {
  margin-top: 20px;
}
.home-page .primary-link {
  background: var(--site-button);
}
.home-page .primary-link:hover {
  background: var(--site-button);
  filter: brightness(0.93);
}
.home-page .secondary-link {
  background: var(--site-surface);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 var(--site-edge);
}
.home-page .hero-glass {
  border-color: var(--site-edge);
  background:
    radial-gradient(ellipse at 100% 0, var(--site-glow), transparent 65%),
    var(--site-surface);
  min-height: 0;
  padding: 29px;
}
.home-page .hero-glass::before {
  background: linear-gradient(155deg, var(--site-soft), transparent 75%);
}
.release-product {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 27px;
}
.release-product img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex: none;
}
.release-product .glass-kicker {
  margin: 0 0 5px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}
.release-product strong {
  font-size: 0.88rem;
}
.release-version {
  margin-left: auto;
  font:
    700 0.72rem ui-monospace,
    Consolas,
    monospace;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-deep);
  background: var(--site-soft);
}
.release-highlight h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  letter-spacing: -0.04em;
  margin-bottom: 15px;
}
.release-highlight .glass-content > p:not(.glass-kicker) {
  font-size: 0.8rem;
  max-width: 315px;
}
.release-highlights {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.74rem;
}
.release-highlights > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.release-highlights i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--accent);
  opacity: 0.85;
}
.release-highlight .glass-meta {
  margin-top: 25px;
  padding-top: 18px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.release-highlight .glass-meta a {
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0;
  color: var(--accent-deep);
}
.release-highlight .glass-meta a span {
  font-size: 0.85rem;
  margin-left: 4px;
}
.home-page .public-downloads {
  padding-bottom: 32px;
}
.home-page .tool-download-card {
  padding: 32px;
  gap: 35px;
  background:
    radial-gradient(ellipse at 100% 0, var(--site-glow), transparent 65%),
    var(--site-surface);
  border-color: var(--site-edge);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--site-edge);
}
.home-page .release-badge {
  color: var(--accent-deep);
  border-color: var(--border);
  background: var(--site-soft);
  font-size: 0.62rem;
}
.home-page .tool-features li {
  color: var(--muted);
  background: var(--site-soft);
  border-color: var(--border);
}
.home-page .download-release-note {
  color: var(--muted);
}
.home-page .tool-preview {
  transform: none;
  background: var(--site-surface);
  border-color: var(--site-edge);
  box-shadow:
    0 16px 32px rgba(32, 56, 51, 0.09),
    inset 0 1px 0 var(--site-edge);
}
.home-page .tool-preview:hover {
  transform: translateY(-3px);
}
.home-page .tool-preview-window,
.home-page .tool-preview-caption {
  border-color: var(--border);
}
.home-page .tool-preview-window > p {
  color: var(--muted);
}
.release-notes {
  margin: 0 0 64px;
  padding: 27px 0 0;
}
.release-notes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 23px;
}
.release-notes-heading .eyebrow {
  margin: 0 0 10px;
  font-size: 0.6rem;
}
.release-notes-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}
.release-notes-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
}
.release-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.release-notes-grid article {
  padding: 22px;
  border: 1px solid var(--site-edge);
  border-radius: 18px;
  background: var(--site-soft);
}
.release-notes-grid article > span {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 650;
}
.release-notes-grid h3 {
  margin: 13px 0 8px;
  font-size: 0.9rem;
  font-weight: 650;
}
.release-notes-grid p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--muted);
}
.home-page > .page-shell > footer {
  color: var(--muted);
}

.site-settings-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--site-edge);
  border-radius: 23px;
  box-shadow: 0 28px 90px rgba(16, 35, 31, 0.22);
  overflow: hidden;
}
.site-settings-dialog[open] {
  display: flex;
  flex-direction: column;
}
.site-settings-dialog::backdrop {
  background: var(--site-backdrop);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.site-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 27px 22px;
  background: var(--site-surface);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.site-settings-header .eyebrow {
  margin: 0 0 10px;
  font-size: 0.56rem;
}
.site-settings-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.site-settings-header p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}
.site-close-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--site-soft);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.site-close-button:hover {
  color: var(--ink);
}
.site-settings-form {
  min-height: 0;
  overflow-y: auto;
  padding: 21px 27px;
}
.site-settings-form fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}
.site-settings-form legend {
  font-size: 0.76rem;
  font-weight: 650;
  margin-bottom: 10px;
}
.site-segmented,
.site-color-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.site-settings-form fieldset:nth-child(3) .site-segmented {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-segmented label,
.site-color-options label {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.site-segmented input,
.site-color-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.site-segmented span,
.site-color-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--site-surface);
  color: var(--muted);
  font-size: 0.74rem;
}
.site-segmented input:checked + span,
.site-color-options input:checked + span {
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--site-soft);
  font-weight: 650;
}
.site-settings-form input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.site-color-options i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.site-color-options .green {
  background: #3b7768;
}
.site-color-options .blue {
  background: #496dc0;
}
.site-color-options .purple {
  background: #8063af;
}
.site-setting-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.site-setting-switch label {
  cursor: pointer;
  flex: 1;
}
.site-setting-switch strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 650;
}
.site-setting-switch small {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.7;
  margin-top: 5px;
}
.site-setting-switch input {
  accent-color: var(--site-button);
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex: none;
}
.site-settings-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.8;
}
.site-settings-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 27px;
  background: var(--site-surface);
  border-top: 1px solid var(--border);
  flex: none;
}
.site-settings-footer > div {
  min-width: 0;
}
.site-reset-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 650;
}
.site-settings-footer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.6;
}
.site-done-button {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--site-button);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
}
:root[data-site-density='compact'] .home-main {
  padding-top: 38px;
  padding-bottom: 35px;
  gap: 32px;
}
:root[data-site-density='compact'] .hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  margin-bottom: 16px;
}
:root[data-site-density='compact'] .hero .intro {
  margin-bottom: 17px;
}
:root[data-site-density='compact'] .public-downloads {
  padding-top: 8px;
}
:root[data-site-density='compact'] .tool-download-card {
  padding: 25px;
  gap: 25px;
}
:root[data-site-density='compact'] .tool-description {
  margin-top: 17px;
}
:root[data-site-density='compact'] .release-notes {
  margin-bottom: 38px;
}
:root[data-site-density='compact'] .release-notes-grid article {
  padding: 18px;
}
:root[data-site-preview='hidden'] .tool-preview {
  display: none;
}
:root[data-site-preview='hidden'] .tool-download-card {
  grid-template-columns: 1fr;
}
:root[data-site-preview='hidden'] .tool-description,
:root[data-site-preview='hidden'] .download-release-note {
  max-width: 740px;
}
:root[data-site-motion='reduced'] {
  scroll-behavior: auto;
}
:root[data-site-motion='reduced'] *,
:root[data-site-motion='reduced'] *::before,
:root[data-site-motion='reduced'] *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}
:root[data-site-motion='reduced'] .tool-preview:hover,
:root[data-site-motion='reduced'] .primary-link:hover,
:root[data-site-motion='reduced'] .secondary-link:hover,
:root[data-site-motion='reduced'] .auth-pill:hover {
  transform: none;
}
@media (max-width: 900px) {
  .home-page .tool-download-card {
    grid-template-columns: 1fr;
  }
  .home-page .tool-preview {
    max-width: 650px;
  }
}
@media (max-width: 850px) {
  .home-page .home-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-page .hero-glass {
    max-width: none;
  }
  .release-highlights {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .release-product {
    margin-bottom: 20px;
  }
  .release-notes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .release-notes-grid article {
    padding: 21px;
  }
}
@media (max-width: 600px) {
  .home-page .site-header {
    gap: 10px;
    padding: 19px 0;
  }
  .home-header-actions {
    gap: 9px;
  }
  .site-settings-trigger {
    min-height: 36px;
    padding: 0 10px;
  }
  .site-settings-trigger > span {
    display: none;
  }
  .home-page .hero h1 {
    font-size: clamp(2.75rem, 11.4vw, 3.8rem);
  }
  .home-page .home-main {
    padding-top: 43px;
    padding-bottom: 34px;
  }
  .home-page .hero .intro {
    font-size: 0.9rem;
  }
  .home-page .home-actions {
    gap: 10px;
  }
  .home-page .home-actions .primary-link,
  .home-page .home-actions .secondary-link {
    font-size: 0.8rem;
    min-height: 48px;
  }
  .home-page .hero-glass {
    padding: 25px;
  }
  .home-page .tool-download-card {
    padding: 23px 20px;
    gap: 27px;
  }
  .home-page .tool-product-heading {
    flex-wrap: wrap;
  }
  .home-page .release-badge {
    margin-left: 0;
  }
  .release-notes {
    margin-bottom: 40px;
  }
  .release-notes-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .site-settings-header {
    padding: 22px;
  }
  .site-settings-form {
    padding: 20px 22px;
  }
  .site-settings-footer {
    padding: 15px 22px;
  }
}
@media (max-width: 420px) {
  .home-header-actions .downloads-nav {
    display: none;
  }
  .home-page .auth-pill {
    padding: 0 10px;
    gap: 7px;
    font-size: 0.7rem;
  }
  .home-page .brand {
    gap: 8px;
    font-size: 0.68rem;
  }
  .home-page .brand-mark {
    width: 30px;
    height: 30px;
  }
  .hero-download-note {
    gap: 8px;
    font-size: 0.7rem;
  }
  .site-color-options span {
    font-size: 0.68rem;
    gap: 5px;
  }
  .tool-product-heading h3 {
    font-size: 1.14rem;
  }
}
