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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 100vh;
}

/* 头部 */
.header {
  text-align: center;
  padding: 60px 0 40px;
}

.logo-text {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.logo-sub {
  display: block;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
}

/* 介绍卡片 */
.intro-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.intro-text {
  display: block;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

.intro-text + .intro-text {
  margin-top: 8px;
}

/* 入口卡片 */
.entry-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.entry-card:active {
  transform: scale(0.98);
}

.entry-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-right: 16px;
  flex-shrink: 0;
}

.entry-info {
  flex: 1;
}

.entry-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.entry-desc {
  font-size: 13px;
  color: #888;
}

.arrow {
  font-size: 24px;
  color: #ccc;
  font-weight: 300;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 40px 0;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* 语言切换 */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* 测试页面 */
.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.question-num {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.question-type {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.question-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.question-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
  text-align: center;
}

.options {
  margin-bottom: 20px;
}

.option {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.option:active {
  transform: scale(0.98);
}

.option.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.option-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.option.selected .option-text {
  color: #667eea;
  font-weight: 500;
}

.tip {
  text-align: center;
  padding: 16px;
}

.tip-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* 结果页 */
.result-card {
  text-align: center;
  padding: 48px 24px 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.result-emoji {
  display: block;
  font-size: 96px;
  margin-bottom: 24px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.result-type {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 16px;
}

.result-desc {
  display: block;
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  padding: 0 16px;
  margin-bottom: 24px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.result-tag {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.tag-text {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
}

.scores {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.score-item {
  text-align: center;
}

.score-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.score-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.share-box {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.share-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
  text-align: left;
}

.share-text-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.share-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-share {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-restart {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* 隐藏 */
.hidden {
  display: none !important;
}
