/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f7fa;
    --white: #fff;
    --border-color: #e5e7eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-size: 15px;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.icon-btn.user-btn {
    position: relative;
}

.icon-btn.user-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: var(--white);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-level {
    font-size: 12px;
    opacity: 0.8;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s;
}

.user-dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.user-dropdown-item i {
    width: 20px;
    margin-right: 12px;
    color: var(--text-light);
    transition: color 0.2s;
}

.user-dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown-item.logout {
    color: #ef4444;
}

.user-dropdown-item.logout i {
    color: #ef4444;
}

.user-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.btn-login {
    background: transparent;
    color: var(--text-color);
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register:hover {
    background: var(--primary-hover);
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-search-btn,
.mobile-user-btn,
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s;
}

.mobile-search-btn:hover,
.mobile-user-btn:hover,
.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-item {
    padding: 14px 0;
    font-size: 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.mobile-nav-item.active {
    padding-left: 20px;
}

/* 搜索弹窗 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    z-index: 2000;
    padding-left: 16px;
    padding-right: 16px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px 50px;
    width: 650px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
    border: 1px solid rgba(79, 70, 229, 0.1);
    animation: searchModalIn 0.3s ease;
}

@keyframes searchModalIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.search-close:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #ef4444;
    transform: rotate(90deg);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 25px rgba(79, 70, 229, 0.2);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-lighter);
}

.search-submit {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
    flex-shrink: 0;
}

.search-submit:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.search-submit i {
    font-size: 18px;
}

.search-hot {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.search-hot-title {
    font-weight: 500;
}

.search-hot a {
    margin-left: 12px;
    color: var(--primary-color);
}

.search-hot a:hover {
    text-decoration: underline;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    margin: auto;
    z-index: 2;
}

@media (max-width: 768px) {
    .modal {
        align-items: flex-start;
        padding: 40px 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content {
        max-width: 95%;
        margin: 0 auto;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* VIP升级弹窗 */
.vip-modal-content {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.vip-modal-header {
    text-align: center;
    padding: 40px 32px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--white);
    position: relative;
}

.vip-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--white);
    z-index: 2;
}

.vip-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.vip-modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.vip-modal-icon i {
    font-size: 28px;
}

.vip-modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.vip-modal-header p {
    font-size: 14px;
    opacity: 0.9;
}

.vip-plans {
    display: flex;
    gap: 16px;
    padding: 24px 32px;
}

