/* 全局重置和基础样式 */
*{margin:0;padding:0;box-sizing:border-box;font-family:微软雅黑;}

/* 蓝白主题配色变量定义 */
:root{
    --blue:#165DFF; /* 主蓝色 */
    --white:#fff; /* 白色 */
    --light:#f5f7fa; /* 浅灰色背景 */
    --border:#ddd; /* 边框颜色 */
}

/* 页面背景 */
body{background:var(--light);}

/* 容器样式 */
.container{
    max-width:1000px;
    margin:0 auto;
    padding:15px;
}

/* 卡片样式 - 白色背景 */
.card{
    background:var(--white);
    padding:18px;
    border-radius:8px;
    margin-bottom:15px;
    box-shadow:0 2px 10px #00000010;
}

/* 按钮样式 - 蓝色主题 */
.btn{
    padding:8px 16px;
    background:var(--blue);
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
}

/* 危险按钮样式 */
.btn-danger{
    background:#ff4444;
}

/* 表单项目样式 */
.form-item{
    margin-bottom:15px;
}

.form-item label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
}

.form-item input,.form-item select{
    width:100%;
    height:40px;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:4px;
    outline:none;
}

/* 表格样式 */
.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    margin-top:10px;
}

.table th,.table td{
    padding:10px;
    border:1px solid var(--border);
    text-align:center;
}

/* 表格表头 - 蓝色主题 */
.table th{
    background:var(--blue);
    color:#fff;
}

/* 标题样式 - 蓝色主题 */
.title{
    font-size:18px;
    font-weight:bold;
    margin-bottom:15px;
    color:var(--blue);
}

/* 导航样式 - 固定在顶端 */
.nav{
    background:var(--white);
    padding:1px 0;
    box-shadow:0 2px 10px #00000010;
    margin-bottom:15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* 固定导航栏占位，避免内容被遮挡 */
body{
    background:var(--light);
    padding-top: 50px;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: var(--blue);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 120px;
    box-shadow: 0 2px 10px #00000020;
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    top: 0;
    margin-top: 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--light);
    color: var(--blue);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.nav .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* Logo样式 */
.logo{
    display:flex;
    align-items:center;
    gap:20px;
}

.logo img{
    max-height:40px;
    width:auto;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1{
    font-size:24px;
    color:var(--blue);
    margin:0;
}

/* 用户信息样式 */
.user-info{
    display:flex;
    align-items:center;
    gap:15px;
    position: relative;
}

/* 头像样式 */
.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--light);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--blue);
    font-weight:bold;
}

/* 用户信息链接样式 */
.user-info a{
    color:#ff6b6b;
    text-decoration:none;
}

/* 菜单导航样式 - 蓝色主题 */
.menu-nav{
    background:var(--blue);
    padding:12px 0;
    margin-bottom:15px;
}

.menu-nav .container{
    display:flex;
    gap:15px;
}

.menu-nav a{
    color:#fff;
    text-decoration:none;
    padding:0 12px;
}

/* 弹窗样式 */
.modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.modal-content{
    background:#fff;
    border-radius:8px;
    width:360px;
    max-width:90%;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
}

.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    border-bottom:1px solid var(--border);
}

.modal-title{
    font-size:18px;
    font-weight:bold;
    color:var(--blue);
    margin:0;
}

.modal-close{
    background:none;
    border:none;
    font-size:28px;
    color:#999;
    cursor:pointer;
    line-height:1;
}

.modal-close:hover{
    color:#333;
}

.modal-body{
    padding:20px;
}

.info-row{
    display:flex;
    padding:10px 0;
    border-bottom:1px solid var(--light);
}

.info-row:last-child{
    border-bottom:none;
}

.info-label{
    width:80px;
    color:#666;
    font-weight:500;
}

.info-value{
    flex:1;
    color:#333;
}

.my-link{
    color:var(--blue);
    text-decoration:none;
    font-weight:500;
}

.my-link:hover{
    text-decoration:underline;
}