@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif; }

:root {
    --primary: #0052CC;
    --primary-light: #2684FF;
    --primary-dark: #0747A6;
    --accent: #00B8D9;
    --energy-yellow: #FFAB00;
    --energy-orange: #FF8B00;
    --success: #36B37E;
    --success-light: #57D9A3;
    --warning: #FF991F;
    --danger: #FF5630;
    --bg-main: #F4F5F7;
    --bg-card: #FFFFFF;
    --bg-dark: #091E42;
    --text-primary: #172B4D;
    --text-secondary: #42526E;
    --text-muted: #6B778C;
    --border-color: #DFE1E6;
    --electric-blue: linear-gradient(135deg, #0052CC 0%, #00B8D9 100%);
    --energy-gradient: linear-gradient(135deg, #FFAB00 0%, #FF8B00 100%);
    --green-energy: linear-gradient(135deg, #36B37E 0%, #00B8D9 100%);
    --gradient-1: linear-gradient(135deg, #0052CC 0%, #00B8D9 100%);
    --gradient-2: linear-gradient(135deg, #FFAB00 0%, #FF8B00 100%);
    --gradient-3: linear-gradient(135deg, #36B37E 0%, #00B8D9 100%);
    --gradient-4: linear-gradient(135deg, #0052CC 0%, #0747A6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, rgba(0, 82, 204, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.logo i {
    font-size: 32px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s;
}

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

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 82, 204, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 184, 217, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 82, 204, 0.2);
    border: 1px solid rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    background-size: 20px 20px;
    animation: gridMove 10s linear infinite;
}

.hero-image-placeholder::after {
    content: "⚡";
    font-size: 80px;
    opacity: 0.5;
    z-index: 1;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

/* News Detail Placeholders */
.recommended-news-item .hero-image-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 184, 217, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.recommended-news-item .hero-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    animation: gridMove 8s linear infinite;
}

.recommended-news-item .hero-image-placeholder::after {
    content: "⚡";
    font-size: 40px;
    opacity: 0.5;
    z-index: 1;
    position: relative;
}

/* Service Card Placeholders */
.service-image .hero-image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 184, 217, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.service-image .hero-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    animation: gridMove 8s linear infinite;
}

.service-image .hero-image-placeholder::after {
    content: "⚡";
    font-size: 40px;
    opacity: 0.5;
    z-index: 1;
    position: relative;
}

/* News Card Placeholders */
.news-image .hero-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 184, 217, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.news-image .hero-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    animation: gridMove 8s linear infinite;
}

.news-image .hero-image-placeholder::after {
    content: "⚡";
    font-size: 40px;
    opacity: 0.5;
    z-index: 1;
    position: relative;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-card);
}

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

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-icon.primary {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary);
}

.feature-icon.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success);
}

.feature-icon.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--warning);
}

.feature-icon.accent {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.service-link:hover {
    gap: 8px;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

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

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

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



/* News Section */
.news {
    padding: 100px 0;
}

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

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-card);
}

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

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-icon.primary {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary);
}

.contact-icon.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success);
}

.contact-icon.accent {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: var(--accent);
}

.contact-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-text p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-main);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

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

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    display: block;
}

.footer-section p {
    margin-bottom: 16px;
    opacity: 0.8;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        gap: 32px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .features-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .features,
    .services,
    .news,
    .contact {
        padding: 60px 0;
    }
    
    .feature-card,
    .service-card,
    .news-card {
        padding: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 16px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 82, 204, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}