*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body{
    background-color: #f4f7fa;
    color: #222;
    font-size: 14px;
}
/* 登录页样式 */
.login-container{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card{
    width: 440px;
    background: #fff;
    padding: 36px 32px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(22, 119, 255, 0.08);
}
.login-card h2{
    text-align: center;
    color: #1677ff;
    margin-bottom: 24px;
}
.tab-wrap{
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}
.tab{
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    color: #666;
}
.tab.active{
    color: #1677ff;
    border-bottom: 2px solid #1677ff;
}
.form-item{
    margin-bottom: 18px;
}
.form-item label{
    display: block;
    margin-bottom: 6px;
    color: #333;
}
.form-item input{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}
.submit-btn{
    width: 100%;
    padding: 13px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.submit-btn:hover{
    background: #4096ff;
}

/* 后台通用布局 */
.admin-wrap{
    display: flex;
    min-height: 100vh;
}
.sidebar{
    width: 220px;
    background: #0f172a;
    color: #fff;
    padding-top: 20px;
}
.sidebar h3{
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #273449;
    margin-bottom: 16px;
    color: #fff;
}
.sidebar a{
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 24px;
}
.sidebar a:hover, .sidebar a.active{
    background: #1e293b;
    color: #fff;
}
.main-content{
    flex: 1;
    padding: 24px;
}
.page-title{
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card{
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px #e2e8f0;
    margin-bottom: 20px;
}
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
th,td{
    border: 1px solid #eee;
    padding: 10px 12px;
    text-align: left;
}
th{
    background: #f8fafc;
}
.btn{
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}
.btn-primary{
    background: #1677ff;
    color: #fff;
}
.btn-danger{
    background: #f53f3f;
    color: #fff;
}
input,textarea,select{
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    width: 100%;
    margin: 6px 0;
}
.row{
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.col{
    flex: 1;
}