/* ==========================================================================
   AI 古人聊天室・教學網頁樣式表 (styles.css)
   ========================================================================== */

:root,
[data-theme="night"],
html[data-theme="night"],
body[data-theme="night"] {
  /* 深色模式變數 (Canonical Night Palette) */
  --bg-primary: #0a1128;
  --bg-secondary: #0f1c3f;
  --bg-surface: rgba(15, 28, 63, 0.85);
  --bg-card: rgba(20, 36, 78, 0.75);
  --border-color: rgba(0, 240, 255, 0.2);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  
  --accent-cyan: #00f0ff;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #a855f7;
  
  --nav-bg: rgba(10, 17, 40, 0.92);
  --btn-primary: linear-gradient(135deg, #10b981, #059669);
  --btn-primary-hover: linear-gradient(135deg, #059669, #047857);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="day"],
html[data-theme="day"],
body[data-theme="day"] {
  /* 日間模式變數 (Canonical Day Palette) */
  --bg-primary: #fffaf1;
  --bg-secondary: #f4ede2;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #eadcc9;
  --border-glow: rgba(244, 123, 32, 0.3);
  
  --text-main: #2d2118;
  --text-muted: #6f6258;
  --text-bright: #1b120c;
  
  --accent-cyan: #0284c7;
  --accent-green: #059669;
  --accent-gold: #d97706;
  --accent-purple: #7c3aed;
  
  --nav-bg: rgba(255, 250, 241, 0.96);
  --btn-primary: linear-gradient(135deg, #059669, #047857);
  --btn-primary-hover: linear-gradient(135deg, #047857, #065f46);
  --shadow-card: 0 10px 25px rgba(45, 33, 24, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

[data-theme="day"] .badge-pill {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
  color: #065f46;
}

[data-theme="day"] .tag-item {
  color: #4b5563;
}

[data-theme="day"] .code-box pre {
  color: #0284c7;
}

[data-theme="day"] .prompt-container {
  background: #1e293b;
}

[data-theme="day"] .prompt-header {
  background: #0f172a;
}

[data-theme="day"] .prompt-code-block {
  background: #1e293b;
  color: #e2e8f0;
}

/* 基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-cyan);
  color: #000;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* 頂部導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-bright);
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-green);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-cyan);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.pill-fb {
  background: #1877f2;
  color: #ffffff !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s;
}

.pill-fb:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Hero 主視覺區 */
.hero-section {
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.08), transparent 60%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--btn-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
}

.btn-outline:hover {
  color: var(--text-bright);
  border-color: var(--text-muted);
}

.hero-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tag-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 縮圖包裝區 */
.thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glow);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.25);
}

.thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumbnail-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-end;
}

/* Skill 安裝卡片與程式碼複製框 */
.install-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.install-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.install-card h3 {
  font-size: 1.35rem;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.install-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.code-box {
  background: #060b19;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  margin-bottom: 16px;
}

.code-box pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: "Fira Code", Consolas, Monaco, monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  line-height: 1.5;
}

.btn-copy {
  margin-top: 10px;
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.install-note {
  font-size: 0.85rem !important;
  color: var(--accent-green) !important;
  font-weight: 500;
  margin-bottom: 0 !important;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.install-steps li {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.file-links {
  margin-top: auto;
}

.btn-text-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-text-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Prompt 一鍵複製專區 */
.prompt-section {
  background: var(--bg-secondary);
}

.prompt-container {
  background: #060b19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.prompt-header {
  padding: 14px 20px;
  background: rgba(15, 28, 63, 0.9);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.file-name {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.btn-copy-highlight {
  background: var(--btn-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-copy-highlight:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.prompt-code-block {
  padding: 24px;
  max-height: 480px;
  overflow-y: auto;
  font-family: "Fira Code", Consolas, Monaco, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: #060b19;
  white-space: pre-wrap;
  word-break: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* 實際聊天室截圖與介面拆解區 */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.device-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mockup-header {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 10px;
  font-weight: 500;
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.card-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-text h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.card-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 全息主視覺概念卡片 */
.concept-section {
  background: var(--bg-secondary);
}

.concept-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.concept-media {
  height: 100%;
}

.concept-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 380px;
}

.concept-info {
  padding: 40px;
}

.badge-mini {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.concept-info h2 {
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 16px;
  line-height: 1.3;
}

.concept-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quote-block {
  border-left: 3px solid var(--accent-green);
  padding-left: 16px;
  background: rgba(16, 185, 129, 0.05);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-block blockquote {
  font-style: italic;
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 6px;
}

.quote-block cite {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-style: normal;
}

/* 課堂節奏步驟 */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-card.highlight {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.step-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-cyan);
}

.step-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 學習單下載專區 */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.student-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

.teacher-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.download-card h3 {
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-specs {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-specs li {
  font-size: 0.9rem;
  color: var(--text-main);
}

.download-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.btn-download {
  flex: 1;
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--btn-primary);
  color: #fff;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}

.btn-download.word {
  background: var(--bg-card);
  color: var(--text-bright);
  border: 1px solid var(--border-color);
}

.btn-download.word:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 常見問題 FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  outline: none;
  user-select: none;
}

.faq-answer {
  padding: 0 24px 18px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 全站統一頁尾規範 */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 30px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left .footer-copy {
  font-size: 0.9rem;
  color: var(--text-bright);
  font-weight: 600;
}

.footer-left .footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
}

.footer-coffee-btn {
  background: linear-gradient(135deg, #ffdd00, #f59e0b);
  color: #1e293b;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.footer-back-top {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-back-top:hover {
  color: var(--accent-cyan);
}

/* 贊助視窗彈窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-bright);
}

.modal-coffee-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-tip {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.modal-cta-btn {
  display: block;
  background: linear-gradient(135deg, #ffdd00, #f59e0b);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

/* 響應式佈局 (Mobile / Tablet) */
@media (max-width: 992px) {
  .hero-container,
  .breakdown-grid,
  .concept-card,
  .download-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  
  .site-nav.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .flow-steps {
    grid-template-columns: 1fr;
  }
  
  .download-actions {
    flex-direction: column;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
