/* Footer Styles */
.footer {
    background-color: #00243E;
    color: white;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 50px 0 0;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
        padding-bottom: 50px;
    }
}

/* 订阅区 */
.newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

@media (min-width: 768px) {
    .newsletter-section {
        flex-shrink: 0;
        width: auto;
        min-width: 400px;
        max-width: 550px;
        gap: 30px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        padding-right: 60px;
        padding-bottom: 0;
    }
}

.newsletter-header {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

@media (min-width: 1024px) {
    .newsletter-header {
        text-align: left;
        gap: 12px;
    }
}

.newsletter-title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.218;
}

@media (min-width: 768px) {
    .newsletter-title {
        font-size: 36px;
    }
}

.newsletter-description {
    font-size: 14px;
    line-height: 1.218;
    color: rgba(255, 255, 255, 0.6);
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-description {
        font-size: 16px;
        width: 100%;
    }
}

/* 订阅表单 */
.newsletter-form {
    display: flex;
    flex-direction: row;
}

@media (max-width: 767px) {
    .newsletter-form {
        width: 100%;
    }
}

.newsletter-input {
    flex: 1;
    padding: 14px;
    border-radius: 2px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    outline: none;
}

@media (min-width: 768px) {
    .newsletter-input {
        width: 403px;
        font-size: 16px;
    }
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-button {
    width: 130px;
    padding: 14px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    background-color: #BE930B;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #d4a612;
}

@media (min-width: 768px) {
    .newsletter-button {
        font-size: 16px;
    }
}

/* 社交图标 */
.social-links {
    display: flex;
    gap: 14px;
    width: 335px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding: 8px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

@media (min-width: 768px) {
    .contact-info {
        gap: 12px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-text {
    font-size: 14px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .contact-text {
        font-size: 16px;
    }
}

/* 链接区域 */
.footer-links {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 20px;
    padding-bottom: 20px;
    flex: 1;
}

@media (min-width: 768px) {
    .footer-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 120px;
        width: 100%;
        justify-content: flex-start;
    }
}

.link-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: auto;
    flex-shrink: 0;
}

.link-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-section-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.218;
}

@media (min-width: 768px) {
    .link-section-title {
        font-size: 18px;
    }
}

.link-section-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.link-section-toggle:focus {
    outline: none;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.link-section-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

@media (min-width: 768px) {
    .link-section-toggle {
        display: none;
    }
}

.link-list.collapsed {
    display: none;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.218;
}

@media (min-width: 768px) {
    .link-list {
        gap: 18px;
        font-size: 16px;
    }
}

.link-list a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    text-decoration: none;
}

.link-list a:hover {
    color: white;
}

/* 底部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding: 20px 0;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

.footer-copyright {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright .brand-name {
    color: white;
    font-weight: 600;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    gap: 8px;
}

@media (max-width: 767px) {
    .payment-methods {
        width: 100%;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .payment-methods {
        gap: 12px;
    }
}

.payment-method {
    width: 30px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .payment-method {
        width: 38px;
        height: 24px;
    }
}

.payment-method img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 消息提示框样式 */
.message-container {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.message {
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: messageFadeIn 0.3s ease-out;
    width: auto;
    max-width: 90%;
}

.message.error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message.success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message.info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.message.warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-content {
    flex: 1;
    font-size: 14px;
}

.message-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes messageFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}