/* ===== 现代化导航栏和页脚样式 ===== */

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav_left {
    margin-top: 3px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav_left:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.nav_right {
    flex-shrink: 0;
}

.nav_right ul {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.nav_right li {
    height: 80px;
    line-height: 80px;
    margin-left: 40px;
    float: none;
    position: relative;
    flex-shrink: 0;
}

/* 导航链接下划线动画效果 */
.nav_right li::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav_right li:hover::after {
    width: calc(100% - 32px);
}

.nav_right li:last-child::after {
    display: none;
}

.nav_right li a {
    font-size: 15px;
    color: #555;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav_right li:hover > a {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav_right li.top_landing_list a:hover {
    color: #764ba2;
}

.nav_right .hover a {
    color: #764ba2;
}

/* 登录/注册按钮 - 修复溢出问题 */
.nav_right li:last-child {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 8px;
    flex-shrink: 0;
}

.nav_right li:last-child a {
    width: auto;
    min-width: 80px;
    height: 40px;
    line-height: 40px;
    border-radius: 25px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.nav_right li:last-child a:first-child {
    border-color: transparent;
    background: transparent;
    min-width: 50px;
    padding: 0 12px;
}

.nav_right li:last-child a:first-child:hover {
    color: #764ba2;
}

.nav_right li.top_landing a.top_landing_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-left: 0;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    padding: 0 20px;
}

.nav_right li.top_landing a.top_landing_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ===== 页脚样式 - 深色渐变主题 ===== */
.bottombox {
    padding-top: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.bottom1_ul1 {
    padding: 0 15px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom1_ul1 li {
    color: #fff;
    font-size: 15px;
    width: auto;
    margin-right: 0;
    float: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom1_ul1 > li > span {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    line-height: 36px;
    text-align: center;
    background: rgba(102, 126, 234, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.bottom_fl {
    margin-top: 40px;
    padding: 0 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bottom_fl_div1 {
    margin-right: 40px;
    width: 220px;
}

.bottom_fl_title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.bottom_fl_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.bottom_fl_div1_ul li {
    width: 110px;
    padding-right: 5px;
    box-sizing: border-box;
    float: left;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.bottom_fl_div2 {
    margin-right: 70px;
}

.bottom_fl_div2_ul li {
    padding-right: 5px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.bottom_fl_right li {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom_fl_right li img {
    margin-right: 9px;
    display: inline-block;
    vertical-align: -2px;
}

.bottom_fl_right_div {
    width: 109px;
    margin-right: 70px;
}

.bottom_fl_right_div img {
    width: 120px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.bottom_fl_right_div div {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    text-align: center;
}

.bottom2_ul1 {
    text-align: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bottom2_ul1 li {
    display: inline-block;
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.bottom2_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.bottom2_p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 15px;
}

.main3 {
    width: 1200px;
    margin: 0 auto;
}

/* ===== 响应式适配 - 修复溢出问题 ===== */
@media (max-width: 1200px) {
    .main3 {
        width: 100%;
        padding: 0 20px;
    }
    
    .nav_right li {
        margin-left: 25px;
    }
    
    .nav_right li a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 992px) {
    .nav {
        height: 70px;
    }
    
    .nav_left img {
        max-width: 160px;
        height: auto;
    }
    
    .nav_right li {
        height: 70px;
        line-height: 70px;
        margin-left: 15px;
    }
    
    .nav_right li a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .nav_right li:last-child a {
        padding: 0 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .nav_right li:last-child a:first-child {
        padding: 0 8px;
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        height: 60px;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .nav_left {
        flex: 0 0 auto;
        max-width: 40%;
    }
    
    .nav_left img {
        max-width: 100%;
        height: auto;
    }
    
    .nav_right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        min-width: 0;
        overflow: visible;
    }
    
    .nav_right ul {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
    }
    
    .nav_right li {
        height: 60px;
        line-height: 60px;
        margin-left: 10px;
        flex-shrink: 1;
    }
    
    .nav_right li a {
        font-size: 12px;
        padding: 5px 6px;
        border-radius: 6px;
    }
    
    /* 小屏幕隐藏部分导航项 */
    .nav_right li:nth-child(n+6) {
        display: none;
    }
    
    /* 登录按钮区域 - 强制显示 */
    .nav_right li:last-child {
        display: flex !important;
        flex-shrink: 0;
        margin-left: 10px;
    }
    
    .nav_right li:last-child a {
        padding: 0 10px;
        font-size: 11px;
        min-width: 50px;
        height: 32px;
        line-height: 32px;
    }
    
    .nav_right li:last-child a:first-child {
        padding: 0 8px;
        min-width: 35px;
        font-size: 11px;
    }
    
    .nav_right li.top_landing a.top_landing_btn {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .nav_left {
        max-width: 35%;
    }
    
    .nav_left img {
        max-width: 100%;
    }
    
    .nav_right li:nth-child(n+5) {
        display: none;
    }
    
    .nav_right li {
        margin-left: 5px;
    }
    
    .nav_right li a {
        font-size: 11px;
        padding: 4px 5px;
    }
    
    /* 登录按钮保持显示 */
    .nav_right li:last-child {
        display: flex !important;
    }
    
    .nav_right li:last-child a {
        padding: 0 8px;
        font-size: 10px;
        min-width: 45px;
        height: 30px;
        line-height: 30px;
    }
    
    .nav_right li:last-child a:first-child {
        padding: 0 6px;
        min-width: 30px;
    }
    
    .nav_right li.top_landing a.top_landing_btn {
        padding: 0 10px;
    }
    
    .bottombox {
        padding-top: 40px;
    }
    
    .bottom1_ul1 {
        flex-wrap: wrap;
        gap: 20px;
        padding: 0 15px 20px;
    }
    
    .bottom_fl {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .bottom_fl_div1,
    .bottom_fl_div2 {
        margin-right: 0;
        width: auto;
    }
    
    .bottom2_box {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
