:root {
    --accent: #4f6ef7;
    --accent-dark: #3a57e8;
    --text: #1a1a2e;
    --text-secondary: #555;
    --border: #eaeaea;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 28px 0 24px;
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 6px;
}

.top-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.top-nav .nav-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-nav .nav-toggle {
    position: absolute;
    right: 20px;
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    color: #444;
    padding: 3px 10px;
    font-size: 17px;
    line-height: 1.2;
}

.top-nav .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0;
}

.top-nav .nav-list a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.top-nav .nav-list a:hover,
.top-nav .nav-list a.active {
    color: var(--accent);
}

footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
    margin-top: 50px;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.card-cover {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #f0f0f0;
}

.card-cover::after {
    content: "";
    display: block;
    width: 100%;
    padding-top: 56.25%;
}

.pagination-wrap {
    margin: 24px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: #fff;
}

.pagination-wrap .current {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .top-nav .nav-toggle {
        display: inline-block;
    }

    .top-nav .nav-list {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        margin: 0;
        padding: 8px 0;
        flex-direction: column;
        gap: 0;
    }

    .top-nav.is-open .nav-list {
        display: flex;
    }

    .top-nav .nav-list li a {
        display: block;
        padding: 10px 20px;
    }
}
