/* 公共样式：头部导航 + 页脚（从 css/style.css 拆分） */

/* 头部导航（固定在页面顶部） */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-text .sub-title {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--color-primary);
    background-color: rgba(0, 53, 128, 0.05);
}

.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px 2px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 1px;
    transition: var(--transition);
}
.nav-quick-actions{
    display: none;
}
/* 页脚 */
.site-footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #999;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* 导航与页脚响应式（从 css/style.css 拆分） */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
    }

    .header-actions .btn {
        display: none;
    }

    .user-info {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* 768px–1024px 及以下：导航切换为全屏覆盖，点击 nav-toggle 展开 main-nav */
    .header-inner {
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .main-nav.open {
        transform: translateX(0);
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-border-light);
        width: 100%;
    }

    .main-nav a {
        padding: 16px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* 导航底部快捷按钮区域：登录 + 会员中心，1 行 2 列布局 */
    .nav-quick-actions {
        margin-top: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid var(--color-border-light);
        width: 100%;
    }

    .nav-quick-actions .btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* 小于 768px 时，nav-toggle 贴合头部顶部 */
    .nav-toggle {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}




