/* 底部专用样式 */

/* 确保容器和Bootstrap基础样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
}

.col-lg-3, .col-lg-2, .col-md-6 {
    position: relative;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.align-items-center {
    align-items: center;
}

/* Bootstrap input-group 样式 */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group .btn {
    position: relative;
    z-index: 2;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

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

.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;
    color: #333;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

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

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

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

.contact-info .contact-item {
    margin-bottom: 15px;
}

.contact-label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.contact-badge {
    background: #4285f4;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.mail-badge {
    background: #28a745;
}

.phone-badge {
    background: #17a2b8;
}

.working-badge {
    background: #ffc107;
    color: #333;
}

.contact-value {
    color: #666;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}

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

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

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

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.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 {
    margin-top: 20px;
}

.newsletter h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.newsletter-form {
    width: 100%;
}

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

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.btn-subscribe {
    background: #4285f4;
    border: none;
    color: white;
    padding: 12px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

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

.mail-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* 底部版权区域 */
.footer-bottom {
    background: #e9ecef;
    padding: 20px 0;
    margin-top: 40px;
    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;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.payment-icon {
    width: 50px;
    height: 32px;
    object-fit: contain;
    padding: 4px 8px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-icon[alt="PayPal"] {
    background: #003087;
}

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

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

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

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

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

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

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

.payment-badge:hover {
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.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: 30px;
    right: 30px;
    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;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

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

.back-to-top:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.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: 16px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto; /* 通知本身可以被点击 */
}

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

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

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

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

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

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

.notification-content i {
    font-size: 18px;
}

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

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

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

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    height: 70px;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    pointer-events: auto; /* 确保底部导航可以被点击 */
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

/* 固定让Shop（第二个导航项）保持选中状态 */
.mobile-nav-item:nth-child(2) {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
}

/* 移动端适配 - 隐藏footer，显示底部导航 */
@media (max-width: 768px) {
    .main-footer {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 给body添加上下内边距，避免内容被头部和底部导航遮挡 */
    body {
        padding-top: 60px !important;
        padding-bottom: 70px !important;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .notifications-container {
        top: 70px;
        right: 10px;
        left: auto; /* 不要覆盖整个宽度 */
        max-width: 350px; /* 恢复最大宽度限制 */
        bottom: 90px;
        pointer-events: none; /* 容器本身不阻止点击 */
    }
} 