/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif; /* 适配中文 */
    line-height: 1.6;
    min-height: 100vh; /* 保证页面占满视口高度 */
    position: relative; /* 为footer绝对定位做铺垫 */
    padding-bottom: 80px; /* 给footer预留空间，避免遮挡内容 */
    display: flex;
}

/* 侧边栏 */
.sidebar {
    width: 25%;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar .data-analysis-module,
.sidebar .calendar-module {
    margin-bottom: 2rem;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 25%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.site-header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
    position: relative;
}

.site-header h1 {
    color: #0066cc; /* 更柔和的蓝色，替代纯蓝 */
    font-size: 2.2rem; /* 响应式单位，适配不同屏幕 */
    margin-bottom: 1rem;
}

.site-meta p {
    color: #2e8b57; /* 更柔和的绿色 */
    font-size: 1rem;
    margin: 0.3rem 0;
}

.dog-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 主体内容区 */
.site-main {
    flex: 1;
    max-width: 1200px; /* 限制最大宽度，避免大屏拉伸 */
    margin: 0 auto; /* 居中 */
    padding: 0 1rem;
}

/* 图片区域 */
.image-section {
    margin-bottom: 3rem;
    text-align: center; /* 图片居中 */
}

.image-section img {
    max-width: 80%; /* 图片不超宽，更美观 */
    height: auto;
    border-radius: 8px; /* 轻微圆角，提升质感 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 轻微阴影，增加层次 */
}

/* 数据分析模块（在侧边栏中） */
.data-analysis-module {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #0066cc; /* 左侧标识线，突出模块 */
}

.data-analysis-module h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.data-content {
    color: #555;
    font-size: 0.9rem;
}

/* 日历模块 */
.calendar-module {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.calendar-module h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.calendar-content {
    color: #555;
    font-size: 0.9rem;
}

/* 页脚样式 */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 75%;
    padding: 1rem;
    background-color: #f1f1f1;
    text-align: center;
}

.site-footer a {
    display: inline-flex; /* 图标+文字垂直对齐 */
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer img {
    height: 20px; /* 统一备案图标高度 */
    margin-right: 8px;
}

/* 响应式适配（小屏幕） */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        overflow-y: visible;
    }

    .main-content {
        margin-left: 0;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .image-section img {
        max-width: 100%;
    }

    .data-analysis-module,
    .calendar-module {
        padding: 1rem;
    }

    .site-footer {
        left: 0;
        width: 100%;
    }

    .site-footer a {
        flex-direction: column; /* 小屏幕图标在上，文字在下 */
    }

    .site-footer img {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .dog-image {
        width: 40px;
    }
}