/* 通用页脚样式 - 支持主题切换 */

.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 100px;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: center;
    width: 1200px;
    max-width: 100%;
}

/* 顶部区域 */
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

/* 公司信息 */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    padding: 0 4px;
    width: 100%;
    color: var(--text-secondary-inverse);
}

.footer-logo > div:first-child {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.footer-logo-icon {
    height: 44px;
    overflow: hidden;
}

.footer-logo-icon img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
}

.footer-logo-text {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-logo-wl {
    height: 30px;
    width: 54px;
}

.footer-logo-goods {
    height: 30px;
    width: 90px;
}

.footer-company-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 30px;
    color: var(--text-tertiary);
    width: 412px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* 链接列 */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    /* text-transform: capitalize; */
    line-height: 1.4;
}

.footer-column-title {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-links li {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* Newsletter订阅区 */
.footer-newsletter {
    position: relative;
    background-color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.footer-newsletter-bg {
    position: absolute;
    top: -234px;
    left: -30px;
    width: 1260px;
    height: 630px;
    background-size: cover;
    background-position: center;
    transform: rotate(90deg);
    opacity: 0.1;
    pointer-events: none;
}

.footer-newsletter-content {
    white-space: pre-wrap;

    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.footer-newsletter-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: var(--text-primary-inverse2);
    min-width: 0;
}

.footer-newsletter-title {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 24px;
    /* text-transform: capitalize; */
    min-width: max-content;
    width: min-content;
}

.footer-newsletter-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    letter-spacing: 0.32px;
    width: 461px;
    max-width: 100%;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-email-input-wrapper {
    background-color: #F6F8F7;
    border: 1px solid #E9EBEA;
    border-radius: 39.5px;
    padding: 2px 2px 2px 16px;
    height: 48px;
    width: 314px;
    display: flex;
    align-items: center;
}

.footer-email-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
}

.footer-email-input::placeholder {
    color: rgba(100, 116, 139, 0.5);
    /* text-transform: capitalize; */
}

.footer-subscribe-btn {
    background-color: #21BD62;
    border: none;
    border-radius: 30px;
    padding: 10px 32px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.footer-subscribe-btn:hover {
    background-color: #1DA854;
    transform: translateY(-2px);
}

.footer-subscribe-btn span {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    /* text-transform: capitalize; */
}

.footer-subscribe-btn img {
    width: 20px;
    height: 20px;
}

/* Footer底部 */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.footer-copyright {
    font-family: 'Satoshi Variable', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-tertiary);
}

.footer-links-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
}

.footer-links-group a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--primary-green);
}

.footer-separator {
    color: var(--text-tertiary);
    margin: 0 4px;
}

/* 社交媒体图标 */
.footer-social {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(51, 51, 51, 0.1);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-tertiary);
}

.footer-social-icon:hover {
    border-color: var(--primary-green);
    background-color: rgba(33, 189, 98, 0.05);
}

.footer-social-icon img {
    width: 18px;
    height: 18px;
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    position: fixed;
    right: 0;
    top: 240px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-welcome {
    writing-mode: sideways-lr;
    background-color: #FF6D29;
    padding: 24px 16px;
    border-radius: 12px 0 0 12px;
    
    color: var(--text-primary-inverse3);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    /* text-transform: capitalize; */
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 8px;
    background-color: var(--bg-primary-inverse2);
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--border-color);
}

.sidebar-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-secondary-inverse);
}

.sidebar-btn:hover {
    color: var(--primary-green);
}

.sidebar-btn:hover img {
    filter: brightness(0) invert(1);
}

.sidebar-btn img {
    width: 20px;
    height: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .footer {
        padding: 48px 80px;
    }
}

@media (max-width: 1280px) {
    
}

@media (max-width: 1024px) {
    .footer {
        padding: 40px 24px;
    }

    .footer-top {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-company {
        width: 100%;
    }

    .footer-company-desc {
        width: 100%;
    }

    .footer-newsletter {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-newsletter-content{
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-newsletter-desc {
        width: 100%;
    }

    .footer-newsletter-form {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 16px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-social {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        top: auto;
        bottom: 60px;
    }

    .sidebar-btn{
        width: 32px;
        height: 32px;
    }

    .sidebar-welcome {
        display: none;
    }
}
