/* 
  Dopamine & Vibrant Redesign 
  Design Philosophy: Energetic, Colorful, Joyful, Modern
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&family=Inter:wght@400;500;600&display=swap');

/* 移動友好度兜底：所有圖片默認不超出容器寬度，未被具體 class 覆蓋時仍能自適應 */
img {
  max-width: 100%;
  height: auto;
}

:root {
  /* Dopamine Color Palette */
  --primary-navy: #1E1B4B;       /* Deep Indigo for contrast */
  --primary-blue: #3B82F6;       /* Bright Blue */
  --accent-mint: #F43F5E;        /* Vibrant Rose/Pink for primary actions */
  --accent-mint-hover: #E11D48;  
  --accent-mint-light: #FFE4E6;  
  
  --secondary-accent: #10B981;   /* Emerald Green */
  --tertiary-accent: #8B5CF6;    /* Vivid Purple */
  --yellow-accent: #FBBF24;      /* Sunny Yellow */
  
  --text-dark: #0F172A;          
  --text-muted: #475569;         
  
  --bg-light: #F8FAFC;           
  --bg-white: #ffffff;           
  --border-color: #E2E8F0;       
  
  --success: #10B981;            
  --warning-orange: #F59E0B;     

  /* Fallback aliases */
  --bg-base: var(--bg-light);
  --bg-card: var(--bg-white);
  --text-primary: var(--text-dark);
  --border-light: var(--border-color);
  --primary-indigo: var(--primary-navy);

  /* Typography System */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Outfit', sans-serif;

  /* Playful Shadows */
  --shadow-sm: 0 2px 4px rgba(244, 63, 94, 0.05);
  --shadow-md: 0 8px 20px rgba(59, 130, 246, 0.1);
  --shadow-lg: 0 16px 32px rgba(139, 92, 246, 0.15);
  --shadow-premium: 0 24px 48px rgba(244, 63, 94, 0.2);
  
  --transition-fast: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
  --transition-normal: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family-base); background-color: var(--bg-base); color: var(--text-primary); line-height: 1.7; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: 100px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Announcement Bar */
.announcement-bar { background: linear-gradient(90deg, var(--primary-blue), var(--tertiary-accent)); color: #fff; font-size: 0.8rem; padding: 12px 0; font-weight: 500; letter-spacing: 0.02em; border: none; }
.bar-inner { display: flex; justify-content: space-between; align-items: center; }
.region-selector-wrapper select { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; font-family: var(--font-family-base); }
.region-selector-wrapper select option { color: var(--text-dark); }

/* Header */
header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--accent-mint-light); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 1.8rem; font-family: var(--font-family-display); font-weight: 800; color: var(--accent-mint); background: linear-gradient(135deg, var(--accent-mint), var(--warning-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text .logo-title { font-family: var(--font-family-display); font-size: 1.4rem; font-weight: 800; color: var(--primary-navy); letter-spacing: -0.5px; }
.logo-text p { font-size: 0.7rem; color: var(--tertiary-accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 0px;}
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-family: var(--font-family-display); font-size: 1rem; color: var(--text-muted); position: relative; padding: 8px 12px; font-weight: 600; transition: var(--transition-fast); border-radius: var(--radius-sm); }
nav a:hover, nav a.active { color: var(--primary-navy); background: var(--bg-light); transform: scale(1.05); }

/* Buttons */
.header-cta, .btn-primary, .btn-solution { 
  background: linear-gradient(135deg, var(--accent-mint), var(--warning-orange)); 
  color: #fff; 
  padding: 12px 28px; 
  border-radius: var(--radius-pill); 
  font-family: var(--font-family-display);
  font-size: 1rem; 
  font-weight: 700; 
  transition: var(--transition-fast); 
  border: none;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}
.header-cta:hover, .btn-primary:hover, .btn-solution:hover { 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4); 
}
.btn-outline, .btn-trap {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
}
.btn-outline:hover, .btn-trap:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Page Hero (For subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light), var(--accent-mint-light));
  padding: 60px 0;
  text-align: center;
  border-bottom: 2px dashed var(--accent-mint);
  margin-bottom: 40px;
}
.page-hero h1 {
  font-family: var(--font-family-display);
  font-size: 2.5rem;
  color: var(--primary-navy);
  font-weight: 800;
}

