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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页眉样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 20px;
    color: #003c8f;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: #666;
}

.contact-info {
    display: flex;
    align-items: center;
}

.contact-info p {
    font-size: 16px;
    color: #003c8f;
}

.contact-info i {
    margin-right: 5px;
    color: #003c8f;
}

/* 导航栏样式 */
nav {
    background-color: #003c8f;
}

nav .container {
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    font-size: 15px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #002a66;
}

/* 轮播图部分 */
.slider-section {
    width: 100%;
    margin-bottom: 20px;
}

.main-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.thumbnail-slider {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 100px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #003c8f;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主要内容区 */
.main-content {
    padding: 20px 0;
}

.main-content .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 新闻部分 (4:3:3比例) */
.news-section {
    flex: 4;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-section h2 {
    color: #003c8f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003c8f;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
}

.news-img {
    flex: 0 0 120px;
    height: 80px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.news-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.news-text .date {
    font-size: 12px;
    color: #999;
}

/* 华亿简介部分 */
.about-section {
    flex: 3;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #003c8f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003c8f;
}

.about-content p {
    margin-bottom: 10px;
    font-size: 14px;
}

.more-btn {
    display: inline-block;
    margin-top: 10px;
    color: #003c8f;
    text-decoration: none;
    font-weight: bold;
}

/* 连续流模块部分 */
.module-section {
    flex: 3;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.module-section h2 {
    color: #003c8f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003c8f;
}

.video-wrapper {
    margin-bottom: 15px;
}

.video-thumbnail {
    position: relative;
    height: 160px;
    border-radius: 5px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button i {
    color: #fff;
    font-size: 20px;
}

.certificate-showcase {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.certificate {
    flex: 1;
    text-align: center;
}

.certificate img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 5px;
}

.certificate p {
    font-size: 12px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #003c8f;
    color: #fff;
    padding: 30px 0 15px;
    margin-top: 20px;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.company-info {
    max-width: 70%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px 15px;
    margin-top: 5px;
}

.contact-grid p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.copyright a {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content .container {
        flex-direction: column;
    }
    
    .news-section, .about-section, .module-section {
        flex: 1 1 100%;
    }
    
    .main-slider {
        height: 300px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav a {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-slider {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 40px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .qr-code {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        width: 100%;
        flex: auto;
        height: 150px;
    }
    
    .main-slider {
        height: 200px;
    }
}

/* 确保页脚始终在底部的样式 */
html, body {
    height: 100%;
    margin: 0;
}

.page-content {
    flex: 1 0 auto;
}

#footer-placeholder {
    flex-shrink: 0;
}

/* 添加轮播图加载提示和错误信息样式 */
.loading-message, .error-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: #666;
    font-size: 18px;
    text-align: center;
    background-color: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

.error-message {
    color: #d9534f;
} 