/* 自定义样式补充 */

/* 视频区域样式 */
.video-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.video-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 优势区域样式 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}

.advantage-icon img {
    max-width: 40px;
    max-height: 40px;
}

/* 案例展示样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
}

/* 新闻列表样式 */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.news-date {
    flex: 0 0 80px;
    text-align: center;
    margin-right: 20px;
}

.news-date .day {
    display: block;
    font-size: 30px;
    font-weight: bold;
    color: #1a365d;
}

.news-date .month {
    display: block;
    font-size: 14px;
    color: #718096;
}

.news-content {
    flex: 1;
}

/* 按钮样式 */
.view-all-button, .slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.view-all-button:hover, .slide-button:hover {
    background: #2c5282;
}

/* 页脚样式 */
.site-footer {
    background: #2d3748;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #cbd5e0;
    text-decoration: none;
}

.footer-widget ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .advantages-grid,
    .cases-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        margin-right: 0;
        margin-bottom: 15px;
    }
}


/* 轮播图样式优化 */
.hero-slider-wrapper {
    position: relative;
    /*margin-top: 10px;*/
    height: 500px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.8);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.indicator.active {
    background: #fff;
}

/* 视频区域样式优化 */
.video-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

.video-placeholder p {
    margin: 10px 0;
    color: #666;
}

/* 列表页面样式 */
.archive-header {
    background: #1a365d;
    color: #fff;
    padding: 60px 0 40px;
}

.archive-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-title {
    font-size: 36px;
    margin: 0;
}

.archive-search form {
    display: flex;
}

.archive-search input[type="search"] {
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 300px;
}

.archive-search button {
    padding: 10px 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.archive-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.archive-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.archive-sidebar h3 {
    margin-top: 0;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 10px;
}

.article-list {
    max-height: 600px;
    overflow-y: auto;
}

.article-list-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-title {
    color: #2d3748;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.article-title:hover,
.article-list-item.active .article-title {
    color: #1a365d;
    font-weight: bold;
}

.archive-article {
    display: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.archive-article.active {
    display: flex;
}

.article-image {
    flex: 0 0 300px;
}

.article-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h2 {
    margin-top: 0;
    color: #1a365d;
}

.article-excerpt {
    margin: 15px 0;
    color: #4a5568;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #2c5282;
}

.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        position: static;
    }
    
    .archive-article.active {
        flex-direction: column;
    }
    
    .article-image {
        flex: 0 0 auto;
    }
}

/* 文章详情页样式 */
.single-header {
    background: #f8f9fa;
    padding: 60px 0 30px;
    text-align: center;
}

.single-title {
    font-size: 36px;
    color: #1a365d;
    margin-bottom: 15px;
}

.single-meta {
    color: #718096;
    font-size: 14px;
}

.single-content {
    padding: 40px 0;
}

.single-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #2d3748;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #1a365d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content blockquote {
    border-left: 4px solid #1a365d;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background: #f7fafc;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 15px;
    }
}



/* 修复菜单遮挡内容问题 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px; /* 固定高度 */
}

/* 为所有主要内容区域添加顶部内边距，避免被菜单遮挡 */
.site-content {
    padding-top: 100px; /* 比菜单高度稍大一些 */
}

/* 针对特定页面调整顶部间距 */
.archive-header,
.single-header {
    padding-top: 20px; /* 减少这些页面的顶部内边距 */
}

/* 首页特定调整 */
.front-page .site-content {
    padding-top: 0; /* 首页已经有轮播图的margin-top，不需要额外padding */
}

/* 确保轮播图不被菜单遮挡 */
/*.hero-slider-wrapper {
    margin-top: 80px; /* 与菜单高度相同 */
}*/

/* 列表页面特定调整 */
.archive-layout {
    min-height: calc(100vh - 180px); /* 确保有足够空间 */
}

/* 文章详情页特定调整 */
.single-content {
    min-height: calc(100vh - 200px);
}

/* 响应式设计 - 移动端调整 */
@media (max-width: 768px) {
    .site-header {
        height: 60px; /* 移动端菜单高度减小 */
    }
    
    .site-content {
        padding-top: 70px; /* 移动端调整 */
    }
    
    .hero-slider-wrapper {
        margin-top: 60px; /* 移动端调整 */
    }
}


/* 视频区域样式优化 */
.video-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.video-container video {
    display: block;
    background: #000;
}

.video-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
}

.video-placeholder p {
    margin: 10px 0;
    color: #666;
}

/* 视频错误提示样式 */
.video-container p {
    padding: 20px;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin: 10px 0;
}

.video-container a {
    color: #1a365d;
    text-decoration: underline;
}

/* 关于我们部分样式 */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    padding: 20px 0;
}

.about-title {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.about-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 30px;
}

.about-button {
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text {
        padding: 0;
    }
    
    .about-title {
        font-size: 24px;
    }
}



/* 产品中心样式更新 */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-button, .slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.view-all-button:hover, .slide-button:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 其他查看所有按钮也使用相同的居中样式 */
.view-all-products,
.view-all-cases,
.view-all-news {
    text-align: center;
    margin-top: 40px;
}