/* 数智时空 - 全局样式 */
:root {
    --primary-color: #0056b3; /* 蓝色 */
    --secondary-color: #004494;
    --bg-light: #f4f7f6; /* 浅灰 */
    --text-dark: #333333; /* 黑/深灰 */
    --text-muted: #777777; /* 灰 */
    --white: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-nav a {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-light);
    font-size: 14px;
    transition: all 0.3s;
}

.user-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
    background: #eee;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

/* 卡片 */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* 响应式网格 */
.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .grid-cols-mobile-1 { grid-template-columns: 1fr; }
}

/* 首页模块卡片 */
.module-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.module-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
}

/* 统计数据展示 */
.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}
