﻿:root {
  --bg: #f4eee4;
  --bg-strong: #efe5d6;
  --page-gradient-start: #f8f4ee;
  --page-gradient-middle: #f4eee4;
  --page-gradient-end: #efe5d6;
  --page-radial-warm: rgba(255, 135, 92, 0.18);
  --page-radial-cool: rgba(166, 225, 196, 0.22);
  --page-grid-line: rgba(19, 19, 19, 0.03);
  --hero-card-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
  --panel-dark-bg: linear-gradient(145deg, #151a22 0%, #0f1319 100%);
  --panel-light-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  --info-card-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.55));
  --ink: #131313;
  --ink-soft: #59544d;
  --ink-inverse: #faf8f4;
  --ink-inverse-soft: rgba(250, 248, 244, 0.74);
  --accent: #ff6a3d;
  --accent-deep: #dd4c1f;
  --accent-hover: #ff7a52;
  --mint: #a6e1c4;
  --line: rgba(19, 19, 19, 0.1);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 44px rgba(24, 23, 20, 0.11);
  --shadow-strong: 0 20px 44px rgba(7, 8, 11, 0.28);
  --focus-ring: rgba(255, 106, 61, 0.26);
  --focus-shadow: rgba(255, 106, 61, 0.14);
  --badge-bg: rgba(19, 19, 19, 0.05);
  --badge-ink: #131313;
  --theme-field-bg: rgba(19, 19, 19, 0.04);
  --theme-field-border: rgba(19, 19, 19, 0.08);
  --theme-field-shadow: 0 10px 24px rgba(24, 23, 20, 0.08);
  --theme-field-ink: #131313;
  --theme-field-arrow: #131313;
  --theme-menu-bg: rgba(255, 255, 255, 0.98);
  --theme-menu-border: rgba(19, 19, 19, 0.08);
  --theme-menu-shadow: 0 18px 38px rgba(24, 23, 20, 0.16);
  --theme-option-hover-bg: rgba(19, 19, 19, 0.05);
  --theme-option-selected-bg: rgba(19, 19, 19, 0.08);
  --theme-option-selected-ink: #131313;
  --input-bg: rgba(255, 255, 255, 0.92);
  --input-border: rgba(19, 19, 19, 0.1);
  --input-ink: #131313;
  --input-highlight: rgba(255, 255, 255, 0.38);
  --input-dark-bg: rgba(255, 255, 255, 0.96);
  --input-dark-border: rgba(255, 255, 255, 0.14);
  --input-dark-ink: #131313;
  --input-dark-highlight: rgba(255, 255, 255, 0.38);
  --button-primary-bg: #111111;
  --button-primary-bg-hover: #222222;
  --button-primary-ink: #ffffff;
  --button-primary-shadow: rgba(0, 0, 0, 0.12);
  --button-secondary-light-bg: rgba(19, 19, 19, 0.06);
  --button-secondary-light-border: rgba(19, 19, 19, 0.08);
  --button-secondary-dark-bg: rgba(255, 255, 255, 0.14);
  --button-secondary-dark-border: rgba(255, 255, 255, 0.16);
  --button-ghost-light-border: rgba(19, 19, 19, 0.18);
  --button-ghost-dark-border: rgba(255, 255, 255, 0.28);
  --result-dark-bg: rgba(255, 255, 255, 0.06);
  --result-dark-border: rgba(255, 255, 255, 0.12);
  --result-light-bg: rgba(19, 19, 19, 0.03);
  --result-light-border: rgba(19, 19, 19, 0.08);
  --result-success-bg: rgba(166, 225, 196, 0.14);
  --result-success-border: rgba(166, 225, 196, 0.4);
  --result-error-bg: rgba(255, 106, 61, 0.14);
  --result-error-border: rgba(255, 106, 61, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1319;
  --bg-strong: #0a0e13;
  --page-gradient-start: #161d27;
  --page-gradient-middle: #0f1319;
  --page-gradient-end: #0a0e13;
  --page-radial-warm: rgba(255, 106, 61, 0.16);
  --page-radial-cool: rgba(104, 180, 154, 0.14);
  --page-grid-line: rgba(255, 255, 255, 0.05);
  --hero-card-bg: linear-gradient(145deg, rgba(23, 29, 39, 0.92), rgba(12, 17, 23, 0.88));
  --panel-dark-bg: linear-gradient(145deg, #111720 0%, #0b1016 100%);
  --panel-light-bg: linear-gradient(145deg, rgba(22, 29, 39, 0.94), rgba(13, 18, 25, 0.9));
  --info-card-bg: linear-gradient(145deg, rgba(22, 29, 39, 0.92), rgba(13, 18, 25, 0.88));
  --ink: #edf1f6;
  --ink-soft: #a9b5c3;
  --ink-inverse: #f7fafc;
  --ink-inverse-soft: rgba(237, 241, 246, 0.76);
  --accent: #ff7a52;
  --accent-deep: #ff9a78;
  --accent-hover: #ff926f;
  --mint: #7dc7a6;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 20px 44px rgba(0, 0, 0, 0.42);
  --focus-ring: rgba(255, 122, 82, 0.26);
  --focus-shadow: rgba(255, 122, 82, 0.16);
  --badge-bg: rgba(255, 255, 255, 0.08);
  --badge-ink: #edf1f6;
  --theme-field-bg: rgba(255, 255, 255, 0.08);
  --theme-field-border: rgba(255, 255, 255, 0.14);
  --theme-field-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  --theme-field-ink: #f7fafc;
  --theme-field-arrow: #f7fafc;
  --theme-menu-bg: rgba(18, 25, 34, 0.98);
  --theme-menu-border: rgba(255, 255, 255, 0.12);
  --theme-menu-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  --theme-option-hover-bg: rgba(255, 255, 255, 0.08);
  --theme-option-selected-bg: rgba(255, 122, 82, 0.18);
  --theme-option-selected-ink: #f7fafc;
  --input-bg: rgba(17, 23, 31, 0.92);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-ink: #edf1f6;
  --input-highlight: rgba(255, 255, 255, 0.04);
  --input-dark-bg: rgba(13, 18, 25, 0.94);
  --input-dark-border: rgba(255, 255, 255, 0.2);
  --input-dark-ink: #f7fafc;
  --input-dark-highlight: rgba(255, 255, 255, 0.04);
  --button-primary-bg: #ffffff;
  --button-primary-bg-hover: #e8e8e8;
  --button-primary-ink: #111111;
  --button-primary-shadow: rgba(255, 255, 255, 0.18);
  --button-secondary-light-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-light-border: rgba(255, 255, 255, 0.12);
  --button-secondary-dark-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-dark-border: rgba(255, 255, 255, 0.16);
  --button-ghost-light-border: rgba(255, 255, 255, 0.2);
  --button-ghost-dark-border: rgba(255, 255, 255, 0.3);
  --result-dark-bg: rgba(255, 255, 255, 0.06);
  --result-dark-border: rgba(255, 255, 255, 0.14);
  --result-light-bg: rgba(255, 255, 255, 0.05);
  --result-light-border: rgba(255, 255, 255, 0.1);
  --result-success-bg: rgba(125, 199, 166, 0.14);
  --result-success-border: rgba(125, 199, 166, 0.34);
  --result-error-bg: rgba(255, 122, 82, 0.18);
  --result-error-border: rgba(255, 122, 82, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.68;
  background:
    radial-gradient(circle at top left, var(--page-radial-warm), transparent 28%),
    radial-gradient(circle at 85% 15%, var(--page-radial-cool), transparent 24%),
    linear-gradient(180deg, var(--page-gradient-start) 0%, var(--page-gradient-middle) 56%, var(--page-gradient-end) 100%);
  transition: background-color 200ms ease, color 200ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--page-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 78%);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
  position: relative;
}

.hero {
  margin-bottom: 20px;
}

.hero-card,
.panel,
.info-card,
.noscript-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: visible;
  padding: 28px;
  background: var(--hero-card-bg);
  backdrop-filter: blur(18px);
  z-index: 2;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}


