/* ==========================================================================
   台電學員咖啡課程 - 手沖咖啡萃取動力學與濾杯風味解密
   專屬專業視覺風格規範
   ========================================================================== */

:root {
  --color-bg: #f9f5f0;
  --color-bg-alt: #f0e7dd;
  --color-surface: #ffffff;
  --color-surface-hover: #fdfbf7;
  --color-text-main: #2b1d16;
  --color-text-muted: #6b5c54;
  --color-border: #e6dacd;
  
  /* 咖啡特色配色 */
  --coffee-dark: #24160f;
  --coffee-espresso: #442718;
  --coffee-mocha: #633b24;
  --coffee-caramel: #c86a3d;
  --coffee-amber: #d97736;
  --coffee-gold: #e6a147;
  --coffee-cream: #faf5ed;
  
  /* 台電標誌性元素融合 (工程電力感藍綠與電光金) */
  --taipower-green: #0a6847;
  --taipower-blue: #0284c7;
  --taipower-gold: #f59e0b;
  --electric-cyan: #06b6d4;

  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --shadow-sm: 0 2px 8px rgba(43, 29, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(43, 29, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 29, 22, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 頂部閱讀進度條 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coffee-caramel), var(--taipower-blue), var(--coffee-gold));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 網站導航 */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(249, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
}

.company-tag {
  color: var(--taipower-green);
  background: rgba(10, 104, 71, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.partner-tag {
  color: var(--coffee-espresso);
  background: rgba(68, 39, 24, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.divider {
  color: #a89a8f;
  font-size: 0.85rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 0;
}

.desktop-nav a:hover {
  color: var(--coffee-caramel);
}

.desktop-nav .nav-cta {
  background: var(--coffee-espresso);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-left: 6px;
}

.desktop-nav .nav-cta:hover {
  background: var(--coffee-caramel);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--coffee-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer.open {
  display: flex;
}

.drawer-link {
  text-decoration: none;
  color: var(--color-text-main);
  padding: 10px 0;
  border-bottom: 1px solid #f1e9e0;
  font-weight: 500;
  font-size: 0.95rem;
}

.drawer-link.cta-highlight {
  color: var(--coffee-caramel);
  font-weight: 700;
  border-bottom: none;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(200, 106, 61, 0.12), transparent 45%),
              linear-gradient(180deg, #f9f5f0 0%, #f0e6da 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--color-border);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--coffee-mocha);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--taipower-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(10, 104, 71, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 104, 71, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(10, 104, 71, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(10, 104, 71, 0); }
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 900;
  color: var(--coffee-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title .accent-text {
  background: linear-gradient(135deg, var(--coffee-caramel), #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 780px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.course-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.meta-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(230, 218, 205, 0.8);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.meta-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.meta-icon {
  font-size: 1.8rem;
  background: #faf4ec;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.meta-info {
  display: flex;
  flex-direction: column;
}

.meta-info .label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.meta-info .val {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--coffee-dark);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--coffee-espresso);
  color: #fff;
  box-shadow: 0 4px 14px rgba(68, 39, 24, 0.25);
}

.btn-primary:hover {
  background: var(--coffee-caramel);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--taipower-green);
  border: 1.5px solid var(--taipower-green);
}

.btn-secondary:hover {
  background: var(--taipower-green);
  color: #fff;
  transform: translateY(-2px);
}

/* SECTION COMMON */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coffee-caramel);
  margin-bottom: 8px;
}

.section-tag.special-tag {
  color: var(--taipower-green);
  background: rgba(10, 104, 71, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-tag.interactive-tag {
  color: var(--taipower-blue);
  background: rgba(2, 132, 199, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

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

/* SECTION 01: 課程架構與核心目標 */
.timeline-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.phase-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.phase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.phase-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f4eae0;
  color: var(--coffee-mocha);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.phase-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 18px;
}

.phase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 18px;
}

.phase-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--coffee-caramel);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.core-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.core-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coffee-caramel), var(--coffee-gold));
}

.core-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(200, 106, 61, 0.25);
  margin-bottom: 8px;
}

.core-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 12px;
}

.core-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* SECTION 02: 從種子到杯子 */
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
  overflow-x: auto;
}

.step-node {
  min-width: 140px;
  text-align: center;
  padding: 8px;
}