/* Hero Section */
.hero-section { padding: 100px 0; background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%); border-bottom: 2px solid var(--bg-light); overflow: hidden; position: relative;}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2;}
.trust-badge { display: inline-block; font-family: var(--font-family-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; background: var(--bg-white); border: 2px solid var(--accent-mint-light); padding: 8px 20px; border-radius: var(--radius-pill); margin-bottom: 24px; color: var(--accent-mint); box-shadow: var(--shadow-sm); }
.hero-title { font-family: var(--font-family-display); font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1.1; color: var(--primary-navy); margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.hero-title .highlight { position: relative; color: transparent; background: linear-gradient(135deg, var(--primary-blue), var(--tertiary-accent)); -webkit-background-clip: text; display: inline-block; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; font-weight: 500; line-height: 1.6; max-width: 90%; }
.hero-stats { display: flex; gap: 30px; }
.stat-item { background: var(--bg-white); padding: 16px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--accent-mint-light); transition: var(--transition-fast); }
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.stat-num { font-family: var(--font-family-display); font-size: 2.2rem; font-weight: 800; color: var(--accent-mint); line-height: 1; margin-bottom: 4px;}
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: var(--transition-normal); border: 8px solid #fff; }
.hero-visual:hover { transform: rotate(0deg) scale(1.02); }
.hero-visual img { width: 100%; height: auto; display: block; object-fit: cover; }
.hero-visual-kicker { position: absolute; bottom: 20px; left: -20px; background: var(--bg-white); padding: 20px 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); transform: rotate(-4deg); border: 2px solid var(--yellow-accent); }
.hero-visual-kicker p { font-family: var(--font-family-display); font-size: 1.1rem; font-weight: 800; color: var(--primary-navy); }
.hero-visual-kicker strong { color: var(--accent-mint); }

/* Section Header */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-family: var(--font-family-display); font-size: 2.8rem; color: var(--primary-navy); margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.section-header p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; }
.tco-section, .seo-hub-section, .comparison-section, .calculator-section, .guarantee-section { padding: 100px 0; }
.tco-section { background: var(--bg-light); border-radius: 40px; margin: 40px 20px; }

/* Filter Controls */
.filter-controls { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.control-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.control-label { font-size: 1rem; font-weight: 600; color: var(--text-dark); min-width: 90px; }
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-family-base);
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}
.filter-btn.active {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Dopamine Cards */
.topic-grid, .traps-showcase { display: grid; gap: 30px; }
.topic-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.traps-showcase { grid-template-columns: repeat(2, 1fr); }

.topic-card, .trap-card, .clinic-card {
  background: var(--bg-white);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.topic-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--primary-blue), var(--tertiary-accent)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; opacity: 0; transition: var(--transition-fast); }
.topic-card:hover, .clinic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-mint-light);
}
.topic-card:hover::before { opacity: 1; }
.topic-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; display: inline-block; padding: 15px; background: var(--bg-light); border-radius: var(--radius-md); transform: rotate(-5deg); transition: var(--transition-fast); }
.topic-card:hover .topic-icon { transform: rotate(5deg) scale(1.1); background: var(--accent-mint-light); color: var(--accent-mint); }
.topic-card h3, .clinic-card h3 { font-family: var(--font-family-display); font-size: 1.5rem; color: var(--primary-navy); margin-bottom: 16px; font-weight: 800; }
.topic-card p, .clinic-card p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.6; flex-grow: 1; }

