* {
  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;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.page {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.header h1 {
  font-size: 28px;
  color: #667eea;
  margin-bottom: 10px;
}

.header h2 {
  font-size: 20px;
  color: #764ba2;
  font-weight: normal;
}

.intro {
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.8;
  color: #666;
}

.compliance {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.compliance-item .icon {
  font-size: 18px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #e0e0e0;
  color: #666;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-text {
  background: transparent;
  color: #667eea;
  padding: 10px 20px;
}

.btn-text:hover {
  background: #f0f0f0;
}

.btn-large {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.select-section {
  margin-bottom: 25px;
  background: linear-gradient(135deg, #fdfbff 0%, #fff8ee 100%);
  border: 1px solid #ede3ff;
  border-radius: 14px;
  padding: 14px;
}

.select-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

select:focus {
  outline: none;
  border-color: #667eea;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.tip-box {
  background: linear-gradient(135deg, #fffaf0 0%, #fff3ea 100%);
  border: 1px dashed #ffcfab;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  position: relative;
}

.tip-box::before {
  content: "🐾";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 16px;
  opacity: 0.75;
}

.tip-box a {
  color: #667eea;
  text-decoration: none;
}

.test-header {
  margin-bottom: 25px;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-info span {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.question-container {
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fefbff 0%, #fff7ef 100%);
  border: 1px solid #efe5ff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 8px 18px rgba(112, 92, 173, 0.08);
}

.question-text {
  font-size: 20px;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.6;
  min-height: 80px;
  position: relative;
}

.question-text::before {
  content: "🐱";
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  padding: 15px 20px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  padding-left: 42px;
}

.option::before {
  content: "🐾";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.8;
}

.option:hover {
  background: #f3eeff;
  border-color: #667eea;
  transform: translateY(-1px);
}

.option.selected {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: #667eea;
  color: #667eea;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(102, 126, 234, 0.18);
}

.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

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

.result-header h2 {
  font-size: 24px;
  color: #667eea;
}

.result-header-emojis {
  margin-top: 8px;
  color: #8f79d9;
  letter-spacing: 6px;
  font-size: 16px;
}

.result-main {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-types {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.result-type {
  flex: 1;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 18px rgba(18, 18, 18, 0.05);
}

.result-type h3 {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
  font-weight: normal;
}

.result-type .type-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.result-type.owner {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.result-type.cat {
  background: linear-gradient(135deg, rgba(255, 159, 64, 0.1) 0%, rgba(255, 112, 64, 0.1) 100%);
}

.match-result {
  text-align: center;
  margin-bottom: 0;
  padding: 16px;
  background: #faf9ff;
  border-radius: 14px;
  border: 1px solid #eee8ff;
}

.match-percent {
  font-size: 64px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.match-level {
  font-size: 20px;
  color: #764ba2;
  margin-top: 5px;
}

.match-tip {
  background: linear-gradient(135deg, #fff8ea 0%, #fff3dc 100%);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
  font-size: 15px;
  color: #735a2c;
  margin-bottom: 0;
  line-height: 1.6;
  border: 1px solid #ffe4b5;
}

.match-suggestion {
  margin-bottom: 0;
  background: #ffffff;
  border: 1px solid #ece8ff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.08);
}

.match-suggestion h4 {
  font-size: 17px;
  color: #5a469b;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff2ff 0%, #fff8ea 100%);
  border: 1px solid #f1dbff;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 4px 10px rgba(165, 118, 219, 0.14);
}

.match-suggestion h4::before {
  content: "🐾";
}

.match-suggestion p {
  font-size: 14px;
  color: #5a5670;
  line-height: 1.9;
  white-space: pre-line;
  position: relative;
  padding: 12px 14px 12px 42px;
  background: linear-gradient(135deg, #fffdfa 0%, #fff7f2 100%);
  border: 1px dashed #ffd8c2;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.match-suggestion p::before {
  content: "🐱";
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 18px;
}

.dimension-comparison h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.comparison-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 12px;
}

.comparison-item .dim-name {
  color: #999;
  margin-bottom: 5px;
}

.comparison-item .dim-owner,
.comparison-item .dim-cat {
  font-weight: 600;
  color: #333;
}

.comparison-item.match {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.comparison-item.match .dim-owner,
.comparison-item.match .dim-cat {
  color: #667eea;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.result-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.cat-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 12px 30px rgba(255, 159, 64, 0.18);
  border: 1px solid #ffe5c2;
}

.cat-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd591 0%, #ff9a44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(255, 159, 64, 0.3);
  position: relative;
  overflow: hidden;
}

.cat-avatar::before {
  content: '🐱';
  position: absolute;
  font-size: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cat-avatar.show-emoji::before {
  opacity: 1;
}

.cat-avatar.show-emoji .cat-image {
  display: none;
}

.cat-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.cat-name {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.cat-display-name {
  font-size: 16px;
  color: #ff9a44;
  margin-bottom: 10px;
}

.cat-tagline {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 0 20px;
  line-height: 1.6;
}

.cat-emojis {
  font-size: 24px;
  margin-top: 10px;
  letter-spacing: 8px;
}

.dimension-section {
  margin-bottom: 0;
  background: #ffffff;
  border: 1px solid #ece8ff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(102, 126, 234, 0.08);
}

.dimension-section h4 {
  font-size: 16px;
  color: #5a469b;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f9f2ff 0%, #eef3ff 100%);
  border: 1px solid #dfd8ff;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.12);
}

.dimension-section h4::before {
  content: '🐾';
}

.dimension-section h4::after {
  content: '🐈';
  font-size: 14px;
}

.dimension-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dimension-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fafaff;
  border: 1px solid #f0eeff;
}

.dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dimension-label {
  font-size: 14px;
  color: #3e3e52;
  font-weight: 600;
  text-align: left;
}

.dimension-bar-container {
  flex: 1;
  height: 12px;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.dimension-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

.dimension-bar.high {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.dimension-bar.medium {
  background: linear-gradient(90deg, #ffd591 0%, #ff9a44 100%);
}

.dimension-bar.low {
  background: linear-gradient(90deg, #ccc 0%, #999 100%);
}

.dimension-value {
  min-width: 34px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  letter-spacing: 1px;
}

.dimension-value.high {
  background: linear-gradient(135deg, #7a8dff 0%, #9b61e6 100%);
}

.dimension-value.medium {
  background: linear-gradient(135deg, #ffc977 0%, #ffa15a 100%);
}

.dimension-value.low {
  background: linear-gradient(135deg, #adb3bd 0%, #8a93a0 100%);
}

.dimension-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6a6a83;
}

.dimension-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dimension-dot.high { background: #667eea; }
.dimension-dot.medium { background: #ff9a44; }
.dimension-dot.low { background: #999; }

.share-container {
  text-align: center;
}

.share-container h2 {
  font-size: 24px;
  color: #667eea;
  margin-bottom: 20px;
}

.share-poster {
  background: linear-gradient(145deg, #6f7ef0 0%, #8c63d9 55%, #ff9a7a 100%);
  border-radius: 15px;
  padding: 25px;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 16px 35px rgba(89, 77, 162, 0.35);
}

.poster-header h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.poster-content {
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.poster-cat-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.share-cat-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 30% 30%, #ffe7b8 0%, #ffb067 70%);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.share-cat-avatar::before {
  content: "🐱";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  opacity: 0;
}

.share-cat-avatar.show-emoji::before {
  opacity: 1;
}

.share-cat-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-cat-avatar.show-emoji .share-cat-image {
  display: none;
}

.share-cat-emojis {
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 4px;
}

.poster-types {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.poster-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poster-type .label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.poster-type .value {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.poster-match {
  text-align: center;
}

.poster-match .percent {
  font-size: 48px;
  font-weight: bold;
  display: block;
}

.poster-match .level {
  font-size: 18px;
  opacity: 0.9;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  .page {
    padding: 20px;
  }

  .header h1 {
    font-size: 24px;
  }

  .header h2 {
    font-size: 18px;
  }

  .question-text {
    font-size: 18px;
  }

  .option {
    padding: 12px 15px;
    font-size: 15px;
  }

  .comparison-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-percent {
    font-size: 48px;
  }
}