.step-index {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coffee-caramel);
  letter-spacing: 1px;
}

.step-icon {
  font-size: 2.2rem;
  margin: 6px 0;
}

.step-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--coffee-dark);
}

.step-en {
  font-size: 0.75rem;
  color: #9c8e84;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.step-arrow {
  color: #c4b5a8;
  font-size: 1.5rem;
  font-weight: bold;
}

/* 果實解剖分析 */
.anatomy-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.anatomy-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 10px;
}

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

.layers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid #ebdcd0;
}

.layer-num {
  background: var(--coffee-espresso);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.layer-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--coffee-dark);
  margin-bottom: 2px;
}

.layer-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.anatomy-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 視覺同心層圖示 */
.cherry-graphic {
  width: 280px;
  height: 280px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  transition: transform 0.2s ease;
}

.layer-skin {
  width: 280px;
  height: 280px;
  background: #be123c;
  box-shadow: 0 10px 25px rgba(190, 18, 60, 0.25);
}

.layer-pulp {
  width: 236px;
  height: 236px;
  background: #f87171;
}

.layer-mucilage {
  width: 194px;
  height: 194px;
  background: #fbbf24;
}

.layer-parchment {
  width: 152px;
  height: 152px;
  background: #fde68a;
}

.layer-silverskin {
  width: 114px;
  height: 114px;
  background: #e2e8f0;
}

.layer-bean {
  width: 76px;
  height: 76px;
  background: #15803d;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}

.tag-badge {
  position: absolute;
  top: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
}

.tag-badge.core-bean {
  top: 26px;
  color: #fff;
  font-size: 0.62rem;
}

.video-ref-pill {
  font-size: 0.85rem;
  color: var(--coffee-mocha);
  background: #f7ebe1;
  border: 1px dashed var(--coffee-caramel);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-align: center;
}

/* SECTION 03: 品種譜系 */
.origin-banner {
  background: linear-gradient(135deg, #2d3b2f 0%, #1e281f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.origin-icon {
  font-size: 2.4rem;
}

.origin-banner h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: #86efac;
}

.origin-banner p {
  color: #d1d5db;
  font-size: 0.92rem;
}

.lineage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lineage-branch {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.branch-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1e7dc;
  color: var(--coffee-mocha);
  margin-bottom: 12px;
}

.branch-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.branch-sub {
  font-size: 0.85rem;
  color: var(--coffee-caramel);
  font-weight: 600;
  margin-bottom: 20px;
}

.variety-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chip {
  background: var(--color-bg);
  border: 1px solid #ebdcd0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.chip strong {
  display: block;
  font-size: 0.92rem;
  color: var(--coffee-dark);
  margin-bottom: 2px;
}

.chip span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}

.featured-chip {
  background: #fef3c7;
  border-color: #f59e0b;
}

.featured-chip strong {
  color: #92400e;
}

/* SECTION 04: 處理法 */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.process-id {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--coffee-caramel);
}

.process-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--coffee-dark);
}

.process-card-header .en-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.process-badge {
  display: inline-block;
  align-self: flex-start;
  background: #faede2;
  color: var(--coffee-mocha);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.process-summary {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.flavor-profile {
  border-top: 1px solid #f0e6dc;
  padding-top: 16px;
}

.fp-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coffee-dark);
  display: block;
  margin-bottom: 8px;
}

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

.tag {
  background: #f7efe6;
  color: var(--coffee-espresso);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* SECTION 05: 風土與全球地圖 */
.terroir-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.region-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.region-flag {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.region-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.countries {
  font-size: 0.85rem;
  color: var(--coffee-caramel);
  font-weight: 600;
  margin-bottom: 14px;
}

.region-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.key-notes {
  background: var(--color-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid #ebdcd0;
}

.key-notes strong {
  display: block;
  color: var(--coffee-dark);
  margin-bottom: 2px;
}

.key-notes span {
  color: var(--coffee-mocha);
}

/* SECTION 06: 磨豆機刀盤 */
.burr-interactive-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 36px;
}

.burr-tabs {
  display: flex;
  background: #f4eae0;
  border-bottom: 1px solid var(--color-border);
}

.burr-tab {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.burr-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--coffee-dark);
}

.burr-tab.active {
  background: var(--color-surface);
  color: var(--coffee-caramel);
  box-shadow: 0 -2px 0 var(--coffee-caramel) inset;
}

.burr-grid-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  padding: 36px;
  gap: 36px;
}

