/* ===== CSS变量 - 16personalities风格 ===== */
:root {
  /* 主色 - 紫色 */
  --primary-color: #9876c3;
  --primary-hover: #7a5da0;
  
  /* 四大人格群体色 */
  --analyst-color: #9b59b6;    /* 分析家 - 紫色 */
  --diplomat-color: #27ae60;   /* 外交家 - 绿色 */
  --sentinel-color: #e67e22;   /* 守护者 - 橙色 */
  --explorer-color: #e74c3c;   /* 探险家 - 红色 */
  
  /* 背景色 */
  --bg-color: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-card: #ffffff;
  
  /* 文字颜色 */
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8395a7;
  
  /* 边框 */
  --border-color: #e0e0e0;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  color: var(--text-primary);
  background: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ===== 头部导航 ===== */
header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-cta {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
}

/* ===== 英雄区 - 16personalities风格 ===== */
.hero {
  background: var(--bg-color);
  padding: 100px 24px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 统计数字 */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 17px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* ===== Section 标题 ===== */
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== 人格群体卡片 ===== */
.personality-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.group-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border-top: 4px solid;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.group-card[data-group="analyst"] {
  border-top-color: var(--analyst-color);
}

.group-card[data-group="diplomat"] {
  border-top-color: var(--diplomat-color);
}

.group-card[data-group="sentinel"] {
  border-top-color: var(--sentinel-color);
}

.group-card[data-group="explorer"] {
  border-top-color: var(--explorer-color);
}

.group-card:hover {
  transform: translateY(-4px);
}

.group-header {
  margin-bottom: 16px;
}

.group-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.group-subtitle {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.group-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.group-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.type-tag {
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== CTA 区域 ===== */
.cta-section {
  text-align: center;
  margin-top: 48px;
}

/* ===== 特点区域 ===== */
.features-section {
  background: var(--bg-secondary);
  padding: 80px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== 页脚 ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-note {
  color: var(--text-light);
  font-size: 14px;
}

.footer-note p {
  margin-bottom: 8px;
}

/* ===== 测试页面样式 ===== */
.test-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px 24px;
}

/* 测试封面页 */
.test-cover {
  text-align: center;
}

.cover-emoji {
  font-size: 80px;
  margin-bottom: 20px;
}

.cover-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cover-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cover-tips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  text-align: center;
}

.tip-item {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-md);
}

.tip-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tip-item span {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.test-card {
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
}

.test-card h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.test-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.test-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.test-card ul {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
  text-align: left;
}

.test-card ul li {
  margin-bottom: 8px;
}

/* 封面样式 */
.cover-emoji {
  font-size: 80px;
  margin-bottom: 30px;
}

.cover-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cover-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* 测试封面 - 已在上面定义 */
/* .cover-tips 重复定义已删除 */

/* 按钮大小 */
.btn-large {
  font-size: 18px;
  padding: 18px 48px;
}

/* 进度条 */
.test-progress {
  margin-bottom: 30px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* 问题样式 */
.test-question {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-option {
  background: var(--bg-secondary);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  color: var(--text-primary);
  text-align: left;
}

.test-option:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.test-option.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 导航按钮 */
.test-nav-buttons {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-prev {
  padding: 12px 32px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 结果卡片 */
.result-card {
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
}

.result-emoji {
  font-size: 80px;
  margin-bottom: 20px;
}

.result-type {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.result-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.result-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.result-traits {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trait-item {
  text-align: center;
}

.trait-label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.trait-bar {
  width: 120px;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.5s ease;
}

.trait-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}

.trait-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  width: 100%;
  max-width: 200px;
}

.result-section {
  margin-top: 40px;
}

.result-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.result-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.modal-tag {
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.modal-list {
  list-style: none;
  padding-left: 0;
}

.modal-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.modal-details {
  display: grid;
  gap: 16px;
}

.detail-item {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-color);
}

.detail-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.detail-item p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.modal-section-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.modal-section-content p:last-child {
  margin-bottom: 0;
}

/* 结果页面样式 */
.result-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 60px 40px;
}

.result-header {
  text-align: center;
  margin-bottom: 60px;
}

.result-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 8px;
}

.result-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.result-description p {
  margin-bottom: 16px;
}

.result-details {
  display: grid;
  gap: 16px;
}

.result-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.result-content p {
  margin-bottom: 12px;
}

/* 维度倾向样式优化 */
.trait-values {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.trait-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}

.trait-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

/* 详情页面样式 */
.detail-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px 60px;
}

.detail-header {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
  border: 1px solid var(--border-color);
}

.detail-header.analyst {
  border-top: 4px solid var(--analyst-color);
}

.detail-header.diplomat {
  border-top: 4px solid var(--diplomat-color);
}

.detail-header.sentinel {
  border-top: 4px solid var(--sentinel-color);
}

.detail-header.explorer {
  border-top: 4px solid var(--explorer-color);
}

.detail-emoji {
  font-size: 100px;
  margin-bottom: 20px;
}

.detail-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.detail-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
}

.detail-type {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.detail-name {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.detail-group {
  font-size: 16px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.detail-section {
  margin-bottom: 48px;
}

.detail-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-secondary);
}

.detail-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

.detail-content p {
  margin-bottom: 16px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

.detail-traits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trait-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trait-labels {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trait-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-light);
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
}

.detail-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  gap: 20px;
}

.detail-item {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.detail-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.detail-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

.detail-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-tag {
  background: var(--bg-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .detail-container {
    padding: 0 16px 40px;
  }
  
  .detail-header {
    padding: 60px 24px;
  }
  
  .detail-emoji {
    font-size: 80px;
  }
  
  .detail-icon {
    width: 100px;
    height: 100px;
  }
  
  .detail-img {
    width: 100px;
    height: 100px;
  }
  
  .detail-type {
    font-size: 40px;
  }
  
  .detail-name {
    font-size: 22px;
  }
  
  .detail-section h2 {
    font-size: 20px;
  }
  
  .detail-actions {
    flex-direction: column;
  }
}
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 17px;
  }
  
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .container {
    padding: 48px 20px;
  }
  
  .features-section {
    padding: 48px 20px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero h1 {
    font-size: 26px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .btn {
    padding: 14px 32px;
    font-size: 16px;
  }
}

/* ===== 人格类型页面样式 ===== */

/* 筛选按钮 */
.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* 类型卡片网格 - 一行6个 */
.types-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

/* 类型卡片 */
.type-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.type-card:hover {
  transform: translateY(-4px);
}

.type-card-header {
  padding: 20px 16px;
  text-align: center;
  color: white;
}

.type-card-header.analyst {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.type-card-header.diplomat {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.type-card-header.sentinel {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.type-card-header.explorer {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.type-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.type-svg-icon,
.type-image {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 8px;
  object-fit: contain;
}

/* 群体section样式 */
.group-section {
  margin-bottom: 60px;
}

.group-header-section {
  margin-bottom: 32px;
  text-align: center;
}

.group-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.group-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 简洁卡片样式 */
.simple-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.simple-type-card:hover {
  transform: translateY(-4px);
}

.simple-type-card.analyst:hover {
  border-color: var(--analyst-color);
}

.simple-type-card.diplomat:hover {
  border-color: var(--diplomat-color);
}

.simple-type-card.sentinel:hover {
  border-color: var(--sentinel-color);
}

.simple-type-card.explorer:hover {
  border-color: var(--explorer-color);
}

.simple-type-code {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.simple-type-card.analyst .simple-type-code {
  color: var(--analyst-color);
}

.simple-type-card.diplomat .simple-type-code {
  color: var(--diplomat-color);
}

.simple-type-card.sentinel .simple-type-code {
  color: var(--sentinel-color);
}

.simple-type-card.explorer .simple-type-code {
  color: var(--explorer-color);
}

.simple-type-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.simple-type-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

.simple-type-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.simple-type-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
}

.simple-type-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}

.simple-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.type-code {
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.type-name {
  font-size: 13px;
  opacity: 0.95;
  display: block;
}

.type-card-body {
  padding: 16px;
}

.type-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.type-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.type-tag {
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 首页人格类型网格 - 一行4个 */
.types-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* 响应式 - 人格类型网格 */
@media (max-width: 1200px) {
  .types-grid,
  .types-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .types-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .simple-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .types-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .simple-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cover-tips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
  .types-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simple-types-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 博客页面样式 ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.blog-categories {
  padding: 32px 0;
  background: var(--soft);
}

.category-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 24px;
  border: 2px solid var(--line);
  background: white;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.category-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.blog-list {
  padding: 48px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-tag {
  background: var(--soft);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.read-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-card-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--text);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-tags .tag {
  color: var(--muted);
  font-size: 0.8rem;
}

.blog-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.featured-types {
  padding: 48px 0;
  background: var(--soft);
}

.featured-types h2 {
  text-align: center;
  margin-bottom: 32px;
}

.types-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.type-card .type-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.type-card .type-code {
  font-weight: 600;
  color: var(--primary-color);
}

.type-card .type-name {
  font-size: 0.85rem;
  color: var(--muted);
}

.subscribe-section {
  padding: 60px 0;
}

.subscribe-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
  color: white;
  text-align: center;
  padding: 48px;
  border-radius: 20px;
}

.subscribe-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.subscribe-card p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.subscribe-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.subscribe-qr span {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 文章详情页样式 */
.article-hero {
  padding: 60px 0 40px;
  background: var(--soft);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 24px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 20px;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.article-content ul, .article-content ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .article-title {
    font-size: 1.6rem;
  }
  
  .subscribe-card {
    padding: 32px 20px;
  }
}