/* ================================
   SLTI 主题变量
   ================================ */
:root {
   /* 主题色、背景色、文字色、阴影、圆角等 —— 暖金/琥珀配色 */
  --bg: #fbfaf8;
  --panel: #ffffff;
  --text: #4d2b00;
  --muted: #8b7a63;
  --line: #dbd7d1;
  --soft: #f5f4f2;
  --accent: #fabe00;
  --accent-strong: #5c4212;
  --shadow: 0 22px 54px rgba(77, 43, 0, 0.08);
  --radius: 30px;
}
/* ================================
   全局重置
   ================================ */

/* ================================
   布局容器 .shell
   ================================ */

/* ================================
   三屏切换 .screen
   ================================ */
.screen { display: none; }
.screen.active { display: block; }

/* ================================
   首页 #intro
   ================================ */
/* 首页整页背景图 */
   #intro {
    position: relative;
    width: min(70vw, 840px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
  }
  /* 仅在首页激活时使用 flex 居中 */
  #intro.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(255, 248, 235, 0.05), rgba(255, 255, 255, 0.08)),
      url("../reference/背景1.jpeg") center center / cover no-repeat;
    z-index: 0;
  }

  /* 让首页内容在背景上层 */
  #intro > * {
    position: relative;
    z-index: 1;
  }

  /* 只保留“SLTI测试”框作为浮层，降低透明度 */
  #intro .hero {
    margin: 0;
    max-width: 85%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 40px;
  }
  #intro .hero-title {
    margin: 0 0 16px;
     color: #e98502;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.5),
      0 0 4px #940d0d;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  #intro .hero-actions {
    display: flex;
    justify-content: center;
  }
/* ================================
   测试页 #test
   - 进度条
   - 题目卡片
   - 选项样式
   - 底部操作栏
   ================================ */

/* ================================
   结果页 #result
   - 人格卡片
   - 维度评分列表
   - 说明区域
   ================================ */

/* ================================
   通用组件（按钮、徽章、卡片）
   ================================ */

/* ================================
   响应式断点
   ================================ */


* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(rgba(255, 250, 245, 0), rgba(255, 250, 245, 0)),
    url("../reference/1.jpg") center center / cover fixed no-repeat;
  font-size: 24px;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  margin: 0 auto;
  max-width: 1440px;
  padding: 32px 22px 74px;
}

.shell-header {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  color: var(--accent-strong);
  font-size: 30px;
  font-weight: 700;
}

.locale-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}

.locale-nav a {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 18px;
  padding: 10px 16px;
}

.locale-nav a[aria-current="page"] {
  background: var(--soft);
  border-color: var(--accent);
}

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

.hero,
.test-wrap,
.result-wrap,
.section-block {
  margin-top: 28px;
  padding: 32px;
}

.hero {
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, rgba(250, 190, 0, 0.18), rgba(250, 190, 0, 0.02));
  border-radius: 50%;
  content: "";
  height: 240px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
}

.eyebrow {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 18px;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 1020px;
}

.sub {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 1020px;
}

.subtle-hint {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-grid,
.info-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
}

