/* Custom Styles for CAP Computer Website */

/* Bootstrap Container Override */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 90%;
    }
}


/* 產品規格樣式 */
.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.spec-label {
    color: #666;
    min-width: 120px;
    flex-shrink: 0;
}

.spec-value {
    color: #333;
    text-align: right;
    flex-grow: 1;
    margin-left: 15px;
}

.specifications {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.specifications h5 {
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Bootstrap Color Overrides */
:root {
    --bs-primary: #605757;
    --bs-primary-rgb: 96, 87, 87;
    --bs-accent: #ff7300;
    --bs-accent-rgb: 225, 114, 0;
    --bs-accent-light: #ff8c1a;
    --bs-accent-dark: #cc6600;
}

.btn-primary {
    background-color: #605757 !important;
    border-color: #605757 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #4a4545 !important;
    border-color: #4a4545 !important;
}

/* 新增輔助色按鈕樣式 */
.btn-accent {
    background-color: #ff7300 !important;
    border-color: #ff7300 !important;
    color: white !important;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    background-color: #cc6600 !important;
    border-color: #cc6600 !important;
    color: white !important;
}

.btn-outline-accent {
    color: #ff7300 !important;
    border-color: #ff7300 !important;
    background-color: transparent !important;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus,
.btn-outline-accent:active {
    background-color: #ff7300 !important;
    border-color: #ff7300 !important;
    color: white !important;
}

/* General Styles */
body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.main-header {
    border-bottom: 1px solid #e9ecef;
}

/* 確保語言選單不被下方導航列覆蓋 */
.main-header {
    position: relative;
    z-index: 1055; /* 高於 .navbar(1040) 與 .mega-menu(1021) */
}

.main-header .dropdown-menu {
    z-index: 1060; /* 讓下拉選單本身位於最上層 */
}

/* 美化語言選單 */
.main-header .dropdown-menu {
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 6px;
}
.main-header .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
}
.main-header .dropdown-menu .dropdown-item:hover,
.main-header .dropdown-menu .dropdown-item:focus {
    background-color: #e9ecef; /* 提升白底對比 */
    color: #212529;
}
.main-header .dropdown-menu .dropdown-item.active,
.main-header .dropdown-menu .dropdown-item:active {
    background-color: #d7e3ff; /* 更明顯的主題淡藍底 */
    color: #0a58ca;
    font-weight: 600;
}

/* 語言按鈕 hover/展開/聚焦強化對比 */
.main-header .header-actions .dropdown .btn.dropdown-toggle:hover,
.main-header .header-actions .dropdown .btn.dropdown-toggle:focus {
    background-color: #e9ecef;
    border-color: #ced4da;
}
.main-header .header-actions .dropdown .btn.dropdown-toggle.show {
    background-color: #e2e6ea;
    border-color: #ced4da;
}
.main-header .header-actions .dropdown .btn.dropdown-toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(225,114,0,.25);
}

.logo img {
    max-height: 60px;
    width: auto;
}

/* Header actions buttons - consistent sizing (desktop) */
.main-header .header-actions .btn {
    height: 40px;
    min-width: 40px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.main-header .header-actions .btn i {
    font-size: 16px;
}
.main-header .header-actions .dropdown .btn.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 手機右側操作區按鈕優化 */
@media (max-width: 768px) {
    .main-header .header-actions {
        gap: 6px;
    }
    .main-header .header-actions .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .main-header .dropdown-toggle .lang-label {
        display: none; /* 手機隱藏語言文字，只留圖示 */
    }
}

.search-box .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
}

.search-box .btn {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: none;
}

/* Navigation Styles */
.navbar {
    position: relative;
    z-index: 1040;
}

.navbar-nav .nav-link {
    font-size: 19px !important;
}

.navbar-nav .dropdown {
    position: static;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Catalog Mega Menu Styles */
.mega-menu-catalog {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    border: none;
    border-radius: 0;
    margin-top: 0;
    margin-left: calc(-50vw + 50%);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0;
}

.mega-menu-catalog.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
}

/* 左側導航 */
.mega-menu-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-weight: 500;
}

.sidebar-item:hover {
    background: #e9ecef;
    color: #605757;
}

.sidebar-item.active {
    background: #ff7300;
    color: #fff;
}

.sidebar-item.active i {
    color: #fff;
}

.sidebar-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #ff7300;
}

