/* ===== 變數定義 ===== */
:root {
    /* 顏色 */
    --primary-color: #2E7D32;      /* 綠色 */
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary-color: #FF9800;    /* 橙色 */
    --accent-color: #1976D2;       /* 藍色 */
    --danger-color: #D32F2F;       /* 紅色 */
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-color: #EEEEEE;
    
    /* 字體 */
    --font-family: 'Noto Sans TC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-zh: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    
    /* 尺寸 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* 圓角 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* 陰影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    
    /* 過度 */
    --transition: all 0.3s ease;
}

/* ===== 全局樣式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 全站基準字級（適合 35–70 歲閱讀） */
html { font-size: 18.5px; color-scheme: light; }

body {
    font-family: var(--font-family-zh), var(--font-family);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== 標題 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== 按鈕 ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #F57C00;
}

/* ===== 導航列 ===== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 3.4em;
    min-height: 3.2em;
    line-height: 1.2;
    padding: 6px 4px;
    color: #1B5E20 !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: background .15s, transform .15s, color .15s;
}

/* 統一玻璃感淡綠色塊 */
.nav-menu a {
    background: rgba(46, 125, 50, 0.10);
    border: 1px solid rgba(46, 125, 50, 0.22);
    backdrop-filter: blur(2px);
}
.nav-menu li:nth-child(4) a { width: auto; min-width: 5em; padding-left: 10px; padding-right: 10px; } /* LINE Bot 專區加寬 */
.nav-menu li:nth-child(8) a { width: auto; min-width: 5em; padding-left: 10px; padding-right: 10px; } /* 醫療院所專區加寬 */

.nav-menu a:hover {
    transform: translateY(-2px);
    background: rgba(46, 125, 50, 0.20);
}

.nav-menu a.active {
    background: rgba(46, 125, 50, 0.92);
    border-color: rgba(46, 125, 50, 0.92);
    color: #fff !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

/* ===== 英雄區 ===== */
/* ===== 英雄區（原創設計，暫用至主視覺提供） ===== */
.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #00897B 0%, #26A69A 35%, #FF9800 100%);
    background-size: 200% 200%;
    animation: heroGradient 14s ease infinite;
}
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 裝飾性漂浮圓形 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    animation: heroFloat 9s ease-in-out infinite;
}
.hero::before { width: 320px; height: 320px; top: -90px; right: -60px; }
.hero::after  { width: 220px; height: 220px; bottom: -80px; left: -50px; animation-delay: 3s; }
@keyframes heroFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-26px); }
}

.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 820px;
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 10px 26px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 80px;
}
.hero-overlay h1 {
    font-size: clamp(2rem, 8.8vw, 4.6rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 3px 10px rgba(0,0,0,.32), 0 1px 0 rgba(0,0,0,.25);
}
/* 2026：超大半透明襯底 */
.hero-num-ghost {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(9rem, 32vw, 21rem);
    font-weight: 900;
    color: rgba(255,255,255,.24);
    letter-spacing: 4px;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}
/* 標題區（透明，無底色） */
.hero-panel {
    position: relative;
    z-index: 2;
}
.hero-panel p { margin-bottom: 0 !important; }
/* 逆轉代謝：黑色 */
.hero-overlay h1 .hero-hl2 {
    color: #111111;
    text-shadow: 0 1px 8px rgba(255,255,255,.4), 0 2px 6px rgba(0,0,0,.25);
}
/* 健康加值：亮黃發光 */
.hero-overlay h1 .hero-hl {
    color: #FFEB3B;
    text-shadow: 0 0 20px rgba(255,214,0,.85), 0 3px 10px rgba(0,0,0,.3);
}
.hero-overlay p {
    font-size: clamp(1rem, 2.4vw, 1.4rem);
    margin-bottom: 28px;
    color: rgba(255,255,255,0.95);
}
.hero-overlay .btn {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 16px 54px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    margin-top: 76px;
}
@media (max-width: 768px) {
    .hero { min-height: 420px; }
    .hero-overlay p { font-size: 1rem; }
}

/* ===== 子頁標題區 ===== */
.page-hero {
    padding: 64px 20px;
    text-align: center;
    color: #fff;
}
.page-hero-content {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
}
.page-hero-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transform: rotate(-4deg);
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.28);
}
.page-hero p {
    flex-basis: 100%;
}
.page-hero p {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .page-hero { padding: 48px 18px; }
    .page-hero-icon { width: 76px; height: 76px; border-radius: 22px; }
    .page-hero-icon .hicon { width: 52px; height: 52px; }
    .page-hero h1 { font-size: 2.1rem; }
    .page-hero p { font-size: 1.05rem; }
}