/* Trap specific */
.trap-card { padding: 0; overflow: hidden; border: 2px solid var(--border-color); }
.trap-card:hover { border-color: var(--tertiary-accent); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.trap-card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 2px solid var(--border-color); background: var(--bg-light); }
.trap-card-title { display: flex; align-items: center; gap: 16px; }
.trap-card-title .index { font-family: var(--font-family-display); font-size: 1.4rem; color: #fff; background: var(--tertiary-accent); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; }
.trap-card-title h3 { font-family: var(--font-family-display); font-size: 1.3rem; color: var(--primary-navy); font-weight: 700; }
.trap-toggle-switch { display: flex; gap: 8px; background: var(--bg-white); padding: 4px; border-radius: var(--radius-pill); box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.trap-toggle-btn { padding: 8px 20px; font-size: 0.9rem; border-radius: var(--radius-pill); }
.trap-card-image-wrapper { height: 220px; border-bottom: 2px solid var(--border-color); overflow: hidden; }
.trap-card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-normal); }
.trap-card:hover .trap-card-image-wrapper img { transform: scale(1.05); }
.trap-card-content { padding: 30px; background: #fff; }
.trap-content-pane h4 { font-family: var(--font-family-display); color: var(--primary-navy); font-size: 1.3rem; margin-bottom: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.trap-content-pane p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.6; }
.trap-pane-list { list-style: none; }
.trap-pane-list li { color: var(--text-dark); margin-bottom: 12px; font-size: 1rem; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.trap-pane-list li::before { content: '✨'; font-size: 1.1rem; }
.state-trap .trap-pane-list li::before { content: '⚠️'; }
.pane-solution { display: none; }
.state-solution .pane-trap { display: none; }
.state-solution .pane-solution { display: block; }
.state-trap .btn-trap { background: var(--warning-orange); color: #fff; border-color: var(--warning-orange); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
.state-trap .btn-solution { background: transparent; color: var(--text-muted); border-color: transparent; }
.state-solution .btn-solution { background: var(--success); color: #fff; border-color: var(--success); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.state-solution .btn-trap { background: transparent; color: var(--text-muted); border-color: transparent; }

/* Tables (Price comparison) */
.comparison-table-wrapper { overflow-x: auto; background: var(--bg-white); border: 2px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; }
.comparison-table th {
  background: var(--bg-light);
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-weight: 800;
  padding: 22px 26px;
  border-bottom: 2px solid var(--border-color);
  font-size: 1.02rem;
}
.comparison-table td {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-light); }
.compare-table { width: 100%; border-collapse: collapse; text-align: left; }
.compare-table th { background: var(--bg-light); color: var(--primary-navy); font-family: var(--font-family-display); font-weight: 800; padding: 24px; border-bottom: 2px solid var(--border-color); font-size: 1.1rem; }
.compare-table td { padding: 24px; border-bottom: 1px solid var(--border-color); color: var(--text-dark); font-size: 1rem; font-weight: 500; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-light); }
.clinic-name { color: var(--primary-navy); font-family: var(--font-family-display); font-size: 1.05rem; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.clinic-tags, .compare-card-tags, .trust-row { display: flex; flex-wrap: wrap; gap: 7px; }
.clinic-tag, .trust-pill { display: inline-flex; align-items: center; border-radius: var(--radius-pill); font-size: 0.74rem; font-weight: 800; line-height: 1.2; padding: 6px 10px; }
.clinic-tag { background: rgba(59, 130, 246, 0.09); color: var(--primary-blue); }
.trust-pill { background: rgba(16, 185, 129, 0.10); color: #047857; }
.compare-metric { display: flex; flex-direction: column; gap: 6px; }
.metric-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 800; line-height: 1.35; }
.metric-value { color: var(--primary-navy); font-weight: 800; line-height: 1.45; }
.price-text { color: var(--tertiary-accent); font-family: var(--font-family-display); font-size: 1.18rem; font-weight: 900; }
.included-list { margin: 0; padding-left: 18px; color: var(--text-dark); line-height: 1.65; }
.compare-card-list { display: none; }
.price-tag { font-family: var(--font-family-display); color: var(--accent-mint); font-weight: 800; font-size: 1.3rem; background: var(--accent-mint-light); padding: 4px 12px; border-radius: var(--radius-pill); display: inline-block; }
.td-highlight { background-color: rgba(59, 130, 246, 0.05); border-left: 2px solid var(--primary-blue); }

.promo-price-table-wrapper {
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.promo-price-table-wrapper .comparison-table {
  table-layout: fixed;
}

.promo-price-table-wrapper th:nth-child(1),
.promo-price-table-wrapper td:nth-child(1) {
  width: 22%;
}

.promo-price-table-wrapper th:nth-child(2),
.promo-price-table-wrapper td:nth-child(2) {
  width: 34%;
}

.promo-price-table-wrapper th:nth-child(3),
.promo-price-table-wrapper td:nth-child(3) {
  width: 25%;
}

.promo-price-table-wrapper th:nth-child(4),
.promo-price-table-wrapper td:nth-child(4) {
  width: 19%;
  text-align: right;
}

.promo-price-table-wrapper .price-tag {
  min-width: 148px;
  padding: 8px 16px;
  text-align: center;
  white-space: nowrap;
}

.promo-price-table-wrapper .btn-outline {
  min-width: 112px;
  padding: 9px 18px !important;
  font-size: 0.92rem !important;
  white-space: nowrap;
}

/* Calculator */
.calc-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; background: var(--bg-white); border: 2px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.calc-panel h3 { font-family: var(--font-family-display); font-size: 1.8rem; color: var(--primary-navy); margin-bottom: 30px; font-weight: 800; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 1rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 600; }
.form-group select, .form-group input { width: 100%; padding: 14px 16px; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: 1rem; background: var(--bg-light); transition: var(--transition-fast); font-weight: 500; color: var(--primary-navy); }
.form-group select:focus, .form-group input:focus { outline: none; border-color: var(--primary-blue); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.result-panel { background: linear-gradient(135deg, var(--primary-navy), #312E81); padding: 40px; border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.result-panel::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: var(--accent-mint); border-radius: 50%; opacity: 0.2; filter: blur(30px); }
.result-panel h3 { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
.result-item { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 1rem; color: rgba(255,255,255,0.8); }
.result-item span:last-child { color: #fff; font-weight: 700; font-family: var(--font-family-display); font-size: 1.1rem; }
.result-total { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 30px; border-top: 2px dashed rgba(255,255,255,0.3); }
.result-total span:first-child { font-family: var(--font-family-display); font-size: 1.4rem; color: #fff; font-weight: 800; }
.total-price { font-family: var(--font-family-display); font-size: 2.8rem; color: var(--yellow-accent); font-weight: 800; text-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Footer */
footer { background-color: var(--primary-navy); color: #fff; padding: 80px 0 40px; border-top: 4px solid var(--accent-mint); position: relative; overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 60px; position: relative; z-index: 2; }
.footer-brand .logo-title { color: #fff; font-family: var(--font-family-display); font-size: 2rem; margin-bottom: 16px; font-weight: 800; }
.footer-brand p { font-size: 1rem; line-height: 1.6; max-width: 300px; color: rgba(255,255,255,0.7); }
.footer-links h4 { color: var(--yellow-accent); font-family: var(--font-family-display); margin-bottom: 24px; font-size: 1.2rem; font-weight: 800; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { font-size: 1rem; color: rgba(255,255,255,0.8); font-weight: 500; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-mint); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.5); position: relative; z-index: 2; }
/* .bar-inner 本來是給頂部公告條做橫向 flex 排列用的，footer 底部直接借用了同一個 class 名，
   結果 3 行文字（法律連結/版權/地區）被當成 flex 項目擠成窄欄、逐字換行。這裡讓 footer 內強制改回直排。 */
.footer-bottom .bar-inner { display: block; }
.footer-bottom .bar-inner p { margin: 6px 0; }

/* Dialogs */
dialog { border: none; border-radius: var(--radius-lg); box-shadow: var(--shadow-premium); padding: 0; max-width: 600px; width: 90%; margin: auto; }
dialog::backdrop { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; border-bottom: 2px solid var(--border-color); background: var(--bg-light); }
.dialog-header h3 { font-family: var(--font-family-display); font-size: 1.6rem; font-weight: 800; color: var(--primary-navy); }
.dialog-close { background: var(--bg-white); border: 2px solid var(--border-color); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: var(--transition-fast); }
.dialog-close:hover { color: var(--accent-mint); border-color: var(--accent-mint); transform: rotate(90deg); }
.dialog-content { padding: 40px; }

#details-dialog {
  max-width: 720px;
  overflow: hidden;
  background: #fff;
}

#details-dialog .dialog-close-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: #fff;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

#details-dialog .dialog-close-btn:hover {
  color: var(--accent-mint);
  border-color: var(--accent-mint);
}

.dialog-body {
  max-height: min(70vh, 680px);
  overflow: auto;
  padding: 28px 32px 20px;
}

.doc-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.doc-avatar-mock {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-family-display);
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5b7, #7c3aed);
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.18);
  flex: 0 0 58px;
}

.doc-title-info h4 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: 1.22rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  color: #0f766e;
  background: rgba(45, 212, 191, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
}

.dialog-section {
  padding: 18px 0;
  border-top: 1px solid var(--border-color);
}

.dialog-section h5 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: 1rem;
  margin-bottom: 12px;
}

.price-list-box,
.dialog-list,
#dialog-doc-traffic {
  color: var(--text-dark);
  line-height: 1.75;
}

.price-row {
  padding: 2px 0;
}

.dialog-list li {
  margin: 6px 0;
}

.transit-stepper-container {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(14, 165, 183, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(124, 58, 237, 0.06));
}

.stepper-title {
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 14px;
}

.stepper-wrapper {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: start;
  gap: 8px;
}

.stepper-step {
  min-width: 0;
  text-align: center;
}

.stepper-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.stepper-label {
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 0.9rem;
}

.stepper-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 4px;
}

.stepper-line {
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, #0ea5b7, #7c3aed);
  border-radius: var(--radius-pill);
}

.dialog-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 32px 24px;
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.dialog-footer .secondary-btn,
.dialog-footer .primary-btn {
  min-width: 128px;
  white-space: nowrap;
  padding: 12px 18px;
}

.dialog-footer .primary-btn {
  flex: 1;
  max-width: 420px;
}

/* Lead Generation Dialog */
.lead-form-group { margin-bottom: 14px; }
.lead-form-group label { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 8px; font-weight: 600; }
.lead-form-group input[type="text"], .lead-form-group input[type="tel"] { width: 100%; padding: 14px 16px; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: 1rem; background: var(--bg-light); transition: var(--transition-fast); font-weight: 500; color: var(--primary-navy); }
.lead-form-group input[type="text"]:focus, .lead-form-group input[type="tel"]:focus { outline: none; border-color: var(--primary-blue); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.lead-phone-wrapper { display: flex; gap: 12px; }
.lead-phone-wrapper select { padding: 14px 16px; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: 1rem; background: var(--bg-light); transition: var(--transition-fast); font-weight: 500; color: var(--primary-navy); flex-shrink: 0; cursor: pointer; }
.lead-phone-wrapper select:focus { outline: none; border-color: var(--primary-blue); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.lead-phone-wrapper input { flex-grow: 1; }
.lead-methods-grid { display: grid; gap: 12px; }
.lead-method-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-fast); font-weight: 600; color: var(--text-muted); background: var(--bg-light); }
.lead-method-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: #fff; }
.lead-method-btn input[type="radio"] { display: none; }
.lead-method-btn.active { border-color: var(--primary-blue); color: var(--primary-blue); background: rgba(59, 130, 246, 0.05); }
.lead-submit-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--primary-blue), var(--tertiary-accent)); color: #fff; border: none; border-radius: var(--radius-pill); font-family: var(--font-family-display); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition-normal); margin-top: 16px; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.lead-submit-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); }

/* Articles Section */
.articles-section { padding: 80px 0; }
.article-quick-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 60px; }
.article-quick-nav a { padding: 12px 24px; background: #fff; border: 2px solid var(--border-color); border-radius: var(--radius-pill); font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: var(--transition-fast); box-shadow: var(--shadow-sm); }
.article-quick-nav a:hover { border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; margin-bottom: 60px; }
.article-card { background: #fff; border: 2px solid transparent; border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition-normal); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.article-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 4px; background: var(--accent-mint); transition: var(--transition-normal); }
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-color); }
.article-card:hover::after { width: 100%; }
.article-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.article-tag { color: #fff; background: var(--tertiary-accent); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; }
.article-card h3 { font-family: var(--font-family-display); font-size: 1.5rem; margin-bottom: 16px; color: var(--primary-navy); font-weight: 800; line-height: 1.3; }
.article-focus { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; line-height: 1.6; }
.article-list { list-style: none; margin-bottom: 30px; }
.article-list li { font-size: 1rem; color: var(--text-dark); margin-bottom: 12px; position: relative; padding-left: 24px; font-weight: 500; }
.article-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }
.article-link { font-family: var(--font-family-display); font-size: 1.1rem; font-weight: 800; color: var(--primary-blue); margin-top: auto; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition-fast); }
.article-link::after { content: '→'; font-size: 1.2rem; transition: var(--transition-fast); }
.article-link:hover { color: var(--primary-navy); }
.article-link:hover::after { transform: translateX(5px); }

.article-section-cta { background: linear-gradient(135deg, var(--bg-light), var(--accent-mint-light)); border: 2px dashed var(--accent-mint); padding: 60px; text-align: center; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.article-section-cta strong { font-family: var(--font-family-display); font-size: 1.5rem; color: var(--primary-navy); font-weight: 800; }

.breadcrumb-strip {
  padding: 34px 0 8px;
  background: #f8fafc;
  border-top: 1px solid rgba(226, 232, 240, 0.72);
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.breadcrumb-back:hover {
  color: var(--primary-blue);
}

/* Hospital detail pages */
.hospital-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 136px;
}

.hospital-hero {
  padding: 58px 0 64px;
  background:
    radial-gradient(circle at 78% 16%, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hospital-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 42px;
  align-items: center;
}

.hospital-hero-copy h1 {
  margin: 0 0 18px;
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.08;
  font-weight: 800;
}

.hospital-hero-copy p {
  color: #475569;
  font-size: 1.2rem;
  font-weight: 650;
}

.hospital-facade-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.1);
}

.hospital-facade-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hospital-facade-card figcaption {
  padding: 12px 18px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  border-top: 1px solid #e7edf6;
  background: #f8fafc;
}

.hospital-content {
  padding-top: 46px;
}

.hospital-articles-section {
  padding: 46px 0 96px;
  background: #fff;
}

.hospital-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hospital-article-grid .article-card {
  padding: 28px;
}

.article-empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}

