/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 0;
    font-family: 'AlimamaFangYuanTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Footer Tagline */
.footer-tagline {
    text-align: left;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 50px;
    color: #ffffff;
    letter-spacing: 1px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

/* Footer Content */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 0 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Footer Section */
.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

/* Chat With Us Section */
.footer-section.chat-section {
    text-align: left;
}

.email-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.email-input input {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #666;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.email-input input::placeholder {
    color: #999;
}

.email-input input:focus {
    border-color: #ff6b35;
}

.email-input button {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-input button:hover {
    background: #ff6b35;
    color: #ffffff;
}

.footer-section p {
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Footer Contact */
.footer-contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 0;
}

.contact-info {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
}

/* Footer Bottom */
.footer-bottom {
    background: #000000;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-copyright {
    color: #888;
    font-size: 0.85rem;
    text-align: left;
}

/* Footer Modal Styles */
.footer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.footer-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.footer-modal {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-modal-overlay.active .footer-modal {
    transform: scale(1);
}

.footer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #000000;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-modal-close:hover {
    opacity: 0.7;
}

.footer-modal-header {
    padding: 20px 30px 15px;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.footer-modal-content {
    padding: 30px 40px 40px;
    text-align: center;
}

.footer-modal-image {
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #000000;
    font-family: Arial, sans-serif;
}

.footer-modal-image::before {
    content: "\2709";
    display: block;
    font-family: Arial, sans-serif;
}

.footer-modal-text {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
    text-align: center;
}

.footer-modal-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.footer-modal-button:hover {
    background: #333;
    color: #ffffff;
}

.cert-line {
    width: 60px;
    height: 2px;
    background: #ff6b35;
    margin: 20px auto;
}

.certification-docs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cert-doc {
    background: #f8f9fa;
    color: #666;
    padding: 10px 15px;
    /*border-radius: 6px;*/
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
        display: flex;
        flex-direction: column;
    }
    
    .footer-tagline {
        font-size: 2rem;
        margin-bottom: 30px;
        padding: 0 20px;
        text-align: center;
        order: 2; /* 品牌标语在 CHAT WITH US 之后 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        margin-bottom: 30px;
        order: 3; /* ABOUT 和 SHOP 区域在品牌标语之后 */
        display: flex;
        flex-direction: column;
    }
    
    .footer-section.chat-section {
        order: 1; /* CHAT WITH US 在 footer-content 内显示在最前面 */
    }
    
    .footer-section:not(.chat-section) {
        order: 2; /* ABOUT 和 SHOP 区域在 CHAT WITH US 之后 */
    }
    
    .footer-contact {
        order: 4; /* 联系信息在 ABOUT 和 SHOP 之后 */
    }
    
    .footer-bottom {
        order: 5; /* 版权信息在最后 */
    }
    
    .footer-section {
        text-align: left;
        padding: 20px 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    
    .email-input {
        align-items: flex-start;
        max-width: 100%;
        margin: 0 auto 15px;
    }
    
    .email-input input {
        max-width: 100%;
    }
    
    .email-input button {
        max-width: 100%;
    }
    
    .footer-section p {
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .footer-contact {
        padding: 20px 20px 0;
        text-align: left
    }
    
    .contact-info {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        padding: 30px 0;
        text-align: center;
    }
    
    .footer-bottom .container {
        padding: 0 20px;
    }
    
    .footer-copyright {
        text-align: left;
        font-size: 0.8rem;
    }
    
    /* Modal 移动端调整 */
    .footer-modal {
        max-width: 90%;
        margin: 20px;
    }
    
    .footer-modal-header,
    .footer-modal-content {
        padding: 20px;
    }
    
    .footer-modal-image {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .footer-modal-text {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .footer-modal-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        display: flex;
        flex-direction: column;
    }
    
    .footer-tagline {
        font-size: 2rem;
        padding: 0 15px;
        order: 2; /* 让品牌标语显示在下方 */
    }
    
    .footer-content {
        gap: 25px;
        padding: 0 15px;
        order: 3; /* ABOUT 和 SHOP 区域在品牌标语之后 */
        display: flex;
        flex-direction: column;
    }
    
    .footer-section.chat-section {
        order: 1; /* CHAT WITH US 在 footer-content 内显示在最前面 */
    }
    
    .footer-section:not(.chat-section) {
        order: 2; /* ABOUT 和 SHOP 区域在 CHAT WITH US 之后 */
    }
    
    .footer-contact {
        order: 4; /* 联系信息在 ABOUT 和 SHOP 之后 */
    }
    
    .footer-bottom {
        order: 5; /* 版权信息在最后 */
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    
    .email-input {
        max-width: 100%;
    }
    
    .footer-section p {
        font-size: 0.75rem;
        max-width: 100%;
    }
    
    .footer-contact {
        padding: 15px 15px 0;
        text-align: left
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
    
    .footer-bottom .container {
        padding: 0 15px;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    /* Modal 小屏幕调整 */
    .footer-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .footer-modal-header,
    .footer-modal-content {
        padding: 15px;
    }
    
    .footer-modal-image {
        width: 50px;
        height: 50px;
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .footer-modal-text {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .footer-modal-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}