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

:root {
    --primary-color: #0066cc;
    --secondary-color: #00cc66;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* 全局图片显示修复 */
img {
    display: block !important;
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand .logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero区域 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 60px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7), rgba(0, 204, 102, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

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

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

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

/* 章节通用样式 */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* 能源数智概览 */
.energy-outlook {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 204, 102, 0.06));
}

.outlook-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
}

.outlook-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.outlook-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 102, 204, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    width: fit-content;
}

.outlook-content h2 {
    font-size: 36px;
    line-height: 1.3;
    color: var(--dark-color);
}

.outlook-content p {
    color: #4c4c4c;
    line-height: 1.8;
}

.outlook-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #4c4c4c;
}

.outlook-list li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin-right: 12px;
}

.outlook-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.outlook-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.outlook-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 102, 204, 0.15);
}

.outlook-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.outlook-card p {
    color: #4c4c4c;
    line-height: 1.6;
    font-size: 15px;
}

/* 场景化方案组合 */
.scenario-programs {
    background: #fff;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.program-card {
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, rgba(0, 102, 204, 0.08), rgba(0, 204, 102, 0.05));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.program-tag {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 204, 102, 0.15);
    color: var(--secondary-color);
    font-weight: 600;
    width: fit-content;
}

.program-card h3 {
    font-size: 22px;
    color: var(--dark-color);
    line-height: 1.4;
}

.program-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #4c4c4c;
    line-height: 1.7;
}

.program-card ul li::before {
    content: "→";
    color: var(--primary-color);
    margin-right: 8px;
}

.program-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.program-link:hover {
    color: var(--secondary-color);
}

/* 项目流程 */
.project-flow {
    background: var(--light-color);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.flow-card {
    background: white;
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.flow-index {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.flow-card h3 {
    font-size: 20px;
    color: var(--dark-color);
}

.flow-card p {
    color: #4c4c4c;
    line-height: 1.6;
}

/* 成本收益表 */
.cost-benefit {
    background: white;
}

.benefit-table {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.benefit-header,
.benefit-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 0;
    align-items: center;
}

.benefit-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

.benefit-header span,
.benefit-row span {
    padding: 18px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-row:nth-child(even) {
    background: var(--light-color);
}

.benefit-row:nth-child(odd) {
    background: white;
}

.benefit-row span:last-child,
.benefit-header span:last-child {
    border-right: none;
}

/* 业务领域 */
.business-section {
    background: var(--light-color);
}

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

.business-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8), rgba(0, 204, 102, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.card-icon {
    font-size: 60px;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary-color);
}

/* 核心优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.advantage-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-item p {
    color: #666;
    line-height: 1.8;
}

/* 项目案例 */
.cases-section {
    background: var(--light-color);
}

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

.case-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

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

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

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

/* 数据统计 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

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

.stat-number {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 新闻动态 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
}

/* 合作伙伴 */
.partners-section {
    background: var(--light-color);
}

.partners-slider {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.partner-item {
    flex: 0 0 200px;
    height: 120px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 关于我们 */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.about-text p {
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* 联系我们 */
.contact-section {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 32px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .business-grid,
    .outlook-layout,
    .program-grid,
    .flow-grid,
    .advantages-grid,
    .cases-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .outlook-stats {
        grid-template-columns: 1fr;
    }
    
    .outlook-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .benefit-header,
    .benefit-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .benefit-header span,
    .benefit-row span {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .benefit-header span:last-child,
    .benefit-row span:last-child {
        border-bottom: none;
    }
    
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

