/* 台灣居家工程網 - 主要樣式表 */

/* 基礎設定 */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    
    /* 漸層色彩 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    
    /* 陰影效果 */
    --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 8px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-colored: 0 10px 25px -5px rgb(102 126 234 / 0.25);
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全域樣式 */
body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 連結樣式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* 按鈕樣式 */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    /* padding: 0.75rem 2rem; */
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

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

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(16 185 129 / 0.25);
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
}

.btn-warning:hover {
    background: var(--gradient-warning);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(245 158 11 / 0.25);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

/* Header 樣式 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile Drawer Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        padding: 0;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    .navbar-collapse.collapsing {
        left: -100%;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-nav {
        padding: 2rem 0;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        color: var(--dark-color);
        border-radius: 0;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--gradient-primary);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        transform: scaleY(1);
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(102, 126, 234, 0.05);
        color: var(--primary-color);
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background: rgba(248, 250, 252, 0.8);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 3rem;
        font-size: 1rem;
        color: var(--secondary-color);
        border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    }
    
    .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.05);
        color: var(--primary-color);
    }
    
    /* Drawer Header */
    .drawer-header {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        background: var(--gradient-primary);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .drawer-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }
    
    .drawer-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }
    
    .drawer-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* Drawer Overlay */
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1045;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .drawer-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Custom Toggler */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(102, 126, 234, 0.1);
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background: rgba(102, 126, 234, 0.2);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-size: 24px 24px;
        background-repeat: no-repeat;
        background-position: center;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--light-color);
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Banner 輪播樣式 */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    /* min-height: 80vh; */
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    margin-right: -1rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-content .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.feature-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.hero-image {
    position: relative;
    z-index: 1;
    margin-left: -1rem;
}

.hero-image img {
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* 創建融合效果 */
.hero-banner .row.align-items-center {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgb(0 0 0 / 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin: 0;
    min-height: 400px;
    width: 100%;
}

.hero-content {
    background: transparent;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    position: relative;
    z-index: 2;
    margin-right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    position: relative;
    z-index: 1;
    margin-left: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 添加內部分隔線效果 */
.hero-content::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(226, 232, 240, 0.5), transparent);
}

/* 輪播控制按鈕樣式 */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-banner .carousel-control-prev {
    left: 20px;
}

.hero-banner .carousel-control-next {
    right: 20px;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    background: rgba(37, 99, 235, 1);
}

.hero-banner .carousel-control-prev-icon,
.hero-banner .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* 輪播指示器樣式 */
.hero-banner .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.hero-banner .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(37, 99, 235, 0.8);
    margin: 0 4px;
    transition: all 0.3s ease;
}