/* Elegant Bottom Right Contact Widget */
.floating-contact-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}
.floating-contact-pill:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: var(--accent-mint-light);
}
.pill-text {
  font-family: var(--font-family-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
}
.pill-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-family-base);
}
.pill-btn {
  background: linear-gradient(135deg, var(--accent-mint), var(--warning-orange));
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}
.pill-btn:hover {
  transform: scale(1.1);
}

/* Scroll to top standard */
.btn-totop-simple {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}
.btn-totop-simple.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-totop-simple:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
}


/* Hero Proof Grid */
.hero-proof-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--secondary-accent);
  box-shadow: var(--shadow-sm);
}
.hero-proof strong {
  font-family: var(--font-family-display);
  color: var(--primary-navy);
  font-size: 0.95rem;
}
.hero-proof span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-action {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.hero-action.primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--tertiary-accent));
  color: #fff;
}
.hero-action.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hero-action:not(.primary) {
  background: var(--bg-white);
  color: var(--primary-navy);
  border-color: var(--border-color);
}
.hero-action:not(.primary):hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Channel Tabs */
.channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.channel-tab {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition-fast);
}
.channel-tab:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.channel-tab h4 {
  font-family: var(--font-family-display);
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 800;
}
.channel-tab p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Hero Interactive Card */
.hero-interactive-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.hero-brand-visual {
  display: flex;
  background: linear-gradient(135deg, var(--primary-navy), #312E81);
  color: #fff;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.hero-visual-copy {
  flex: 1;
  z-index: 2;
}
.hero-visual-copy h3 {
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  margin-bottom: 16px;
  margin-top: 10px;
  line-height: 1.3;
}
.hero-visual-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-family: var(--font-family-display);
  letter-spacing: 1px;
}
.hero-visual-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-visual-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.hero-visual-point span:first-child {
  background: var(--accent-mint);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.hero-visual-media {
  width: 120px;
  position: relative;
  z-index: 2;
}
.hero-visual-media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: rotate(5deg);
}
.card-header {
  padding: 24px 30px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}
