/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e0e5ec;
    color: #4a4a4a;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1, h2, h3, h4 {
    color: #4a4a4a;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e5ec;
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
}

/* 拟态风格样式 */
.neumorphic-card {
    background: #e0e5ec;
    border-radius: 16px;
    box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.6),
                -9px -9px 16px rgba(255, 255, 255, 0.5);
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.neumorphic-card:hover {
    box-shadow: 12px 12px 20px rgba(163, 177, 198, 0.6),
                -12px -12px 20px rgba(255, 255, 255, 0.5);
}

.neumorphic-btn {
    background: #e0e5ec;
    border: none;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(163, 177, 198, 0.6),
                -5px -5px 10px rgba(255, 255, 255, 0.5);
    color: #4a4a4a;
    cursor: pointer;
    font-size: 1rem;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.neumorphic-btn:hover {
    box-shadow: 7px 7px 14px rgba(163, 177, 198, 0.6),
                -7px -7px 14px rgba(255, 255, 255, 0.5);
}

.neumorphic-btn:active {
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.6),
                inset -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.neumorphic-input {
    background: #e0e5ec;
    border: none;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.6),
                inset -5px -5px 10px rgba(255, 255, 255, 0.5);
    color: #4a4a4a;
    font-size: 1rem;
    padding: 12px 20px;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.neumorphic-input:focus {
    outline: none;
    box-shadow: inset 7px 7px 14px rgba(163, 177, 198, 0.6),
                inset -7px -7px 14px rgba(255, 255, 255, 0.5);
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-actions {
    text-align: right;
    margin-top: 30px;
}

/* 消息提示样式 */
.message {
    position: relative;
    padding: 20px;
    margin-bottom: 30px;
}

.message.info {
    border-left: 4px solid #4285f4;
}

.message.success {
    border-left: 4px solid #0f9d58;
}

.message.warning {
    border-left: 4px solid #f4b400;
}

.message.error {
    border-left: 4px solid #db4437;
}

.message h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: #e0e5ec;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f0f4f8;
}

tr:hover {
    background-color: #e8edf2;
}

/* 导航菜单 */
.nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 10px 10px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
    color: #4285f4;
}

.stat-label {
    font-size: 1.1rem;
    color: #6b7c93;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    margin: 0 5px 10px;
}

.pagination .current {
    background-color: #d1d9e6;
    color: #4285f4;
    font-weight: 600;
}

/* 管理端侧边栏 */
.admin-container {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
}

.sidebar-menu a.active {
    box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.6),
                inset -5px -5px 10px rgba(255, 255, 255, 0.5);
}

.main-content {
    flex-grow: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sidebar-menu li {
        margin-right: 15px;
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}
