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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-top: 20px;
}

.progress-bar {
  height: 100%;
  background-color: #afc1a2;
  border-radius: 4px;
  width: 0;
  transition: width 0.3s ease;
}

.section {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.introduction-text {
  margin-bottom: 25px;
  background-color: #fafafa;
  padding: 15px;
  border-radius: 8px;
}

.introduction-text p {
  margin-bottom: 15px;
}

ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #afc1a2;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: #94a588;
}

.btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

#start-test {
  width: 100%;
  margin-top: 20px;
}

.hidden {
  display: none;
}

/* 情境問題樣式 */
.question {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.question:last-child {
  border-bottom: none;
}

.question-text {
  font-weight: bold;
  margin-bottom: 15px;
}

.options {
  display: flex;
  flex-direction: column;
}

.option {
  margin-bottom: 10px;
}

.option input[type="radio"] {
  margin-right: 10px;
}

.option label {
  cursor: pointer;
}

/* 活動偏好樣式 */
.activity-question {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.activity-question:last-child {
  border-bottom: none;
}

.activity-text {
  font-weight: bold;
  margin-bottom: 15px;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rating span {
  width: 80px;
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.rating-options {
  display: flex;
  flex: 1;
  justify-content: space-between;
  margin: 0 15px;
}

.rating-option {
  text-align: center;
}

.rating-option input[type="radio"] {
  margin-bottom: 5px;
}

.rating-option label {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #f1f1f1;
  transition: all 0.3s;
}

.rating-option input[type="radio"]:checked + label {
  background-color: #afc1a2;
  color: white;
}

.button-group {
  text-align: center;
  margin-top: 20px;
}

/* 結果區塊樣式 */
.result-block {
  margin-bottom: 40px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-block h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.type-code {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
  color: #afc1a2;
}

/* 主要興趣類型列表樣式 - 更新為網格佈局 */
.top-types-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.top-type {
  text-align: center;
  padding: 15px 10px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.type-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.type-score {
  color: #afc1a2;
  font-weight: bold;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.score-bar {
  display: flex;
  align-items: center;
}

.score-label {
  width: 180px;
  font-weight: 500;
}

.bar-container {
  flex: 1;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 15px;
}

.bar {
  height: 100%;
  background-color: #afc1a2;
  border-radius: 10px;
}

.score-value {
  width: 50px;
  font-weight: bold;
  text-align: right;
}

.type-description {
  margin-bottom: 20px;
  line-height: 1.7;
}

.strengths-list, .careers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.strength-tag, .career-tag {
  padding: 6px 12px;
  background-color: #e1f5fe;
  color: #0288d1;
  border-radius: 20px;
  font-size: 0.9rem;
}

.career-tag {
  background-color: #e8f5e9;
  color: #388e3c;
}

/* 動作按鈕樣式 */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}

.btn-premium {
  background: linear-gradient(135deg, #637456, #758866);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 15px 30px;
  box-shadow: 0 4px 15px rgba(99, 116, 86, 0.3);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #758866, #637456);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 116, 86, 0.4);
}

.btn-copy {
  background-color: #afc1a2;
  color: white;
  font-size: 0.95rem;
  padding: 12px 24px;
}

.btn-copy:hover {
  background-color: #94a588;
}

/* 複製反饋樣式 */
.copy-feedback {
  background-color: #27ae60;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

/* 重新測驗連結樣式 */
.restart-link {
  color: #7f8c8d;
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.restart-link:hover {
  color: #5d6d7e;
  text-decoration: none;
}

/* 分享按鈕 - 已移除 */

footer {
  text-align: center;
  margin-top: 40px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .section {
    padding: 20px;
  }
  
  .top-types-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .score-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .score-label {
    width: 100%;
  }
  
  .bar-container {
    width: 100%;
    margin: 5px 0;
  }
  
  .score-value {
    width: 100%;
    text-align: left;
  }
  
  .action-buttons {
    gap: 10px;
  }
  
  /* 手機版圖表調整 */
  #score-chart-container {
    width: 350px;
    height: 350px;
  }
  
  .chart-block {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .top-types-list {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    gap: 10px;
  }
}

/* 多個人格特質顯示的樣式 */
.type-description-block {
  margin-bottom: 25px;
}

.type-description-block h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.type-description-block h5 {
  color: #555;
  font-size: 1rem;
  margin-top: 15px;
  margin-bottom: 8px;
}

/* 類型分隔線 */
.type-divider {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 25px 0;
}

/* 強化特質和職業標籤的樣式 */
.strengths-container, .careers-container {
  margin-bottom: 15px;
}

.strength-tag {
  padding: 6px 12px;
  background-color: #e1f5fe;
  color: #0288d1;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin: 3px;
}

.career-tag {
  padding: 6px 12px;
  background-color: #e8f5e9;
  color: #388e3c;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin: 3px;
}

/* 圖表容器樣式調整 */
#score-chart-container {
  width: 450px;  /* 增加容器寬度以容納更大的文字 */
  height: 450px; /* 增加容器高度 */
  margin: 0 auto;  /* 居中顯示 */
  position: relative;
}

/* 圖表區塊特定樣式 */
.chart-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
