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

body {
    font-family: 'Arial', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #dc3545;
}

/* 主导航 */
.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

/* 导航栏悬停效果增强 */
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-menu a:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    background: linear-gradient(90deg, #dc3545, #c82333);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* 项目拼接图片样式 */
.project-collage {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.main-img {
    grid-row: 1 / 3;
    grid-column: 1;
}

.side-img-1 {
    grid-row: 1;
    grid-column: 2;
}

.side-img-2 {
    grid-row: 2;
    grid-column: 2;
}

.side-img-3 {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 80px;
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    z-index: 10;
    object-fit: cover;
}

/* 主要内容区域 */
.main-content {
    margin-top: 120px;
    padding: 0;
}

/* 顶部轮播展示区域 */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* 门面图片单独样式 */
.carousel-slide:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* 项目拼接图片样式优先级更高 */
.carousel-slide .project-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: all 0.3s ease;
    position: static !important;
    z-index: auto !important;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
}

.slide-overlay h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.slide-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.slide-overlay .company-culture {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* 企业发展时间线 */
.timeline-section {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.timeline-section h3 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 40px;
}

.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.timeline-chart {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.timeline-content h4 {
    color: #ff6b6b;
    font-size: 18px;
    margin-bottom: 5px;
}

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

.timeline-value {
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

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

.indicator.active {
    background: #007bff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0,123,255,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 新闻动态区域 */
.news-section {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-column h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.news-item .date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.news-item p {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.news-item .status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    align-self: flex-start;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.ongoing {
    background: #fff3cd;
    color: #856404;
}

/* 关于晴源春区域 */
.about-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    letter-spacing: 2px;
}

/* 数据展示 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.stat-item {
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,123,255,0.15);
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-unit {
    color: #333;
    font-size: 12px;
}

/* 公司介绍 */
.company-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.company-intro h3 {
    color: #333;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.company-intro p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 按钮增强效果 */
.btn-detail {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    position: relative;
    overflow: hidden;
}

.btn-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-detail:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
}

.btn-detail:hover::before {
    left: 100%;
}

.btn-detail:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* 产业公司区域 */
.industries-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.industry-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    background: #e9ecef;
    transform: translateY(-5px);
}

.industry-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.industry-icon i {
    font-size: 24px;
    color: #fff;
}

.industry-item h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.industry-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.3;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #007bff;
    font-size: 16px;
}

.footer-section p {
    line-height: 1.5;
    margin-bottom: 8px;
    opacity: 0.9;
    font-size: 14px;
}

.footer-section i {
    margin-right: 8px;
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 15px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

/* 主营资质区域 */
.qualifications-section {
    margin-top: 40px;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.qualifications-section h3 {
    text-align: center;
    color: #333;
    font-size: 20px;
    margin-bottom: 30px;
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.qualification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.15);
}

.qualification-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.qualification-item h4 {
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

/* 配套资源区域 */
.resources-section {
    margin-top: 40px;
}

.resources-section h3 {
    text-align: center;
    color: #333;
    font-size: 20px;
    margin-bottom: 30px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-item {
    text-align: center;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.resource-item i {
    font-size: 30px;
    color: #007bff;
    margin-bottom: 15px;
}

.resource-item h4 {
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

/* 企业文化区域 */
.culture-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.culture-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.culture-item h3 {
    color: #ff6b6b;
    font-size: 18px;
    margin-bottom: 12px;
}

.culture-item p {
    color: #666 !important;
    line-height: 1.5;
    font-size: 14px;
    font-weight: bold !important;
}

.culture-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold !important;
}
}

.culture-values span {
    color: #333;
}

.culture-values span:nth-child(odd):not(:first-child) {
    color: #ccc;
}

/* 工程案例区域样式 */
.projects-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 年份选择器样式 */
.year-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.year-btn {
    padding: 12px 24px;
    border: 2px solid #dc3545;
    background: transparent;
    color: #dc3545;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.year-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.year-btn.active {
    background: #dc3545;
    color: white;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.year-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.year-btn:hover::before {
    left: 100%;
}

/* 项目网格样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 项目卡片样式 */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card.hidden {
    display: none;
}

/* 项目信息样式 */
.project-info {
    padding: 20px;
    background: white;
    order: 1;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.project-cost {
    font-size: 1rem;
    color: #dc3545;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.project-status {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
    margin: 0;
    padding: 4px 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* 项目图片样式 */
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    order: 2;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* 项目覆盖层 */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-gallery {
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    background: transparent;
    transition: all 0.3s ease;
}

.project-overlay:hover .view-gallery {
    background: white;
    color: #dc3545;
}

/* 项目信息样式 */
.project-info {
    padding: 25px;
}

.project-year {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-info p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-cost {
    color: #dc3545;
    font-weight: 600;
    font-size: 16px;
}

/* 图片查看器模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 30px;
    background: #dc3545;
    color: white;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* 图片画廊样式 */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    text-align: center;
}

.main-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #dc3545;
    transform: scale(1.1);
}

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

/* 图片查看器模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* 现代化图片画廊样式 */
.gallery-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.main-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.main-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 400px;
}

.main-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-gallery-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 8px 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-gallery {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e9ecef;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.thumbnail-item.active {
    border-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

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

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active .thumbnail-overlay {
    background: rgba(220, 53, 69, 0.1);
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.language-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown.active .language-btn i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 14px;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #007bff;
    color: white;
}

.language-option .flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* RTL 布局支持 */
.rtl {
    direction: rtl;
}

.rtl .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

.rtl .language-menu {
    right: auto;
    left: 0;
}

.rtl .nav-menu {
    flex-direction: row-reverse;
}

.rtl .nav-links {
    flex-direction: row-reverse;
}

.rtl .container {
    text-align: right;
}

.rtl .hero-content h1,
.rtl .hero-content p {
    text-align: right;
}

.rtl .section-title {
    text-align: right;
}

.rtl .about-content {
    text-align: right;
}

.rtl .timeline-content {
    text-align: right;
}

.rtl .stats-grid {
    direction: ltr;
}

.rtl .stat-item {
    text-align: center;
}

/* 响应式设计 - 语言切换器 */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .rtl .language-switcher {
        margin-right: 0;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .language-menu {
        min-width: 120px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-gallery-image {
        max-height: 50vh;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .gallery-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-btn {
        justify-content: center;
        padding: 12px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
}

/* 全屏模式优化 */
.main-gallery-image:fullscreen {
    object-fit: contain;
    width: 100vw;
    height: 100vh;
}

/* 旧版图片画廊样式保持兼容 */
.image-gallery:not(.gallery-container) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* 模态框中的单个大图显示 */
#modalImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}

/* 滚动视差效果 */
.about-section,
.industries-section,
.culture-section,
.projects-section {
    background: #fff;
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease-out;
}

.about-section.animate,
.industries-section.animate,
.culture-section.animate,
.projects-section.animate {
    transform: translateY(0);
    opacity: 1;
}

/* 项目卡片增强效果 */
.project-card {
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,107,0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255,107,107,0.2);
}

.project-card:hover::before {
    left: 100%;
}

/* 图片放大效果 */
.featured-project,
.gallery-image {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-project:hover,
.gallery-image:hover {
    transform: scale(1.05);
}

.featured-project img,
.gallery-image {
    transition: transform 0.3s ease;
}

.featured-project:hover img {
    transform: scale(1.1);
}

/* 统计数据动画增强 */
.stat-item {
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(255,107,107,0.15);
}

/* 文字突出显示 */
.company-intro h3,
.section-header h2 {
    position: relative;
    display: inline-block;
}

.company-intro h3::after,
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.company-intro:hover h3::after,
.section-header:hover h2::after {
    width: 80%;
}

/* 响应式轮播优化 */
@media (max-width: 768px) {
    .hero-carousel {
        height: 50vh;
        min-height: 400px;
    }
    
    .slide-overlay {
        padding: 40px 20px 30px;
    }
    
    .slide-overlay h2 {
        font-size: 1.8rem;
    }
    
    .slide-overlay p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline-chart {
        order: 2;
    }
    
    .timeline-events {
        order: 1;
    }
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .hero-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-image-item img {
        height: 120px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .culture-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-highlight {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ongoing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .culture-values {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .about-section,
    .industries-section,
    .culture-section,
    .projects-section {
        padding: 30px 0;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        margin-top: 100px;
        padding: 20px 0;
    }
    
    .about-section,
    .industries-section,
    .culture-section,
    .news-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }
}

/* 动画关键帧 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.stat-item,
.industry-item,
.company-intro {
    animation: fadeInUp 0.6s ease-out;
}

/* 移除滚动条样式，恢复默认 */