.card-header-media {
  display: flex;
  align-items: center;
  gap: 20px;
}
.card-header-media img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}
.hero-card-kicker {
  font-size: 0.75rem;
  color: var(--accent-mint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-header-media h3 {
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}
.card-header-media p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-body {
  padding: 30px;
}
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.option-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.option-btn:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}
.option-btn.active, .option-btn:has(input:checked) {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
.card-footer {
  padding: 24px 30px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}
.primary-btn {
  background: linear-gradient(135deg, var(--accent-mint), var(--warning-orange));
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
}

/* DENTAL WHALE reference hero refresh */
body {
  background:
    radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.08), transparent 34%),
    radial-gradient(circle at 8% 52%, rgba(59, 130, 246, 0.08), transparent 32%),
    #ffffff;
  letter-spacing: 0;
  overflow-x: hidden;
}

header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.05);
}

.header-inner {
  height: 94px;
}

.logo-icon {
  font-size: 1.55rem;
  line-height: 1;
  background: linear-gradient(135deg, #ff3b47, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon.whale-logo-icon {
  width: 48px;
  height: 42px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.whale-logo-svg {
  width: 48px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 7px 14px rgba(8, 145, 178, 0.18));
}

.logo-text .logo-title {
  font-size: 1.48rem;
  line-height: 1;
  letter-spacing: 0;
}

.logo-text p {
  color: #8b5cf6;
  font-size: 0.74rem;
  letter-spacing: 1.2px;
  margin-top: 8px;
}

nav ul {
  gap: 38px;
}

nav a {
  color: #334155;
  font-size: 1.03rem;
  font-weight: 800;
  padding: 8px 6px;
}

nav a:hover,
nav a.active {
  background: transparent;
  color: var(--primary-navy);
  transform: none;
}

#global-lang-select {
  min-width: 122px;
  height: 40px;
  background: #f8fafc !important;
  border-color: #dde6f2 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.header-cta,
.primary-btn {
  background: linear-gradient(135deg, #f43f5e 0%, #ff9500 100%);
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.24);
}

.header-cta {
  padding: 14px 30px;
}

.whale-reference-hero {
  padding: 58px 0 88px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.42), rgba(255, 255, 255, 0.95) 60%),
    #ffffff;
  border-bottom: 0;
}

