/* ===== AI人格测试 - 样式 ===== */
:root {
  --purple: #7C3AED;
  --purple-light: #8B5CF6;
  --purple-dark: #6D28D9;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --cyan-dark: #0891B2;
  --dark: #1e1b2e;
  --dark-light: #2d2a44;
  --cream: #f5f0ff;
  --cream-dark: #e8e0f0;
  --text: #2d2a44;
  --text-light: #6b6580;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(30,27,46,0.1);
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Navigation ===== */
nav {
  background: var(--dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav .logo span { color: var(--cyan); }

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

nav .nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s;
  opacity: 0.8;
}

nav .nav-links a:hover { background: var(--dark-light); opacity: 1; }

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--cream);
}

.hero .badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 .highlight { color: var(--cyan); }

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.8;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero .cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(255,255,255,0.05);
}

/* ===== Section ===== */
.section {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section .subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
}

/* ===== Type Grid ===== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.type-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  border: 2px solid transparent;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,27,46,0.15);
  border-color: var(--purple);
}

.type-card .card-emoji { font-size: 28px; margin-bottom: 8px; }

.type-card .card-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
  background: rgba(124,58,237,0.1);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}

.type-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.type-card .card-eng {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.type-card .card-tagline {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Test Page ===== */
.test-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.test-progress {
  margin-bottom: 40px;
}

.test-progress .progress-bar {
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.test-progress .progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.test-progress .progress-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light);
}

.test-question {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  flex: 1;
}

.test-question .q-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.test-question .q-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--dark);
}

.test-question .options { display: flex; flex-direction: column; gap: 10px; }

.test-question .option {
  padding: 16px 20px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  line-height: 1.5;
  background: var(--white);
  text-align: left;
  font-family: var(--font-sans);
}

.test-question .option:hover {
  border-color: var(--purple);
  background: rgba(124,58,237,0.05);
}

.test-question .option.selected {
  border-color: var(--purple);
  background: rgba(124,58,237,0.1);
  font-weight: 500;
}

.test-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}

.test-nav .btn-test {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.test-nav .btn-prev {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--cream-dark);
}

.test-nav .btn-prev:hover { border-color: var(--text-light); }

.test-nav .btn-next {
  background: var(--purple);
  color: var(--white);
}

.test-nav .btn-next:hover { background: var(--purple-dark); }

.test-nav .btn-next:disabled {
  background: var(--cream-dark);
  color: var(--text-light);
  cursor: not-allowed;
}

/* ===== Result Page ===== */
.result-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-header .result-emoji { font-size: 64px; margin-bottom: 12px; }

.result-header .result-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple);
  background: rgba(124,58,237,0.1);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}

.result-header h1 { font-size: 44px; color: var(--dark); margin-bottom: 8px; }

.result-header .result-eng {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.result-header .result-tagline {
  font-size: 16px;
  color: var(--text-light);
  font-style: italic;
}

/* Radar Chart */
.radar-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

/* Aspect Cards */
.aspect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

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

.aspect-card h3 {
  font-size: 14px;
  color: var(--purple);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.aspect-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* Dimension Scores */
.dim-scores {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.dim-scores h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.dim-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dim-row .dim-name-col {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.dim-row .dim-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dim-row .dim-label.left { color: var(--purple); }
.dim-row .dim-label.right { color: var(--text-light); }

.dim-row .dim-bar {
  flex: 1;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.dim-row .dim-bar .dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.share-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ===== Types Overview ===== */
.types-header {
  text-align: center;
  padding: 60px 24px 24px;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--cream);
}

.types-header h1 { font-size: 44px; margin-bottom: 12px; }
.types-header p { opacity: 0.8; max-width: 500px; margin: 0 auto; }

.types-section {
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-light);
  font-size: 13px;
  border-top: 1px solid var(--cream-dark);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  nav .nav-links a { font-size: 12px; padding: 4px 10px; }
  .hero h1 { font-size: 34px; }
  .test-question { padding: 20px; }
  .test-question .q-text { font-size: 17px; }
  .aspect-grid { grid-template-columns: 1fr; }
  .result-header h1 { font-size: 34px; }
  .type-grid { grid-template-columns: 1fr; }
  .dim-row .dim-label { font-size: 11px; }
}
