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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #666; /* 深绿色主色调 2e7d32 */
    background-color: #f9f9f9;
}

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

/* 导航栏样式 */
.header {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

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

.logo img {
    max-width: 400px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    transition: color 0.3s;
}

/* 语言切换按钮样式 */
.language-switcher {
    display: flex;
    margin-left: 20px;
}

.lang-btn {
    padding: 8px 15px;
    margin-left: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
    color: #f0f0f0;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-nav {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

/* 首页轮播图 - 平铺样式 */
.hero-slider {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

/* 科技感背景装饰 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
    z-index: 1;
}

/* 网格线装饰 */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    width: 100%;
    height: 100%;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-content .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #2e7d32;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-content .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 轮播指示器 - 底部自动滚动形式 */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

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

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

.indicator.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    background-color: #2e7d32;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
}

.btn-primary:hover {
    background-color: #43a047;
}

/* 通用章节样式 */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #2e7d32;
    position: relative;
    padding-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

/* 产品服务标题 */
.products .section-title {
    position: relative;
    z-index: 1;
}

section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #2e7d32;
    transition: width 0.6s ease 0.8s;
}

section.visible .section-title::after {
    width: 80px;
}

/* 图片占位样式 */
.case-img-placeholder,
.news-img-placeholder,
.about-image-placeholder {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 5px;
}

.case-img-placeholder {
    width: 100%;
    height: 200px;
}

.news-img-placeholder {
    width: 100%;
    height: 150px;
}

.about-image-placeholder {
    width: 100%;
    height: 300px;
    font-size: 1.5rem;
}

/* 关于我们图片样式 */
.about-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

/* 成功案例图片样式 */
.case-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* 新闻动态图片样式 */
.news-image img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.footer-logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 关于鑫峰能源 */
.about {
    padding: 140px 0 100px;
    background-color: #fff;
}

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

/* 初始状态 - 文字和图片不可见 */
.about-text {
    flex: 1;
    margin-right: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-placeholder {
    flex: 1;
    height: 300px;
    border-radius: 5px;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* visible状态 - 文字和图片显示动画 */
.about.visible .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about.visible .about-image-placeholder {
    opacity: 1;
    transform: translateX(0);
    /* 添加缩放动画效果 */
    animation: pulseScale 1s ease-in-out;
}

/* 定义缩放脉冲动画 */
@keyframes pulseScale {
    0% {
        transform: scale(0.9) translateX(50px);
    }
    50% {
        transform: scale(1.05) translateX(0);
    }
    100% {
        transform: scale(1) translateX(0);
    }
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    /* 为段落添加延迟动画 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 为每个段落添加不同的延迟时间 */
.about.visible .about-text p:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.about.visible .about-text p:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.about.visible .about-text p:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* 产品与服务 */
.products {
    padding: 120px 0 100px;
    background-color: #fff;
}

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

.product-item {
    /* 科技感背景 */
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.product-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* 产品项科技感网格装饰 */
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(46, 125, 50, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 50, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

.product-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-item .product-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.product-item .product-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
}

/* 成功案例 */
.cases {
    padding: 120px 0 100px;
    background-color: #f9f9f9;
}

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

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.case-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

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

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.case-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: rgba(46, 125, 50, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.case-link:hover {
    background-color: rgba(67, 160, 71, 0.9);
}

.case-item:hover .case-overlay {
    transform: translateY(0);
}

.case-overlay h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* 新闻中心 */
.news {
    padding: 120px 0 100px;
    background-color: #fff;
}

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

.news-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    flex: 0 0 30%;
    overflow: hidden;
}

.news-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
}

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

.news-date {
    font-size: 14px;
    color: #43a047;
    margin-bottom: 10px;
    font-weight: 500;
}

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

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.news-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.news-link:hover {
    color: #666;
}

.highlight {
    font-weight: 600;
    color: #43a047;
    background: linear-gradient(transparent 60%, rgba(44, 123, 229, 0.1) 40%);
    padding: 0 2px;
}

/* 投资者关系 */
.investors {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.investor-info {
    text-align: center;
}

.investor-info p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.investor-contacts {
    display: inline-block;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.investor-contacts h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.investor-contacts p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    margin-right: 50px;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.social-links {
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2e7d32;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #43a047;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo img {
    max-width: 150px;
    max-height: 60px;
    width: 100%;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

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

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 详情页相关内容推荐样式 */
.related-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.related-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.related-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #2c7be5;
    margin: 15px auto 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.related-info {
    padding: 20px;
}

.related-item-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.related-item-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #2c7be5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.related-link:hover {
    color: #1967d2;
}

.related-link:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
}