/* ========== Footer 样式 ========== */

/* Newsletter 区域 */
.footer-newsletter {
    background-color: #c7141e;
    color: #ffffff;
    padding: 50px 0;
}

.btcontainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.newsletter-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    stroke-width: 1.5;
    fill: none;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-text p {
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 12px 18px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    width: 280px;
    max-width: 100%;
    outline: none;
}

.newsletter-button {
    background-color: #232323;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-button:hover {
    background-color: #3a3a3a;
}

/* Footer 主体区域 */
.footer-main {
    background-color: #f8f8f8;
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    color: #676767;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: #676767;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #c7141e;
}

/* Contact 标题和文字使用 #232323 */
.footer-col.contact-col h4,
.footer-col.contact-col p,
.footer-col.contact-col strong,
.footer-col.contact-col a {
    color: #232323;
}

.footer-col.contact-col p a {
    color: #232323;
    text-decoration: none;
}

.footer-col.contact-col p a:hover {
    color: #c7141e;
}

/* 社交媒体区域 - 灰色圆形边框，无底色，图标颜色 #676767 */
.footer-social {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    display: none;
}

.social-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background-color: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: #c7141e;
    transform: translateY(-2px);
}

.social-link svg {
    width: 22px;
    height: 22px;
    stroke: #676767;
    stroke-width: 1.5;
    fill: none;
}

.social-link:hover svg {
    stroke: #c7141e;
}

/* Footer 底部版权 */
.footer-bottom {
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.bottom-wrapper div:last-of-type {
    display: none !important;
}
.copyright {
    font-size: 13px;
    color: #676767;
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-methods svg {
    height: 24px;
    width: auto;
}

/* Follow on Shop 按钮 - 紫色圆角，带爱心图标 */
.follow-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #5A31F4;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.follow-shop-btn:hover {
    background-color: #4a28d4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 49, 244, 0.3);
}

.follow-shop-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-to-top:hover {
    background-color: #f8f8f8;
    border-color: #c7141e;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #676767;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.back-to-top:hover svg {
    stroke: #c7141e;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content {
        justify-content: center;
    }

    .bottom-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .bottom-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .payment-methods {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        justify-content: center;
    }
}