/* ===== 倒數計時 ===== */
.countdown-section {
    background: linear-gradient(135deg, #004D40 0%, #00695C 100%);
    padding: 48px 20px;
    text-align: center;
    color: #fff;
}
.countdown-label {
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.9);
}
.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.countdown-unit {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 18px 10px;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.countdown-num {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #FFD54F;
    font-variant-numeric: tabular-nums;
}
.countdown-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.countdown-sep {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    align-self: flex-start;
    margin-top: 18px;
}
.countdown-date {
    margin-top: 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #FFF;
    background: rgba(255,255,255,0.12);
    display: inline-block;
    padding: 8px 22px;
    border-radius: 24px;
}
@media (max-width: 480px) {
    .countdown-grid { gap: 6px; }
    .countdown-unit { min-width: 64px; padding: 14px 6px; border-radius: 12px; }
    .countdown-num { font-size: 1.9rem; }
    .countdown-text { font-size: 0.78rem; }
    .countdown-sep { font-size: 1.4rem; margin-top: 14px; }
    .countdown-date { font-size: 0.9rem; padding: 7px 16px; }
}

/* ===== 資訊卡片 ===== */
.info-cards {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.info-card {
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.info-card h3 {
    margin-bottom: var(--spacing-md);
}

.info-card a {
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #777;
}

/* ============================================
   H1 全站視覺升級（淺底繽紛風）
   ============================================ */

/* 區塊標題：漸層文字＋漸層底線 */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 {
    display: inline-block;
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00897B, #FF6F00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}
.section-divider {
    width: 66px; height: 5px; margin: 0 auto;
    background: linear-gradient(90deg, #00897B, #FFB300);
    border-radius: 3px;
}
.section-desc { color: #678; font-size: 1rem; margin-top: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* 圖示 → 漸層圓圈 */
.card-icon, .benefit-icon {
    width: 74px; height: 74px; border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
}

/* 資訊卡 / 好處卡：圓角＋彩色頂邊＋浮起 */
.info-card, .benefit-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,137,123,.13);
    border-top: 5px solid #00897B;
    transition: transform .2s, box-shadow .2s;
}
.info-card:hover, .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,137,123,.2);
}
.benefit-card h4, .benefit-card h3 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 8px; }
.benefit-card p { font-size: .9rem; color: #777; line-height: 1.6; }

/* 三色輪替（青綠 / 藍 / 橘）*/
.card-grid > *:nth-child(3n+1), .benefit-grid > *:nth-child(3n+1) { border-top-color: #00897B; }
.card-grid > *:nth-child(3n+2), .benefit-grid > *:nth-child(3n+2) { border-top-color: #1565C0; }
.card-grid > *:nth-child(3n),   .benefit-grid > *:nth-child(3n)   { border-top-color: #FF6F00; }
.card-grid > *:nth-child(3n+1) .card-icon, .card-grid > *:nth-child(3n+1) .benefit-icon,
.benefit-grid > *:nth-child(3n+1) .benefit-icon, .benefit-grid > *:nth-child(3n+1) .card-icon {
    background: linear-gradient(135deg, #009688, #4DB6AC);
}
.card-grid > *:nth-child(3n+2) .card-icon, .card-grid > *:nth-child(3n+2) .benefit-icon,
.benefit-grid > *:nth-child(3n+2) .benefit-icon, .benefit-grid > *:nth-child(3n+2) .card-icon {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
}
.card-grid > *:nth-child(3n) .card-icon, .card-grid > *:nth-child(3n) .benefit-icon,
.benefit-grid > *:nth-child(3n) .benefit-icon, .benefit-grid > *:nth-child(3n) .card-icon {
    background: linear-gradient(135deg, #FB8C00, #FFB300);
}

/* 好處卡網格 */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* 小節標題 */
.subsection-title {
    font-size: 1.25rem; font-weight: 800; color: #00695C;
    margin: 1.5rem 0 1rem; padding-left: 12px; border-left: 5px solid #00897B;
}

/* ===== 介紹文字卡 ===== */
.content-card {
    background: #fff; border-radius: 16px; padding: 26px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06); margin-bottom: 8px;
}
.content-card p { color: #555; line-height: 1.85; margin-bottom: 12px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card.highlight-card { border-left: 5px solid #00897B; }

/* ===== 活動亮點卡 ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px; margin-top: 26px;
}
.feature-item {
    background: #fff; border-radius: 18px; padding: 28px 20px; text-align: center;
    box-shadow: 0 8px 22px rgba(0,137,123,.13); border-top: 5px solid #00897B;
    transition: transform .2s, box-shadow .2s;
}
.feature-item:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,137,123,.2); }
.feature-icon {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
}
.feature-item h3 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 8px; }
.feature-item p { font-size: .9rem; color: #777; line-height: 1.6; }
.features-grid > *:nth-child(4n+1){ border-top-color:#00897B; }
.features-grid > *:nth-child(4n+1) .feature-icon{ background:linear-gradient(135deg,#009688,#4DB6AC); }
.features-grid > *:nth-child(4n+2){ border-top-color:#1565C0; }
.features-grid > *:nth-child(4n+2) .feature-icon{ background:linear-gradient(135deg,#1976D2,#42A5F5); }
.features-grid > *:nth-child(4n+3){ border-top-color:#FF6F00; }
.features-grid > *:nth-child(4n+3) .feature-icon{ background:linear-gradient(135deg,#FB8C00,#FFB300); }
.features-grid > *:nth-child(4n){ border-top-color:#7B1FA2; }
.features-grid > *:nth-child(4n) .feature-icon{ background:linear-gradient(135deg,#8E24AA,#BA68C8); }

/* ===== 參與資格卡（圖示與標題同行）===== */
.eligibility-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.eligibility-card {
    background: #fff; border-radius: 16px; padding: 24px 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08); border-top: 5px solid #00897B;
    display: flex; align-items: flex-start; gap: 16px;
}
.eligibility-icon { margin-right: 0 !important; flex-shrink: 0; margin-top: 2px; }
.eligibility-card ul { margin-top: 0 !important; flex: 1; }
.eligibility-card.eligible { border-top-color: #2E7D32; }
.eligibility-card.info { border-top-color: #1565C0; }
.eligibility-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem;
    margin-right: 10px; vertical-align: middle;
}
.eligibility-card.eligible .eligibility-icon { background: #E8F5E9; }
.eligibility-card.info .eligibility-icon { background: #E3F2FD; }
.eligibility-card h3 { display: inline; font-size: 1.2rem; color: #1a1a1a; vertical-align: middle; }
.eligibility-card ul { margin-top: 16px; padding-left: 22px; }
.eligibility-card li { margin-bottom: 8px; color: #555; line-height: 1.6; font-size: .92rem; }
.eligibility-card .note { margin-top: 12px; color: #888; font-size: .85rem; }

/* ===== 內頁段落上下留白（與首頁一致，避免擁擠） ===== */
.content-section { padding: 56px 0; }

/* ===== 活動流程 流程圖 ===== */
.flow-section { padding: 56px 0; background: #fff; }
.flow-title {
    text-align: center; font-size: 2.1rem; font-weight: 900;
    background: linear-gradient(90deg, #00897B, #FF6F00);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 10px;
}
.flow-subtitle { text-align: center; color: #678; margin-bottom: 38px; }
.flow-steps { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: nowrap; }
.flow-step-item {
    flex: 1; max-width: 230px;
    background: #f7fdfc; border-radius: 16px; padding: 26px 18px; text-align: center;
    box-shadow: 0 6px 18px rgba(0,137,123,.12);
    display: flex; flex-direction: column; align-items: center;
    transition: transform .2s;
}
.flow-step-item:hover { transform: translateY(-5px); }
.flow-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.flow-icon { font-size: 2rem; }
.flow-step-badge {
    background: #2E7D32; color: #fff; font-size: .8rem; font-weight: 700;
    padding: 3px 14px; border-radius: 20px; margin-bottom: 10px;
}
.flow-step-item h4 { font-size: 1.05rem; color: #1a1a1a; margin-bottom: 8px; }
.flow-step-item p { font-size: .85rem; color: #777; line-height: 1.6; }
.flow-arrow {
    display: flex; align-items: center; justify-content: center;
    color: #FFB300; font-size: 1.8rem; font-weight: 900; padding: 0 6px; flex: 0 0 auto;
}
@media (max-width: 768px) {
    .flow-steps { flex-direction: column; align-items: center; }
    .flow-step-item { max-width: 340px; width: 100%; }
    .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
    .flow-title { font-size: 1.6rem; }
}

/* ===== 活動關係圖 ===== */
.relation-section { padding: 56px 0; background: #F4FAF9; }
.relation-wrap { max-width: 760px; margin: 18px auto 0; }
.relation-wrap svg { width: 100%; height: auto; display: block; }
.relation-wrap .rk { cursor: pointer; }

/* ===== 全站段落分隔線（相鄰區塊之間） ===== */
main > section + section {
    border-top: 1px solid #E4E4E4;
}

/* ===== 前往查詢卡片（coming-soon 區塊，置中） ===== */
.coming-soon-block {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border: 2px dashed #4CAF50;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.coming-soon-block .cs-icon { font-size: 3.5rem; margin-bottom: 16px; }
.coming-soon-block h3 { color: #2E7D32; font-size: 1.5rem; margin-bottom: 12px; }
.coming-soon-block p { color: #555; margin-bottom: 0; }

/* ===== 主視覺 ===== */
.hero-visual { background: #fff; padding: 28px 0 40px; text-align: center; }
.hero-visual .hero-img {
    width: 100%; max-width: 1000px; height: auto;
    border-radius: 18px; box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.hero-visual .hero-caption {
    font-size: 1.55rem; font-weight: 800; color: #2E7D32;
    margin: 22px 0 16px;
}
.hero-visual .hero-cta { font-size: 1.5rem; font-weight: 700; padding: 15px 56px; }
@media (max-width: 768px) {
    .hero-visual .hero-caption { font-size: 1.25rem; }
    .hero-visual .hero-cta { font-size: 1.25rem; padding: 13px 44px; }
}

/* ===== 任務說明摺疊面板 ===== */
.task-toggle { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 10px; background: #E8F5E9; color: #2E7D32; border: 1.5px solid #A5D6A7; border-radius: 22px; padding: 4px 14px; font-size: 0.92rem; font-weight: 700; cursor: pointer; line-height: 1.4; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.task-toggle:hover { background: #2E7D32; color: #fff; border-color: #2E7D32; }
.task-toggle.on { background: #2E7D32; color: #fff; border-color: #2E7D32; }
.task-detail[hidden] { display: none; }
.task-detail { max-width: 900px; margin: 0 auto 1.4rem; border: 1px solid #e3e3e3; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.task-detail > summary { cursor: pointer; list-style: none; padding: 1rem 1.3rem; font-weight: 700; font-size: 1.18rem; color: #2E7D32; background: #f0f7f0; display: flex; align-items: center; gap: 10px; }
.task-detail > summary::-webkit-details-marker { display: none; }
.task-detail > summary .td-arrow { margin-left: auto; transition: transform .2s; font-size: 0.9rem; }
.task-detail[open] > summary .td-arrow { transform: rotate(90deg); }
.task-detail .td-body { padding: 1.2rem 1.5rem; line-height: 1.9; color: #2b2b2b; font-size: 1.08rem; }
.task-detail .td-body h4 { color: #1a1a1a; font-size: 1.15rem; margin: 1.1rem 0 .4rem; }
.task-detail .td-body ol, .task-detail .td-body ul { padding-left: 1.4rem; margin: .3rem 0; }
.task-detail .td-body li { margin-bottom: .4rem; }
.task-detail .post-box { background: #FFF8E1; border: 1px dashed #FFB300; border-radius: 12px; padding: 14px 16px; white-space: pre-line; line-height: 1.85; margin: 10px 0; font-size: 1.05rem; color: #333; }
.task-detail .copy-btn { background: #00897B; color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-size: .95rem; margin-top: 4px; }
.task-detail .copy-btn:hover { background: #00695C; }
.task-detail .form-btn { display: inline-block; background: #1565C0; color: #fff !important; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin: 6px 0; }
.task-detail .form-btn:hover { background: #0D47A1; color: #fff !important; text-decoration: none; }

/* ===== 自訂圖示 ===== */
.page-hero-icon .hicon { width: 64px; height: 64px; display: block; stroke-width: 4; stroke: var(--ic, #2E7D32); color: var(--ic, #2E7D32); }
.page-hero-icon .hicon [fill="#fff"] { fill: currentColor; }
.flow-icon { display: inline-flex; align-items: center; justify-content: center; }
.flow-icon .hicon { width: 2.6rem; height: 2.6rem; }

/* ===== 衛教圖卡區 ===== */
.edu-section { padding: 56px 0; background: #fff; }
.edu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 640px;
    margin: 24px auto 0;
}
.edu-card {
    margin: 0;
    background: #F4FAF9;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .15s, box-shadow .15s;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.edu-card .edu-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.edu-card .edu-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: #2E7D32;
}
.edu-card figcaption {
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    color: #00695C;
    font-size: 1.05rem;
}
.edu-note {
    text-align: center;
    margin-top: 22px;
    color: #E65100;
    font-weight: 700;
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .edu-grid { max-width: 100%; }
}

/* ===== 好站連結 ===== */
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 780px; margin: 0 auto; }
@media (max-width: 600px) { .links-grid { grid-template-columns: 1fr; } }
.link-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07); text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s; border-left: 4px solid #00897B;
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.link-card-logo {
    width: 62px; height: 62px; border-radius: 14px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
}
.link-card-info { flex: 1; }
.link-card-info h3 { font-size: 1.05rem; color: #1a1a1a; margin-bottom: 4px; }
.link-card-info p { font-size: .85rem; color: #777; line-height: 1.5; }
.link-url { display: none; }
.link-arrow { color: #FFB300; font-size: 1.4rem; font-weight: 900; flex: 0 0 auto; }

/* ===== 報名頁：報名步驟 ===== */
.reg-steps { max-width: 680px; margin: 0 auto; }
.reg-step {
    background: #fff; border-radius: 16px; padding: 24px 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08); text-align: center; border-top: 5px solid #1565C0;
}
.reg-step-num { display: inline-block; background: #1565C0; color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 14px; border-radius: 20px; margin-bottom: 10px; }
.reg-step-icon { font-size: 2.4rem; margin-bottom: 10px; }
.reg-step h3 { font-size: 1.15rem; color: #1a1a1a; margin-bottom: 10px; }
.reg-step-detail { color: #666; font-size: .92rem; line-height: 1.7; text-align: left; }
.reg-step-detail ul { padding-left: 20px; }
.reg-step-connector { text-align: center; padding: 8px 0; }
.reg-step-connector .connector-arrow { color: #FFB300; font-size: 1.6rem; font-weight: 900; }
.reg-step-connector .connector-line { display: none; }

/* 報名須知 */
.notice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.notice-item { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.06); border-left: 4px solid #999; }
.notice-item.warning { border-left-color: #FB8C00; }
.notice-item.info { border-left-color: #1565C0; }
.notice-item.success { border-left-color: #2E7D32; }
.notice-icon { font-size: 1.95rem; flex: 0 0 auto; }
.notice-content { font-size: .9rem; color: #555; line-height: 1.6; }
.notice-content strong { color: #1a1a1a; }

/* 需要協助 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card { background: #fff; border-radius: 16px; padding: 26px 20px; text-align: center; box-shadow: 0 6px 18px rgba(0,137,123,.12); border-top: 5px solid #00897B; }
.contact-icon { font-size: 2.6rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.05rem; color: #1a1a1a; margin-bottom: 6px; }
.contact-card p { color: #666; font-size: .9rem; }
.contact-hours { color: #999; font-size: .82rem; margin-top: 4px; }

/* QR 區 */
.qr-section { display: flex; justify-content: center; }
.qr-main { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; justify-content: center; background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.qr-info { max-width: 340px; }
.qr-image-box { text-align: center; flex: 0 0 auto; }
.qr-image { width: 200px; height: 200px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); background: #fff; padding: 8px; display: block; }
.qr-id { margin-top: 10px; font-weight: 700; color: #06C755; font-size: 1rem; letter-spacing: 1px; }
.qr-info ol { padding-left: 20px; color: #555; line-height: 1.9; }
.qr-btn-wrap { text-align: center; margin-top: 18px; }
.btn-line {
    background: #06C755; color: #fff; display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 30px; border-radius: 30px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 12px rgba(6,199,85,.35);
}
.btn-line:hover { background: #05b34c; }
.btn-line .line-icon { background: #fff; color: #06C755; font-weight: 900; font-size: .78rem; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 768px) { .qr-main { flex-direction: column; } .qr-info { text-align: center; } .qr-info ol { display: inline-block; text-align: left; } }

/* ===== 積分規則 ===== */
.points-rules { margin-top: 44px; }
.points-rules h3 { text-align: center; font-size: 1.4rem; color: #00695C; font-weight: 900; margin-bottom: 24px; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rule-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06); border-left: 4px solid #00897B;
}
.rule-icon {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
}
.rule-text strong { display: block; color: #1a1a1a; margin-bottom: 4px; font-size: 1rem; }
.rule-text p { color: #777; font-size: .88rem; line-height: 1.6; margin: 0; }

/* ===== 實用健康工具 ===== */
.tools-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px; max-width: 1120px; margin: 0 auto;
}
.check-item label { white-space: nowrap; }
@media (max-width: 900px) {
    .tools-grid { grid-template-columns: 1fr; }
    .check-item label { white-space: normal; }
}
.tool-card {
    background: #fff; border-radius: 16px; padding: 26px;
    box-shadow: 0 6px 18px rgba(0,137,123,.12); border-top: 5px solid #00897B; text-align: center;
}
.tool-icon { font-size: 2.8rem; margin-bottom: 10px; }
.tool-card h3 { font-size: 1.15rem; color: #1a1a1a; margin-bottom: 6px; }
.tool-card > p { color: #777; font-size: .9rem; margin-bottom: 16px; }
.bmi-calculator, .self-check { text-align: left; }
.calc-row { margin-bottom: 10px; }
.calc-row label { display: block; font-size: .85rem; color: #555; margin-bottom: 4px; }
.calc-row input { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: .95rem; }
.check-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; color: #444; line-height: 1.6; }
.check-item input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; }
.check-item label { flex: 1; cursor: pointer; }
.calc-result { margin-top: 12px; padding: 12px; border-radius: 8px; background: #f1f8f7; font-weight: 600; color: #00695C; }
.tool-card .btn { margin-top: 6px; }
.disclaimer { text-align: center; color: #999; font-size: .85rem; margin-top: 22px; }

/* ===== 活動期間 時間軸流程圖 ===== */
.timeline-container { position: relative; max-width: 660px; margin: 0 auto; padding-left: 36px; }
.timeline-container::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(#26A69A 0%, #FFB300 100%); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -36px; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.timeline-content { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.07); border-left: 4px solid #26A69A; }
.timeline-date { font-size: .85rem; color: #00897B; font-weight: 700; margin-bottom: 3px; }
.timeline-content h3 { font-size: 1.05rem; margin: 0 0 4px; color: #222; }
.timeline-content p { font-size: .9rem; color: #666; margin: 0; line-height: 1.5; }
@media (max-width: 480px) { .timeline-container { padding-left: 30px; } .timeline-dot { left: -30px; } }

/* ===== 首頁 LINE 加入橫幅 ===== */
.line-cta-section { padding: 56px 20px; background: linear-gradient(135deg, #06C755, #04A348); }
.line-cta-inner { max-width: 920px; margin: 0 auto; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.line-cta-icon { flex: 0 0 auto; }
.line-cta-icon svg { width: 72px; height: 72px; }
.line-cta-text { flex: 1; min-width: 240px; color: #fff; }
.line-cta-text h2 { color: #fff; font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.line-cta-text p { color: rgba(255,255,255,.92); margin-bottom: 6px; line-height: 1.6; }
.line-cta-id strong { background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 6px; letter-spacing: 1px; }
.line-cta-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.btn-line-cta { display: inline-block; background: #fff; color: #06A348; font-weight: 800; padding: 13px 30px; border-radius: 30px; text-decoration: none; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .2s; }
.btn-line-cta:hover { transform: translateY(-3px); }
.btn-outline-cta { display: inline-block; border: 2px solid rgba(255,255,255,.85); color: #fff; font-weight: 700; padding: 11px 28px; border-radius: 30px; text-decoration: none; text-align: center; }
.btn-outline-cta:hover { background: rgba(255,255,255,.15); }
@media (max-width: 768px) { .line-cta-inner { flex-direction: column; text-align: center; } .line-cta-actions { width: 100%; max-width: 320px; } }

/* ===== 院所查詢教學 ===== */
.search-guide { max-width: 640px; margin: 0 auto; }
.guide-step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.06); border-left: 4px solid #00897B; }
.guide-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #00897B; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide-body strong { color: #1a1a1a; font-size: 1.02rem; }
.guide-body p { color: #666; margin: 4px 0 0; line-height: 1.6; font-size: .92rem; }
.hl-text { background: #FFF3C4; color: #bf6000; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.guide-tip { text-align: center; color: #00695C; font-weight: 600; margin-top: 16px; background: #E0F2F1; border-radius: 10px; padding: 12px; }

/* ===== 線上報名表單 ===== */
.reg-form { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 30px 28px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.reg-form-row { margin-bottom: 18px; }
.reg-form-row > label { display: block; font-weight: 600; color: #333; margin-bottom: 6px; font-size: .95rem; }
.reg-form-row .req { color: #e53935; }
.reg-form input[type=text], .reg-form input[type=tel] { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; outline: none; }
.reg-form input[type=text]:focus, .reg-form input[type=tel]:focus { border-color: #00897B; }
.reg-consent { background: #f7fdfc; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #444; line-height: 1.6; margin-bottom: 10px; cursor: pointer; }
.consent-line input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.consent-note { font-size: .82rem; color: #888; margin: 0 0 12px 28px; line-height: 1.6; }
.radio-row { display: flex; gap: 12px; }
.radio-pill { display: inline-flex; align-items: center; gap: 6px; background: #f1f1f1; border-radius: 20px; padding: 8px 18px; cursor: pointer; font-weight: 500; }
.btn-submit { width: 100%; padding: 14px; font-size: 1.05rem; margin-top: 6px; }
.reg-form-msg { text-align: center; margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.reg-form-msg.ok { color: #2E7D32; }
.reg-form-msg.err { color: #c62828; }

/* ===== 立即參與 CTA ===== */
.cta-section { background: linear-gradient(135deg, #E0F2F1, #FFF3E0); }
.cta-text-link { display:inline-block; font-size:1.7rem; font-weight:800; color:#2E7D32; text-decoration:none; }
.cta-text-link:hover { color:#1B5E20; text-decoration:underline; }
.cta-content { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-content h2 { font-size: 1.8rem; font-weight: 900; color: #00695C; margin-bottom: 12px; }
.cta-content > p { color: #555; margin-bottom: 22px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ===== 布告欄 ===== */
.announcements {
    padding: var(--spacing-2xl) 0;
    background-color: white;
}

.announcements h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.announcement-item {
    background: linear-gradient(135deg, var(--bg-light), white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.announcement-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.announcement-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.announcement-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: var(--spacing-md);
}

/* ===== 衛教資訊輪播 ===== */
.health-education {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.health-education h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
}

.carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.carousel-item {
    display: none;
    text-align: center;
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.carousel-item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.carousel-item h3 {
    color: var(--primary-color);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: var(--spacing-md);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-prev {
    left: var(--spacing-md);
}

.carousel-next {
    right: var(--spacing-md);
}

/* ===== 影片區 ===== */
.videos {
    padding: var(--spacing-2xl) 0;
    background-color: white;
}

.videos h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.video-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.video-item iframe {
    display: block;
}

.video-item h3 {
    padding: var(--spacing-lg);
    font-size: 1rem;
    margin: 0;
}

/* ===== 活動介紹 ===== */
.activity-intro {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    text-align: center;
}

.activity-intro h2 {
    color: white;
    margin-bottom: var(--spacing-xl);
}

.activity-intro p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
}

/* ===== LINE 區 ===== */
.line-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
    text-align: center;
}

.line-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

/* ===== 頁尾 ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== 動畫 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 表單 ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== 工具類 ===== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
