/* /var/www/html/css/style.css */

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 更现代的字体 */
    margin: 0;
    padding: 0;
    background-color: #eef2f6; /* 浅灰蓝色背景 */
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background-color: #2c3e50; /* 深蓝色/炭灰色头部 */
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
}

/* 主容器布局 (Flexbox) */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 25px;
    display: flex;
    gap: 25px; /* 元素间距 */
    align-items: flex-start; /* 顶部对齐 */
}

/* 侧边栏样式 */
.sidebar {
    flex: 0 0 280px; /* 固定宽度 */
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center; /* 标题居中 */
}

.sidebar h2 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-top: 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    flex-direction: column; /* 按钮垂直排列 */
    gap: 15px; /* 按钮间距 */
}

.button-group a {
    display: block;
    background-color: #3498db; /* 亮蓝色按钮 */
    color: white;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.button-group a:hover {
    background-color: #2980b9; /* 悬停时深蓝色 */
    transform: translateY(-2px); /* 悬停时轻微上浮 */
}

.button-group a span.description {
    display: block; /* 描述文字换行 */
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: normal;
}

/* 主内容区域样式 */
.main-content {
    flex: 1; /* 占据剩余空间 */
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-content h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    border-top: 1px solid #ecf0f1;
}