/* 右側內容 */
.mega-menu-content {
    flex: 1;
    padding: 20px;
    background: #fff;
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

.content-header {
    color: #ff7300;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #ff7300;
}

.content-item {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.content-item:hover {
    color: #ff7300;
    padding-left: 0.5rem;
    transform: translateX(3px);
}

.content-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ff7300;
    transition: width 0.3s ease;
}

.content-item:hover:before {
    width: 20px;
}

/* Mobile Catalog Menu */
@media (max-width: 991px) {
    .mega-menu-catalog {
        position: relative !important;
        width: auto !important;
        margin-left: 0 !important;
        box-shadow: none;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        transform: none !important;
    }
    
    .mega-menu-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-menu-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sidebar-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .mega-menu-content {
        padding: 15px;
    }
    
    .content-header {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .content-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

.mega-menu .dropdown-header {
    color: #ff7300;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #ff7300;
}

.mega-menu .dropdown-item {
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #ff7300;
    padding-left: 0.5rem;
    transform: translateX(3px);
}

.mega-menu .dropdown-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ff7300;
    transition: width 0.3s ease;
}

.mega-menu .dropdown-item:hover:before {
    width: 20px;
}

.mega-menu .dropdown-item {
    position: relative;
    overflow: hidden;
}

/* Mobile Mega Menu */
@media (max-width: 991px) {
    .mega-menu {
        position: relative !important;
        width: auto !important;
        margin-left: 0 !important;
        box-shadow: none;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
        transform: none !important;
    }
    
    .mega-menu.show {
        transform: none !important;
    }
    
    .mega-menu .container {
        max-width: none;
        padding: 0;
    }
    
    .mega-menu .row {
        margin: 0;
        flex-direction: column;
    }
    
    .mega-menu .col-md-3,
    .mega-menu .col-md-6 {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f1f1f1;
        flex: none;
        max-width: 100%;
    }
    
    .mega-menu .col-md-3:last-child,
    .mega-menu .col-md-6:last-child {
        border-bottom: none;
    }
    
    .mega-menu .dropdown-header {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .mega-menu .dropdown-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .mega-menu .row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .mega-menu .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .mega-menu .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
}

.banner-slide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #605757 0%, #4a4545 100%) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

/* Category Navigation */
.category-nav {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.category-tabs .btn {
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Product Card Styles */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    /*height: 200px;*/
    width: 100%;
    aspect-ratio: 1 / 1;
}

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

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.price-section {
    margin-top: auto;
}

.price-original {
    font-size: 0.875rem;
}

.price-current {
    font-size: 1.125rem;
    display: block;
}

/* Brand Showcase */
.brand-card {
    transition: transform 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-3px);
}

.brand-card img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

/* News Card Styles */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.news-card img {
    /*height: 200px;*/
    object-fit: contain;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: #343a40;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff7300;
    border-radius: 2px;
}

/* Service Features Section */
.service-features {
    border-top: 1px solid #dee2e6;
}

.service-item {
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    background: #fff;
}

.service-icon {
    transition: transform 0.3s ease;
    color: #ff7300;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    color: #cc6600;
}

.service-title {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-item {
        padding: 1rem 0.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem !important;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
}

/* Footer Styles */
.footer {
    background: #605757 !important;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer .text-muted:hover {
    color: #fff !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #495057;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #605757;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.payment-methods img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-methods img:not(:last-child) {
    margin-right: 0.5rem;
}

.payment-methods img:nth-child(2),
.payment-methods img:nth-child(4) {
    margin-right: 0.6rem;
}

.payment-methods img:nth-child(3) {
    margin-right: 0.7rem;
}

.payment-methods img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .payment-methods {
        justify-content: center;
        max-width: 100%;
    }
    
    .payment-methods img {
        height: 36px;
        margin-right: 0.4rem !important;
        margin-bottom: 0.5rem;
    }
    
    .payment-methods img:nth-child(2) {
        margin-right: 0.5rem !important;
    }
    
    .payment-methods img:nth-child(3) {
        margin-right: 0.4rem !important;
    }
    
    .payment-methods img:nth-child(4) {
        margin-right: 0.5rem !important;
    }
}

/* Back to Top Button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-banner .carousel-item {
        height: 300px !important;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .hero-banner p {
        font-size: 0.875rem;
    }
    
    .header-actions .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .category-tabs {
        justify-content: flex-start !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .category-tabs .btn {
        flex-shrink: 0;
    }
    
    .product-image {
        height: 180px;
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .brand-card {
        height: 60px;
    }
    
    .brand-card img {
        max-height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-banner .carousel-item {
        height: 250px !important;
    }
    
    .hero-banner h1 {
        font-size: 1.25rem;
    }
    
    .main-header .row > div {
        margin-bottom: 1rem;
    }
    
    .main-header .col-md-3,
    .main-header .col-md-6,
    .main-header .col-md-3:last-child {
        text-align: center;
    }
    
    .search-box {
        margin: 1rem 0;
    }
    
    .product-image {
        height: 160px;
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* PC Builder Styles */
.pc-builder-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.pc-builder-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 0;
}

.pc-builder-sidebar .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    background: white;
}

.category-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.category-item.active {
    background: rgba(225, 114, 0, 0.1);
    border-left: 4px solid #ff7300;
    color: #ff7300;
}

.category-item.active i {
    color: #ff7300;
}

.category-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #ff7300;
}

