/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.top-header {
    background: linear-gradient(135deg, #1a1d3a 0%, #2d3561 100%);
    color: white;
    padding: 12px 0;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* 新图标样式 */
.support-icon, .shipping-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.categories-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
}

.user-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-icon {
    width: 16px;
    height: 16px;
    margin-bottom: 5px;
    object-fit: contain;
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 使图标变成白色 */
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-text i {
    font-size: 2rem;
    color: #4285f4;
}

.logo-text span {
    color: white;
}

/* 图标样式 */
.support-icon, .shipping-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.categories-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
}

.user-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 使图标变成白色 */
}

.cart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 0;
    filter: brightness(0) invert(1); /* 将图标变为白色 */
}

/* 搜索图标 */
.search-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* 搜索框样式 */
.search-section {
    padding: 0 20px;
}

.search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-btn {
    background: #4285f4;
    border: none;
    padding: 12px 20px;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #3367d6;
    color: white;
}

/* 顶部信息样式 */
.top-info {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
}

.support-info, .shipping-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-info i, .shipping-info i {
    font-size: 20px;
    color: #4285f4;
}

.support-text, .shipping-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.support-label, .shipping-label {
    font-size: 12px;
    color: #b0b3c7;
    font-weight: 500;
}

.support-number, .shipping-detail {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* 主导航样式 */
.main-nav {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.categories-menu .btn-categories {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-menu .btn-categories:hover {
    background: #3367d6;
    color: white;
}

.categories-dropdown {
    min-width: 250px;
    padding: 10px 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.categories-dropdown .dropdown-item {
    padding: 10px 20px;
    color: #333;
    transition: all 0.3s ease;
}

.categories-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #4285f4;
}

/* 主导航dropdown菜单样式 */
.main-navigation .dropdown-menu {
    min-width: 200px;
    padding: 10px 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.main-navigation .dropdown-item {
    padding: 10px 20px;
    color: #333;
    transition: all 0.3s ease;
}

.main-navigation .dropdown-item:hover {
    background: #f8f9fa;
    color: #4285f4;
}

/* 主导航菜单 */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-navigation .nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-link.dropdown-toggle {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
    border-radius: 20px;
}

.main-navigation .nav-link:hover {
    color: #4285f4;
}

.main-navigation .nav-link.dropdown-toggle:hover {
    background: #f8f9fa;
    color: #4285f4;
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4285f4;
    transition: width 0.3s ease;
}

.main-navigation .nav-link:hover::after {
    width: 100%;
}

/* Dropdown toggle 激活状态样式 */
.main-navigation .nav-link.dropdown-toggle.show,
.main-navigation .nav-link.dropdown-toggle[aria-expanded="true"] {
    background: #4285f4 !important;
    color: white !important;
    border-radius: 20px;
    padding: 8px 16px;
    position: relative;
}

.main-navigation .nav-link.dropdown-toggle.show::after,
.main-navigation .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    border-top-color: white;
}

/* 隐藏默认的dropdown箭头，使用自定义样式 */
.main-navigation .nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 8px;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: all 0.3s ease;
}

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.cart-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-link, .cart-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-link:hover, .cart-link:hover {
    color: #4285f4;
    background: #f8f9fa;
}

.cart-link {
    position: relative;
    font-weight: 500;
    background: #4285f4;
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
}

.cart-link:hover {
    color: white;
    background: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cart-total-display {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.cart-total {
    font-weight: 600;
    color: #4285f4;
    font-size: 14px;
    white-space: nowrap;
}

/* 底部样式 */
.main-footer {
    background: #f8f9fa;
    color: #666;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    max-width: 150px;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo-text i {
    font-size: 1.5rem;
    color: #4285f4;
}

.footer-logo-text span {
    color: #333;
}

.footer-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4285f4;
}

/* 联系信息样式 */
.contact-info .contact-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.contact-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.mail-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.phone-badge {
    background: #e8f5e8;
    color: #388e3c;
}

.working-badge {
    background: #fff3e0;
    color: #f57c00;
}

.contact-value {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.contact-value:hover {
    color: #4285f4;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: #e4405f; }
.social-link.youtube { background: #ff0000; }
.social-link.tiktok { background: #000000; }
.social-link.pinterest { background: #bd081c; }

/* 邮件订阅 */
.newsletter h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.newsletter-form .input-group {
    border-radius: 6px;
    overflow: hidden;
}



.mail-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 使图标变成白色 */
}

.newsletter-form .form-control {
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.btn-subscribe {
    background: #4285f4;
    border: none;
    color: white;
    padding: 10px 15px;
}

.btn-subscribe:hover {
    background: #3367d6;
    color: white;
}

/* 底部版权区域 */
.footer-bottom {
    background: #e9ecef;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
}

.copyright {
    color: #666;
    font-size: 14px;
}

.copyright-link {
    color: #4285f4;
    text-decoration: none;
}

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

/* 支付方式图标 */
.payment-methods {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icon {
    height: 32px;
    width: 48px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #dee2e6;
}

/* 支付图标特定背景色 */
.payment-icon[alt="PayPal"] {
    background: #003087;
}

.payment-icon[alt="Mastercard"] {
    background: #eb001b;
}

.payment-icon[alt="Visa"] {
    background: #1a1f71;
}

.payment-icon[alt="Maestro"] {
    background: #6c5ce7;
}

.payment-icon[alt="Stripe"] {
    background: #635bff;
}

.payment-icon[alt="Apple Pay"] {
    background: #000000;
}

.payment-icon[alt="Google Pay"] {
    background: #ffffff;
    border-color: #dadce0;
}

.payment-badge {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.payment-badge:hover {
    opacity: 1;
}

.payment-badge.paypal { background: #0070ba; }
.payment-badge.mastercard { background: #eb001b; }
.payment-badge.visa { background: #1a1f71; }
.payment-badge.maestro { background: #6c5ce7; }
.payment-badge.stripe { background: #635bff; }
.payment-badge.applepay { background: #000; }
.payment-badge.googlepay { background: #4285f4; }

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.back-to-top-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 使图标变成白色 */
}

/* 通知消息样式 */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 15px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #4285f4;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    color: #4285f4;
}

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

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-warning .notification-content i {
    color: #ffc107;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .top-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .main-navigation .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-actions {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 8px 0;
    }
    
    .search-section {
        margin: 15px 0;
    }
    
    .top-info {
        text-align: center;
        margin-top: 15px;
    }
    
    .support-info, .shipping-info {
        justify-content: center;
    }
    
    .main-nav {
        padding: 10px 0;
    }
    
    .categories-menu {
        margin-bottom: 15px;
    }
    
    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }
    
    .notifications-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
} 