:root {
  --bg: #f6faf6;
  --panel: #ffffff;
  --text: #1e2a22;
  --muted: #6a786f;
  --line: #dbe8dd;
  --soft: #edf6ef;
  --accent: #6c8d71;
  --accent-strong: #4d6a53;
  --shadow: 0 16px 40px rgba(47, 73, 55, 0.08);
  --radius: 22px;
}

* { 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: radial-gradient(circle at top left, #f8fff8 0, #f6faf6 36%, #f2f7f3 100%);
  color: var(--text);
  min-height: 100vh;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

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

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

.site-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.site-title {
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}

.subpage-nav {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}
.subpage-nav a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}
.subpage-nav a:hover { text-decoration: underline; }

button, .btn-primary, .btn-secondary {
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  font: inherit;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(77, 106, 83, 0.18);
  font-weight: 700;
}

.btn-secondary {
  background: #fff;
  color: var(--accent-strong);
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.home-footer {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
.home-footer a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.type-kicker {
  font-size: 12px;
  color: var(--accent-strong);
  margin-bottom: 8px;
  letter-spacing: .06em;
}
.type-name {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.type-subname {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.personality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.personality-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(47, 73, 55, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.personality-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(47, 73, 55, 0.12);
  border-color: #bcd0c1;
}
.personality-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--soft);
}
.personality-card-body {
  padding: 12px;
}
.personality-card h3 {
  font-size: 15px;
  line-height: 1.3;
}
.personality-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.personality-section {
  margin-top: 22px;
}
.section-heading {
  margin-bottom: 16px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}
.section-heading p {
  max-width: 780px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.content-section {
  margin-top: 28px;
  padding: 28px;
}
.content-section h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.content-section h3 {
  font-size: 18px;
  margin: 22px 0 8px;
  color: var(--accent-strong);
}
.content-section p {
  color: #304034;
  font-size: 15px;
  line-height: 1.9;
  margin: 10px 0;
}
.content-section ul,
.content-section ol {
  margin: 12px 0;
  padding-left: 22px;
  color: #304034;
  line-height: 1.9;
  font-size: 15px;
}
.content-section li { margin: 6px 0; }
.content-section strong { color: var(--accent-strong); }
.content-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.content-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.content-tile h4 {
  font-size: 15px;
  color: var(--accent-strong);
  margin: 0 0 8px;
}
.content-tile p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.ad-slot {
  margin: 28px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 120px;
  overflow: hidden;
}
.ad-slot-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: .18em;
}

.type-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.type-detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.type-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 73, 55, 0.08);
  border-color: #bcd0c1;
}
.type-detail-card img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.type-detail-card h3 {
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--text);
}
.type-detail-card .type-detail-intro {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-strong);
  margin-bottom: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.type-detail-card p {
  font-size: 14px;
  color: #304034;
  line-height: 1.85;
  margin: 0;
}

.type-hero-card {
  margin-top: 18px;
}
.type-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}
.type-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.type-hero-body .type-tagline {
  margin-top: 8px;
  display: inline-block;
  color: var(--accent-strong);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.type-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.dim-signature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.dim-signature-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.dim-signature-item .dim-sig-name {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.dim-signature-item .dim-sig-level {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 6px;
}
.dim-signature-item .dim-sig-desc {
  font-size: 13px;
  color: #304034;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .personality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-hero { grid-template-columns: 1fr; text-align: center; }
  .type-hero-image { max-width: 220px; margin: 0 auto; }
  .type-hero-actions { justify-content: center; }
  .dim-signature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { padding: 14px 12px 42px; }
  .content-section { padding: 18px; }
  .site-logo { width: 40px; height: 40px; }
  .personality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid-2, .content-grid-3 { grid-template-columns: 1fr; }
  .type-detail-card { grid-template-columns: 72px 1fr; gap: 12px; }
  .type-detail-card img { width: 72px; height: 72px; }
  .dim-signature-grid { grid-template-columns: 1fr; }
}
