/* 校服收款管理后台 — 统一 UI 增强（基于 X-admin / Layui） */
:root {
    --admin-primary: #0f766e;
    --admin-primary-soft: #14b8a6;
    --admin-primary-bg: #ecfdf5;
    --admin-ink: #0f172a;
    --admin-muted: #64748b;
    --admin-line: #e2e8f0;
    --admin-surface: #ffffff;
    --admin-canvas: #f1f5f9;
    --admin-warn: #ea580c;
    --admin-danger: #dc2626;
    --admin-radius: 12px;
    --admin-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ---------- 顶栏 / 侧栏外壳 ---------- */
body.index {
    background: var(--admin-canvas);
}

body.index .container {
    background: linear-gradient(90deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    box-shadow: 0 2px 12px rgba(15, 118, 110, 0.25);
    border-bottom: none;
}

body.index .container .logo a {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff !important;
}

body.index .container .left_open i {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
}

body.index .container .left_open i:hover {
    background: rgba(255, 255, 255, 0.28);
}

body.index .container .layui-nav {
    background: transparent;
}

body.index .container .layui-nav .layui-nav-item > a {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
}

body.index .container .layui-nav .layui-nav-more {
    border-top-color: rgba(255, 255, 255, 0.85);
}

body.index .admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.index .admin-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

body.index .left-nav {
    background: #fff;
    border-right: 1px solid var(--admin-line);
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03);
}

body.index .left-nav #nav li a {
    border-radius: 8px;
    margin: 2px 10px;
    transition: background 0.15s ease, color 0.15s ease;
}

body.index .left-nav a:hover,
body.index .left-nav a.active {
    background: var(--admin-primary-bg) !important;
    color: var(--admin-primary) !important;
}

body.index .left-nav a:hover cite,
body.index .left-nav a.active cite,
body.index .left-nav a:hover i,
body.index .left-nav a.active i {
    color: var(--admin-primary) !important;
}

body.index .page-content {
    background: var(--admin-canvas);
}

/* 标签栏：灰底 + 当前页白底（勿改 :after 背景色，否则会盖住标题） */
body.index .page-content .layui-tab-title {
    background: #eef1f5;
    border-bottom: 1px solid var(--admin-line);
}

body.index .page-content .layui-tab-title .layui-this {
    background: #fff !important;
    color: var(--admin-primary);
}

body.index .page-content .layui-tab-title .layui-this:after {
    background: #fff !important;
    border-bottom-color: #fff;
}

/* ---------- 工作台 ---------- */
.welcome-page {
    padding: 8px 4px 24px;
}

.welcome-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--admin-radius);
    padding: 28px 32px;
    background:
        radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.35), transparent 40%),
        linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #115e59 100%);
    color: #fff;
    box-shadow: var(--admin-shadow);
    margin-bottom: 18px;
}

.welcome-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.welcome-hero-kicker {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.welcome-hero h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-hero p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    max-width: 520px;
}

.welcome-stat {
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-line);
    overflow: hidden;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.welcome-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.welcome-stat .layui-card-body {
    padding: 20px 18px 18px;
}

.welcome-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.welcome-stat-label {
    font-size: 13px;
    color: var(--admin-muted);
    font-weight: 500;
}

.welcome-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.welcome-stat-icon.is-teal { background: #ccfbf1; color: #0f766e; }
.welcome-stat-icon.is-sky { background: #e0f2fe; color: #0369a1; }
.welcome-stat-icon.is-green { background: #dcfce7; color: #15803d; }
.welcome-stat-icon.is-orange { background: #ffedd5; color: #c2410c; }

.welcome-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-all;
}

.welcome-stat-value.is-money { color: #0f766e; }
.welcome-stat-value.is-warn { color: var(--admin-warn); }

.welcome-stat-foot {
    margin-top: 8px;
    font-size: 12px;
    color: var(--admin-muted);
}

.welcome-total {
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-line);
    box-shadow: var(--admin-shadow);
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.06), transparent 40%),
        #fff;
}

.welcome-total .layui-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 24px;
}

.welcome-total-title {
    font-size: 14px;
    color: var(--admin-muted);
    margin-bottom: 6px;
}

.welcome-total-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--admin-ink);
}

.welcome-total-main b {
    color: var(--admin-primary);
    font-size: 26px;
}

.welcome-total-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--admin-primary-bg);
    color: var(--admin-primary);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- 登录页 ---------- */
body.admin-login {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(20, 184, 166, 0.28), transparent 45%),
        radial-gradient(ellipse at 85% 90%, rgba(15, 118, 110, 0.22), transparent 40%),
        linear-gradient(160deg, #0b3d3a 0%, #0f766e 40%, #134e4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.admin-login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 24px 16px 40px;
    box-sizing: border-box;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    padding: 36px 32px 28px;
    backdrop-filter: blur(8px);
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.admin-login-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}

.admin-login-brand h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--admin-ink);
    font-weight: 700;
}

.admin-login-brand p {
    margin: 0;
    font-size: 13px;
    color: var(--admin-muted);
}

.admin-login-card .layui-form-item {
    margin-bottom: 16px;
}

.admin-login-card .layui-input {
    height: 46px;
    line-height: 46px;
    border-radius: 10px;
    border-color: var(--admin-line);
    padding-left: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-login-card .layui-input:focus {
    border-color: var(--admin-primary-soft) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.admin-login-card .verify-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-login-card .verify-row .layui-input {
    flex: 1;
}

.admin-login-card .verify-row img {
    height: 46px;
    width: auto;
    min-width: 110px;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--admin-line);
    background: #fff;
    flex-shrink: 0;
}

.admin-login-card .login-submit {
    width: 100%;
    height: 46px;
    line-height: 46px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.admin-login-card .login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.35);
}

.admin-login-card .login-submit:active {
    transform: translateY(1px);
}

.admin-login-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}
