/* SCKE Admin Stable Restore */

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    font-family:"Microsoft YaHei",Arial,sans-serif;
    background:#eef3f9;
    color:#111827;
}

body{
    overflow-x:hidden;
}

a{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

/* 后台整体布局 */
.admin-layout{
    display:flex;
    width:100%;
    min-height:100vh;
    background:linear-gradient(135deg,#f4f7fb,#edf7ff);
}

/* 左侧 */
.sidebar{
    width:280px;
    min-width:280px;
    min-height:100vh;
    background:linear-gradient(180deg,#0f172a,#020617);
    color:#fff;
    padding:24px 18px;
}

.sidebar h2{
    margin:0 0 24px;
    padding:0 8px 22px;
    border-bottom:1px solid rgba(255,255,255,.12);
    font-size:22px;
    font-weight:900;
}

.sidebar a{
    display:block;
    color:#e5e7eb;
    padding:14px 16px;
    margin:8px 0;
    border-radius:14px;
    font-size:15px;
    font-weight:800;
}

.sidebar a:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
    text-decoration:none;
}

/* 右侧主区域 */
.main{
    flex:1;
    min-width:0;
    min-height:100vh;
    padding:28px 32px;
}

/* 页面标题 */
.main > h1{
    margin:0 0 24px;
    padding:24px 28px;
    border-radius:24px;
    background:rgba(255,255,255,.88);
    box-shadow:0 15px 40px rgba(15,23,42,.08);
    font-size:30px;
    line-height:1.2;
}

.main > h1 .btn,
.main > h1 a.btn{
    margin-left:12px;
    vertical-align:middle;
}

/* 网格卡片 */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:20px;
    width:100%;
    margin-bottom:20px;
}

.card{
    background:#fff;
    border-radius:20px;
    padding:22px;
    box-shadow:0 12px 32px rgba(15,23,42,.08);
    border:1px solid #e5e7eb;
}

.card h3{
    margin:0 0 10px;
    font-size:18px;
}

.card p{
    margin:0;
    color:#2563eb;
    font-size:28px;
    font-weight:900;
}

.desc{
    color:#475569;
    line-height:1.7;
}

/* 表格 */
.table,
table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.table{
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 14px 36px rgba(15,23,42,.08);
    border:1px solid #e5e7eb;
}

th{
    background:#f1f5f9;
    color:#0f172a;
    padding:15px 16px;
    text-align:left;
    font-weight:800;
    border-bottom:1px solid #e5e7eb;
}

td{
    color:#111827;
    padding:15px 16px;
    border-bottom:1px solid #e5e7eb;
}

tbody tr:hover td{
    background:#f8fafc;
}

tr:last-child td{
    border-bottom:none;
}

/* 表单 */
.form{
    width:100%;
    max-width:900px;
    background:#fff;
    border-radius:22px;
    padding:26px;
    box-shadow:0 14px 36px rgba(15,23,42,.08);
    border:1px solid #e5e7eb;
}

.form h2{
    margin-top:0;
}

.form label{
    display:block;
    margin-top:16px;
    font-weight:800;
}

.form input,
.form textarea,
.form select{
    width:100%;
    margin-top:8px;
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    outline:none;
    background:#fff;
    color:#111827;
    font-size:15px;
}

.form textarea{
    min-height:110px;
}

.form input:focus,
.form textarea:focus,
.form select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* 按钮 */
.btn,
button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:13px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    color:#fff !important;
    padding:11px 17px;
    cursor:pointer;
    font-weight:800;
    text-decoration:none;
}

.btn:hover,
button:hover{
    text-decoration:none;
    filter:brightness(.96);
}

.btn.gray{
    background:#64748b;
}

/* 提示 */
.notice{
    background:#fff7ed;
    color:#9a3412;
    border:1px solid #fed7aa;
    padding:13px 15px;
    border-radius:14px;
    margin:14px 0 18px;
    font-weight:700;
}

.meta{
    color:#64748b;
    font-size:13px;
    margin:8px 0;
}

/* 登录页 */
.login-box{
    max-width:430px;
    margin:90px auto;
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 18px 50px rgba(15,23,42,.12);
    border:1px solid #e5e7eb;
}

.login-box h2{
    margin:0 0 20px;
    font-size:30px;
}

.login-box label{
    display:block;
    margin-top:16px;
    font-weight:800;
}

.login-box input{
    width:100%;
    margin-top:8px;
    padding:13px 14px;
    border:1px solid #cbd5e1;
    border-radius:12px;
}

/* 响应式 */
@media(max-width:900px){
    .admin-layout{
        display:block;
    }

    .sidebar{
        width:100%;
        min-width:0;
        min-height:auto;
    }

    .main{
        padding:18px;
    }

    .main > h1{
        padding:20px;
        font-size:26px;
    }

    .grid{
        grid-template-columns:1fr;
    }

    .table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }
}