a.theme-select-trigger {
  width: fit-content;
  text-decoration: none;
}
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.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;
}

.theme-select-shell {
  position: relative;
  width: fit-content;
  z-index: 6;
}

.theme-select-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--theme-field-border);
  border-radius: 999px;
  background: var(--theme-field-bg);
  color: var(--theme-field-ink);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--theme-field-shadow);
  backdrop-filter: blur(16px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.theme-select-trigger:hover {
  transform: translateY(-1px);
}

.theme-select-trigger:focus-visible,
.button:focus-visible,
.field input:focus-visible,
.theme-option:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-select-trigger:focus {
  outline: none;
}

.theme-select-arrow {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;

  align-self: center;
  color: var(--theme-field-arrow);
  display: block;
  transform-origin: center;
  transition: transform 160ms ease;
}

.theme-select-shell[data-open="true"] .theme-select-arrow {
  transform: rotate(180deg);
}

.theme-select-shell[data-open="true"] .theme-select-trigger {
  border-color: var(--accent);
  background: var(--theme-option-hover-bg);
}

.theme-select-value {
  display: block;
  flex: 1 1 auto;
  color: inherit;
}

.theme-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid var(--theme-menu-border);
  background: var(--theme-menu-bg);
  box-shadow: var(--theme-menu-shadow);
  backdrop-filter: blur(18px);
}

.theme-select-menu[hidden] {
  display: none;
}