.burr-badge-pill {
  display: inline-block;
  background: #faede2;
  color: var(--coffee-caramel);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

#burrTitle {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 14px;
}

#burrMechanics {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.burr-curve-box, .burr-cup-box {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  border: 1px solid #ecded2;
  margin-bottom: 14px;
}

.curve-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--coffee-espresso);
  margin: 4px 0 6px;
}

.burr-curve-box p, .burr-cup-box p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.burr-machines {
  font-size: 0.9rem;
  color: var(--coffee-mocha);
  padding-top: 6px;
}

.curve-chart-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.chart-caption {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 10px;
}

.curve-svg {
  width: 100%;
  height: auto;
  display: block;
}

.particle-shape-card {
  background: #fdf8f4;
  border: 1px dashed var(--coffee-caramel);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.shape-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.particle-shape-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.table-responsive {
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #f4eae0;
  color: var(--coffee-dark);
  font-weight: 800;
  padding: 14px 18px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0e6db;
  vertical-align: top;
  color: var(--color-text-muted);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.highlight-badge {
  display: inline-block;
  background: #faede2;
  color: var(--coffee-caramel);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* SECTION 07: 濾杯與台電比喻 */
.drippers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.dripper-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dripper-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dripper-header {
  padding: 24px 28px;
  color: #fff;
  position: relative;
}

.v60-theme { background: linear-gradient(135deg, #c2410c, #ea580c); }
.wave-theme { background: linear-gradient(135deg, #0369a1, #0284c7); }
.melitta-theme { background: linear-gradient(135deg, #4d382c, #78533c); }
.clever-theme { background: linear-gradient(135deg, #0f766e, #0d9488); }

.dripper-shape-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dripper-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.dripper-geo {
  font-size: 0.82rem;
  opacity: 0.9;
}

.dripper-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.dripper-param strong {
  display: block;
  font-size: 0.85rem;
  color: var(--coffee-dark);
  margin-bottom: 2px;
}

.dripper-param span {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.speed-fast { color: #c2410c; font-weight: 800; }
.speed-mid { color: #0284c7; font-weight: 800; }
.speed-slow { color: #78350f; font-weight: 800; }
.speed-switch { color: #0d9488; font-weight: 800; }

.dripper-param p {
  font-size: 0.85rem;
  color: #78685e;
  margin-top: 4px;
}

/* 台電專屬比喻卡片 */
.taipower-analogy {
  margin-top: auto;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--taipower-green);
  background: #f1f8f5;
}

.analogy-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--taipower-green);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 4px;
}

.analogy-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--taipower-green);
  margin-bottom: 6px;
}

.analogy-text {
  font-size: 0.88rem;
  color: #234e3e;
  line-height: 1.5;
}

/* SECTION 08: 萃取本質與金杯理論 */
.essence-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.essence-col h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 12px;
}

.essence-col p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.ratio-bars {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 6px;
}

.bar-track {
  height: 14px;
  background: #ede2d5;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.fiber-fill { background: #8b5e3c; }
.soluble-fill { background: linear-gradient(90deg, #d97736, #e6a147); }

.bar-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.gold-kpis {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-metric-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid #eadcd0;
}

.kpi-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--coffee-caramel);
}

.kpi-val {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--coffee-espresso);
  line-height: 1.15;
  margin: 4px 0;
}

.kpi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.kpi-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.variables-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.vars-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 24px;
  text-align: center;
}

.vars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.var-box {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid #eadcd0;
  display: flex;
  flex-direction: column;
}

.var-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--coffee-caramel);
  margin-bottom: 4px;
}

.var-box h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 8px;
}

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

/* SECTION 09: 雙沖煮工藝 */
.craft-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.craft-badge {
  align-self: flex-start;
  padding: 4px 12px;
  background: #faede2;
  color: var(--coffee-mocha);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.craft-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 4px;
}

.craft-sub {
  font-size: 0.9rem;
  color: var(--coffee-caramel);
  font-weight: 600;
  margin-bottom: 24px;
}

.pourover-phases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.phase-step {
  display: flex;
  gap: 14px;
}

.step-badge-circle {
  width: 28px;
  height: 28px;
  background: var(--coffee-espresso);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.phase-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--coffee-dark);
  margin-bottom: 3px;
}

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

.sensory-tip {
  margin-top: auto;
  background: #fbf5ef;
  border: 1px dashed var(--coffee-caramel);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--coffee-mocha);
  line-height: 1.5;
}

/* SECTION 10: 沖煮計算機與計時器 */
.calc-timer-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.calc-panel, .timer-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--coffee-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid #f2e7db;
  padding-bottom: 10px;
}

.preset-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.preset-btn {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.preset-btn:hover {
  background: #f3e8dc;
}

.preset-btn.active {
  background: #faefe6;
  border-color: var(--coffee-caramel);
  box-shadow: 0 0 0 1px var(--coffee-caramel);
}

.preset-title {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--coffee-dark);
}

.preset-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--coffee-dark);
  margin-bottom: 8px;
}

.val-display {
  color: var(--coffee-caramel);
  font-weight: 800;
}

.input-group input[type="range"] {
  width: 100%;
  accent-color: var(--coffee-caramel);
  cursor: pointer;
}

.roast-temp-chips {
  display: flex;
  gap: 10px;
}

.temp-chip {
  background: #f4eae0;
  color: var(--coffee-mocha);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.stages-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.stage-result-card {
  background: var(--color-bg);
  border: 1px solid #ebdcd0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.st-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--coffee-dark);
}

.st-weight {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--coffee-caramel);
  margin: 2px 0;
}

.st-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--taipower-blue);
}