.vip-plan {
    flex: 1;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.vip-plan:hover {
    border-color: var(--primary-color);
}

.vip-plan.popular {
    background: linear-gradient(135deg, #f0f0ff, #fafafa);
    border-color: var(--primary-color);
    position: relative;
}

.vip-plan-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vip-plan-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.vip-plan-tag {
    padding: 2px 8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    border-radius: 4px;
}

.vip-plan-tag.hot {
    background: #ef4444;
}

.vip-plan-tag:empty {
    display: none;
}

.vip-plan-price {
    margin-bottom: 8px;
}

.price-symbol {
    font-size: 16px;
    color: var(--text-color);
    vertical-align: top;
}

.price-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 14px;
    color: var(--text-light);
}

.vip-plan-save {
    display: inline-block;
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.vip-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.vip-plan-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-plan-features li i {
    color: #10b981;
    font-size: 12px;
}

.vip-modal-footer {
    text-align: center;
    padding: 16px 32px 24px;
    color: var(--text-lighter);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

.vip-modal-footer i {
    margin: 0 4px;
}

.vip-modal-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .vip-modal-content {
        max-height: 85vh;
        margin: 10px auto;
        border-radius: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .vip-modal-header {
        padding: 24px 20px 16px;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .vip-modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .vip-modal-icon i {
        font-size: 24px;
    }
    
    .vip-modal-header h2 {
        font-size: 20px;
    }
    
    .vip-plans {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    
    .vip-plan {
        padding: 16px;
    }
    
    .vip-plan-price {
        margin-bottom: 6px;
    }
    
    .price-num {
        font-size: 30px;
    }
    
    .vip-plan-features {
        margin-bottom: 16px;
    }
    
    .vip-plan-features li {
        padding: 4px 0;
        font-size: 12px;
    }
    
    .vip-modal-footer {
        padding: 12px 16px 20px;
        font-size: 11px;
    }
}

/* 登录注册表单 */
.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-tab.active::after,
.auth-tab:hover::after {
    opacity: 1;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 验证码样式 */
.captcha-group {
    position: relative;
}

.captcha-input-wrap {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.captcha-input:focus {
    border-color: var(--primary-color);
}

.captcha-code {
    min-width: 90px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.captcha-code:hover {
    transform: scale(1.02);
}

.captcha-code:active {
    transform: scale(0.98);
}

/* 协议勾选样式 */
.agree-row {
    margin: 16px 0;
}

.agree-row .checkbox-label {
    font-size: 13px;
    color: #666;
}

.protocol-link {
    color: var(--primary-color);
    text-decoration: none;
}

.protocol-link:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-color);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.social-login {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.social-login i {
    margin-left: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.social-login i:hover {
    color: var(--primary-color);
}

/* 轮播图区域 */
.hero-section {
    margin-top: 70px;
    position: relative;
}

.carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.carousel-slides {
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.carousel-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* 二维码入口 */
.qrcode-entrance {
    position: absolute;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrcode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.qrcode-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.qrcode-item i {
    font-size: 20px;
    color: #07c160;
}

.qrcode-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 二维码弹窗 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qrcode-modal.active {
    display: flex;
}

.qrcode-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.qrcode-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.qrcode-placeholder i {
    font-size: 60px;
    color: var(--text-lighter);
    margin-bottom: 10px;
}

.qrcode-placeholder p {
    color: var(--text-lighter);
    font-size: 14px;
}

.qrcode-tip {
    color: var(--text-light);
    font-size: 14px;
}

/* 分类卡片网格 */
.section {
    padding: 30px 0;
}

.categories-section {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon i {
    font-size: 28px;
    color: var(--white);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* 文档卡片网格 */
.docs-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-color) 100%);
}

.list-docs-section {
    padding-top: 100px;
}

/* 筛选栏 */
.filter-bar {
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.filter-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-row:first-child {
    padding-top: 0;
}

.filter-label {
    width: 90px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-label i {
    color: var(--primary-color);
    font-size: 14px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 16px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-option:hover {
    background: var(--primary-color);
    color: var(--white);
}

.filter-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.docs-tabs-header {
    margin-bottom: 24px;
}

.docs-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.docs-tab {
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-tab:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.docs-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.docs-tab-content {
    position: relative;
}

.docs-tab-pane {
    display: none;
}

.docs-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.doc-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.doc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: img-loading 1.5s infinite;
}

.doc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.doc-card-img img.loaded {
    opacity: 1;
    animation: none;
    background: none;
}

.doc-card:hover .doc-card-img img {
    transform: scale(1.08);
}

@keyframes img-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.doc-card-body {
    padding: 16px;
}

.doc-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 10px;
}

.doc-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-lighter);
}

.doc-card-meta .meta-left {
    display: flex;
    gap: 12px;
}

.doc-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-card-meta i {
    font-size: 11px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 分类文章列表 */
.category-list-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--white) 100%);
}

.category-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-column {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.category-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: var(--white);
}

.category-column-title {
    font-size: 16px;
    font-weight: 600;
}

.category-column-more {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-column-more:hover {
    color: var(--white);
}

.category-article-list {
    padding: 8px 0;
}

.category-article-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s;
    border-bottom: 1px dashed #f0f0f0;
}

.category-article-item:last-child {
    border-bottom: none;
}

.category-article-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.article-num {
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 10px;
    flex-shrink: 0;
}

.category-article-item:hover .article-num {
    background: var(--primary-color);
    color: var(--white);
}

.article-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-date {
    font-size: 12px;
    color: var(--text-lighter);
    margin-left: 12px;
    flex-shrink: 0;
}

/* 新闻列表页 */
.news-section {
    padding-top: 100px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.news-card-link {
    display: flex;
    color: inherit;
    text-decoration: none;
}

.news-card-img {
    position: relative;
    width: 200px;
    min-width: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.news-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-tag {
    padding: 2px 8px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.news-tag.tag-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: var(--primary-color);
}

.news-card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: auto;
}

.news-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-meta .meta-item i {
    font-size: 12px;
}

.news-card-meta .meta-views {
    margin-left: auto;
}

/* 底部 */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.footer-qrcode {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.footer-qrcode img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

/* 右下角二维码浮窗 */
.float-qrcode {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.float-qrcode-content {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: floatIn 0.5s ease;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.float-qrcode-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

.float-qrcode-content p {
    font-size: 12px;
    color: var(--text-light);
}

.float-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--white);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s;
}

.float-close:hover {
    transform: scale(1.1);
}

/* 内容详情页 */
.detail-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

.detail-layout {
    display: flex;
    gap: 30px;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

/* 标题 */
.detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 顶部信息卡片 */
.detail-top-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.detail-top-card .detail-title {
    margin-bottom: 16px;
}

.detail-card-content {
    display: flex;
    gap: 24px;
}

.detail-thumb {
    width: 350px;
    min-width: 350px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-thumb img {
    width: auto;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .detail-thumb img {
        width: auto;
        height: 100%;
        object-fit: contain;
        margin: 0 auto;
    }
}

.detail-info {
    flex: 1;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}

.detail-meta-row:last-of-type {
    border-bottom: none;
}

.meta-label {
    color: var(--text-light);
    width: 80px;
}

.meta-value {
    color: var(--text-color);
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* VIP会员有效期内卡片 */
.vip-active-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 14px 18px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.vip-active-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: pulse-vip 2s ease-in-out infinite;
}

@keyframes pulse-vip {
    0%, 100% { box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5); }
}

.vip-active-text {
    flex: 1;
    font-size: 14px;
    color: #14532d;
    line-height: 1.6;
}

.vip-active-text strong {
    color: #16a34a;
    font-weight: 600;
}

.vip-active-text .vip-expire {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

.vip-active-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.vip-active-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.vip-active-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .vip-active-card {
        flex-wrap: wrap;
    }

    .vip-active-text {
        flex-basis: calc(100% - 60px);
    }

    .vip-active-btn {
        flex-basis: 100%;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vip-active-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .vip-active-btn {
        width: 100%;
    }
}

/* VIP升级提示卡片 */
.vip-tip-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 14px 18px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.vip-tip-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.vip-tip-text {
    flex: 1;
    font-size: 14px;
    color: #3b3b8f;
    line-height: 1.6;
}

.vip-tip-text strong {
    color: #4f46e5;
    font-weight: 600;
}

.vip-tip-text em {
    font-style: normal;
    color: #e67e22;
    font-weight: 600;
}

.vip-tip-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.vip-tip-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vip-tip-btn-download:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.vip-tip-btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

.vip-tip-btn-upgrade:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.vip-tip-btn-upgrade:active {
    transform: translateY(0);
}

.vip-tip-btn-download .download-tag,
.vip-tip-btn-upgrade .download-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

.vip-tip-btn-download .download-tag {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

.vip-tip-btn-upgrade .download-tag {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .vip-tip-card {
        flex-wrap: wrap;
    }

    .vip-tip-text {
        flex-basis: calc(100% - 60px);
    }

    .vip-tip-actions {
        flex-basis: 100%;
        justify-content: stretch;
    }

    .vip-tip-btn-download,
    .vip-tip-btn-upgrade {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vip-tip-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .vip-tip-text {
        flex-basis: auto;
    }

    .vip-tip-actions {
        flex-direction: column;
    }
}

/* 登录提示卡片 */
.login-tip-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cc 100%);
    border: 1px solid #ffe88a;
    border-radius: 12px;
    padding: 14px 18px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255, 180, 0, 0.1);
}

.login-tip-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.login-tip-text {
    flex: 1;
    font-size: 14px;
    color: #7a5c00;
    line-height: 1.6;
}

.login-tip-text strong {
    color: #e67e00;
    font-weight: 600;
}

.login-tip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffb400, #ff8c00);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.login-tip-btn:hover {
    background: linear-gradient(135deg, #ffa500, #e67e00);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.login-tip-btn:active {
    transform: translateY(0);
}

.login-tip-btn i {
    font-size: 13px;
}

@media (max-width: 480px) {
    .login-tip-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .login-tip-btn {
        width: 100%;
        justify-content: center;
    }
}

.btn-download {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-login-card {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-login-card:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-vip-upgrade {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--white);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn-vip-upgrade:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* 下载标签 */
.download-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.download-tag.speed-low {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

.download-tag.speed-high {
    background: #ef4444;
    color: var(--white);
}

/* VIP极速下载按钮样式 */
.btn-vip-speed {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--white);
    border: none;
}

.btn-vip-speed:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-vip-speed i {
    color: var(--white);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 标签页 */
.detail-tabs {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.detail-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.detail-tab:hover {
    color: var(--text-color);
}

.detail-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

/* VIP横幅 */
.vip-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.vip-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.vip-icon {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.vip-text {
    flex: 1;
    font-size: 14px;
}

.vip-size {
    font-size: 12px;
    opacity: 0.8;
}

/* 内容区域 */
.detail-content {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.detail-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 12px 0;
}

.detail-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    margin-top: 24px;
}

.detail-content h3:first-child {
    margin-top: 0;
}

.detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.detail-content li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px dashed #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-content li:last-child {
    border-bottom: none;
}

.detail-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 12px;
}

.detail-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #92400e;
    margin-top: 24px;
}

.detail-notice i {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 底部互动 */
.detail-interaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.interaction-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.interaction-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.views-count {
    font-size: 13px;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 上一篇下一篇 */
.detail-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-nav-prev,
.detail-nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.detail-nav-prev:hover,
.detail-nav-next:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: var(--primary-color);
}

.detail-nav-prev i,
.detail-nav-next i {
    color: var(--text-lighter);
    font-size: 12px;
}

.detail-nav-prev span,
.detail-nav-next span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关文章 */
.related-section {
    margin-top: 30px;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    color: var(--primary-color);
}

/* 评论框 */
.comment-section {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.comment-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-title i {
    color: var(--primary-color);
}

.comment-form {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.comment-form-header {
    padding: 12px 16px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.comment-count strong {
    color: var(--primary-color);
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: none;
    resize: vertical;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    outline: none;
    color: var(--text-color);
}

.comment-textarea::placeholder {
    color: var(--text-lighter);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.comment-tools {
    display: flex;
    gap: 8px;
}

.comment-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

.comment-tool-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.comment-submit {
    padding: 10px 24px;
    font-size: 14px;
}

/* 评论列表 */
.comment-list {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.comment-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.comment-badge.author-badge {
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: var(--white);
}

.comment-badge.vip-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--white);
}

.comment-time {
    font-size: 12px;
    color: var(--text-lighter);
}

.comment-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-color);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.comment-action-btn i {
    font-size: 12px;
}

/* 子评论 */
.comment-reply {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.reply-item {
    padding: 12px 0;
}

.reply-item .comment-avatar {
    width: 36px;
    height: 36px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.related-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.related-img {
    width: 100px;
    min-width: 100px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.related-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    width: fit-content;
}

.related-body h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: auto;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 侧边栏组件 */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* ========== 下载组件 ========== */
.download-badge {
    text-align: center;
    font-size: 14px;
    color: #059669;
    font-weight: 600;
    margin-bottom: 12px;
}

/* VIP会员状态区块 */
.download-vip-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.download-vip-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
}

.download-vip-text {
    flex: 1;
    min-width: 0;
}

.download-vip-text p {
    font-size: 13px;
    color: #14532d;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.download-vip-text .vip-expire-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

/* 下载按钮组 */
.download-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-download-normal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 11px 16px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-normal:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-download-vip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-download-vip:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.download-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

.speed-low {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

.speed-high {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* 非VIP提示区块 */
.download-tip {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.download-tip p {
    font-size: 13px;
    color: #3b3b8f;
    line-height: 1.6;
    margin: 0 0 6px 0;
}

.download-tip p:last-child {
    margin-bottom: 0;
}

.download-tip p strong {
    color: #4f46e5;
    font-weight: 600;
}

.download-tip p em {
    font-style: normal;
    color: #e67e22;
    font-weight: 600;
}

/* 登录/升级区块 */
.download-login-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.download-login-tip {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

.btn-login-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-sidebar:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-vip-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-vip-sidebar:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.view-demo {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--primary-color);
    padding: 10px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s;
    margin-top: 8px;
}

.view-demo:hover {
    background: var(--primary-color);
    color: var(--white);
}



/* 文章列表 */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.post-item:hover {
    background: #e8eaf6;
}

.post-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.post-tag {
    font-size: 11px;
    color: var(--primary-color);
}

/* 排行榜 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    color: var(--text-color);
    transition: color 0.2s;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    color: var(--primary-color);
}

.ranking-num {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    flex-shrink: 0;
}

.ranking-num.num-1 {
    background: #ef4444;
    color: var(--white);
}

.ranking-num.num-2 {
    background: #f97316;
    color: var(--white);
}

.ranking-num.num-3 {
    background: #eab308;
    color: var(--white);
}

.ranking-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式 */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .carousel {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .qrcode-entrance {
        position: static;
        flex-direction: row;
        justify-content: center;
        padding: 20px;
        background: var(--white);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-card-img {
        width: 160px;
        min-width: 160px;
    }

    .news-card-title {
        font-size: 14px;
    }

    .docs-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .docs-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .doc-card-body {
        padding: 12px;
    }

    .doc-card-title {
        font-size: 14px;
    }

    .doc-card-desc {
        font-size: 12px;
    }

    .search-modal-content {
        padding: 30px 24px;
        width: 100%;
        border-radius: 16px;
    }

    .search-input {
        font-size: 15px;
        padding: 12px 16px;
    }

    .search-submit {
        width: 42px;
        height: 42px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .category-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 详情页 */
    .detail-layout {
        flex-direction: column;
    }

    .detail-main {
        order: -1;
    }

    .detail-sidebar {
        width: 100%;
    }

    .detail-sidebar .download-widget {
        display: none;
    }

    .detail-top-card {
        flex-direction: column;
    }

    .detail-card-content {
        flex-direction: column;
    }

    .detail-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 20px 0;
    }

    .news-section {
        padding-top: 80px;
    }

    .page-header {
        margin-bottom: 24px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-img {
        width: 120px;
        min-width: 120px;
    }

    .news-card-body {
        padding: 12px;
    }

    .news-card-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }

    .news-card-desc {
        display: none;
    }

    .news-card-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .docs-tabs {
        gap: 6px;
    }

    .docs-tab {
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 6px;
    }

    .doc-category {
        display: none !important;
    }

    .search-close {
        display: none;
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-modal-content {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .search-box {
        border-radius: 25px;
        padding: 6px;
    }

    .search-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .search-submit {
        width: 38px;
        height: 38px;
    }

    .search-hot {
        font-size: 12px;
    }

    .search-hot a {
        margin-left: 8px;
    }

    /* 移动端列表页面 */
    @media (max-width: 768px) {
        .filter-bar {
            padding: 16px;
        }

        .filter-row {
            flex-direction: column;
            gap: 10px;
            padding: 10px 0;
        }

        .filter-label {
            width: 100%;
            font-size: 13px;
        }

        .filter-options {
            gap: 6px;
        }

        .filter-option {
            padding: 5px 12px;
            font-size: 12px;
        }
    }

    /* 详情页480px */
    .detail-section {
        padding-top: 80px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-content {
        padding: 16px;
    }

    .detail-content h3 {
        font-size: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .detail-nav {
        flex-direction: column;
        gap: 12px;
    }

    .detail-interaction {
        flex-direction: column;
        gap: 12px;
    }

    @media (max-width: 480px) {
        .list-docs-section {
            padding-top: 80px;
        }

        .filter-bar {
            padding: 12px;
            border-radius: 8px;
        }

        .filter-option {
            padding: 4px 10px;
            font-size: 11px;
        }

        .main-content {
            padding: 20px 0;
        }

        .page-title {
            font-size: 24px;
        }

        .page-header {
            margin-bottom: 20px;
        }
    }
}

/* ========== 左右布局文章列表页 ========== */
.article-layout {
    display: flex;
    gap: 24px;
    padding-top: 24px;
}

.article-main {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 320px;
    min-width: 320px;
}

/* 分类导航 */
.category-nav-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.category-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s;
}

.category-nav-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.category-nav-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.category-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* 推荐资源 */
.recommend-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.recommend-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-widget .widget-title i {
    color: var(--primary-color);
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.recommend-item:hover {
    background: #eef2ff;
    transform: translateX(4px);
}

.recommend-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-info .recommend-meta {
    font-size: 11px;
    color: var(--text-lighter);
}

/* 标签组件 */
.tags-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.tags-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-widget .widget-title i {
    color: var(--primary-color);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s;
}

.tag-item:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.tag-item.active {
    color: var(--white);
}

/* 不同颜色的标签 */
.tag-1 { background: #e0f2fe; color: #0284c7; }
.tag-1:hover, .tag-1.active { background: #0284c7; color: #fff; }

.tag-2 { background: #dcfce7; color: #16a34a; }
.tag-2:hover, .tag-2.active { background: #16a34a; color: #fff; }

.tag-3 { background: #ffedd5; color: #ea580c; }
.tag-3:hover, .tag-3.active { background: #ea580c; color: #fff; }

.tag-4 { background: #f3e8ff; color: #9333ea; }
.tag-4:hover, .tag-4.active { background: #9333ea; color: #fff; }

.tag-5 { background: #fee2e2; color: #dc2626; }
.tag-5:hover, .tag-5.active { background: #dc2626; color: #fff; }

.tag-6 { background: #fce7f3; color: #db2777; }
.tag-6:hover, .tag-6.active { background: #db2777; color: #fff; }

.tag-7 { background: #ccfbf1; color: #0d9488; }
.tag-7:hover, .tag-7.active { background: #0d9488; color: #fff; }

.tag-8 { background: #e0e7ff; color: #4f46e5; }
.tag-8:hover, .tag-8.active { background: #4f46e5; color: #fff; }

.tag-9 { background: #fef9c3; color: #ca8a04; }
.tag-9:hover, .tag-9.active { background: #ca8a04; color: #fff; }

.tag-10 { background: #cffafe; color: #0891b2; }
.tag-10:hover, .tag-10.active { background: #0891b2; color: #fff; }

.tag-11 { background: #f3f4f6; color: #6b7280; }
.tag-11:hover, .tag-11.active { background: #6b7280; color: #fff; }

/* 文章卡片列表样式 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.article-list .doc-card {
    display: flex;
    flex-direction: row;
}

.article-list .doc-card-img {
    width: 200px;
    min-width: 200px;
    height: 140px;
}

.article-list .doc-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list .doc-card-title {
    font-size: 16px;
}

.article-list .doc-card-desc {
    -webkit-line-clamp: 2;
}

@media (max-width: 1024px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        min-width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-sidebar {
        display: block;
        margin-top: 20px;
    }
    
    .article-main {
        order: -1;
    }
    
    /* 移动端保持左右布局：图片左，文字右 */
    .article-list .doc-card {
        flex-direction: row !important;
        align-items: center;
    }
    
    .article-list .doc-card-img {
        width: 120px !important;
        min-width: 120px !important;
        height: 90px !important;
        aspect-ratio: auto !important;
    }
    
    .article-list .doc-card-body {
        padding: 12px !important;
    }
    
    .article-list .doc-card-title {
        font-size: 14px !important;
        -webkit-line-clamp: 1 !important;
        margin-bottom: 6px !important;
    }
    
    .article-list .doc-card-desc {
        display: none !important;
    }
    
    .article-list .doc-card-meta {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }
    
    .article-list .doc-card-meta .meta-left {
        gap: 8px;
    }
    
    .article-list .doc-card-meta span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .article-list .doc-card {
        flex-direction: row !important;
    }
    
    .article-list .doc-card-img {
        width: 100px !important;
        min-width: 100px !important;
        height: 75px !important;
    }
    
    .article-list .doc-card-body {
        padding: 10px !important;
    }
    
    .article-list .doc-card-title {
        font-size: 13px !important;
    }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
