/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e5ded5;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* 全局动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 全局导航栏样式 */
.global-navigation {
    background: #8e4e27;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease-out;
}

.global-navigation ul {
    display: flex;
    list-style: none;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.global-navigation li {
    margin: 0 10px;
}

.global-navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.global-navigation a:hover {
    background-color: #703c1e;
}

/* 首页三列布局样式 */
.homepage-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    min-height: calc(100vh - 180px);
    margin: 30px auto;
    padding: 0 20px;
}

.left-column, .center-column, .right-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-column:hover, .center-column:hover, .right-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* 家族介绍模块样式 */
.family-intro {
    text-align: center;
}

.family-intro h2 {
    color: #2e2f36;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
}

.family-intro p {
    margin-bottom: 20px;
    text-align: left;
}

.family-img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* 网站标题样式 */
.site-header {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 1s ease-out;
}

.site-header h1 {
    color: #2e2f36;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.site-header p {
    color: #7e7066;
    font-size: 22px;
    font-weight: 500;
}

/* 发展历史预览模块样式 */
.history-preview h2 {
    color: #2e2f36;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.history-card {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.history-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.history-card p {
    color: #666;
    margin-bottom: 10px;
}

.learn-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

.view-all-history {
    display: block;
    text-align: center;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.view-all-history:hover {
    background-color: #555;
}

/* 页脚样式 */
.site-footer {
    background: #8e4e27;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .homepage-container {
        grid-template-columns: 1fr;
    }
    
    .global-navigation ul {
        flex-direction: column;
        padding: 0;
    }
    
    .global-navigation li {
        margin: 0;
        text-align: center;
    }
    
    .site-header h1 {
        font-size: 28px;
    }
}

/* 通用链接样式 */
a {
    transition: color 0.3s;
}

/* 通用按钮样式 */
button {
    cursor: pointer;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555;
}

/* 表单元素样式 */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 图像容器样式 */
.img-container {
    text-align: center;
    margin: 20px 0;
}

.img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}