* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f6f1;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.logo {
    text-align: center;
    padding: 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #059669, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
}

.menu {
    list-style: none;
    padding: 12px 0;
}

.menu-item {
    margin: 2px 12px;
}

.menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    letter-spacing: -0.2px;
}

.menu-item > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #a0aec0;
    border-bottom: 1.5px solid #a0aec0;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.menu-item.open > a::after {
    transform: rotate(45deg);
}

.menu-item > a:hover {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.menu-item.active > a {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.sub-menu {
    list-style: none;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    margin: 4px 0;
    display: none;
    overflow: hidden;
}

.menu-item.open .sub-menu {
    display: block;
}

.sub-menu-item {
    margin: 0;
}

.sub-menu-item a {
    display: block;
    padding: 10px 16px 10px 32px;
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sub-menu-item a:hover {
    color: #2d3748;
    background: rgba(0, 0, 0, 0.03);
}

.sub-menu-item.active a {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-left-color: #059669;
}

.content {
    flex: 1;
    padding: 48px 56px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8f6f1 0%, #f5f3ee 100%);
}

.content-header {
    margin-bottom: 40px;
}

.filter-container {
    margin-bottom: 32px;
    width: 100%;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-tag:hover {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.filter-tag.active {
    background: linear-gradient(135deg, #059669, #0ea5e9);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.content-header h2 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #1a202c;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    letter-spacing: -0.1px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

.pay-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #0ea5e9);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* 广告位样式 */
.ad-top-banner {
    width: 100%;
    min-height: 90px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-bottom-banner {
    width: 100%;
    min-height: 90px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar {
    width: 200px;
    min-height: 300px;
    margin: 16px auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .content {
        padding: 36px 40px;
    }
    
    .content-header h2 {
        font-size: 36px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .content {
        padding: 24px;
    }
    
    .content-header h2 {
        font-size: 28px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* 备案号样式 */
.footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    letter-spacing: 0.5px;
}