/* static/css/style.css - 主样式文件 */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 14px;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页头样式 - 模仿伯克希尔·哈撒韦的布局 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.logo-section {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
}

.company-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.homepage-link a {
    color: #0066cc;
    text-decoration: none;
}

.homepage-link a:hover {
    text-decoration: underline;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    margin-bottom: 40px;
}

/* 首页布局 - 左右两列 */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 导航区域样式 */
.left-navigation,
.right-navigation {
    min-height: 300px;
}

.nav-item {
    margin-bottom: 25px;
    padding: 0;
}

.nav-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    color: #004499;
}

.nav-description {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin-left: 0;
    font-style: italic;
}

/* 推广信息区域 */
.promotional-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 20px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

.promo-content h2 {
    color: #1a365d;
    font-size: 18px;
    margin-bottom: 10px;
}

.promo-content p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.promo-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.promo-link:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.legal-info {
    margin-bottom: 10px;
}

.legal-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 11px;
}

.legal-link:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 10px;
    color: #999;
}

/* 内页样式 */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 15px;
}

.content-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px 0;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .nav-description {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 20px;
    }
    
    .promotional-section {
        margin: 20px auto;
        padding: 15px;
    }
    
    .promo-content h2 {
        font-size: 16px;
    }
}