/* 导航下载系统 —— 本地样式（不依赖 CDN） */

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    min-height: 100vh;
}

/* ---------- 登录页 ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px;
}

.login-card {
    background: #fff;
    width: 100%;
    max-width: 380px;
    border-radius: 14px;
    padding: 40px 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.login-logo {
    font-size: 46px;
}

.login-title {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 600;
}

.login-subtitle {
    margin-top: 6px;
    color: #8898aa;
    font-size: 14px;
}

.alert-error {
    margin-top: 18px;
    padding: 10px 12px;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
}

.form-group {
    margin-top: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #52606d;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #2a5298;
}

.btn-login {
    margin-top: 26px;
    width: 100%;
    padding: 13px;
    font-size: 16px;
    letter-spacing: 4px;
    color: #fff;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

/* ---------- 顶栏 ---------- */
.topbar {
    background: #1e3c72;
    color: #fff;
}

.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 17px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome {
    font-size: 14px;
    opacity: 0.9;
}

.btn-logout {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- 内容区 ---------- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px;
}

.page-head h2 {
    font-size: 22px;
    font-weight: 600;
}

.page-head p {
    margin-top: 6px;
    color: #8898aa;
    font-size: 14px;
}

/* ---------- 文件列表 ---------- */
.file-list {
    margin-top: 20px;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
}

.file-item:last-child {
    border-bottom: none;
}

.file-icon {
    font-size: 22px;
}

.file-name {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 13px;
    color: #8898aa;
    min-width: 70px;
    text-align: right;
}

.btn-download {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    background: #2a5298;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #1e3c72;
}

.empty {
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #8898aa;
}

.empty-hint {
    margin-top: 10px;
    font-size: 13px;
}

code {
    background: #eef2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, monospace;
}

/* ---------- 分页 ---------- */
.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-link {
    text-decoration: none;
    color: #2a5298;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #fff;
    transition: background 0.2s;
}

.page-link:hover {
    background: #eef2f7;
}

.page-link.disabled {
    color: #b0bcc9;
    cursor: default;
    border-color: #eef2f7;
}

.page-info {
    font-size: 14px;
    color: #52606d;
}
