/* JL Model 自定義樣式 */

:root {
    --primary-color: #4066e1;
    --secondary-color: #dc2827;
    --white-color: #ffffff;
    --dark-color: #333333;
    --light-gray: #f8f9fa;
}

/* 全域樣式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 80px; /* 為固定導覽列留空間 */
}

/* 導覽列樣式 */
.navbar {
    background-color: var(--white-color) !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* 側面滑出選單樣式 */
.offcanvas {
    width: 280px !important;
}

.offcanvas-header {
    background: var(--primary-color);
    color: var(--white-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-title {
    color: var(--white-color);
    font-weight: bold;
}

.offcanvas-body {
    background: var(--white-color);
    padding: 2rem 1.5rem;
    position: relative;
}

/* 關閉按鈕位置調整 */
.offcanvas-body::before {
    content: '×';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.offcanvas-body::before:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.offcanvas-body .nav-link {
    color: var(--dark-color) !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    color: var(--primary-color) !important;
    padding-left: 1rem;
    background: rgba(64, 102, 225, 0.05);
}

.offcanvas-body .nav-item:last-child .nav-link {
    border-bottom: none;
}

.btn-close {
    filter: invert(1);
}

/* 手機版導覽列按鈕樣式 */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler:active,
.navbar-toggler.active {
    background-color: var(--primary-color) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:active .navbar-toggler-icon,
.navbar-toggler.active .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* 橫幅區塊樣式 */
.hero-section {
    position: relative;
    height: 65vh;
    overflow: hidden;
    background-color: #f8f9fa; /* 備用背景色 */
}

.hero-image {
    position: relative;
    height: 100%;
    width: 100%;
}

/* 輪播樣式 */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
    background-color: #e9ecef;
    opacity: 1 !important; /* 確保橫幅圖片立即顯示 */
}

/* 輪播控制按鈕樣式 - 使用Bootstrap原生樣式 */

/* 關於我們頁面樣式 */
.page-hero {
    margin-top: -1px;
}

.page-hero-image {
    height: 350px;
    overflow: hidden;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 聯絡我們頁面樣式 */
.contact-content {
    background-color: #f8f9fa;
    min-height: 600px;
}


.contact-info-section,
.contact-form-section {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
}

.contact-section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.contact-icon {
    color: var(--primary-color);
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.contact-label {
    color: #666;
    font-weight: 600;
    min-width: 80px;
    margin-right: 0.5rem;
}

.contact-value {
    color: var(--dark-color);
    flex: 1;
}

.business-cooperation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.cooperation-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.cooperation-text {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-form {
    background: transparent;
    padding: 0;
}

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

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(64, 102, 225, 0.25);
}

.captcha-display {
    display: flex;
    align-items: center;
    height: 100%;
}

.captcha-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
    min-width: 100px;
    text-align: center;
}

.form-buttons {
    text-align: center;
    margin-top: 2rem;
}

.form-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* 聯絡我們頁面響應式設計 */
@media (max-width: 768px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    .contact-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

.breadcrumb-section {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

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

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

.breadcrumb-item.active {
    color: #666;
}

.page-title {
    color: #404040;
    font-weight: bold;
    font-size: 2.5rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.about-text {
    line-height: 1.8;
    color: #666;
}

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

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #666;
}

.about-image img {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* 產品比例區塊樣式 */
.product-scales {
    background-color: var(--light-gray);
}

.scale-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.scale-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(64, 102, 225, 0.1);
}

.scale-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.scale-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0;
    padding: 1.5rem;
    text-align: center;
}

/* 產品列表頁面樣式 */
.sidebar-menu {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

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

.category-item {
    margin-bottom: 0.5rem;
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px;
}

.category-item:hover {
    border-color: rgba(64, 102, 225, 0.2);
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.category-link:hover {
    background-color: rgba(64, 102, 225, 0.1);
    color: var(--primary-color);
}

.category-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.category-item.active .category-link i {
    transform: rotate(90deg);
}

.category-item.active .category-link {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.subcategory-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(64, 102, 225, 0.05);
    border-radius: 8px;
    margin-top: 0.25rem;
    opacity: 0;
}

.category-item.active .subcategory-menu {
    max-height: 200px;
    padding: 0.5rem 0;
    opacity: 1;
}

.subcategory-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem 0.5rem 2rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.subcategory-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.subcategory-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.filter-banner {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.filter-title {
    color: var(--primary-color);
    font-weight: bold;
}

.filter-controls .btn {
    margin-left: 0.5rem;
}

.product-item {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

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

.product-details {
    margin-top: 1rem;
}

.product-item:hover {
    border-color: var(--primary-color);
}

.product-image {
    overflow: visible;
    display: block;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-price {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-min-order {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pagination-section {
    margin-top: 3rem;
}

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

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

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

/* 產品詳情頁面樣式 */
.product-detail-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.product-detail-title {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.product-detail-image {
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.price-section {
    margin-bottom: 2rem;
}

.price-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.price-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.quantity {
    color: #666;
    font-weight: 500;
}

.price {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.options-section {
    margin-bottom: 2rem;
}

.options-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.custom-options {
    margin-bottom: 1.5rem;
}

.custom-option {
    margin-bottom: 0.75rem;
}

.custom-option .form-check-label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.custom-option .form-check-input {
    margin-right: 0.5rem;
}

.quantity-section {
    margin-bottom: 1.5rem;
}

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

.quantity-section .form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
}

.specifications-section {
    margin-top: 3rem;
}

.spec-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.spec-item {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.spec-label {
    color: #666;
    font-weight: 600;
    min-width: 120px;
    margin-right: 1rem;
}

.spec-value {
    color: var(--dark-color);
    flex: 1;
}

.back-button-section {
    text-align: center;
    margin-top: 3rem;
}

.back-button-section .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

/* 圖片載入前的佔位樣式 */
.hero-image img:not([src]) {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c4bb8;
    border-color: #2c4bb8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 102, 225, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

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

/* 特色區塊樣式 */
.features-section {
    background-color: var(--white-color);
}

.feature-card {
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white-color);
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* 產品區塊樣式 */
.products-section {
    background-color: var(--light-gray);
}

.section-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

/* 產品區塊標題特殊顏色 */
.products-section .section-title {
    color: #404040;
}

/* 新聞區塊標題特殊顏色 */
.news-section .section-title {
    color: #404040;
}

/* 產品比例區塊標題特殊顏色 */
.product-scales .section-title {
    color: #404040;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.product-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(64, 102, 225, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-content h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0;
}

/* 新聞區塊樣式 */
.news-section {
    background-color: var(--white-color);
}

.news-list {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
}

.news-item {
    background: var(--white-color);
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.news-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
}

.news-item-clicked {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.news-image {
    text-align: center;
    padding: 0 1rem;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.news-content-info {
    padding-left: 1rem;
}

.news-meta {
    margin-bottom: 0.75rem;
}

.news-date {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-right: 1rem;
}

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

.news-title {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
}

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

/* 頁尾樣式 */
.footer {
    background: var(--dark-color) !important;
}

.footer-logo img {
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.contact-info p {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.contact-info i {
    color: var(--white-color);
    width: 20px;
}

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

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* 版權聲明樣式 */
.copyright {
    background-color: #1a1a1a !important;
}

.copyright p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .news-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px) scale(1.02);
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* 頁尾手機版置中 */
    .footer .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-links {
        text-align: center;
    }
    
    /* 關於我們頁面手機版樣式 */
    .page-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .page-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-image {
        margin-top: 2rem;
        text-align: center;
    }
    
    /* 產品列表頁面手機版樣式 */
    .sidebar-menu {
        position: static;
        margin-bottom: 2rem;
    }
    
    .filter-banner {
        text-align: center;
    }
    
    .filter-controls {
        margin-top: 1rem;
    }
    
    .filter-controls .btn {
        margin: 0.25rem;
    }
    
    /* 產品詳情頁面手機版樣式 */
    .product-detail-card {
        padding: 1.5rem;
    }
    
    .product-detail-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spec-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 滾動效果 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 新聞頁面樣式 */
.news-sidebar-menu {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 100px;
}

.news-sidebar-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.news-category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-category-item {
    margin-bottom: 0.5rem;
}

.news-category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.news-category-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
}

.news-category-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* 新聞詳情頁面樣式 */
.news-detail-content {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.news-detail-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

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

.news-detail-date {
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.news-detail-title {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.4;
}

.news-detail-body {
    padding: 2rem 0;
}

.news-detail-text {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

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

.news-detail-text p:last-child {
    margin-bottom: 0;
}

/* 新聞詳情頁面響應式樣式 */
@media (max-width: 768px) {
    .news-detail-content {
        padding: 1.5rem;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .news-detail-meta {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-detail-body {
        padding: 1.5rem 0;
    }
    
    /* 新聞側邊欄手機版樣式 */
    .news-sidebar-menu {
        position: static;
        margin-bottom: 2rem;
    }
}