.hero-banner .carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 播放/暫停按鈕樣式 */
.carousel-play-pause {
    background: rgba(37, 99, 235, 0.9) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.carousel-play-pause:hover {
    background: rgba(37, 99, 235, 1) !important;
    transform: scale(1.1) !important;
}

/* Hero Section 樣式 (保留舊的，以防其他頁面使用) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-background {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.search-form .form-select,
.search-form .form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.search-form .form-select:focus,
.search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-search {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* 分類區塊樣式 */
.category-section {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.category-card {
    display: block;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 店家卡片徽章樣式 */
.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #10ac84, #00d2d3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(16, 172, 132, 0.3);
}

.company-card.popular {
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.company-card.popular:hover {
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
}

.company-card.new {
    border: 2px solid rgba(16, 172, 132, 0.2);
    transition: all 0.3s ease;
}

.company-card.new:hover {
    border-color: rgba(16, 172, 132, 0.4);
    box-shadow: 0 8px 25px rgba(16, 172, 132, 0.15);
}

/* 最新消息區塊樣式 */
.news-section {
    background: #ffffff;
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-news {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.featured-news .news-title {
    color: white;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-badge.important {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.news-badge.update {
    background: linear-gradient(45deg, #4834d4, #686de0);
    color: white;
}

.news-badge.promotion {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    color: white;
}

.news-badge.news {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    color: white;
}

.news-badge.maintenance {
    background: linear-gradient(45deg, #ffa502, #ff6348);
    color: white;
}

.news-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.featured-news .news-date {
    color: rgba(255, 255, 255, 0.8);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.news-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.featured-news .news-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.featured-news .news-category {
    color: rgba(255, 255, 255, 0.8);
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.featured-news .news-link {
    color: white;
}

.news-link:hover {
    color: #1d4ed8;
    transform: translateX(3px);
}

.featured-news .news-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 新聞列表樣式 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-item .news-date {
    color: var(--secondary-color);
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-item-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.news-item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-item-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 文章列表頁面樣式 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-stats {
    display: flex;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1rem;
}

/* 搜尋和篩選區塊 */
.search-filter-section {
    border-bottom: 1px solid var(--border-color);
}

.search-box .input-group-text {
    background: white;
    border-right: none;
}

.search-box .form-control {
    border-left: none;
    border-right: none;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.filter-controls .form-select {
    border-color: var(--border-color);
}

.filter-controls .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* 精選文章樣式 */
.featured-article-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-article-card .article-image {
    position: relative;
    overflow: hidden;
}

.featured-article-card .article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article-card:hover .article-image img {
    transform: scale(1.05);
}

.featured-article-card .article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.featured-article-card .article-content {
    padding: 2rem;
}

.featured-article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-article-card .article-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-article-card .article-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article-card .article-title a:hover {
    color: var(--primary-color);
}

.featured-article-card .article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.featured-article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-title {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

/* 文章卡片樣式 */
.article-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover::after {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.15);
}

.article-card .article-image {
    position: relative;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card .article-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.article-badge.water-electric {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.article-badge.painting {
    background: linear-gradient(45deg, #10b981, #059669);
}

.article-badge.renovation {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

.article-badge.cleaning {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.article-badge.maintenance {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.article-badge.tips {
    background: linear-gradient(45deg, #06b6d4, #0891b2);
}

.article-card .article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-card .category {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.category.water-electric {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.category.painting {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.category.renovation {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.category.cleaning {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.category.maintenance {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.category.tips {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.article-card .date {
    color: var(--secondary-color);
}

.article-card .views {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card .article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card .article-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card .article-title a:hover {
    color: var(--primary-color);
}

.article-card .article-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-time {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* 側邊欄樣式 */
.sidebar .widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* 熱門文章樣式 */
.popular-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popular-content h6 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-content h6 a:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* 分類列表樣式 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list .count {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 電子報訂閱樣式 */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form .input-group-lg .form-control {
    border: none;
    border-radius: 12px 0 0 12px;
}

.newsletter-form .input-group-lg .btn {
    border-radius: 0 12px 12px 0;
    font-weight: 600;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .featured-article-card .article-content {
        padding: 1.5rem;
    }
    
    .featured-article-card .article-title {
        font-size: 1.5rem;
    }
    
    .featured-article-card .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .newsletter-subtitle {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* 文章詳細頁面樣式 */
.article-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}

.article-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-badge {
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.category-badge.water-electric {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.article-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.article-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 文章內容樣式 */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.article-featured-image {
    text-align: center;
}

.article-featured-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 0.5rem;
    text-align: center;
}

.article-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--dark-color);
}

.article-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: var(--dark-color);
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul, .article-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text strong {
    font-weight: 600;
    color: var(--dark-color);
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.article-image-inline {
    margin: 2rem 0;
    text-align: center;
}

.article-image-inline img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pro-tip {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #0891b2;
}

.pro-tip h5 {
    color: #0891b2;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.maintenance-schedule {
    background: var(--light-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.maintenance-schedule h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    color: white;
}

.article-cta h4 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* 側邊欄樣式 */
.article-sidebar .widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.toc-list ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.author-widget .author-card {
    text-align: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-stats .stat {
    background: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.line {
    background: #00c300;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.copy {
    background: var(--secondary-color);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* 文章互動樣式 */
.article-actions {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.action-btn.liked {
    color: #dc2626;
}

.action-btn.bookmarked {
    color: var(--primary-color);
}

.reading-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.progress-bar-container {
    width: 100px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

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

/* 評論系統樣式 */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.comments-count {
    color: var(--secondary-color);
}

.comment-form-container {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comment-form .form-header h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.comment-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.author-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.comment-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action-btn:hover {
    color: var(--primary-color);
}

.comment-reply {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.comment-reply .comment-avatar img {
    width: 40px;
    height: 40px;
}

.load-more-comments {
    text-align: center;
    margin-top: 2rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-metrics {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .actions-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .reading-progress {
        justify-content: center;
    }
    
    .comments-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .comment-form .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* 廣告橫幅樣式 */
.ad-banner-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    position: relative;
    overflow: hidden;
}

.ad-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ad-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* .ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
} */

.ad-banner h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ad-banner p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.ad-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.ad-banner h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ad-banner p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* 精選店家樣式 */
.featured-section {
    background-color: var(--light-color);
}

.company-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.company-card:hover::before {
    opacity: 1;
}

.company-card:hover::after {
    opacity: 1;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

.company-card.featured {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.company-card.featured::before {
    background: var(--gradient-warning);
}

.company-card.featured::after {
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
}

.company-card.featured:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15);
}

.company-card.popular {
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.company-card.popular::before {
    background: var(--gradient-danger);
}

.company-card.popular::after {
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
}

.company-card.popular:hover {
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

.company-card.new {
    background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 2px solid rgba(16, 172, 132, 0.2);
    transition: all 0.3s ease;
}

.company-card.new::before {
    background: var(--gradient-teal);
}

.company-card.new::after {
    background: radial-gradient(circle at 80% 20%, rgba(16, 172, 132, 0.05) 0%, transparent 50%);
}

.company-card.new:hover {
    border-color: rgba(16, 172, 132, 0.4);
    box-shadow: 0 20px 40px rgba(16, 172, 132, 0.15);
}

.company-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.company-card:hover .company-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fbbf24;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.company-info {
    padding: 1.5rem;
}

.company-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.company-rating {
    margin-bottom: 0.5rem;
}

.stars {
    color: #fbbf24;
    margin-right: 0.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.company-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.company-services {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.company-actions {
    display: flex;
    gap: 0.5rem;
}

.company-actions .btn {
    flex: 1;
}

/* 文章區塊樣式 */
.articles-section {
    background: white;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-meta .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.article-content h5 {
    margin-bottom: 0.75rem;
}

.article-content h5 a {
    color: var(--dark-color);
    text-decoration: none;
}

.article-content h5 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: #1d4ed8;
}

/* Footer 樣式 */
.footer {
    background: var(--dark-color) !important;
    color: #cbd5e1;
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: white;
}

/* Modal 樣式 */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    /* Hero Banner 響應式樣式 */
    .hero-banner .row.align-items-center {
        min-height: auto;
        flex-direction: column;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin-bottom: 0;
        border-radius: 16px 16px 0 0;
    }
    
    .hero-content::after {
        display: none;
    }
    
    .hero-content .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-image {
        margin-left: 0;
        order: 2;
    }
    
    .hero-image img {
        height: 250px;
        border-radius: 0 0 16px 16px;
    }
    
    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-banner .carousel-control-prev {
        left: 10px;
    }
    
    .hero-banner .carousel-control-next {
        right: 10px;
    }
    
    .carousel-play-pause {
        width: 35px !important;
        height: 35px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    /* 原有的響應式樣式 */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .company-actions {
        flex-direction: column;
    }
    
    .company-actions .btn {
        flex: none;
    }
    
    /* 最新消息響應式樣式 */
    .news-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .news-list {
        gap: 1rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ad-banner .row {
        text-align: center;
    }
    
    .ad-banner .col-md-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .search-form .row.g-2 > * {
        margin-bottom: 0.5rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .company-info {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
}

/* 載入動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 滾動動畫 */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 懸停動畫 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 脈衝動畫 */
.pulse {
    animation: pulse 2s infinite;
}

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

/* 淡入動畫 */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

/* 工具類別 */
.min-vh-50 {
    min-height: 50vh;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* 無障礙設計 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus 樣式 */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高對比模式支援 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
        --border-color: #000000;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .category-card {
        border-width: 2px;
    }
}

/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 列印樣式 */
@media print {
    .header,
    .footer,
    .ad-banner-section,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
/* 搜尋頁面專用
樣式 */

/* 搜尋標題區域 */
.search-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

.search-stats .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* 搜尋表單容器 */
.search-form-container {
    border: 1px solid var(--border-color);
}

.search-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.search-form .form-control,
.search-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-form .input-group .btn {
    border: 2px solid var(--border-color);
    border-left: none;
}

/* 進階篩選 */
#advancedFilters {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

#advancedFilters .form-check-label {
    font-size: 0.9rem;
}

/* 活動篩選標籤 */
.active-filters {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.filter-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    text-decoration: none;
}

.filter-tag .remove {
    margin-left: 0.5rem;
    cursor: pointer;
}

.filter-tag:hover {
    background: #1d4ed8;
    color: white;
}

/* 側邊欄篩選 */
.sidebar-filters .card {
    border: none;
    box-shadow: var(--shadow-sm);
}

.sidebar-filters .card-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.category-filters .form-check,
.rating-filters .form-check {
    margin-bottom: 0.5rem;
}

.category-filters .form-check-label,
.rating-filters .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

.location-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.location-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.rating-filters .stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* 結果區域 */
.results-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.results-info h2 {
    color: var(--dark-color);
    font-weight: 600;
}

.results-controls {
    gap: 1rem;
}

.view-toggle .btn {
    padding: 0.5rem 0.75rem;
}

.sort-options .form-select {
    border: 2px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

/* 結果網格 */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* 店家卡片 - 搜尋頁面版本 */
.company-card-search {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.company-card-search .company-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.company-card-search .company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.company-card-search:hover .company-image img {
    transform: scale(1.05);
}

.company-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.company-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.company-card-search .company-info {
    padding: 1.5rem;
}

.company-card-search .company-info h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.company-card-search .company-info h5 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.company-card-search .company-info h5 a:hover {
    color: var(--primary-color);
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-rating .stars {
    font-size: 0.9rem;
}

.company-rating .rating-text {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.company-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.company-services {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    font-size: 0.7rem;
}

.company-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.company-actions .btn {
    flex: 1;
    min-width: auto;
}

.company-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* 列表檢視模式 */
.results-grid.list-view {
    display: block;
}

.results-grid.list-view .company-card-search {
    display: flex;
    margin-bottom: 1.5rem;
}

.results-grid.list-view .company-image {
    width: 250px;
    flex-shrink: 0;
}

.results-grid.list-view .company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.results-grid.list-view .company-actions {
    margin-top: auto;
}

/* 分頁樣式 */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: var(--secondary-color);
    background-color: var(--light-color);
}

/* 麵包屑導航 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* 響應式設計 - 搜尋頁面 */
@media (max-width: 992px) {
    .sidebar-filters {
        display: none;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }
    
    .search-form .row.g-3 > * {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .search-header .row {
        text-align: center;
    }
    
    .search-header .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .results-controls {
        justify-content: space-between;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid.list-view .company-card-search {
        flex-direction: column;
    }
    
    .results-grid.list-view .company-image {
        width: 100%;
        height: 200px;
    }
    
    .company-actions {
        flex-direction: column;
    }
    
    .company-actions .btn {
        flex: none;
    }
}

@media (max-width: 576px) {
    .search-form-container {
        padding: 1rem;
    }
    
    .company-card-search .company-info {
        padding: 1rem;
    }
    
    .company-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* 載入狀態 */
.loading-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--secondary-color);
}

.loading-results .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

/* 無結果狀態 */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--secondary-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 工具提示 */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* 收藏按鈕動畫 */
.btn-outline-secondary:hover .fa-heart {
    color: #dc2626;
}

.btn-outline-secondary .fa-heart.fas {
    color: #dc2626;
}

/* 營業狀態指示器 */
.meta-item .fa-clock.text-success {
    color: var(--success-color) !important;
}

.meta-item .fa-clock.text-warning {
    color: var(--warning-color) !important;
}

.meta-item .fa-clock.text-danger {
    color: var(--danger-color) !important;
}

/* 特殊徽章樣式 */
.badge.bg-warning {
    background-color: #fbbf24 !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

/* 搜尋建議下拉選單 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion-item:hover {
    background-color: var(--light-color);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item .suggestion-text {
    font-weight: 500;
    color: var(--dark-color);
}

.search-suggestion-item .suggestion-category {
    font-size: 0.8rem;
    color: var(--secondary-color);
}/* 
店家詳情頁面專用樣式 */

/* 店家標題區域 */
.company-header {
    border-bottom: 1px solid var(--border-color);
}

.company-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0;
}

.company-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.company-rating-header .stars {
    font-size: 1.2rem;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.rating-count {
    font-size: 1rem;
}

.company-meta {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.company-actions .action-buttons {
    margin-bottom: 1rem;
}

.quick-info {
    font-size: 0.9rem;
    text-align: center;
}

/* 圖片輪播 */
.company-gallery {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-main .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.gallery-thumbnails .thumbnail {
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumbnails .thumbnail:hover,
.gallery-thumbnails .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 卡片樣式 */
.company-content .card {
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.company-content .card-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.company-content .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

.company-content .card-body {
    padding: 1.5rem;
}

/* 服務特色列表 */
.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features i {
    font-size: 1rem;
}

/* 認證徽章 */
.certifications {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.cert-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

/* 服務項目 */
.service-category h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.25rem 0;
    color: var(--secondary-color);
    position: relative;
    padding-left: 1rem;
}

.service-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.pricing-info {
    border-left: 4px solid var(--success-color);
}

.pricing-info h6 {
    color: var(--success-color);
    font-weight: 600;
}

/* 評價區域 */
.rating-summary {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

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

.rating-score-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.stars-large {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.rating-breakdown {
    padding-left: 2rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-label {
    min-width: 30px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.rating-bar .progress {
    flex: 1;
    height: 8px;
}

.rating-count {
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* 個別評價 */
.reviews-list {
    max-height: 600px;
    overflow-y: auto;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    font-size: 2rem;
    color: var(--secondary-color);
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-meta .stars {
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
}

.review-content p {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-tags .tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

/* 聯絡資訊卡片 */
.contact-info-card .card {
    position: sticky;
    top: 100px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    margin-top: 0.25rem;
}

.contact-details strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.business-hours {
    font-size: 0.9rem;
}

.business-hours .text-success {
    font-weight: 500;
    margin: 0.25rem 0;
}

.contact-actions .btn {
    font-weight: 500;
}

/* 地圖區域 */
.map-container {
    height: 250px;
    position: relative;
    background: var(--light-color);
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.map-content {
    text-align: center;
    color: var(--dark-color);
}

.map-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-info {
    border-top: 1px solid var(--border-color);
}

/* 相關店家 */
.related-company-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.related-company-item:last-child {
    border-bottom: none;
}

.company-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.company-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-company-item .company-info h6 {
    margin-bottom: 0.25rem;
}

.related-company-item .company-info h6 a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.related-company-item .company-info h6 a:hover {
    color: var(--primary-color);
}

.rating-small {
    margin-bottom: 0.25rem;
}

.rating-small .stars {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.rating-small .text-muted {
    font-size: 0.8rem;
}

/* Modal 樣式 */
.modal-lg {
    max-width: 800px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* 評分輸入 */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-input label:hover,
.rating-input input:checked ~ label {
    color: #fbbf24;
}

.rating-input input:checked ~ label ~ label {
    color: #fbbf24;
}

/* 標籤選擇 */
.tag-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-selection .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* 響應式設計 - 店家詳情頁面 */
@media (max-width: 992px) {
    .contact-info-card .card {
        position: static;
    }
    
    .company-actions {
        text-align: center;
        margin-top: 2rem;
    }
    
    .rating-breakdown {
        padding-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .company-name {
        font-size: 1.5rem;
    }
    
    .company-badges {
        margin-top: 0.5rem;
    }
    
    .company-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        display: flex;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .gallery-main .carousel-item img {
        height: 250px;
    }
    
    .rating-summary {
        padding: 1rem;
    }
    
    .rating-score-large {
        font-size: 2rem;
    }
    
    .stars-large {
        font-size: 1.2rem;
    }
    
    .overall-rating {
        margin-bottom: 2rem;
    }
    
    .contact-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .related-company-item {
        flex-direction: column;
        text-align: center;
    }
    
    .company-thumb {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .company-content .card-body {
        padding: 1rem;
    }
    
    .service-category {
        margin-bottom: 2rem;
    }
    
    .review-item {
        padding: 1rem 0;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        margin-top: 0;
    }
    
    .map-container {
        height: 200px;
    }
    
    .map-content h5 {
        font-size: 1rem;
    }
    
    .map-content p {
        font-size: 0.9rem;
    }
}

/* 動畫效果 */
.company-gallery:hover .carousel-item img {
    transform: scale(1.02);
}

.contact-actions .btn:hover {
    transform: translateY(-1px);
}

.related-company-item:hover {
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin: 0 -1rem;
    padding: 1rem;
}

/* 載入更多按鈕 */
#loadMoreReviews {
    transition: var(--transition);
}

#loadMoreReviews:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 特殊狀態樣式 */
.company-header .text-success {
    font-weight: 600;
}

.company-header .text-warning {
    font-weight: 600;
}

.company-header .text-danger {
    font-weight: 600;
}

/* 結構化資料視覺化 (開發用) */
.structured-data-preview {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.8rem;
}

/* 無障礙改善 */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%, 100%;
}

/* 高對比模式支援 */
@media (prefers-contrast: high) {
    .company-badges .badge {
        border: 2px solid;
    }
    
    .review-tags .tag {
        border-width: 2px;
    }
    
    .thumbnail {
        border-width: 3px !important;
    }
}/* Swi
per 精選店家輪播樣式 */
.featured-companies-swiper {
    padding: 0 20px 50px 20px;
    overflow: visible;
}

.featured-companies-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.featured-companies-swiper .company-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Swiper 導航按鈕樣式 */
.featured-companies-swiper .swiper-button-next,
.featured-companies-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: -22px;
}

.featured-companies-swiper .swiper-button-next:hover,
.featured-companies-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.featured-companies-swiper .swiper-button-next::after,
.featured-companies-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 600;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 767.98px) {
    .featured-companies-swiper .swiper-button-next,
    .featured-companies-swiper .swiper-button-prev {
        display: none;
    }
}

/* Swiper 分頁指示器樣式 */
.featured-companies-swiper .swiper-pagination {
    bottom: 10px;
    position: relative;
    margin-top: 20px;
}

.featured-companies-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(102, 126, 234, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.featured-companies-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 動態分頁指示器 */
.featured-companies-swiper .swiper-pagination-bullet-active-main {
    background: var(--primary-color);
}

.featured-companies-swiper .swiper-pagination-bullet-active-prev,
.featured-companies-swiper .swiper-pagination-bullet-active-next {
    background: rgba(102, 126, 234, 0.6);
    transform: scale(0.8);
}

/* 手機版優化 */
@media (max-width: 575.98px) {
    .featured-companies-swiper {
        padding: 0 10px 40px 10px;
    }
    
    .featured-companies-swiper .company-card {
        margin: 0 5px;
    }
}

/* 平板版優化 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .featured-companies-swiper {
        padding: 0 30px 50px 30px;
    }
}

/* 桌面版優化 */
@media (min-width: 992px) {
    .featured-companies-swiper {
        padding: 0 40px 50px 40px;
    }
    
    /* 桌面版顯示所有卡片，不需要輪播效果 */
    .featured-companies-swiper .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }
    
    .featured-companies-swiper .swiper-slide {
        flex: 0 0 calc(33.333% - 20px);
        margin: 0 10px;
    }
}

/* Swiper 載入動畫 */
.featured-companies-swiper.swiper-initialized {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.featured-companies-swiper:not(.swiper-initialized) {
    opacity: 0;
}

/* 觸控回饋效果 */
.featured-companies-swiper .swiper-slide-active .company-card {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .featured-companies-swiper .swiper-slide-active .company-card {
        transform: none;
    }
}

/* 無障礙優化 */
.featured-companies-swiper .swiper-button-next:focus,
.featured-companies-swiper .swiper-button-prev:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.featured-companies-swiper .swiper-pagination-bullet:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}/* S
wiper 精選店家輪播樣式 - 簡化版 */
.featured-companies-swiper {
    padding: 0 15px 40px 15px;
    overflow: hidden;
}

.featured-companies-swiper .swiper-slide {
    height: auto;
}

.featured-companies-swiper .company-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Swiper 導航按鈕樣式 */
.featured-companies-swiper .swiper-button-next,
.featured-companies-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.featured-companies-swiper .swiper-button-next:hover,
.featured-companies-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.featured-companies-swiper .swiper-button-next::after,
.featured-companies-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 767.98px) {
    .featured-companies-swiper .swiper-button-next,
    .featured-companies-swiper .swiper-button-prev {
        display: none;
    }
}

/* Swiper 分頁指示器樣式 */
.featured-companies-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.featured-companies-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(102, 126, 234, 0.3);
    opacity: 1;
}

.featured-companies-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 手機版優化 */
@media (max-width: 575.98px) {
    .featured-companies-swiper {
        padding: 0 10px 30px 10px;
    }
}/* He
ro Banner Swiper 樣式 */
.hero-swiper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgb(0 0 0 / 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-swiper .swiper-slide {
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Hero Swiper 導航按鈕樣式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -25px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 600;
}

/* Hero Swiper 分頁指示器樣式 */
.hero-swiper .swiper-pagination {
    bottom: 20px;
    z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.8);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 手機版優化 */
@media (max-width: 767.98px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .hero-swiper .swiper-slide {
        min-height: 350px;
    }
}/* 熱門店家 
Swiper 樣式 */
.popular-companies-swiper {
    padding: 0 15px 40px 15px;
    overflow: hidden;
}

.popular-companies-swiper .swiper-slide {
    height: auto;
}

.popular-companies-swiper .company-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* 熱門店家 Swiper 導航按鈕樣式 */
.popular-companies-swiper .swiper-button-next,
.popular-companies-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.popular-companies-swiper .swiper-button-next:hover,
.popular-companies-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.popular-companies-swiper .swiper-button-next::after,
.popular-companies-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 767.98px) {
    .popular-companies-swiper .swiper-button-next,
    .popular-companies-swiper .swiper-button-prev {
        display: none;
    }
}

/* 熱門店家 Swiper 分頁指示器樣式 */
.popular-companies-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.popular-companies-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 107, 107, 0.3);
    opacity: 1;
}

.popular-companies-swiper .swiper-pagination-bullet-active {
    background: #ff6b6b;
}

/* 手機版優化 */
@media (max-width: 575.98px) {
    .popular-companies-swiper {
        padding: 0 10px 30px 10px;
    }
}

/* 新進店家 Swiper 樣式 */
.new-companies-swiper {
    padding: 0 15px 40px 15px;
    overflow: hidden;
}

.new-companies-swiper .swiper-slide {
    height: auto;
}

.new-companies-swiper .company-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* 新進店家 Swiper 導航按鈕樣式 */
.new-companies-swiper .swiper-button-next,
.new-companies-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.new-companies-swiper .swiper-button-next:hover,
.new-companies-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.new-companies-swiper .swiper-button-next::after,
.new-companies-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 767.98px) {
    .new-companies-swiper .swiper-button-next,
    .new-companies-swiper .swiper-button-prev {
        display: none;
    }
}

/* 新進店家 Swiper 分頁指示器樣式 */
.new-companies-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.new-companies-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(16, 172, 132, 0.3);
    opacity: 1;
}

.new-companies-swiper .swiper-pagination-bullet-active {
    background: #10ac84;
}

/* 手機版優化 */
@media (max-width: 575.98px) {
    .new-companies-swiper {
        padding: 0 10px 30px 10px;
    }
}/* 專業文
章 Swiper 樣式 */
.articles-swiper {
    padding: 0 15px 40px 15px;
    overflow: hidden;
}

.articles-swiper .swiper-slide {
    height: auto;
}

.articles-swiper .article-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* 專業文章 Swiper 導航按鈕樣式 */
.articles-swiper .swiper-button-next,
.articles-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.articles-swiper .swiper-button-next:hover,
.articles-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.articles-swiper .swiper-button-next::after,
.articles-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* 手機版隱藏導航按鈕 */
@media (max-width: 767.98px) {
    .articles-swiper .swiper-button-next,
    .articles-swiper .swiper-button-prev {
        display: none;
    }
}

/* 專業文章 Swiper 分頁指示器樣式 */
.articles-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.articles-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(102, 126, 234, 0.3);
    opacity: 1;
}

.articles-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 手機版優化 */
@media (max-width: 575.98px) {
    .articles-swiper {
        padding: 0 10px 30px 10px;
    }
}