.selected-indicator {
    margin-left: auto;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.card-img-top-container {
    height: 200px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-actions .btn {
    transition: all 0.3s ease;
}

.component-summary-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.component-summary-item:hover {
    background: #e9ecef;
}

.selected-component-info {
    margin-top: 8px;
}

.component-name {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.component-price {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.component-actions .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.price-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.mega-menu-catalog {
    width: 800px;
    left: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.mega-menu-container {
    display: flex;
    min-height: 400px;
}

.mega-menu-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-item:hover {
    background: #e9ecef;
}

.sidebar-item.active {
    background: #ff7300;
    color: white;
}

.sidebar-item i {
    margin-right: 8px;
    width: 16px;
    color: #ff7300;
}

.mega-menu-content {
    flex: 1;
    padding: 20px;
    background: white;
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
}

.content-header {
    color: #ff7300;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.content-item {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.content-item:hover {
    color: #ff7300;
    text-decoration: none;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pc-builder-actions .btn {
    border-radius: 25px;
    padding: 8px 20px;
}

.loading-spinner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toast-container {
    z-index: 1060;
}

.toast {
    min-width: 300px;
}

.compatibility-status {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.compatibility-status.compatible {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.compatibility-status.incompatible {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.compatibility-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .pc-builder-header .col-md-4 {
        margin-top: 20px;
        text-align: center;
    }
    
    .pc-builder-actions .btn {
        margin-bottom: 10px;
    }
    
    .mega-menu-catalog {
        width: 100%;
        position: static;
    }
    
    .mega-menu-container {
        flex-direction: column;
    }
    
    .mega-menu-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .component-filters .input-group {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .pc-builder-header h1 {
        font-size: 1.8rem;
    }
    
    .pc-builder-header .lead {
        font-size: 1rem;
    }
    
    .category-item {
        padding: 12px 15px;
    }
    
    .product-card .card-body {
        padding: 15px;
    }
    
    .component-summary-item {
        padding: 8px;
    }
}

/* ===== 手機版專用優化樣式 ===== */

/* 手機版頭部優化 */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-header .logo img {
        max-height: 45px;
    }
    
    .main-header .search-box {
        margin: 10px 0;
    }
    
    .main-header .search-box .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .main-header .search-box .btn {
        padding: 8px 12px;
    }
    
    .main-header .header-actions .btn {
        width: 32px;
        height: 32px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .main-header .dropdown-toggle {
        font-size: 11px;
        padding: 4px 6px;
        border-radius: 4px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        min-width: 32px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .main-header .header-actions {
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .main-header .dropdown-menu {
        font-size: 12px;
        min-width: 80px;
    }
    
    .main-header .dropdown-menu .dropdown-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 確保手機版佈局穩定 */
    .main-header .col-3 {
        min-width: 0;
    }
    
    .main-header .header-actions {
        min-width: 0;
        overflow: hidden;
    }
    
    /* 防止下拉選單被截斷 */
    .main-header .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: auto !important;
        right: 10px !important;
        transform: none !important;
        margin-top: 5px;
    }
    
    /* 確保按鈕不會重疊 */
    .main-header .header-actions > * {
        flex-shrink: 0;
    }
    
    .main-header .dropdown {
        position: relative;
        z-index: 1000;
    }
}

/* 超小螢幕優化 */
@media (max-width: 576px) {
    .main-header .header-actions {
        gap: 2px;
    }
    
    .main-header .header-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .main-header .dropdown-toggle {
        font-size: 10px;
        padding: 3px 4px;
        min-width: 28px;
    }
    
    .main-header .dropdown-menu {
        right: 5px !important;
        min-width: 70px;
    }
    
    .main-header .dropdown-menu .dropdown-item {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 手機版底部導航優化 */
@media (max-width: 991.98px) {
    .bottom-nav {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-top: 1px solid #e9ecef;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .bottom-nav .nav-link {
        color: #6c757d;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .bottom-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7300, #cc6600);
    transition: width 0.3s ease;
    border-radius: 0 0 2px 2px;
}
    
    .bottom-nav .nav-link.active::before,
    .bottom-nav .nav-link:hover::before {
        width: 60%;
    }
    
    .bottom-nav .nav-link.active,
.bottom-nav .nav-link:hover {
    color: #ff7300;
    transform: translateY(-2px);
}
    
    .bottom-nav .nav-link i {
        font-size: 22px;
        margin-bottom: 4px;
        transition: transform 0.3s ease;
    }
    
    .bottom-nav .nav-link.active i,
    .bottom-nav .nav-link:hover i {
        transform: scale(1.1);
    }
    
    .bottom-nav .nav-link span {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
    }
}

/* 手機版橫幅優化 */
@media (max-width: 768px) {
    .hero-banner .carousel-item {
        height: 280px !important;
        border-radius: 0;
    }
    
    .hero-banner .banner-slide {
        border-radius: 0;
        overflow: hidden;
    }
    
    .hero-banner .banner-image {
        filter: brightness(0.8);
        object-fit: contain; /* 確保手機版也完整顯示圖片 */
    }
    
    .hero-banner h1 {
        font-size: 1.4rem !important;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        margin-bottom: 0.5rem;
    }
    
    .hero-banner p {
        font-size: 0.9rem !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        margin-bottom: 1rem;
    }
    
    .hero-banner .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 4px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    .hero-banner .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    .hero-banner .carousel-indicators {
        bottom: 15px;
    }
    
    .hero-banner .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0 4px;
    }
    
    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 10px;
    }
}

/* 手機版分類導航優化 */
@media (max-width: 768px) {
    .category-nav {
        padding: 15px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .category-tabs {
        gap: 8px;
        padding: 0 10px;
    }
    
    .category-tabs .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 4px;
        border: 2px solid #dee2e6;
        background: white;
        color: #495057;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .category-tabs .btn:hover,
.category-tabs .btn.active {
    background: #ff7300;
    border-color: #ff7300;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 114, 0, 0.3);
}
    
    .category-tabs .btn:active {
        transform: translateY(0);
    }
}

/* 手機版產品卡片優化 */
@media (max-width: 768px) {
    .product-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        margin-bottom: 20px;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .product-image {
        height: 200px;
        width: 100%;
        aspect-ratio: 1 / 1;
        position: relative;
        overflow: hidden;
    }
    
    .product-image img {
        transition: transform 0.3s ease;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.1);
    }
    
    .discount-badge {
        background: linear-gradient(135deg, #dc3545, #c82333);
        border-radius: 15px;
        padding: 4px 8px;
        font-size: 0.7rem;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    
    .product-card .card-body {
        padding: 15px;
    }
    
    .product-card .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
        color: #212529;
    }
    
    .product-card .card-text {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 12px;
    }
    
    .price-section {
        margin-bottom: 15px;
    }
    
    .price-original {
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .price-current {
        font-size: 1.1rem;
        font-weight: 700;
        color: #dc3545;
    }
    
    .product-actions .btn {
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff7300, #cc6600);
    border: none;
    box-shadow: 0 4px 15px rgba(225, 114, 0, 0.3);
    transition: all 0.3s ease;
}
    
    .product-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 114, 0, 0.4);
}
}

/* 手機版品牌展示優化 */
@media (max-width: 768px) {
    .brand-showcase {
        padding: 30px 0;
    }
    
    .brand-card {
        height: 70px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        margin-bottom: 15px;
    }
    
    .brand-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .brand-card img {
        max-height: 40px;
        max-width: 80%;
        filter: grayscale(100%);
        transition: all 0.3s ease;
    }
    
    .brand-card:hover img {
        filter: grayscale(0%);
        transform: scale(1.1);
    }
}

/* 手機版新聞卡片優化 */
@media (max-width: 768px) {
    .news-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        margin-bottom: 20px;
    }
    
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .news-card img {
        height: 180px;
        transition: transform 0.3s ease;
    }
    
    .news-card:hover img {
        transform: scale(1.05);
    }
    
    .news-card .card-body {
        padding: 15px;
    }
    
    .news-card .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .news-card .card-text {
        font-size: 0.85rem;
        color: #6c757d;
        line-height: 1.4;
    }
    
    .news-card small {
        font-size: 0.75rem;
        color: #adb5bd;
    }
}

/* 手機版區塊標題優化 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 30px;
        color: #212529;
        position: relative;
        padding-bottom: 15px;
    }
    
    .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff7300, #cc6600);
    border-radius: 2px;
}
}

/* 手機版間距優化 */
@media (max-width: 768px) {
    .featured-products,
    .brand-showcase,
    .latest-news {
        padding: 30px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-lg-3,
    .col-md-4,
    .col-sm-6,
    .col-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 手機版動畫效果 */
@media (max-width: 768px) {
    .product-card,
    .brand-card,
    .news-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero-banner .carousel-item {
        animation: slideIn 0.8s ease-out;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: scale(1.1);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* 手機版載入優化 */
@media (max-width: 768px) {
    .loading {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    /* 改善觸控體驗 */
    .btn,
    .nav-link,
    .product-card,
    .brand-card,
    .news-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 改善滾動體驗 */
    .category-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* 手機版深色模式支援 */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .main-header {
        background: #1a1a1a;
        border-bottom-color: #333;
    }
    
    .bottom-nav {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border-top-color: #333;
    }
    
    .product-card,
    .brand-card,
    .news-card {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .product-card .card-title,
    .news-card .card-title {
        color: #fff;
    }
    
    .product-card .card-text,
    .news-card .card-text {
        color: #ccc;
    }
}

/* ===== 新增功能樣式 ===== */

/* ===== 全站共用：數量輸入與內嵌加減按鈕 ===== */
.qty-input-wrap {
    position: relative;
    width: 180px;
}
.qty-input-wrap .qty-input {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}
.qty-input-wrap .qty-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #495057;
    border-radius: 0.25rem;
    z-index: 2;
}
.qty-input-wrap .qty-btn:hover:not(:disabled) {
    background: #f1f3f5;
}
.qty-input-wrap .qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.qty-input-wrap .qty-minus { left: 6px; }
.qty-input-wrap .qty-plus { right: 6px; }

/* 隱藏數字輸入的原生微調箭頭，視覺更乾淨 */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input {
    -moz-appearance: textfield;
}

@media (max-width: 768px) {
    .qty-input-wrap { width: 150px; }
}

/* Toast 通知樣式 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.toast-notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-success i {
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-error i {
    color: #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-warning i {
    color: #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-info i {
    color: #17a2b8;
}

/* 搜尋建議樣式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

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

/* 滾動指示器 */
.scroll-indicator {
    height: 3px;
    background: linear-gradient(90deg, #ff7300, #cc6600);
    border-radius: 2px;
    margin-top: 5px;
    transition: width 0.3s ease;
}

/* 觸控反饋樣式 */
.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.touch-feedback {
    transform: scale(0.98);
}

.clicked {
    transform: scale(0.95);
}

/* 購物車徽章 */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

/* 底部導航滑動效果 */
.bottom-nav {
    transition: transform 0.3s ease;
}

.bottom-nav.hide {
    transform: translateY(100%);
}

.bottom-nav.show {
    transform: translateY(0);
}

/* 圖片載入狀態 */
.product-image {
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    transition: opacity 0.3s ease;
}

.product-image img.loaded {
    opacity: 1;
}

.product-image.image-error {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.image-placeholder {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* 手機版特殊效果 */
@media (max-width: 768px) {
    /* 改善按鈕觸控區域 */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 改善連結觸控區域 */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 改善產品卡片觸控 */
    .product-card {
        cursor: pointer;
    }
    
    /* 改善搜尋框觸控 */
    .search-box input {
        min-height: 44px;
    }
    
    /* 改善底部導航觸控 */
    .bottom-nav .nav-link {
        min-height: 60px;
    }
    
    /* 改善分類按鈕觸控 */
    .category-tabs .btn {
        min-height: 44px;
        min-width: 80px;
    }
}

/* 載入動畫 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff7300;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 手機版性能優化 */
@media (max-width: 768px) {
    /* 減少動畫複雜度 */
    .product-card,
    .brand-card,
    .news-card {
        will-change: transform;
    }
    
    /* 優化滾動性能 */
    .category-tabs {
        will-change: scroll-position;
    }
    
    /* 優化圖片載入 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 手機版無障礙優化 */
@media (max-width: 768px) {
    /* 改善焦點指示器 */
    .btn:focus,
    .nav-link:focus,
    .product-card:focus {
        outline: 2px solid #ff7300;
        outline-offset: 2px;
    }
    
    /* 改善對比度 */
    .text-muted {
        color: #6c757d !important;
    }
    
    /* 改善字體大小 */
    body {
        font-size: 16px;
    }
    
    /* 改善行高 */
    p, .card-text {
        line-height: 1.6;
    }
}

/* ===== 新增 #ff7300 配色樣式 ===== */

/* 強調色文字 */
.text-accent {
    color: #ff7300 !important;
}

.text-accent-light {
    color: #ff8c1a !important;
}

.text-accent-dark {
    color: #cc6600 !important;
}

/* 強調色背景 */
.bg-accent {
    background-color: #ff7300 !important;
}

.bg-accent-light {
    background-color: #ff8c1a !important;
}

.bg-accent-dark {
    background-color: #cc6600 !important;
}

.bg-accent-gradient {
    background: linear-gradient(135deg, #ff7300 0%, #cc6600 100%) !important;
}

.bg-accent-light-gradient {
    background: linear-gradient(135deg, #ff8c1a 0%, #ff7300 100%) !important;
}

/* 強調色邊框 */
.border-accent {
    border-color: #ff7300 !important;
}

.border-accent-light {
    border-color: #ff8c1a !important;
}

.border-accent-dark {
    border-color: #cc6600 !important;
}

/* 強調色陰影 */
.shadow-accent {
    box-shadow: 0 4px 15px rgba(225, 114, 0, 0.3) !important;
}

.shadow-accent-hover:hover {
    box-shadow: 0 6px 20px rgba(225, 114, 0, 0.4) !important;
}

/* 強調色連結 */
.link-accent {
    color: #ff7300;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-accent:hover {
    color: #cc6600;
    text-decoration: underline;
}

/* 強調色卡片 */
.card-accent {
    border-left: 4px solid #ff7300;
    transition: all 0.3s ease;
}

.card-accent:hover {
    border-left-width: 8px;
    transform: translateX(4px);
}

/* 強調色標籤 */
.badge-accent {
    background-color: #ff7300;
    color: white;
}

.badge-accent-outline {
    background-color: transparent;
    color: #ff7300;
    border: 1px solid #ff7300;
}

/* 強調色進度條 */
.progress-bar-accent {
    background-color: #ff7300;
}

/* 強調色警告框 */
.alert-accent {
    background-color: rgba(225, 114, 0, 0.1);
    border-color: #ff7300;
    color: #cc6600;
}

/* 強調色表格行 */
.table-accent tbody tr:hover {
    background-color: rgba(225, 114, 0, 0.05);
}

/* 強調色分頁 */
.page-item.active .page-link {
    background-color: #ff7300;
    border-color: #ff7300;
}

.page-link {
    color: #ff7300;
}

.page-link:hover {
    color: #cc6600;
}

/* 強調色導航標籤 */
.nav-tabs .nav-link.active {
    color: #ff7300;
    border-bottom-color: #ff7300;
}

.nav-tabs .nav-link:hover {
    color: #cc6600;
}

/* 強調色下拉選單 */
.dropdown-item:hover {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
}

/* 強調色表單控制項 */
.form-control:focus {
    border-color: #ff7300;
    box-shadow: 0 0 0 0.2rem rgba(225, 114, 0, 0.25);
}

.form-check-input:checked {
    background-color: #ff7300;
    border-color: #ff7300;
}

/* 強調色按鈕組 */
.btn-group .btn:not(:last-child) {
    border-right-color: rgba(255, 255, 255, 0.3);
}

/* 強調色工具提示 */
.tooltip-inner {
    background-color: #ff7300;
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #ff7300;
}

/* 強調色彈出框 */
.popover-header {
    background-color: #ff7300;
    color: white;
    border-bottom-color: #cc6600;
}

/* 強調色模態框 */
.modal-header {
    border-bottom-color: #ff7300;
}

.modal-footer {
    border-top-color: #ff7300;
}

/* 強調色手風琴 */
.accordion-button:not(.collapsed) {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
}

.accordion-button:focus {
    border-color: #ff7300;
    box-shadow: 0 0 0 0.25rem rgba(225, 114, 0, 0.25);
}

/* 強調色輪播指示器 */
.carousel-indicators [data-bs-target] {
    background-color: #ff7300;
}

/* 強調色滾動條 */
::-webkit-scrollbar-thumb {
    background: #ff7300;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc6600;
}

/* 強調色選擇框 */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ff7300;
}

/* 強調色日期選擇器 */
.datepicker table tr td.active,
.datepicker table tr td.active:hover {
    background-color: #ff7300;
    border-color: #cc6600;
}

/* 強調色滑塊 */
.range-slider .ui-slider-range {
    background-color: #ff7300;
}

.range-slider .ui-slider-handle {
    border-color: #ff7300;
}

/* 強調色評分 */
.rating .star.active {
    color: #ff7300;
}

/* 強調色標籤雲 */
.tag-cloud .tag {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
    border: 1px solid rgba(225, 114, 0, 0.3);
}

.tag-cloud .tag:hover {
    background-color: #ff7300;
    color: white;
}

/* 強調色時間軸 */
.timeline-item::before {
    background-color: #ff7300;
}

.timeline-item.active::after {
    border-color: #ff7300;
}

/* 強調色統計卡片 */
.stat-card {
    border-left: 4px solid #ff7300;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(225, 114, 0, 0.2);
}

.stat-card .stat-number {
    color: #ff7300;
    font-weight: bold;
}

/* 強調色功能特色 */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .feature-icon {
    color: #ff7300;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    color: #cc6600;
}

/* 強調色價格卡片 */
.pricing-card.featured {
    border: 2px solid #ff7300;
    transform: scale(1.05);
}

.pricing-card.featured .card-header {
    background-color: #ff7300;
    color: white;
}

.pricing-card .price {
    color: #ff7300;
    font-size: 2rem;
    font-weight: bold;
}

/* 強調色測試imonial */
.testimonial-card {
    border-left: 4px solid #ff7300;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(225, 114, 0, 0.15);
}

.testimonial-card .quote {
    color: #ff7300;
    font-size: 2rem;
    opacity: 0.3;
}

/* 強調色團隊卡片 */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card .social-links a {
    color: #ff7300;
    transition: all 0.3s ease;
}

.team-card .social-links a:hover {
    color: #cc6600;
    transform: scale(1.2);
}

/* 強調色聯絡表單 */
.contact-form .form-control:focus {
    border-color: #ff7300;
    box-shadow: 0 0 0 0.2rem rgba(225, 114, 0, 0.25);
}

.contact-form .btn-submit {
    background-color: #ff7300;
    border-color: #ff7300;
    transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
    background-color: #cc6600;
    border-color: #cc6600;
    transform: translateY(-2px);
}

/* 強調色地圖標記 */
.map-marker {
    background-color: #ff7300;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 強調色搜尋結果 */
.search-result {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.search-result:hover {
    border-left-color: #ff7300;
    background-color: rgba(225, 114, 0, 0.05);
}

.search-result .highlight {
    background-color: rgba(225, 114, 0, 0.2);
    color: #cc6600;
}

/* 強調色過濾器 */
.filter-tag {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
    border: 1px solid rgba(225, 114, 0, 0.3);
    transition: all 0.3s ease;
}

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

.filter-tag.active {
    background-color: #ff7300;
    color: white;
}

/* 強調色比較表 */
.comparison-table th {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
}

.comparison-table .feature-yes {
    color: #ff7300;
    font-weight: bold;
}

/* 強調色FAQ */
.faq-item .faq-question {
    color: #ff7300;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: #cc6600;
}

.faq-item .faq-toggle {
    color: #ff7300;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #cc6600;
}

/* 強調色部落格 */
.blog-post .post-meta {
    color: #ff7300;
}

.blog-post .post-tags .tag {
    background-color: rgba(225, 114, 0, 0.1);
    color: #ff7300;
    border: 1px solid rgba(225, 114, 0, 0.3);
}

.blog-post .post-tags .tag:hover {
    background-color: #ff7300;
    color: white;
}

/* 強調色購物車 */
.cart-item .item-price {
    color: #ff7300;
    font-weight: bold;
}

.cart-summary .total {
    color: #ff7300;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 強調色結帳流程 */
.checkout-step.active {
    color: #ff7300;
    border-color: #ff7300;
}

.checkout-step.completed {
    color: #28a745;
    border-color: #28a745;
}

/* 強調色訂單狀態 */
.order-status.pending {
    color: #ff7300;
}

.order-status.processing {
    color: #17a2b8;
}

.order-status.shipped {
    color: #28a745;
}

.order-status.delivered {
    color: #28a745;
}

.order-status.cancelled {
    color: #dc3545;
}

/* 強調色通知 */
.notification {
    border-left: 4px solid #ff7300;
    background-color: rgba(225, 114, 0, 0.05);
}

.notification.unread {
    background-color: rgba(225, 114, 0, 0.1);
    border-left-width: 6px;
}

/* 強調色用戶資料 */
.user-profile .profile-avatar {
    border: 4px solid #ff7300;
}

.user-profile .profile-stats .stat-value {
    color: #ff7300;
    font-weight: bold;
}

/* 強調色設定頁面 */
.settings-section .section-header {
    color: #ff7300;
    border-bottom: 2px solid #ff7300;
}

.settings-section .setting-item {
    transition: all 0.3s ease;
}

.settings-section .setting-item:hover {
    background-color: rgba(225, 114, 0, 0.05);
}

/* 強調色幫助中心 */
.help-search .search-input:focus {
    border-color: #ff7300;
    box-shadow: 0 0 0 0.2rem rgba(225, 114, 0, 0.25);
}

.help-category {
    border: 1px solid rgba(225, 114, 0, 0.3);
    transition: all 0.3s ease;
}

.help-category:hover {
    border-color: #ff7300;
    background-color: rgba(225, 114, 0, 0.05);
}

/* 響應式強調色樣式 */
@media (max-width: 768px) {
    .card-accent:hover {
        transform: translateY(-3px);
        border-left-width: 6px;
    }
    
    .stat-card:hover {
        transform: translateY(-3px);
    }
    
    .feature-item:hover {
        transform: translateY(-3px);
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .testimonial-card:hover {
        transform: translateY(-3px);
    }
    
    .team-card:hover {
        transform: translateY(-3px);
    }
    
    .contact-form .btn-submit:hover {
        transform: translateY(-1px);
    }
}

/* ===== 圖示配色樣式 ===== */

/* 通用圖示配色 */
.icon-accent {
    color: #ff7300 !important;
}

.icon-accent-light {
    color: #ff8c1a !important;
}

.icon-accent-dark {
    color: #cc6600 !important;
}

/* 導航圖示配色 */
.navbar-nav .nav-link i,
.navbar-nav .dropdown-toggle i {
    color: #ff7300;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .dropdown-toggle:hover i {
    color: #cc6600;
}

.navbar-nav .nav-link.active i,
.navbar-nav .show > .dropdown-toggle i {
    color: #cc6600;
}

/* 頁腳圖示配色 */
.footer .social-links a i {
    color: #fff;
    transition: color 0.3s ease;
}

.footer .social-links a:hover i {
    color: #ff8c1a;
}

/* 按鈕圖示配色 */
.btn i {
    transition: color 0.3s ease;
}

.btn-primary i {
    color: #fff;
}

.btn-accent i {
    color: #fff;
}

.btn-outline-accent i {
    color: #ff7300;
    transition: color 0.3s ease;
}

.btn-outline-accent:hover i {
    color: #fff;
}

/* 卡片圖示配色 */
.card-header i,
.card-footer i {
    color: #ff7300;
}

.card-accent .card-header i {
    color: #fff;
}

/* 表單圖示配色 */
.input-group-text i {
    color: #ff7300;
}

.form-label i {
    color: #ff7300;
    margin-right: 0.5rem;
}

/* 警告框圖示配色 */
.alert i {
    margin-right: 0.5rem;
}

.alert-success i {
    color: #28a745;
}

.alert-danger i {
    color: #dc3545;
}

.alert-warning i {
    color: #ffc107;
}

.alert-info i {
    color: #17a2b8;
}

.alert-accent i {
    color: #ff7300;
}

/* 列表圖示配色 */
.list-group-item i {
    color: #ff7300;
    margin-right: 0.5rem;
}

.list-group-item:hover i {
    color: #cc6600;
}

/* 表格圖示配色 */
.table th i,
.table td i {
    color: #ff7300;
    margin-right: 0.5rem;
}

.table tbody tr:hover i {
    color: #cc6600;
}

/* 分頁圖示配色 */
.pagination .page-link i {
    color: #ff7300;
}

.pagination .page-item.active .page-link i {
    color: #fff;
}

/* 標籤圖示配色 */
.badge i {
    margin-right: 0.25rem;
}

.badge-accent i {
    color: #fff;
}

.badge-accent-outline i {
    color: #ff7300;
}

/* 進度條圖示配色 */
.progress-bar-accent i {
    color: #fff;
    margin-right: 0.5rem;
}

/* 手風琴圖示配色 */
.accordion-button i {
    color: #ff7300;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.accordion-button:not(.collapsed) i {
    color: #cc6600;
}

.accordion-button:hover i {
    color: #cc6600;
}

/* 輪播圖示配色 */
.carousel-control-prev i,
.carousel-control-next i {
    color: #ff7300;
    font-size: 2rem;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: #cc6600;
}

/* 模態框圖示配色 */
.modal-header .btn-close {
    color: #ff7300;
}

.modal-header .btn-close:hover {
    color: #cc6600;
}

.modal-footer i {
    color: #ff7300;
    margin-right: 0.5rem;
}

/* 工具提示圖示配色 */
.tooltip i {
    color: #ff7300;
    margin-right: 0.25rem;
}

/* 彈出框圖示配色 */
.popover-header i {
    color: #fff;
    margin-right: 0.5rem;
}

.popover-body i {
    color: #ff7300;
    margin-right: 0.5rem;
}

/* 下拉選單圖示配色 */
.dropdown-menu .dropdown-item i {
    color: #ff7300;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover i {
    color: #cc6600;
}

.dropdown-menu .dropdown-item.active i {
    color: #fff;
}

/* 導航標籤圖示配色 */
.nav-tabs .nav-link i {
    color: #ff7300;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.nav-tabs .nav-link:hover i {
    color: #cc6600;
}

.nav-tabs .nav-link.active i {
    color: #ff7300;
}

/* 麵包屑圖示配色 */
.breadcrumb-item i {
    color: #ff7300;
    margin: 0 0.5rem;
}

.breadcrumb-item.active i {
    color: #6c757d;
}

/* 搜尋框圖示配色 */
.search-box .btn i {
    color: #fff;
}

.search-suggestions .suggestion-item i {
    color: #ff7300;
    margin-right: 0.5rem;
}

/* 購物車圖示配色 */
.cart-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #cc6600;
}

.cart-badge i {
    color: #fff;
}

/* 用戶圖示配色 */
.user-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.user-icon:hover {
    color: #cc6600;
}

/* 設定圖示配色 */
.settings-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.settings-icon:hover {
    color: #cc6600;
}

/* 幫助圖示配色 */
.help-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.help-icon:hover {
    color: #cc6600;
}

/* 通知圖示配色 */
.notification-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.notification-icon:hover {
    color: #cc6600;
}

.notification-icon.has-notifications {
    color: #dc3545;
}

/* 語言切換圖示配色 */
.language-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.language-icon:hover {
    color: #cc6600;
}

/* 返回頂部圖示配色 */
#backToTop i {
    color: #fff;
}

/* 載入圖示配色 */
.loading i {
    color: #ff7300;
}

/* 成功/錯誤圖示配色 */
.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.warning-icon {
    color: #ffc107;
}

.info-icon {
    color: #17a745;
}

/* 評分圖示配色 */
.rating i {
    color: #ff7300;
    transition: color 0.3s ease;
}

.rating i:hover {
    color: #ff8c1a;
}

.rating i.active {
    color: #ff7300;
}

/* 時間圖示配色 */
.time-icon {
    color: #ff7300;
}

/* 位置圖示配色 */
.location-icon {
    color: #ff7300;
}

/* 電話圖示配色 */
.phone-icon {
    color: #ff7300;
}

/* 郵件圖示配色 */
.email-icon {
    color: #ff7300;
}

/* 網站圖示配色 */
.website-icon {
    color: #ff7300;
}

/* 社交媒體圖示配色 */
.social-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #cc6600;
}

.social-icon.facebook:hover {
    color: #1877f2;
}

.social-icon.twitter:hover {
    color: #1da1f2;
}

.social-icon.instagram:hover {
    color: #e4405f;
}

.social-icon.youtube:hover {
    color: #ff0000;
}

.social-icon.linkedin:hover {
    color: #0077b5;
}

/* 支付方式圖示配色 */
.payment-icon {
    color: #ff7300;
    transition: color 0.3s ease;
}

.payment-icon:hover {
    color: #cc6600;
}

/* 配送圖示配色 */
.shipping-icon {
    color: #ff7300;
}

/* 安全圖示配色 */
.security-icon {
    color: #ff7300;
}

/* 品質圖示配色 */
.quality-icon {
    color: #ff7300;
}

/* 支援圖示配色 */
.support-icon {
    color: #ff7300;
}

/* 響應式圖示配色 */
@media (max-width: 768px) {
    .navbar-nav .nav-link i,
    .navbar-nav .dropdown-toggle i {
        font-size: 1.1rem;
    }
    
    .btn i {
        font-size: 0.9rem;
    }
    
    .card-header i,
    .card-footer i {
        font-size: 0.9rem;
    }
    
    .form-label i {
        font-size: 0.9rem;
    }
    
    .list-group-item i {
        font-size: 0.9rem;
    }
    
    .table th i,
    .table td i {
        font-size: 0.9rem;
    }
    
    .pagination .page-link i {
        font-size: 0.9rem;
    }
    
    .badge i {
        font-size: 0.8rem;
    }
    
    .accordion-button i {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 1.5rem;
    }
    
    .modal-footer i {
        font-size: 0.9rem;
    }
    
    .dropdown-menu .dropdown-item i {
        font-size: 0.9rem;
    }
    
    .nav-tabs .nav-link i {
        font-size: 0.9rem;
    }
    
    .breadcrumb-item i {
        font-size: 0.8rem;
    }
    
    .search-suggestions .suggestion-item i {
        font-size: 0.9rem;
    }
    
    .cart-icon,
    .user-icon,
    .settings-icon,
    .help-icon,
    .notification-icon,
    .language-icon {
        font-size: 1.1rem;
    }
    
    .rating i {
        font-size: 1.2rem;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
    
    .payment-icon {
        font-size: 1rem;
    }
} 

/* Navbar accent background and contrast text colors */
#navbarNav {
    background-color: #cc6600 !important;
}

.desktop-nav {
    background-color: #cc6600 !important;
}

.desktop-nav .navbar-brand,
.desktop-nav .navbar-nav .nav-link,
.desktop-nav .navbar-nav .dropdown-toggle {
    color: #ffffff !important;
}

.desktop-nav .navbar-nav .nav-link:hover,
.desktop-nav .navbar-nav .nav-link:focus,
.desktop-nav .navbar-nav .nav-link.active {
    color: #ffffff !important;
    opacity: 0.9;
}

.desktop-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.55) !important;
}

.desktop-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 115, 0, 0.35) !important;
}

/* 零售價樣式 */
.price-retail {
    color: #6c757d !important;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: line-through !important;
    opacity: 0.8;
}

.price-section .d-flex {
    gap: 0.5rem;
}

.price-section .d-flex .price-retail {
    margin-right: 1rem;
    white-space: nowrap;
}

/* 響應式設計 - 小螢幕時調整價格顯示 */
@media (max-width: 576px) {
    .price-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }
    
    .price-section .d-flex .price-retail {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .price-section .d-flex .badge {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}
