/* ==================== V2布局样式 - 导航、Footer、主内容 ==================== */

/* ==================== 导航栏 ==================== */
.v2-navbar {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-navbar.scrolled {
    background: rgba(22, 33, 62, 0.98);
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Logo品牌 */
.v2-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    transition: var(--transition-normal);
}

.v2-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.v2-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* 导航菜单 */
.v2-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.v2-nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap;
}

.v2-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.v2-nav-link:hover {
    background: rgba(52, 152, 219, 0.15);
    color: var(--accent-light);
}

.v2-nav-link:hover::after {
    width: 80%;
}

.v2-nav-link.active {
    background: var(--accent-blue);
    color: white;
}

.v2-btn-login {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: white;
    font-weight: 600;
}

.v2-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 移动端切换按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ==================== 主内容区 ==================== */
.v2-main-content {
    min-height: 100vh;
    padding-top: 70px; /* 导航栏高度 */
}

/* ==================== Footer ==================== */
.v2-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

/* Footer顶部金色装饰线 */
.v2-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

.footer-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-desc {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-contact i {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
    
    .v2-nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .v2-nav-menu.active {
        transform: translateX(0);
    }
    
    .v2-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .v2-footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-sub {
        font-size: 0.7rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}