.theme-option {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--theme-field-ink);
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.theme-option:hover {
  background: var(--theme-option-hover-bg);
}

.theme-option[data-selected="true"] {
  background: var(--theme-option-selected-bg);
  color: var(--theme-option-selected-ink);
}

.theme-option-label {
  display: inline-block;
}

.theme-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.theme-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.theme-icon use {
  pointer-events: none;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.32rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 48rem;
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.88;
  color: var(--ink-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-badges span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: 24px;
  backdrop-filter: blur(18px);
}

.panel-dark {
  background: var(--panel-dark-bg);
  color: var(--ink-inverse);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.panel-light {
  background: var(--panel-light-bg);
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.72;
}

h2 {
  margin: 0;
  font-size: clamp(1.16rem, 1.7vw, 1.52rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.field small {
  display: block;
  min-height: 3.44em;
  font-size: 0.82rem;
  line-height: 1.72;
  color: inherit;
  opacity: 0.74;
}

.panel-dark h2,
.panel-dark .field > span,
.panel-dark .result-label,
.panel-dark .result-value,
.panel-dark .button-secondary,
.panel-dark .button-ghost {
  color: var(--ink-inverse);
}

.panel-dark .field small,
.panel-dark .result-status,
.panel-dark .result-note,
.panel-dark .kicker {
  color: var(--ink-inverse-soft);
  opacity: 1;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 var(--input-highlight);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease,
    background-color 180ms ease, color 180ms ease;
}

.panel-dark .field input {
  background: var(--input-dark-bg);
  border-color: var(--input-dark-border);
  color: var(--input-dark-ink);
  box-shadow: inset 0 1px 0 var(--input-dark-highlight);
}

.panel-dark .field input::placeholder {
  color: var(--ink-inverse-soft);
}

.field input:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-shadow);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-ink);
  box-shadow: 0 12px 20px var(--button-primary-shadow);
}

.button-primary:hover {
  background: var(--button-primary-bg-hover);
}

.button-secondary {
  background: var(--button-secondary-dark-bg);
  color: inherit;
  border-color: var(--button-secondary-dark-border);
}

.panel-light .button-secondary {
  background: var(--button-secondary-light-bg);
  border-color: var(--button-secondary-light-border);
}

.button-ghost {
  background: transparent;
  color: inherit;
  border-color: var(--button-ghost-dark-border);
  opacity: 0.82;
}

.panel-light .button-ghost {
  border-color: var(--button-ghost-light-border);
}

.result-block {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: var(--result-dark-bg);
  border: 1px solid var(--result-dark-border);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.panel-dark .result-block {
  color: var(--ink-inverse);
}

.panel-light .result-block {
  background: var(--result-light-bg);
  border-color: var(--result-light-border);
}

.result-block[data-state="success"] {
  background: var(--result-success-bg);
  border-color: var(--result-success-border);
}

.result-block[data-state="error"] {
  background: var(--result-error-bg);
  border-color: var(--result-error-border);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.result-label,
.result-status {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.result-status {
  opacity: 0.72;
}

.result-value {
  display: block;
  min-height: 46px;
  font-family: var(--mono);
  font-size: clamp(1.22rem, 2.35vw, 1.88rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.result-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.8;
  opacity: 0.82;
}

.result-note:empty {
  display: none;
}

.info-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 20px;
  background: var(--info-card-bg);
  backdrop-filter: blur(14px);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.info-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.86;
}

.noscript-banner {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 16px 18px;
  background: rgba(255, 106, 61, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card,
  .panel,
  .info-card {
    animation: rise-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .panel:nth-of-type(1) {
    animation-delay: 110ms;
  }

  .panel:nth-of-type(2) {
    animation-delay: 160ms;
  }

  .info-card:nth-of-type(1) {
    animation-delay: 200ms;
  }

  .info-card:nth-of-type(2) {
    animation-delay: 240ms;
  }

  .info-card:nth-of-type(3) {
    animation-delay: 280ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    max-width: 100%;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding: 18px 0 24px;
  }

  .hero-card,
  .panel,
  .info-card {
    border-radius: 24px;
    padding: 20px;
  }

  .hero-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-card h1 {
    order: 1;
    flex: 0 0 100%;
  }

  .hero-copy {
    order: 2;
    flex: 0 0 100%;
  }

  .hero-badges {
    order: 3;
    flex: 1 1 auto;
  }

  .hero-head {
    order: 4;
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-top: 20px;
  }

  h1 {
    font-size: 1.32rem;
    line-height: 1.26;
  }

  .hero-copy,
  .result-note,
  .info-card p {
    font-size: 0.84rem;
  }

  .field small {
    min-height: 0;
  }

  .action-row .button {
    flex: 1 1 100%;
  }
}