.whale-reference-hero .hero-inner {
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: 66px;
  align-items: start;
}

.whale-reference-hero .hero-content {
  padding-top: 26px;
}

.whale-reference-hero .hero-title {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 4.4vw, 4rem);
  line-height: 1.08;
  color: #17164a;
  letter-spacing: 0;
}

.whale-reference-hero .hero-title .highlight {
  display: block;
  margin-top: 6px;
  background: linear-gradient(92deg, #2f80ff 0%, #8b5cf6 82%);
  -webkit-background-clip: text;
}

.whale-reference-hero .hero-subtitle {
  max-width: 530px;
  margin-bottom: 34px;
  color: #475569;
  font-size: 1.17rem;
  line-height: 1.72;
  font-weight: 650;
}

.whale-reference-hero .hero-proof-grid {
  max-width: 610px;
  gap: 12px;
  margin-bottom: 32px;
}

.whale-reference-hero .hero-proof {
  min-height: 56px;
  padding: 14px 20px;
  border-left: 4px solid #10b981;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.whale-reference-hero .hero-proof strong {
  min-width: 84px;
  font-size: 1rem;
}

.whale-reference-hero .hero-proof span {
  font-size: 0.93rem;
  font-weight: 650;
}

.whale-reference-hero .hero-actions {
  gap: 18px;
  margin-bottom: 36px;
}

.whale-reference-hero .hero-action {
  min-width: 136px;
  padding: 15px 30px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.whale-reference-hero .hero-action.primary {
  background: linear-gradient(135deg, #4668ff 0%, #7c3aed 100%);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.24);
}

.whale-reference-hero .channel-tabs {
  max-width: 610px;
  gap: 12px;
  margin-bottom: 0;
}

.whale-reference-hero .channel-tab {
  min-height: 138px;
  padding: 19px 12px 16px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.channel-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-family-display);
  font-size: 0.82rem;
  font-weight: 800;
}

.channel-hospital { background: #3b82f6; }
.channel-doctor { background: #8b5cf6; }
.channel-price { background: #f59e0b; }
.channel-info { background: #10b981; }

.whale-reference-hero .channel-tab h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.whale-reference-hero .channel-tab p {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 650;
}

.whale-match-card {
  border: 1px solid #dfe7f2;
  border-radius: 24px;
  box-shadow: 0 26px 64px rgba(79, 70, 229, 0.13);
}

.whale-match-card .hero-brand-visual {
  min-height: 350px;
  padding: 0;
  background: #eef0ff;
  border-radius: 24px 24px 0 0;
  isolation: isolate;
  overflow: visible;
}

.whale-match-card .hero-brand-visual::before {
  display: none;
}

.whale-match-card .hero-brand-visual::after {
  display: none;
}

.whale-match-card .hero-visual-copy {
  position: absolute;
  left: 22px;
  bottom: -32px;
  width: min(460px, calc(100% - 44px));
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  z-index: 3;
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(30, 27, 75, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.visual-benefit {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  align-items: flex-start;
  color: #17164a;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #6366f1;
  border: 2px solid rgba(129, 140, 248, 0.44);
  font-family: var(--font-family-display);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.13);
}

.visual-benefit strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-family-display);
  font-size: 0.82rem;
  color: #17164a;
}

.visual-benefit p {
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 650;
}

.hero-clinic-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

.whale-match-card .card-body {
  padding: 60px 34px 12px;
}

.whale-match-card .form-group {
  margin-bottom: 26px;
}

.whale-match-card .form-group label {
  margin-bottom: 14px;
  color: #172033;
  font-family: var(--font-family-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.whale-match-card .form-group select {
  min-height: 58px;
  padding: 0 20px;
  border: 2px solid #d9e2ef;
  border-radius: 18px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 750;
}

.whale-match-card .card-footer {
  padding: 24px 34px 28px;
  background: #ffffff !important;
  border-top: 1px solid #e7edf6;
}

.whale-match-card .primary-btn {
  min-height: 64px;
  font-size: 1.08rem;
}

@media (max-width: 1120px) {
  .whale-reference-hero .hero-inner {
    grid-template-columns: 1fr;
  }

  .whale-match-card {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner > div:last-child {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px !important;
  }

  #global-lang-select {
    min-width: 118px;
    max-width: 132px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header-cta {
    padding: 13px 22px;
    font-size: 0.96rem;
  }

  nav ul {
    gap: 14px;
  }

  nav a {
    font-size: 0.94rem;
  }

  .whale-reference-hero {
    padding: 30px 0 62px;
  }

  .whale-reference-hero .hero-title {
    max-width: 100%;
    font-size: 2.36rem;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .whale-reference-hero .hero-subtitle {
    font-size: 1rem;
  }

  .whale-reference-hero .channel-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .whale-match-card .hero-brand-visual {
    min-height: 430px;
  }

  .whale-match-card .hero-brand-visual::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 56%;
    clip-path: ellipse(86% 72% at 18% 100%);
  }

  .whale-match-card .hero-visual-copy {
    width: 100%;
    left: 0;
    bottom: 0;
    min-height: 238px;
    margin-top: 190px;
    padding: 24px;
  }

  .hero-clinic-photo {
    width: 100%;
    height: 58%;
    object-position: center 38%;
  }

  .whale-match-card .card-body,
  .whale-match-card .card-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}



/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-inner, .calc-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .traps-showcase { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hospital-hero-grid,
  .hospital-article-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .header-inner { flex-direction: column; height: auto; padding: 20px 0; gap: 20px; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
  nav a { font-size: 0.9rem; padding: 6px 10px; }
  .comparison-table-wrapper {
    display: none;
  }
  .compare-card-list {
    display: grid;
    gap: 16px;
  }
  .compare-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 18px;
  }
  .compare-card-head {
    display: grid;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  }
  .compare-card-title {
    color: var(--primary-navy);
    font-family: var(--font-family-display);
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .compare-card-section {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  }
  .compare-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }
  .compare-card-actions .primary-btn,
  .compare-card-actions .secondary-btn {
    width: 100%;
  }
  .home-doctor-grid {
    grid-template-columns: 1fr;
  }
  .home-doctor-photo-wrap {
    height: 300px;
  }
  .hospital-header-actions {
    min-width: 0;
  }
  .hospital-hero {
    padding: 36px 0 44px;
  }
  .hospital-hero-copy h1 {
    font-size: 2.2rem;
  }
  .hospital-content {
    padding-top: 28px;
  }
}

/* Floating Toolbar Styles (Restored and Redesigned) */
.floating-toolbar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.toolbar-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.toolbar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.toolbar-btn.btn-booking { background: var(--primary-blue); color: white; }
.toolbar-btn.btn-wechat { background: #26c459; color: white; }
.toolbar-btn.btn-whatsapp { background: #25D366; color: white; }
.toolbar-btn.btn-top { background: var(--bg-light); color: var(--text-light); }

.tooltip-text {
  position: absolute;
  right: 65px;
  background: var(--text-main);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text-main);
}

.toolbar-btn:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  right: 60px;
}

.toolbar-btn-wrapper {
  position: relative;
}

.popover-card {
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: max-content;
  min-width: 160px;
  text-align: center;
  pointer-events: none;
}

.popover-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.toolbar-btn-wrapper:hover .popover-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.popover-title {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
}

.popover-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  white-space: nowrap;
}

.popover-qr {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popover-qr svg,
.popover-qr img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  /* 手機上原本垂直排在螢幕中間偏右，會壓住 2 欄卡片的右列文字（例如首頁 4 個快捷入口）。
     改成貼底部橫向排列，避免蓋住頁面中段內容。 */
  .floating-toolbar {
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 10px env(safe-area-inset-bottom, 10px) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
  }
  .floating-toolbar .toolbar-btn {
    width: 44px;
    height: 44px;
  }
  .floating-toolbar .tooltip-text,
  .floating-toolbar .popover-card {
    display: none; /* 手機上沒有 hover，提示文字/彈出卡片改成直接點擊觸發彈窗，不需要 hover 提示 */
  }
  /* 底部工具條會固定佔用約 64px 高度，內容區底部留出對應空間，避免最後一塊內容被蓋住 */
  body {
    padding-bottom: 64px;
  }
}

/* Clean static subpages */
.breadcrumb-strip {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  padding: 18px 0;
}

.breadcrumb-back {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.simple-page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 78% 22%, rgba(14, 165, 183, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  text-align: center;
}

.simple-page-hero h1 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 920px;
}

.simple-page-hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 760px;
}

.articles-section,
.hospitals-section,
.doctors-section,
.guide-content-section {
  padding: 72px 0;
  background: #f8fafc;
}

.articles-section .article-grid,
.hospitals-section .topic-grid,
.doctors-section .topic-grid,
.guide-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-card,
.clinic-card,
.doctor-card,
.guide-block {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.article-card,
.doctor-card,
.guide-block {
  padding: 30px;
}

.article-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.article-card h3,
.clinic-card h3,
.doctor-card h3,
.guide-block h2 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 14px 0 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  color: #fff;
  background: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.article-focus,
.clinic-card p,
.doctor-card p,
.guide-block p {
  color: var(--text-muted);
  line-height: 1.75;
}

.article-list {
  color: var(--text-dark);
  line-height: 1.75;
  margin-top: 14px;
  padding-left: 20px;
}

.guide-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.guide-article h2 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 30px 0 12px;
}

.guide-article p {
  color: var(--text-dark);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0 0 14px;
}

.guide-article .article-focus {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.guide-trust-box {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.guide-trust-box p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 8px;
}

.guide-trust-box p:last-child {
  margin-bottom: 0;
}

.guide-trust-box strong {
  color: var(--primary-navy);
}

.guide-related-links {
  max-width: 960px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-related-links a {
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.06);
  font-weight: 800;
}

.seo-faq-section {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.seo-faq-section h2 {
  color: var(--primary-navy);
  font-family: var(--font-family-display);
  font-size: 1.45rem;
  margin-bottom: 22px;
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-faq-item {
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
}

.seo-faq-item h3 {
  color: var(--primary-navy);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.seo-faq-item p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.home-doctor-card {
  padding: 32px 24px 38px;
}

.home-doctor-avatar {
  width: min(100%, 260px);
  height: 210px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #eef7ff);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 18px 38px rgba(59, 130, 246, 0.10);
}

.home-doctor-avatar.accent {
  border-color: rgba(139, 92, 246, 0.26);
  box-shadow: 0 18px 38px rgba(139, 92, 246, 0.10);
}

.home-doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 768px) {
  .home-doctor-card {
    padding: 36px 20px;
  }

  .home-doctor-avatar {
    width: min(100%, 260px);
    height: 220px;
  }

  .seo-faq-grid {
    grid-template-columns: 1fr;
  }

  .seo-faq-section,
  .guide-trust-box {
    padding: 22px;
  }
}

.article-link {
  color: var(--primary-blue);
  font-weight: 800;
}

.article-section-cta {
  margin-top: 34px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.article-section-cta span {
  color: var(--text-muted);
  font-weight: 700;
}

.article-section-cta strong {
  color: var(--primary-navy);
  flex: 1;
}

.article-section-cta button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff3b47, #ff9800);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.clinic-card-media {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.clinic-card-body {
  padding: 28px;
}

.clinic-card-empty {
  display: flex;
  align-items: center;
  min-height: 100%;
  background: linear-gradient(135deg, #fff, #fff1f2);
}

.doctor-card {
  padding: 0;
  text-align: left;
}

.doctor-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  background: #eef2f7;
}

.doctor-card-body {
  padding: 28px;
}

.doctor-specialty {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  color: #0f766e;
  background: rgba(45, 212, 191, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-block {
  min-height: 220px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--primary-blue);
  border-radius: var(--radius-pill);
  color: var(--primary-blue);
  font-weight: 800;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  color: #fff;
  background: var(--primary-blue);
}

@media (max-width: 980px) {
  .articles-section .article-grid,
  .hospitals-section .topic-grid,
  .doctors-section .topic-grid,
  .guide-content-grid {
    grid-template-columns: 1fr;
  }

  .article-section-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
