﻿:root {
  --bg: #f4f8f5;
  --panel: #ffffff;
  --text: #1e2a22;
  --muted: #5d6c62;
  --line: #d6e4d9;
  --accent: #2c6e49;
  --accent-soft: #e8f3ec;
  --danger: #b23a48;
  --shadow: 0 12px 30px rgba(20, 47, 30, 0.08);
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, #ffffff 0%, #f8fbf9 40%, var(--bg) 100%);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(244, 248, 245, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.page {
  padding: 28px 0 56px;
}

.hero {
  padding: 34px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(44, 110, 73, 0.24);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--line);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.panel {
  padding: 20px;
}

.panel h2, .panel h3 {
  margin: 0 0 10px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.kv-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7efe9;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8ab89c, var(--accent));
}

.question-card {
  padding: 20px;
}

.question-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.question-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
}

.options {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: #fff;
}

.option:hover { border-color: #b6cdbd; background: #fafdfb; }
.option input { margin-top: 4px; accent-color: var(--accent); }

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.type-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-thumb-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f8f5;
}

.type-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.type-code {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.type-name {
  font-size: 22px;
  margin: 0;
}

.type-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.result-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.dim-list {
  display: grid;
  gap: 10px;
}

.dim-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.dim-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.dim-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  margin-bottom: 14px;
}

.footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border: 1px solid #f1d9dc;
  background: #fff7f8;
  color: #8b2a36;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.8;
}

.turnstile-wrap {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fcfffd;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .result-hero { grid-template-columns: 1fr; }
  .hero { padding: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--maxw), calc(100% - 20px)); }
  .nav-wrap { height: auto; padding: 12px 0; align-items: flex-start; flex-direction: column; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page { padding-top: 18px; }
  .question-title { font-size: 18px; }
}
