/* ========================================
   河南明宇电力有限公司 - 企业网站样式
   主色调：红色 #e74c3c（行动号召）
   辅助色：蓝色 #3498db（科技信任）
   导航栏：深灰蓝 #2c3e50
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fff;
}

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

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

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

.nav-menu a {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

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

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    transition: all 0.3s ease;
}

.nav-contact:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 18px;
}

.phone-number {
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Hero Banner
   ======================================== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
    letter-spacing: 4px;
}

.hero-brand {
    font-size: 20px;
    opacity: 0.85;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button .arrow {
    font-size: 18px;
}

.cta-button.primary {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button.primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

/* ========================================
   数据统计区
   ======================================== */
.stats-section {
    background: #2c3e50;
    padding: 50px 0;
    margin-top: -1px;
}

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

.stat-item {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e74c3c;
}

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

/* ========================================
   通用区块样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #e74c3c;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   关于我们
   ======================================== */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.about-text h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.highlight-icon {
    font-size: 24px;
}

.highlight-text {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: #e74c3c;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: #c0392b;
}

.about-link .arrow {
    font-size: 18px;
}

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

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   产品中心
   ======================================== */
.products-section {
    padding: 100px 0;
    background: #fff;
}

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

.product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 35px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.product-card.featured {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.product-card.featured .product-icon,
.product-card.featured .product-title,
.product-card.featured .product-desc,
.product-card.featured .product-features li {
    color: #fff;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
}

.product-features li {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 18px;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.product-card.featured .product-features li {
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card.featured .product-features li::before {
    color: #fff;
}

/* ========================================
   业务范围
   ======================================== */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.service-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.service-card.featured {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.service-card.featured .service-icon,
.service-card.featured .service-title,
.service-card.featured .service-desc,
.service-card.featured .service-list li {
    color: #fff;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.service-card.featured .service-list li {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card.featured .service-list li::before {
    color: #fff;
}

/* ========================================
   企业优势
   ======================================== */
.advantages-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

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

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.advantage-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.7;
}

/* ========================================
   成功案例
   ======================================== */
.cases-section {
    padding: 100px 0;
    background: #fff;
}

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

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.case-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #e8f4fc, #d0e8f7);
}

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.case-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0066CC;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.case-info {
    padding: 25px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.case-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e8f4fc;
    color: #0066CC;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   合作流程
   ======================================== */
.process-section {
    padding: 100px 0;
    background: #2c3e50;
    color: #fff;
}

.process-section .section-title {
    color: #fff;
}

.process-section .title-underline {
    background: #e74c3c;
}

.process-section .section-desc {
    color: rgba(255, 255, 255, 0.85);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.6;
}

/* ========================================
   联系我们
   ======================================== */
.contact-section {
    padding: 100px 0;
    background: #f8f9fa;
}

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

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.contact-detail h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-detail p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

.contact-note {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-qualifications {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-qualifications span {
    font-size: 12px;
    opacity: 0.6;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.footer-links h4,
.footer-products h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-links li,
.footer-products li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-products a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-products a:hover,
.footer-services a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

.icp {
    margin-top: 8px;
    font-size: 12px !important;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .products-grid,
    .services-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-contact {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .services-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-qualifications {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* ========================================
   办公环境板块
   ======================================== */
.office-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.office-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.office-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.office-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.office-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.6) 60%, transparent 100%);
    padding: 20px 15px 15px;
    color: #fff;
    transition: all 0.3s ease;
}

.office-card:hover .office-overlay {
    background: linear-gradient(to top, rgba(231, 76, 60, 0.9) 0%, rgba(231, 76, 60, 0.6) 60%, transparent 100%);
}

.office-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.office-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

/* 办公环境响应式 */
@media (max-width: 992px) {
    .office-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .office-img {
        height: 200px;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动显示动画 */
.product-card,
.service-card,
.advantage-card,
.case-card,
.contact-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.product-card.visible,
.service-card.visible,
.advantage-card.visible,
.case-card.visible,
.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}