:root {
  --bg: #f9f3ea;
  --ink: #1f1f1f;
  --accent: #ff7a59;
  --accent-dark: #d95a3c;
  --teal: #0b6e6b;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(31, 31, 31, 0.12);
  --border: rgba(31, 31, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 89, 0.18), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(11, 110, 107, 0.2), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 209, 148, 0.3), transparent 60%);
  z-index: -1;
}

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}

.lang-label {
  margin-left: 16px;
  font-size: 13px;
  color: rgba(31, 31, 31, 0.7);
}

.lang-select {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.legal h1 {
  font-size: clamp(28px, 3.5vw, 40px);
}

.legal h2 {
  margin-top: 28px;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-update,
.legal-note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(31, 31, 31, 0.6);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 40px 0 20px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 16px 0;
}

.subtitle {
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(11, 110, 107, 0.12);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}

.cta,
.ghost,
.small {
  border: none;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 122, 89, 0.28);
}

.cta:active,
.ghost:active,
.small:active {
  transform: translateY(1px);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.cta:disabled,
.ghost:disabled,
.small:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hint {
  color: var(--teal);
  font-weight: 500;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-label {
  color: rgba(31, 31, 31, 0.7);
}

.result-value {
  font-weight: 600;
}

.actions {
  margin-top: 14px;
}

.small {
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
}

.note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(31, 31, 31, 0.6);
}

.panel {
  margin-top: 40px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.panel-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.mono-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.types {
  margin-top: 50px;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.type-card {
  background: var(--card);
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.good {
  background: rgba(11, 110, 107, 0.2);
  color: #05524f;
}

.ok {
  background: rgba(255, 209, 148, 0.4);
  color: #8c5a00;
}

.warn {
  background: rgba(255, 122, 89, 0.25);
  color: #9c3e24;
}

.bad {
  background: rgba(31, 31, 31, 0.15);
  color: #2b2b2b;
}

.types-note {
  margin-top: 16px;
  font-size: 14px;
}

.faq {
  margin-top: 50px;
}

details {
  background: var(--card);
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

summary {
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  text-align: center;
  padding: 30px 0 40px;
  color: rgba(31, 31, 31, 0.6);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 6px;
}

.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: #fff7ef;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.consent-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.consent-link {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 12px;
  }
}
