﻿/* ============================================
   陕西江众能源有限公司 - 全局样式
   ============================================ */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2847;
    --primary-light: #2a5a9b;
    --accent: #c4161c;
    --accent-light: #e63946;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg: #ffffff;
    --bg-light: #f5f7fa;
    --bg-gray: #eef1f5;
    --border: #e0e4e8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header & Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

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

.logo-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0 20px;
    line-height: 80px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--accent);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #ffffff;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

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

.dropdown li:last-child a {
    border-bottom: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

/* === Banner / Carousel === */
.banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

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

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

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(26, 58, 107, 0.6) 0%, rgba(42, 90, 155, 0.6) 100%), url('/assets/images/1.jpeg') center/cover;
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(15, 40, 71, 0.6) 0%, rgba(26, 58, 107, 0.6) 100%), url('/assets/images/2.jpeg') center/cover;
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(42, 90, 155, 0.6) 0%, rgba(26, 58, 107, 0.6) 100%), url('/assets/images/3.jpeg') center/cover;
}

.banner-slide:nth-child(4) {
    background: linear-gradient(135deg, rgba(26, 58, 107, 0.6) 0%, rgba(15, 40, 71, 0.6) 100%), url('/assets/images/4.jpeg') center/cover;
}

.banner-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

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

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

.banner-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.banner-arrow.prev {
    left: 30px;
}

.banner-arrow.next {
    right: 30px;
}

/* === Section Common === */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* === About Preview (Homepage) === */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-preview-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-preview-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-preview-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-light);
}

/* === Stats === */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-number .stat-unit {
    font-size: 16px;
    font-weight: 400;
    margin-left: 2px;
}

.stat-number span {
    font-size: 18px;
    font-weight: 400;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* === Business Cards === */
.business-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.business-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card-icon svg {
    width: 40px;
    height: 40px;
}

.business-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.business-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Partners === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.partner-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.partner-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card-icon svg {
    width: 30px;
    height: 30px;
}

.partner-card h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 8px;
}

.partner-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* === News Section === */
.news-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.news-tab {
    padding: 12px 30px;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.news-tab:hover {
    color: var(--primary);
}

.news-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.news-list {
    display: none;
}

.news-list.active {
    display: block;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
    transition: var(--transition);
}

.news-item:hover {
    padding-left: 10px;
}

.news-item-title {
    font-size: 15px;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.news-item-title:hover {
    color: var(--primary);
}

.news-item-date {
    font-size: 13px;
    color: var(--text-lighter);
    margin-left: 20px;
    white-space: nowrap;
}

/* === About Page === */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--bg), transparent);
}

.page-banner h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
}

.page-banner .breadcrumb {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.page-banner .breadcrumb a:hover {
    color: #ffffff;
}

/* About Content */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

.about-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 12px;
    text-indent: 2em;
}

.about-content ul {
    margin: 12px 0 12px 2em;
}

.about-content ul li {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    position: relative;
    padding-left: 16px;
}

.about-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Stats Highlight */
.stats-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 50px 0;
}

.stat-highlight-item {
    background: var(--primary);
    color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-highlight-item .stat-number {
    color: #ffffff;
    font-size: 36px;
}

.stat-highlight-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* === Business Page === */
.business-detail {
    margin-bottom: 60px;
}

.business-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.business-detail-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-detail-icon svg {
    width: 32px;
    height: 32px;
}

.business-detail h3 {
    font-size: 24px;
    color: var(--primary);
}

.business-detail p {
    font-size: 15px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 12px;
    text-indent: 2em;
}

.business-region {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.region-tag {
    padding: 6px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
}

/* === Partners Page === */
.partner-detail-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    transition: var(--transition);
}

.partner-detail-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.partner-detail-logo {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-detail-logo svg {
    width: 50px;
    height: 50px;
}

.partner-detail-info h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.partner-detail-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.partner-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

/* === Contact Page === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-text h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

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

/* === Footer === */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 0;
}

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

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 13px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 0;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .business-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav-link {
        line-height: 50px;
        padding: 0 20px;
    }
    
    .nav-item.active .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .banner {
        height: 400px;
        margin-top: 60px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .about-preview {
        grid-template-columns: 1fr;
    }
    
    .business-cards {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-highlight {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .partner-detail-logo {
        margin: 0 auto;
    }
    
    .page-banner {
        height: 200px;
        margin-top: 60px;
    }
    
    .page-banner h1 {
        font-size: 24px;
    }
    
    .section {
        padding: 50px 0;
    }
}
