/* ==========================================================================
   Solis Care 輕透防曬美學 - 核心樣式表 (style.css)
   適合初學者學習的極簡、現代、精緻設計系統
   ========================================================================== */

/* 1. 變數與核心設計系統 */
:root {
    /* 漸層與日系和諧配色 (極致優雅 #FDF2D9 暖柔乳黃色與溫潤米白美學) */
    --brand-color: #FDF2D9;         /* 使用者指定主色：輕柔溫潤暖柔乳黃色 (Chiffon Cream) */
    --primary-color: #B58E63;       /* 高對比焦糖沙金 (用於文字、圖示與高對比元件，符合無障礙 AA 標準) */
    --primary-gradient: linear-gradient(135deg, #FDF2D9 0%, #A67C52 100%); /* 奢華明朝焦糖金漸層 */
    --secondary-color: #8FA08B;     /* 低飽和和風抹茶綠 (天然低敏) */
    --secondary-gradient: linear-gradient(135deg, #A7B6A4 0%, #6D7E69 100%);
    --accent-color: #FDF2D9;        /* 輕柔溫暖乳白沙色 */
    
    --bg-light: #FDF2D9;            /* 使用者指定背景色：優雅暖柔乳黃色 (極致溫潤、極富人文氣息) */
    --bg-white: #FFFFFF;            /* 純白 */
    --text-dark: #3E3225;           /* 日本焦茶色 (深焙焙茶褐，閱讀超高對比度，溫和不傷眼) */
    --text-muted: #7E6E5D;          /* 和風茶灰 */
    
    /* 柔化毛玻璃效果變數 */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(253, 242, 217, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(166, 124, 82, 0.05);
    
    /* 圓角與轉場時間 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. 基本重設與通用設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 讓頁面錨點點擊滾動時有平滑效果 */
}

body {
    font-family: 'Outfit', 'Zen Old Mincho', 'Noto Sans TC', serif; /* 套用人文感極強的 Zen Old Mincho 復古明朝體 */
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.75; /* 配合明體特徵，拉寬行高營造極致舒適的文學排版感 */
    letter-spacing: 0.04em; /* 微增字間距，讓中文字型呈現如書籍般的高級呼吸感 */
    overflow-x: hidden;
}

/* 全站標題與按鈕指定使用 Zen Old Mincho 字體，完美融合 Outfit 英文數字 */
h1, h2, h3, h4, h5, h6, .logo-text, .section-subtitle, .badge, .btn {
    font-family: 'Outfit', 'Zen Old Mincho', 'Noto Sans TC', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

ul {
    list-style: none;
}

/* 3. 響應式容器設計 */
section {
    padding: 100px 5% 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 4. 頂級導覽列樣式 (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition-fast);
}

/* 當頁面捲動後，導覽列會變成精緻的毛玻璃白 */
.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    height: 65px;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-icon i {
    color: var(--primary-color);
    display: inline-block;
}

/* 旋轉動畫，讓太陽 LOGO 緩慢轉動 */
.animate-spin {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

/* 導覽列底線滑過動畫 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 手機版選單按鈕，預設隱藏 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* 5. 首頁區塊 (Hero Section) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, #FFF9E6 0%, #E0F7FA 100%);
    max-width: 100%;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s var(--transition-slow);
}

.badge {
    background-color: rgba(253, 242, 217, 0.25); /* 使用 #FDF2D9 暖柔乳黃的優雅半透明背景 */
    color: var(--text-dark); /* 使用深焦茶色文字確保 WCAG AA 級最高對比度無障礙標準 */
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 35px;
}

/* 按鈕系統 */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.45);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #F5F5F5;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* 捲動提示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* 6. 共用區塊標題 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto 20px auto;
    border-radius: var(--radius-sm);
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 7. 防曬知識庫區塊 */
.knowledge-section {
    background-color: var(--bg-white);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.knowledge-card {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.knowledge-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: rgba(255, 152, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.knowledge-card:hover .card-icon {
    background: var(--primary-gradient);
    color: var(--bg-white);
    transform: scale(1.1);
}

.knowledge-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.card-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-style: italic;
}

/* 8. 精選產品系列區塊 */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-btn {
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-svg {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.product-card:hover .product-svg {
    transform: scale(1.03);
}

/* 實體產品圖片優雅排版 - 圓角外框與自適應漸層底色 */
.product-image-file {
    width: 100%;
    height: 250px;
    object-fit: contain; /* 比例不變 */
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: block;
    padding: 20px; /* 給予去白邊邊距，如同專櫃畫報 */
    transition: var(--transition-slow);
}

.product-card:hover .product-image-file {
    transform: scale(1.05); /* 滑過時圖片向前凸顯 */
}

.rank-image-file {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
    padding: 8px;
    transition: var(--transition-slow);
}

.ranking-card:hover .rank-image-file {
    transform: scale(1.05);
}

/* 針對不同功效的產品實體圖，自動賦予相應的大和美學漸層背景色 */
/* 產品 1 (逆齡潤色 - 寶拉珍選)：配備溫暖優雅玫瑰粉底色 */
.product-card[data-category="daily"] .product-image-file,
.ranking-card.rank-1 .rank-image-file {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFD1DC 100%);
}

/* 產品 3 (溫和低敏 - 藍碧兒)：配備療癒溫潤抹茶綠底色 */
.product-card[data-category="sensitive"] .product-image-file,
.ranking-card.rank-2 .rank-image-file {
    background: linear-gradient(135deg, #EFF2EE 0%, #D0DED0 100%);
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
}

/* 卡片標籤特定配色 */
.font-daily { background-color: var(--primary-color); }
.font-outdoor { background-color: var(--secondary-color); }
.font-sensitive { background-color: var(--accent-color); }
.font-spray { background-color: #8E24AA; }

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden; /* 文字過多時顯示省略號 */
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-meta .spec {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-meta .price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ==========================================
   8.5 年度防曬熱銷排行樣式 (Ranking Section)
   ========================================== */
.ranking-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, #FFFDE7 100%);
    max-width: 100%;
}

.ranking-podium {
    display: flex;
    justify-content: center;
    align-items: stretch; /* 強制所有卡片等高齊平，徹底解決跑版問題 */
    gap: 25px;
    margin-top: 60px;
    padding-top: 25px;
}

.ranking-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-md);
    padding: 40px 25px 30px 25px;
    text-align: center;
    width: 31%;
    position: relative;
    transition: var(--transition-slow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* 內容垂直均勻分布，按鈕自動對齊沉底 */
}

/* 第一名卡片物理高度平齊，但外觀加上淡琥珀金邊框與尊貴發光以示突出 */
.ranking-card.rank-1 {
    z-index: 5;
    border: 1.5px solid rgba(184, 150, 101, 0.45); /* 琥珀金尊貴邊框 */
    box-shadow: 0 15px 40px rgba(184, 150, 101, 0.12);
}

.ranking-card.rank-2 {
    z-index: 4;
}

.ranking-card.rank-3 {
    z-index: 3;
}

/* 滑鼠滑過時的懸浮浮空效果 (全部統一等高升降，極致整齊) */
.ranking-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.ranking-card.rank-1:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(184, 150, 101, 0.22); /* 第一名懸浮時發出更溫暖的和風金光 */
}

/* 熱門排行徽章 */
.rank-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    border-radius: var(--radius-lg);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%);
    color: #5D4037;
    top: -25px; /* 齊平高度，完美對稱 */
}

.rank-badge.silver {
    background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #FFAB91 0%, #D84315 100%);
}

.rank-num {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.rank-label {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* 冠軍金色皇冠緩慢浮動動畫 */
.crown-icon {
    font-size: 1.1rem;
    color: #FF8F00;
    margin-bottom: 2px;
    animation: crownFloat 2.5s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

/* 產品 SVG 容器 */
.rank-product-image {
    width: 100px;
    height: 125px;
    margin: 15px 0;
}

.product-svg-mini {
    width: 100%;
    height: 100%;
    display: block;
}

.rank-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-trend {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--secondary-color);
    background-color: rgba(0, 172, 193, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 總冠軍熱銷火苗 */
.rank-trend.hot {
    color: #E53935;
    background-color: rgba(229, 57, 53, 0.08);
    animation: firePulse 1.5s infinite;
}

@keyframes firePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rank-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.rank-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 9. 智慧防曬推薦測驗區塊 */
.quiz-section {
    background: radial-gradient(circle at 10% 80%, #F5EFEB 0%, #FAF6EE 100%);
    max-width: 100%;
}

.quiz-container {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    max-width: 750px;
    margin: 0 auto;
    padding: 40px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.step-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
}

.progress-bar {
    width: 150px;
    height: 6px;
    background-color: rgba(0,0,0,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.quiz-step h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    background-color: var(--bg-white);
    border: 2px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 20px;
}

.option-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(253, 242, 217, 0.35); /* 使用半透明 #FDF2D9 暖柔乳黃背景 */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.option-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.option-btn:hover .option-icon {
    background: var(--primary-gradient);
    color: var(--bg-white);
}

.option-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.option-btn p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-nav {
    display: flex;
    justify-content: flex-start;
}

/* 測驗結果樣式 */
.quiz-result {
    display: none;
    text-align: center;
    animation: zoomIn 0.6s var(--transition-slow);
}

.quiz-result.active {
    display: block;
}

.result-celebration {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 242, 217, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(253, 242, 217, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 242, 217, 0); }
}

.quiz-result h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* 結果推薦產品卡片 */
.recommended-product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 500px;
    margin: 0 auto 35px auto;
    border: 1px solid rgba(253, 242, 217, 0.6); /* 使用 #FDF2D9 暖柔乳黃邊框 */
    box-shadow: 0 10px 30px rgba(166, 124, 82, 0.08); /* 優雅的焦糖沙金微陰影 */
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}

.recommended-product-card svg {
    width: 120px;
    height: 150px;
    flex-shrink: 0;
}

.rec-info h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.rec-reason {
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

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

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================
   9.5 使用者好評區塊 - 左右滑動輪播樣式 (Reviews Carousel Styles)
   ========================================== */
.reviews-section {
    background-color: var(--bg-white);
    padding: 100px 0 80px 0;
}

/* 輪播滑動包覆層 */
.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 0 10px;
}

/* 滑動可視視窗 */
.reviews-carousel-container {
    overflow: hidden; /* 隱藏超出視窗的卡片 */
    width: 100%;
    padding: 15px 0; /* 給予卡片懸浮陰影足夠的展示空間 */
}

/* 卡片滾動軌道 */
.reviews-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* 高質感貝茲曲線過渡 */
    width: 100%;
}

/* 輪播卡片 */
.review-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-md);
    padding: 35px 30px;
    position: relative;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 20px); /* 桌機一次秀 3 張卡片 */
    box-sizing: border-box;
}

.review-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-white);
}

/* 針對不同防曬好評卡片，滑鼠滑過時提供專屬色彩的霓虹陰影 */
.review-card:nth-child(1):hover,
.review-card:nth-child(5):hover {
    box-shadow: 0 15px 35px rgba(166, 124, 82, 0.12); /* 使用 #FDF2D9 暖柔乳黃與焦糖懸停光效 */
    border-color: rgba(253, 242, 217, 0.6);
}

.review-card:nth-child(2):hover {
    box-shadow: 0 15px 35px rgba(0, 172, 193, 0.1);
    border-color: rgba(0, 172, 193, 0.2);
}

.review-card:nth-child(3):hover {
    box-shadow: 0 15px 35px rgba(124, 179, 66, 0.1);
    border-color: rgba(124, 179, 66, 0.2);
}

.review-card:nth-child(4):hover {
    box-shadow: 0 15px 35px rgba(142, 36, 170, 0.1);
    border-color: rgba(142, 36, 170, 0.2);
}

.review-stars {
    color: #FFC107;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.review-text strong {
    color: var(--primary-color);
}

.review-card:nth-child(2) .review-text strong {
    color: var(--secondary-color);
}

.review-card:nth-child(3) .review-text strong {
    color: var(--accent-color);
}

.review-card:nth-child(4) .review-text strong {
    color: #8E24AA;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--bg-white);
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.avatar-daily {
    background: var(--primary-gradient);
}

.avatar-outdoor {
    background: var(--secondary-gradient);
}

.avatar-sensitive {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
}

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

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.user-tag {
    font-size: 0.78rem;
    font-weight: 600;
}

.tag-daily { color: var(--primary-color); }
.tag-outdoor { color: var(--secondary-color); }
.tag-sensitive { color: var(--accent-color); }

/* 卡片背景之裝飾用巨大半透明引號 */
.card-quote-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
    z-index: 1;
    pointer-events: none;
}

.review-card:hover .card-quote-icon {
    color: rgba(0, 0, 0, 0.04);
    transform: scale(1.1);
}

/* 懸浮左右控制按鈕 (毛玻璃質感) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.carousel-control.prev {
    left: -25px; /* 微微超出視窗邊緣，形成極致的橫向懸浮感 */
}

.carousel-control.next {
    right: -25px;
}

/* 按鈕 Hover 與點擊反饋 */
.carousel-control:hover {
    background: var(--primary-gradient);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.2);
}