.mini-panel {
  background: linear-gradient(180deg, #fffdf5, #f5f4f2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.mini-panel h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.mini-panel p,
.mini-panel ul {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.8;
}

.mini-panel ul {
  margin: 0;
  padding-left: 32px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 16px;
}

.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

button,
.link-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary,
.btn-secondary {
  border-radius: 24px;
  font-weight: 700;
  font-size: 27px;
  padding: 22px 30px;
}

.btn-primary {
  background: var(--accent-strong);
  box-shadow: 0 16px 40px rgba(92, 66, 18, 0.18);
  color: #fff;
}

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

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.topbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.progress {
  background: #ede8df;
  border-radius: 999px;
  flex: 1;
  height: 14px;
  min-width: 320px;
  overflow: hidden;
  position: relative;
}

.progress > span {
  background: linear-gradient(90deg, #fcd67c, #fabe00);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.22s ease;
  width: 0;
}

.progress-text {
  color: var(--muted);
  font-size: 20px;
  white-space: nowrap;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question {
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.question-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 18px;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 14px;
}

.question-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.option {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: auto auto 1fr;
  padding: 22px;
}

.option input {
  margin-top: 6px;
}

.option-code {
  color: var(--accent-strong);
  font-weight: 700;
}

.result-layout {
  display: grid;
  gap: 18px;
}

.result-top {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.poster-box,
.type-box,
.analysis-box,
.dim-box,
.note-box {
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.poster-box img {
  border-radius: 22px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.poster-caption {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}

.type-kicker {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.type-name {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
}

.match-badge {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  margin-top: 18px;
  padding: 10px 16px;
}

.type-subname,
.type-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 14px;
}

.rec-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.rec-img {
  border-radius: 12px;
  display: block;
  height: auto;
  margin-bottom: 10px;
  max-width: 100%;
  width: 100%;
}

.rec-img-placeholder {
  align-items: center;
  background: var(--soft);
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  height: 120px;
  justify-content: center;
  margin-bottom: 10px;
}

.rec-name {
  font-weight: 700;
  margin-bottom: 6px;
}

.rec-reason {
  color: var(--muted);
  line-height: 1.7;
}

.rec-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.rec-link-todo {
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.7;

  color: var(--muted);
  line-height: 1.7;
}

.rarity-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
  padding: 8px 16px;
}

.rarity-common {
  background: #fff5e0;
  border: 1px solid #fabe00;
  color: #5c4212;
}

.rarity-moderate {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.rarity-rare {
  background: #fdf2f2;
  border: 1px solid #e8b4b4;
  color: #8b3a3a;
}

.nearby-box {
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}

.nearby-box h3 {
  margin-bottom: 16px;
}

.nearby-list {
  display: grid;
  gap: 14px;
}

.nearby-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
}

.nearby-name {
  font-weight: 600;
  color: var(--text);
}

.nearby-sim {
  color: var(--muted);
  font-size: 18px;
}

.dim-bar {
  background: #ede8df;
  border-radius: 999px;
  height: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.dim-bar-fill {
  border-radius: inherit;
  height: 100%;
  transition: width 0.4s ease;
}

.dim-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

.dim-item-top {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dim-item-name,
.dim-item-score {
  font-size: 20px;
  font-weight: 700;
}

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

.blog-hero,
.blog-detail {
  margin-top: 28px;
  padding: 32px;
}

.blog-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.blog-card {
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 0.36fr) 1fr;
  overflow: hidden;
  padding: 22px;
}

.blog-card img {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.blog-date {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.blog-card h2 {
  font-size: 32px;
  line-height: 1.25;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 14px;
}

.blog-back {
  display: inline-flex;
  font-weight: 700;
  margin-bottom: 18px;
}

.blog-cover {
  border-radius: 18px;
  display: block;
  height: auto;
  margin-top: 28px;
  max-width: 100%;
  width: 100%;
}

.blog-content {
  color: var(--text);
  font-size: 24px;
  line-height: 1.85;
  margin-top: 38px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  line-height: 1.3;
  margin: 38px 0 16px;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote,
.blog-content pre,
.blog-content .table-scroll {
  margin: 22px 0;
}

.blog-content ul,
.blog-content ol {
  padding-left: 24px;
}

.blog-content li {
  margin: 8px 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--accent);
  color: var(--muted);
  padding-left: 22px;
}

.blog-content code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92em;
  padding: 2px 5px;
}

.blog-content pre {
  background: #2a1f0a;
  border-radius: 22px;
  color: #f5f4f2;
  overflow: auto;
  padding: 22px;
}

.blog-content pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.table-scroll {
  overflow-x: auto;
}

.blog-content table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.blog-content th,
.blog-content td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.blog-content th {
  background: var(--soft);
}

/* ================================
   所有人格总览页 #allTypes
   ================================ */
.nearby-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nearby-header h3 {
  margin: 0;
}

.btn-sm {
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 18px;
}

.all-types-wrap {
  margin-top: 28px;
  padding: 32px;
}

.all-types-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.all-types-highlight {
  margin-top: 24px;
}

.highlight-section {
  margin-bottom: 28px;
}

.highlight-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
}

.highlight-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  max-width: 600px;
}

.all-types-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.type-card {
  background: linear-gradient(180deg, #ffffff, #fbfaf8);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(77, 43, 0, 0.1);
}

.type-card.type-card-nearby {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(250, 190, 0, 0.25);
}

.type-card-nearby-badge {
  background: var(--accent);
  color: var(--accent-strong);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.type-card img {
  aspect-ratio: 1 / 1;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
  background: var(--soft);
}

.type-card-body {
  padding: 16px 18px 20px;
}

.type-card-body h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.type-card-body .type-card-code {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.type-card-body .type-card-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ================================
   响应式断点
   ================================ */

@media (max-width: 780px) {
  .shell {
    padding: 24px 16px 56px;
  }

  .shell-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .info-grid,
  .result-top,
  .blog-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .test-wrap,
  .result-wrap,
  .section-block,
  .blog-hero,
  .blog-detail {
    padding: 24px;
  }

  .question-title {
    font-size: 22px;
  }

  .all-types-wrap {
    padding: 24px;
  }

  .all-types-title {
    font-size: 22px;
    white-space: normal;
  }

  .highlight-cards {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .all-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .type-card-body {
    padding: 12px 14px 16px;
  }

  .type-card-body h4 {
    font-size: 17px;
  }

  .type-card-body .type-card-intro {
    font-size: 13px;
  }

  .btn-sm {
    font-size: 15px;
    padding: 8px 14px;
  }
}

  @media (max-width: 780px) {
    #intro {
      width: min(84vw, 700px);
      aspect-ratio: 4 / 5;
      margin: 0 auto;
    }

    #intro::before {
      background:
        linear-gradient(rgba(255, 248, 235, 0.05), rgba(255, 255, 255, 0.08)),
        url("../reference/背景1.jpeg") center center / cover no-repeat;
    }

    #intro .hero {
      margin: 0;
      max-width: 88%;
      padding: 24px 20px;
    }

    #intro .hero-title {
      font-size: clamp(18px, 5vw, 28px);
      margin: 0 0 12px;
      white-space: normal;
    }

    #intro .hero-actions button {
      font-size: 14px;
      padding: 14px 20px;
    }
  }