/* ========== 页脚组件样式 ========== */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0 20px 0;
    color: #666;
    font-size: 14px;
}

/* ========== 友情链接区域 ========== */
.footer-links-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ========== 友情链接标题 ========== */
.footer-title {
    margin: 0;
    flex-shrink: 0;
}

.footer-title h3 {
    font-family: 'YSYuanTi-regular';
    color: #38a660;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    font-family: SourceHanSansSC-regular;
    white-space: nowrap;
}

/* ========== 下拉列表容器 ========== */
.footer-dropdowns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

/* ========== 单个下拉容器 ========== */
.dropdown-container {
    position: relative;
    min-width: 200px;
}

/* ========== 下拉按钮样式 ========== */
.dropdown-toggle {
    background: white;
    color: #4F4F4F;
    border: none;
    padding: 12px 20px;
  
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;

    font-family: SourceHanSansSC-regular;
}
.dropdown-toggle::after {
    display: none;
}
.dropdown-toggle:hover {
    transform: translateY(-3px);
}

.dropdown-toggle.active {
    background: white;
    color: #4F4F4F;


}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #4F4F4F;
}

/* ========== 下拉箭头 ========== */
.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

/* ========== 下拉菜单样式 ========== */
.dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 5px;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownFadeInUp 0.3s ease;
    display: block; /* 确保显示 */
}

/* 确保v-show正常工作 */
.dropdown-menu[style*="display: none"] {
    display: none !important;
}

@keyframes dropdownFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 下拉菜单项 ========== */
.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #f0f8f0 0%, #e8f5e8 100%);
    color: #38a660;
    text-decoration: none;
    padding-left: 20px;
}

/* ========== 版权信息区域 ========== */
.footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
}

.footer-copyright p {
    margin: 0;
    margin-bottom: 5px;
}

.footer-copyright p:last-child {
    margin-bottom: 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .footer-dropdowns {
        gap: 20px;
    }
    
    .dropdown-container {
        min-width: 180px;
    }
    
    .dropdown-toggle {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 25px 0 15px 0;
    }
    
    .footer-links-area {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px; /* 增加底部间距，为向上展开留出空间 */
    }
    
    .footer-title h3 {
        font-size: 18px;
    }
    
    .footer-dropdowns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .dropdown-container {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .dropdown-toggle {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .dropdown-toggle.active {
        background: white;
        color: #4F4F4F;
        border: 1px solid #e9ecef;
    }
    
    .dropdown-item {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .footer-copyright {
        font-size: 12px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-links-area {
        gap: 15px;
        margin-bottom: 10px; /* 增加底部间距，为向上展开留出更多空间 */
    }
    
    .footer-dropdowns {
        gap: 12px;
    }
    
    .dropdown-container {
        max-width: 280px;
    }
    
    .dropdown-toggle {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .dropdown-toggle.active {
        background: white;
        color: #4F4F4F;
        border: 1px solid #e9ecef;
    }
    
    .dropdown-item {
        white-space: normal;
        line-height: 1.3;
        padding: 8px 12px;
    }
    
    .dropdown-menu {
        max-height: 200px; /* 在小屏幕上减少最大高度 */
    }
    
    .footer-title h3 {
        font-size: 16px;
    }
}

/* ========== 滚动条样式 ========== */
.dropdown-menu::-webkit-scrollbar {
    width: 3px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #38a660;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2d8a4f;
}
