* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; background: #f0f2f5; }

/* ç»å½ */
.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background: #1a1f26;
}
.login-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(192, 57, 43, .28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 80%, rgba(45, 90, 120, .35), transparent 50%),
        linear-gradient(160deg, #14181e 0%, #1e262f 45%, #162028 100%);
}
.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 24px;
    animation: loginIn .45s ease-out;
}
@keyframes loginIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: #fff;
}
.login-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #d4503f, #a82e22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 24px rgba(192, 57, 43, .35);
}
.login-brand-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.login-brand-sub { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px; }
.login-box {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    padding: 32px 28px 28px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
}
.login-box h2 {
    font-size: 22px;
    font-weight: 650;
    color: #1a1f26;
    margin-bottom: 6px;
}
.login-hint {
    font-size: 13px;
    color: #8a929c;
    margin-bottom: 20px;
}
.login-box label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5560;
}
.login-box label:first-of-type { margin-top: 0; }
.login-box input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    font-size: 14px;
    background: #f7f8fa;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-box input:focus {
    outline: none;
    border-color: #c0392b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .15);
}
.login-box .alert { margin-bottom: 12px; }
.login-captcha {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.login-captcha input { flex: 1; min-width: 0; }
.login-captcha img {
    flex-shrink: 0;
    width: 120px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #d8dde3;
    background: #f5f0eb;
}
.login-captcha img:hover { opacity: .9; }
.login-box button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    background: linear-gradient(145deg, #d4503f, #c0392b);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    box-shadow: 0 8px 20px rgba(192, 57, 43, .28);
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.login-box button:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(192, 57, 43, .36);
}
.login-box button:active { transform: translateY(1px); }

/* å¸å± */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 200px; background: #001529; color: #fff; flex-shrink: 0; }
.sidebar .logo { padding: 20px 16px; font-size: 16px; font-weight: bold; border-bottom: 1px solid #ffffff1a; }
.sidebar nav a { display: block; padding: 12px 20px; color: #ffffffa6; text-decoration: none; font-size: 14px; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: #1890ff; }
.main { flex: 1; padding: 24px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head-actions { flex-shrink: 0; }
.main h1 { font-size: 22px; margin-bottom: 20px; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tpl-card {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-radius: 12px; padding: 0; overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid #eee; transition: box-shadow .15s, transform .15s;
}
.tpl-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.tpl-card-icon {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(145deg, #d4503f, #c0392b);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.tpl-card-body h2 { font-size: 18px; margin-bottom: 6px; }
.tpl-card-body p { font-size: 13px; color: #666; line-height: 1.6; }
.tpl-meta { margin-top: 8px !important; color: #999 !important; }
.tpl-card-go { margin-left: auto; color: #c0392b; font-size: 13px; white-space: nowrap; align-self: center; }

/* ç»ä»¶ */
.card { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card h3 { margin-bottom: 12px; font-size: 16px; }
.stats { display: flex; gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 20px 30px; border-radius: 6px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.stat-card .num { display: block; font-size: 32px; font-weight: bold; color: #1890ff; }
.stat-card .label { color: #999; font-size: 13px; }

.btn { display: inline-block; padding: 6px 16px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; color: #333; text-decoration: none; cursor: pointer; font-size: 13px; margin-right: 6px; }
.btn:hover { border-color: #1890ff; color: #1890ff; }
.btn-primary { background: #1890ff; color: #fff; border-color: #1890ff; }
.btn-primary:hover { background: #40a9ff; color: #fff; }
.btn-sm { padding: 3px 10px; font-size: 12px; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.table th { background: #fafafa; font-weight: 600; }
.table .title-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form { background: #fff; padding: 24px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.08); max-width: none; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 4px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.form-row textarea { resize: vertical; }
.form-row small { display: block; margin-top: 4px; color: #999; font-size: 12px; }
.form-row.two-col { display: flex; gap: 16px; }
.form-row.two-col > div { flex: 1; }

.alert { padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }
.alert-inline { display: inline-block; width: auto; margin-bottom: 0; }

.filter-bar { margin-bottom: 16px; display: flex; align-items: center; }
pre { background: #f5f5f5; padding: 12px; border-radius: 4px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; }
code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 12px; }
ol { padding-left: 20px; line-height: 2; }

/* Element UI é£æ ¼å¸¦èæ¯è²åé¡µ */
.el-pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 20px;
    font-weight: 400;
    color: #606266;
    white-space: nowrap;
}
.el-pagination .el-pager {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    margin: 0;
    padding: 0;
}
.el-pagination .btn-prev,
.el-pagination .btn-next,
.el-pagination .el-pager .number,
.el-pagination .el-pager .more {
    display: inline-block;
    margin: 0 5px;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 13px;
    border-radius: 2px;
    box-sizing: border-box;
    text-decoration: none !important;
    vertical-align: middle;
}
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager .number {
    background-color: #f4f4f5;
    color: #606266;
}
.el-pagination .btn-prev.is-disabled,
.el-pagination .btn-next.is-disabled {
    color: #c0c4cc;
    cursor: not-allowed;
    background-color: #f4f4f5;
}
.el-pagination.is-background .btn-prev:not(.is-disabled):hover,
.el-pagination.is-background .btn-next:not(.is-disabled):hover,
.el-pagination.is-background .el-pager .number:not(.active):hover {
    color: #409eff;
}
.el-pagination .el-pager .more {
    background: transparent;
    color: #606266;
    cursor: default;
}
.el-pagination.is-background .el-pager .number.active {
    background-color: #409eff;
    color: #fff;
    cursor: default;
}