.carousel-control.prev:hover {
    transform: translateY(-50%) scale(1.08) translateX(-3px);
}

.carousel-control.next:hover {
    transform: translateY(-50%) scale(1.08) translateX(3px);
}

.carousel-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
    transform: translateY(-50%) scale(1);
}

/* 分頁指示小圓點 */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 當前活躍小圓點會拉長成高質感藥丸形狀，並染上亮眼粉橘色 */
.carousel-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-gradient);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

/* 10. 預約體驗區塊 */
.contact-section {
    background-color: var(--bg-white);
}

.contact-card-container {
    display: grid;
    grid-template-columns: 4fr 5fr;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-info-panel {
    background: var(--secondary-gradient);
    color: var(--bg-white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-info-panel p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: var(--bg-white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form-panel {
    background-color: var(--bg-white);
    padding: 50px;
    position: relative;
}

.contact-form-panel h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #E53935;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.1);
}

textarea {
    resize: none;
}

/* 預約成功覆蓋畫面 */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    padding: 50px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    animation: fadeIn 0.4s ease;
}

.success-message.active {
    display: flex;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.success-message h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 30px;
}

/* 11. Modal 彈出視窗樣式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.4);
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    z-index: 2001;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

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

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-image {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-image svg {
    width: 100%;
    max-height: 320px;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

.modal-spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.spec-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-detail-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-detail-section p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.usage-steps {
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.usage-steps li {
    margin-bottom: 5px;
}

/* 12. 頁尾 */
.footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
}

/* 13. 動態淡入效果與關鍵影格 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 14. 響應式佈局媒介查詢 (Responsive Media Queries) */

/* 平板尺寸 (992px 以下) */
@media (max-width: 992px) {
    section {
        padding: 80px 6% 60px 6%;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .contact-card-container {
        grid-template-columns: 1fr; /* 聯絡資料與表單改為垂直排列 */
    }
    
    .contact-info-panel {
        gap: 30px;
    }
    
    .modal-grid {
        grid-template-columns: 1fr; /* Modal 詳細頁面改為垂直單欄 */
    }
    
    .modal-image {
        padding: 30px;
    }
    
    .modal-image svg {
        max-height: 200px;
    }
    
    .modal-info {
        padding: 30px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr; /* 平板與手機版好評列表改為垂直排列 */
        gap: 20px;
    }

    /* 平板端 (RWD) 輪播調整：一次顯示一張卡片 */
    .review-card {
        flex: 0 0 100%;
    }

    .carousel-control {
        display: none; /* 行動端隱藏左右實體按鈕，改以手指滾動或點擊小圓點切換 */
    }

    .reviews-carousel-wrapper {
        padding: 0;
    }

    .ranking-podium {
        flex-direction: column; /* 頒獎台改為垂直單欄排列 */
        align-items: center;
        gap: 40px;
        padding-top: 15px;
    }

    .ranking-card {
        width: 100%;
        max-width: 480px;
    }

    /* 運用 order 屬性，在手機版將冠軍（NO.1）擺在最上方，呈現 1 -> 2 -> 3 完美直覺順序 */
    .ranking-card.rank-1 {
        transform: scale(1); /* 行動端取消放大以防破版 */
        order: 1;
    }

    .ranking-card.rank-1:hover {
        transform: translateY(-8px); /* 行動端懸停 */
    }

    .ranking-card.rank-2 {
        order: 2;
    }

    .ranking-card.rank-3 {
        order: 3;
    }
}

/* 手機尺寸 (768px 以下) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* 顯示手機版選單開關按鈕 */
    }
    
    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-fast);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    /* 展開導覽列狀態 */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.02);
    }
    
    .nav-link::after {
        display: none; /* 隱藏底線動畫 */
    }
    
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .quiz-container {
        padding: 25px;
    }
    
    .recommended-product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr; /* 表單內部改為單欄 */
        gap: 0;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 30px 20px;
    }
}
