* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 全宽导航条 */
.nav-wrapper {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d9e5f0;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(145deg, #0f2b4b, #1e4a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.2rem;
}

    .nav-links a {
        text-decoration: none;
        color: #1f4a73;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.3rem 0;
        border-bottom: 2px solid transparent;
        transition: 0.1s;
    }

        .nav-links a:hover {
            border-bottom-color: #1f4a73;
            color: #0a2b44;
        }

.nav-right {
    display: flex;
    gap: 1.2rem;
}

    .nav-right a {
        text-decoration: none;
        color: #1f4a73;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        border-radius: 30px;
        transition: 0.1s;
    }

        .nav-right a:hover {
            background: #dbeafe;
        }

/* 主内容容器 */
.main-wrapper {
    max-width: 1300px;
    width: 100%;
    padding: 0 1rem 2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 搜索行 */
.search-row {
    display: flex;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 1.5rem auto 2rem auto;
    background: #ffffff;
    border-radius: 60px;
    border: 1px solid #d4e2f0;
    box-shadow: 0 4px 10px rgba(0, 20, 30, 0.04);
    transition: 0.15s;
}

    .search-row:focus-within {
        border-color: #7ca9d9;
        box-shadow: 0 0 0 3px rgba(46, 115, 182, 0.15);
    }

    .search-row input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        color: #1f3d5c;
        outline: none;
    }

        .search-row input::placeholder {
            color: #7f9bb9;
            font-weight: 400;
        }

    .search-row button {
        background: transparent;
        border: none;
        padding: 0 1.8rem 0 0.8rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #336699;
        cursor: pointer;
        transition: color 0.1s;
        white-space: nowrap;
    }

        .search-row button:hover {
            color: #0a2d4e;
        }

/* 页面标题 */
.page-title {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 650;
    color: #103a5c;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-tag {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
}

/* 试卷列表 — 移除原预览按钮样式，标题可点击 */
.paper-list {
    background: white;
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2edf7;
}

.paper-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eef4fa;
    transition: 0.1s;
}

    .paper-item:last-child {
        border-bottom: none;
    }

    .paper-item:hover {
        background: #f6fbff;
        border-radius: 20px;
    }

.paper-info {
    flex: 1;
}

.paper-name {
    font-weight: 600;
    color: #1f4662;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    cursor: pointer; /* 指针表明可点击 */
    transition: color 0.1s;
    text-decoration: none;
}

    .paper-name:hover {
        color: #0a2d4e;
        text-decoration: underline;
    }

.paper-meta {
    font-size: 0.9rem;
    color: #4f6f8f;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .paper-meta span {
        display: inline-block;
    }

/* 分页组件 — 新增跳转、总页数 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    background: white;
    border: 1px solid #d4e2f0;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    color: #1e3d5e;
    cursor: pointer;
    transition: all 0.1s;
    font-size: 1rem;
    min-width: 120px;
    text-decoration: none;
}

/*    .page-btn:hover:not(:disabled) {
        background: #d4e2f5;
        border-color: #9db9d8;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }*/

/* 页码信息行 */
.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1rem;
    color: #1e3d5e;
}

    .page-info input[type="number"] {
        width: 75px;
        padding: 0.5rem;
        border: 1px solid #d4e2f0;
        border-radius: 40px;
        font-size: 0.95rem;
        text-align: center;
        outline: none;
        background: white;
    }

        .page-info input[type="number"]:focus {
            border-color: #7ca9d9;
            box-shadow: 0 0 0 3px rgba(46,115,182,0.15);
        }
/* 跳转按钮缩小内边距，覆盖默认min-width */
.jump-btn {
    min-width: auto;
    padding: 0.5rem 1.2rem;
}

/* 底部 */
.footer-wrapper {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #d9e5f0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #5e6f88;
    font-size: 0.9rem;
}

    .footer-inner a {
        color: #1f4a73;
        text-decoration: none;
    }

        .footer-inner a:hover {
            text-decoration: underline;
        }

@media (max-width: 700px) {
    .nav-left {
        gap: 1rem;
    }

    .site-logo {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .paper-item {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .page-btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
        text-decoration: none;
    }

    .page-info {
        gap: 0.3rem;
    }
    .paper-list {
        padding: 0rem;
    }
    /* 主内容容器 */
    .main-wrapper {
        padding: 0;
    }
}

.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    /*  pointer-events: none;  阻止点击事件（可选） */
}

em {
    color: #f73131;
    text-decoration: none;
}