/* ===== Solar Home Common CSS - Clean Version ===== */

/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */

.navbar {
    background-color: white;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch,
.menu-toggle {
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-weight: 500;
    white-space: nowrap;
}

.lang-switch:hover {
    background-color: #e8f5e9;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background-color: #f1f6f1;
    color: #2e7d32;
    font-size: 18px;
}

/* ===== Hero ===== */

.hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #c8e6c9;
}

.stat p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: #ff9800;
    color: white;
}

.btn-primary:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    background-color: #2196f3;
    color: white;
}

.btn-secondary:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-outline:hover {
    background-color: #2e7d32;
    color: white;
}

/* ===== Common Sections ===== */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2e7d32;
}

.target-section {
    background-color: #f9f9f9;
}

.target-grid,
.features-grid,
.payment-options {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.target-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.payment-options {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.target-card,
.feature-card,
.payment-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.target-card {
    text-align: center;
}

.feature-card {
    border-top: 4px solid #2e7d32;
}

.target-icon,
.feature-icon {
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
}

.target-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.target-icon i {
    font-size: 2rem;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-card h3,
.target-card h3,
.payment-card h3 {
    color: #333;
}

.target-card h3 {
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓";
    color: #2e7d32;
    font-weight: bold;
    margin-right: 10px;
}

/* ===== Payment ===== */

.payment-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
}

.payment-header i {
    font-size: 2rem;
    color: #2e7d32;
}

.payment-rate {
    text-align: center;
    margin-bottom: 20px;
}

.rate-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #2e7d32;
}

.payment-details ul {
    list-style: none;
    padding: 0;
}

.payment-details li {
    padding: 8px 0;
    color: #666;
}

.payment-details li::before {
    content: "•";
    color: #2e7d32;
    font-weight: bold;
    margin-right: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #666;
}

.feature-item i {
    color: #2e7d32;
}

/* ===== Timeline ===== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2e7d32;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #2e7d32;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

/* ===== Contact ===== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-content-simple {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-content-simple .contact-info {
    max-width: 780px;
    width: 100%;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-content-simple .contact-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.contact-content-simple .contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: #333;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 25px;
    color: #2e7d32;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.note-text {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 18px 22px;
    background: #fff8e1;
    border-left: 5px solid #ff9800;
    border-radius: 6px;
    color: #555;
    line-height: 1.7;
}

/* ===== Product Gallery ===== */

.product-gallery-scroll,
.modal-gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    height: 100%;
    padding: 10px;
    scroll-snap-type: x mandatory;
}

.product-gallery-scroll img,
.modal-gallery-scroll img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    scroll-snap-align: center;
    display: block;
}

.product-gallery-scroll::-webkit-scrollbar,
.modal-gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.product-gallery-scroll::-webkit-scrollbar-thumb,
.modal-gallery-scroll::-webkit-scrollbar-thumb {
    background: #2e7d32;
    border-radius: 999px;
}

/* ===== Footer ===== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a,
.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover,
.footer-links a:hover {
    color: white;
}

.social-links,
.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: #2e7d32;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== Mobile ===== */

@media (max-width: 900px) {
    .nav-container {
        height: 64px;
        padding: 0 14px;
        position: relative;
    }

    .logo-img {
        height: 42px;
        max-width: 95px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 8px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .lang-switch {
        padding: 7px 9px;
        font-size: 13px;
    }

    .hero {
        padding: 55px 18px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 220px;
    }

    .hero-stats {
        gap: 24px;
        margin-top: 40px;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .section {
        padding: 55px 18px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 36px;
    }

    .target-grid,
    .features-grid,
    .payment-options,
    .catalog-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-year {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-modal {
        padding: 10px;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-main,
    .modal-section,
    .modal-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .modal-main h2 {
        font-size: 1.45rem;
    }

    .modal-spec-grid {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .catalog-filter-btn {
        white-space: nowrap;
    }
}