.st-action {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* 右側計時器 */
.timer-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-panel .panel-heading {
  width: 100%;
  text-align: left;
}

.timer-display-box {
  background: linear-gradient(180deg, #24160f 0%, #3a2014 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.timer-clock {
  font-family: monospace;
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fef08a;
  text-shadow: 0 2px 10px rgba(254, 240, 138, 0.3);
}

.timer-current-stage {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fed7aa;
  margin-top: 6px;
}

.timer-target-weight {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-top: 4px;
}

.timer-progress-track {
  width: 100%;
  height: 10px;
  background: #ede1d3;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 24px;
}

.timer-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--taipower-green), var(--coffee-gold));
  transition: width 0.3s linear;
}

.timer-controls {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.timer-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-start {
  background: var(--taipower-green);
  color: #fff;
}

.btn-start:hover {
  background: #0d8259;
}

.btn-pause {
  background: #e2e8f0;
  color: #475569;
}

.btn-pause:not(:disabled):hover {
  background: #cbd5e1;
}

.btn-reset {
  background: #fee2e2;
  color: #991b1b;
}

.btn-reset:hover {
  background: #fecaca;
}

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

.timer-instruction-card {
  background: #fcf6ef;
  border: 1px dashed var(--coffee-caramel);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--coffee-mocha);
  text-align: left;
  line-height: 1.5;
  width: 100%;
}

/* 結語區 */
.summary-section {
  background: #2b1d16;
  color: #fff;
  padding: 80px 0;
}

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

.course-end-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.summary-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fdfbf7;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.35;
}

.summary-text {
  font-size: 1.05rem;
  color: #d7ccc4;
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.taipower-seal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: #e6dacd;
}

.sep {
  opacity: 0.4;
}

/* FOOTER */
.site-footer {
  background: #1e130e;
  color: #9c8e84;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-note {
  font-size: 0.78rem;
  color: #7b6d64;
}

/* 回到頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--coffee-espresso);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 0.9;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--coffee-caramel);
  transform: translateY(-3px);
}

/* RWD 響應式優化 */
@media (max-width: 992px) {
  .timeline-overview,
  .core-grid,
  .lineage-grid,
  .process-cards-grid,
  .terroir-regions,
  .drippers-grid,
  .vars-grid,
  .craft-compare-row,
  .calc-timer-wrapper {
    grid-template-columns: 1fr;
  }

  .essence-card,
  .anatomy-box,
  .burr-grid-content {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

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

  .section {
    padding: 60px 0;
  }

  .preset-buttons {
    grid-template-columns: 1fr;
  }

  .timer-clock {
    font-size: 2.8rem;
  }
}
