/* ===================================
   鬥Prompt鬥低碳 - 主樣式文件
   PromptESG.org
   =================================== */

/* ===== 基礎樣式 ===== */
:root {
  /* 四階段色彩系統 */
  --stage1-color: #10B981; /* 階段1：學習 - 綠色 */
  --stage2-color: #3B82F6; /* 階段2：創作 - 藍色 */
  --stage3-color: #8B5CF6; /* 階段3：巡展 - 紫色 */
  --stage4-color: #F59E0B; /* 階段4：應用 - 橙色 */
  
  /* 輔助色彩 */
  --primary-green: #10B981;
  --primary-blue: #3B82F6;
  --primary-orange: #F59E0B;
  --dark-bg: #0F172A;
  --light-bg: #F8FAFC;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;
  
  /* 字體 */
  --font-main: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== 導航欄 ===== */
/* 舊的導航列樣式已移至 navbar-redesign.css
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
*/

/* .nav-container 樣式已移至 navbar-redesign.css */
/* 舊的單行導航樣式已被註釋
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
*/

/* 舊的 Logo 樣式已移至 navbar-redesign.css
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2rem;
}
*/

/* 舊的導航選單樣式已移至 navbar-redesign.css
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stage-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  margin-right: 0.3rem;
}

.stage-1 .stage-badge {
  background: var(--stage1-color);
  color: white;
}

.stage-2 .stage-badge {
  background: var(--stage2-color);
  color: white;
}

.stage-3 .stage-badge {
  background: var(--stage3-color);
  color: white;
}

.stage-4 .stage-badge {
  background: var(--stage4-color);
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}
*/

/* ===== 認證系統 ===== */
.auth-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

.auth-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-auth {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-login {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-register {
  background: var(--stage1-color);
  color: white;
}

.btn-register:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 用戶選單 */
.user-menu {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.user-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* 認證模態框 */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.auth-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.auth-modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--light-bg);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title i {
  color: var(--stage1-color);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--stage1-color);
  width: 16px;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.form-group input:focus {
  outline: none;
  border-color: var(--stage1-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--stage1-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.btn-submit:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

.divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #E2E8F0;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.btn-google {
  width: 100%;
  padding: 0.9rem;
  background: white;
  color: #333;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-google:hover {
  background: #F8FAFC;
  border-color: var(--stage1-color);
  transform: translateY(-2px);
}

.btn-google i {
  font-size: 1.2rem;
  color: #DB4437;
}

.modal-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-footer a {
  color: var(--stage1-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.modal-footer a:hover {
  color: #059669;
  text-decoration: underline;
}

/* ===== 語言切換器 ===== */
.language-switcher {
  position: relative;
  margin-left: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.lang-toggle i:first-child {
  font-size: 1.1rem;
}

.lang-toggle i:last-child {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.lang-dropdown.show .lang-toggle i:last-child {
  transform: rotate(180deg);
}

.current-lang {
  font-size: 0.85rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--stage1-color);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.3rem;
  line-height: 1;
}

/* ===== 英雄區 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background: 
    radial-gradient(circle at 20% 30%, var(--stage1-color) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--stage2-color) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--stage3-color) 0%, transparent 60%);
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--stage1-color), var(--stage2-color), var(--stage3-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s backwards;
}

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

/* ===== 按鈕樣式 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--stage1-color), var(--stage2-color));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.btn-stage-1 {
  background: var(--stage1-color);
  color: white;
}

.btn-stage-2 {
  background: var(--stage2-color);
  color: white;
}

.btn-stage-3 {
  background: var(--stage3-color);
  color: white;
}

.btn-stage-4 {
  background: var(--stage4-color);
  color: white;
}

/* ===== 區塊容器 ===== */
.section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1400px;  /* 標準容器寬度 */
  margin: 0 auto;
  padding: 0 2rem;
}

/* 四大階段區域使用更寬的容器 */
.section .container {
  max-width: 1500px;  /* 四階段專用更寬的容器 */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== 階段卡片 ===== */
/* 四階段網格佈局 - 基礎樣式 */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));  /* 使用 minmax 強制均分 */
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
  grid-auto-rows: 1fr;  /* 確保每行高度一致 */
}

/* 階段卡片 - 基礎樣式（必須在媒體查詢之前定義） */
.stage-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;  /* 允許卡片縮小 */
  max-width: 100%;  /* 不超過網格分配的寬度 */
  word-wrap: break-word;  /* 強制長文字換行 */
  overflow-wrap: break-word;  /* 強制長單詞換行 */
}

.stage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  transition: height 0.3s ease;
}

.stage-card.stage-1::before {
  background: var(--stage1-color);
}

.stage-card.stage-2::before {
  background: var(--stage2-color);
}

.stage-card.stage-3::before {
  background: var(--stage3-color);
}

.stage-card.stage-4::before {
  background: var(--stage4-color);
}

.stage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stage-card:hover::before {
  height: 10px;
}

.stage-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.stage-card.stage-1 .stage-icon {
  color: var(--stage1-color);
}

.stage-card.stage-2 .stage-icon {
  color: var(--stage2-color);
}

.stage-card.stage-3 .stage-icon {
  color: var(--stage3-color);
}

.stage-card.stage-4 .stage-icon {
  color: var(--stage4-color);
}

.stage-number {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.stage-title {
  font-size: 1.6rem;  /* 稍微縮小字體 */
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stage-description {
  font-size: 0.95rem;  /* 稍微縮小字體 */
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.stage-features {
  list-style: none;
  margin-bottom: 2rem;
}

.stage-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
}

.stage-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
}

.stage-card.stage-1 .stage-features li::before {
  color: var(--stage1-color);
}

.stage-card.stage-2 .stage-features li::before {
  color: var(--stage2-color);
}

.stage-card.stage-3 .stage-features li::before {
  color: var(--stage3-color);
}

.stage-card.stage-4 .stage-features li::before {
  color: var(--stage4-color);
}

/* ===== 數據統計 ===== */
.stats-section {
  background: linear-gradient(135deg, var(--stage1-color), var(--stage2-color));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===== 頁尾 ===== */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* ===== 響應式設計 ===== */
/* 導航列響應式樣式已移至 navbar-redesign.css */
/* 舊的響應式導航樣式已被註釋
@media (max-width: 1200px) {
  .nav-container {
    padding: 0 1rem;
  }
*/
  
  /* 舊的導航樣式已移至 navbar-redesign.css
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    gap: 0.2rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  
  .stage-badge {
    font-size: 0.58rem;
    padding: 0.1rem 0.3rem;
    margin-right: 0.15rem;
  }
  */
}

/* 舊的 1024px 導航樣式已移至 navbar-redesign.css
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 0.8rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo-icon {
    font-size: 1.4rem;
  }
  
  .nav-menu {
    gap: 0.15rem;
  }
  
  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.7rem;
  }
  
  .nav-link i {
    font-size: 0.8rem;
  }
  
  .stage-badge {
    font-size: 0.55rem;
    padding: 0.08rem 0.28rem;
    margin-right: 0.12rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
}
*/

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 1024px) {
  .auth-container {
    gap: 0.5rem;
  }
  
  .btn-auth {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .btn-auth span {
    display: none;
  }
  
  .user-name {
    display: none;
  }
  
  .language-switcher {
    margin-left: 0.5rem;
  }
  
  .lang-toggle {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .current-lang {
    display: none;
  }
  
  .lang-toggle i:first-child {
    font-size: 1rem;
  }
}

/* 舊的 768px 手機版導航樣式已移至 navbar-redesign.css
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .auth-container {
    position: fixed;
    top: 15px;
    right: 100px;
    z-index: 1002;
  }
  
  .btn-auth {
    padding: 0.4rem 0.6rem;
  }
  
  .user-toggle {
    padding: 0.4rem 0.6rem;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .language-switcher {
    position: fixed;
    top: 15px;
    right: 60px;
    z-index: 1002;
    margin-left: 0;
  }
  
  .lang-toggle {
    padding: 0.4rem 0.6rem;
  }
  
  .lang-dropdown {
    right: 0;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
}
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    transition: left 0.3s ease;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
  }
*/

@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stages-grid {
    grid-template-columns: 1fr;  /* 手機：單欄垂直排列 */
    gap: 1.5rem;
  }
  
  .stage-card {
    padding: 2rem;  /* 手機恢復正常 padding */
  }
  
  .stage-title {
    font-size: 1.6rem;  /* 手機恢復正常字體大小 */
  }
  
  .stage-description {
    font-size: 0.95rem;
  }
}

/* ===== 四階段響應式佈局 ===== */

/* 大平板和小桌面 (1024px - 1400px) */
@media (max-width: 1400px) and (min-width: 1025px) {
  .stages-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));  /* 保持 1×4 */
    gap: 1.2rem;
  }
}

/* 小平板 (769px - 1024px)：保持 1×4 橫向排列 */
@media (max-width: 1024px) and (min-width: 769px) {
  .stages-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;  /* 強制 1×4 */
    gap: 0.8rem;
  }
  
  .stage-card {
    padding: 1.5rem !important;  /* 縮小內邊距 */
  }
  
  .stage-icon {
    font-size: 2.8rem !important;  /* 縮小圖標 */
  }
  
  .stage-title {
    font-size: 1.3rem !important;  /* 縮小標題 */
  }
  
  .stage-description {
    font-size: 0.85rem !important;  /* 縮小描述 */
    line-height: 1.6;
  }
  
  .stage-features li {
    font-size: 0.85rem !important;  /* 縮小列表 */
  }
  
  .stage-cta {
    font-size: 0.9rem !important;  /* 縮小按鈕 */
    padding: 0.7rem 1.5rem !important;
  }
}
