/* ===== 网站布局样式 ===== */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 顶栏样式 */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.header-logo .logo-icon {
    font-size: 32px;
    background: white;
    color: #667eea;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.header-logo a:hover .logo-icon {
    transform: scale(1.1);
}

/* 网站名称和简介 */
.header-title {
    flex: 1;
    margin-left: 20px;
}

.site-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-name a {
    color: white;
    text-decoration: none;
}

.site-name a:hover {
    text-decoration: underline;
}

.site-description {
    font-size: 14px;
    opacity: 0.9;
    max-width: 400px;
}

/* 顶栏链接 */
.header-contact,
.header-privacy {
    margin-left: 30px;
}

.header-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.header-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* 主要内容容器 */
.main-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

/* 左侧窄边栏 - 修改为与顶栏相同的蓝色渐变 */
.left-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 中间宽栏 */
.main-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 600px;
}

/* 右侧窄边栏 - 修改为与顶栏相同的蓝色渐变 */
.right-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 侧边栏内部元素样式 */
.left-sidebar h3,
.right-sidebar h3,
.left-sidebar h4,
.right-sidebar h4 {
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.left-sidebar p,
.right-sidebar p,
.left-sidebar li,
.right-sidebar li {
    color: rgba(255, 255, 255, 0.9);
}

.left-sidebar a,
.right-sidebar a {
    color: #e6f2ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.left-sidebar a:hover,
.right-sidebar a:hover {
    color: white;
    text-decoration: underline;
}

/* 页脚 */
.site-footer {
    background: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 250px 1fr 250px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        margin-bottom: 20px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-title {
        order: 2;
        width: 100%;
        margin: 15px 0 0 0;
        text-align: center;
    }
    
    .header-contact,
    .header-privacy {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo,
    .header-contact,
    .header-privacy {
        margin: 10px 0;
    }
    
    .header-title {
        margin: 15px 0;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .left-sidebar,
    .right-sidebar {
        padding: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
