/* ===== Footer 样式 ===== */
.footer {
    color: var(--text-primary);
    padding: 0;
    transition: color 0.3s ease;
}

.footer__content {
    max-width: 1740px;
    margin: 0 auto;
    /* padding: 0 32px; */
}

/* ===== Social Icons 样式 ===== */
.social-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-primary);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .social-icon {
    color: var(--text-secondary);
}

.social-icon:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* 底部订阅区域和菜单 */
.footer-top-section {
    /* border-top: 1px solid var(--border-primary); */
    border-bottom: 1px solid var(--border-primary);
    padding: 24px 0;
}

.subscribe-input-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 39.5px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    padding-left: 16px;
    width: 388px;
}

.subscribe-input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text-tertiary);
    flex: 1;
}

.subscribe-button {
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    padding: 0 32px;
    height: 100%;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-button:hover {
    background: var(--primary-color-hover);
}

.subscribe-button:active {
    background-color: var(--primary-color-active);
    transform: scale(0.95);
}

.footer-menu-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.footer-menu-section a {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-section a:hover {
    color: var(--primary-color);
}

.back-to-top-button {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 0 8px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0px 1px 4px 0px rgba(38, 51, 77, 0.03);
    transition: all 0.3s ease;
}

[data-theme="dark"] .back-to-top-button {
    background: #737D8B;
    border-color: #737D8B;
    color: #D7E2EF;
}

.back-to-top-button:hover {
    background: var(--bg-hover);
}

.back-to-top-button:active {
    transform: scale(0.95);
}

.back-to-top-button svg {
    width: 20px;
    height: 20px;
}

.back-to-top-button span {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
}

.search-sticky__container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.search-sticky__social {
    display: flex;
    gap: 8px;
    flex: 1;
}

.search-sticky__main {
    width: 658px;
    min-width: 0;
    border-radius: 50px;
}

.search-sticky__copyright {
    flex: 1;
    text-align: right;
}

/* ===== 搜索框样式 ===== */
.search-box {
    position: relative;
    width: 100%;
}

.search-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 81px;
    border: 2px solid transparent;
    background: white;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    pointer-events: none;
}

.search-box.active::before {
    border-color: #0076fc;
    border-radius: 24px;
    box-shadow: 0px 8px 24px 0px rgba(0, 118, 252, 0.15);
    top: -100%;
}

.search-box__input {
    position: relative;
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: none;
    background: transparent;
    border-radius: 81px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-box__input::placeholder {
    color: #b3b3b3;
}

.search-box__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0065fc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 2px 8px 0px rgba(0,101,252,0.15), 0px 2px 8px 0px rgba(0,101,252,0.1);
    transition: all 0.3s ease;
    padding: 10px;
    border: none;
    z-index: 2;
}

.search-box__icon:hover {
    background: #0076fc;
    transform: scale(1.05) translateY(-50%);
}

/* 搜索下拉面板 - 向上展开 */
.search-box__dropdown {
    position: absolute;
    bottom: 58px;
    left: 0;
    right: 0;
    background: white;
    padding: 8px;
    border-radius: 24px 24px 0 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    border: 2px solid #0076fc;
    border-bottom: none;
}

.search-box__dropdown.active {
    max-height: 300px;
    opacity: 1;
}

.search-box__dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #fafafa;
    padding: 12px;
    border-radius: 12px;
}

.search-box__dropdown-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #808080;
    text-transform: capitalize;
}

.search-box__dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-box__dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-box__dropdown-item:hover {
    background: #f5f5f5;
    color: #0076fc;
}

@media (max-width: 1024px) {
    .footer-top-section {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .subscribe-input-wrapper {
        width: 100%;
        max-width: 388px;
    }
    
    .footer-menu-section {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    
    .footer__content {
        padding: 0 16px;
    }
    
    .footer-top-section {
        flex-direction: column;
        align-items: center;
    }
    
    .subscribe-input-wrapper {
        width: 100%;
    }
    
    .footer-menu-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .back-to-top-button {
        width: 100%;
        justify-content: center;
    }
    
    .search-sticky {
        left: 0;
        padding: 16px;
        bottom: 70px; /* 在底部导航栏之上 */
    }
    
    .search-sticky__container {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-sticky__social {
        width: 100%;
        justify-content: center;
    }
    
    .search-sticky__main {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .search-sticky__copyright {
        width: 100%;
        text-align: center;
    }
}
