

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 157, 146, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin: 0 auto;
	font-weight: normal;
}

.section-title p a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-title p a:hover {
    color: var(--accent-hover);
}


.page-banner{
	height: 500px;
}
.banner-inner{
	padding-right: 150px;
}
.banner-inner h1{
	margin-bottom: 25px;
}
.banner-inner p{
	max-width: 1100px;
	line-height: 1.7;
	font-size: 1.25rem;
}


/* ========== HERO ========== */
#home {
    position: relative;
    padding: 100px 0 120px;
    margin-top: var(--header-height);
    background: url('') no-repeat center center / cover;
}


.hero-content {
    padding-right: 150px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== FEATURES ========== */
#features {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(21, 157, 146, 0.15);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 保持比例，完整显示 */
    /* 或者用 object-fit: cover; 让图片填满并裁剪 */
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
	color: var(--primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* ========== PV SOLUTIONS TABS ========== */
#solutions {
    background: var(--white);
}

.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.solution-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.solution-panel.active {
    display: grid;
    gap: 48px;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diagram-box {
    margin: 0 100px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-box img {
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.solution-info {
    margin: 0 100px;
}

.solution-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.solution-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-info ul {
    margin-bottom: 24px;
}

.solution-info ul li {
    padding: 6px 0;
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-info ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ========== PRODUCTS ========== */
#products {
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 220px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(21, 157, 146, 0.1);
    color: var(--accent);
    margin-bottom: 12px;
    width: fit-content;
}

.product-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
	color: var(--primary);
}

.product-body>p {
    font-size: 1rem;
    color: var(--text-gray);
    flex: 1;
}

.spec-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.spec-mini span {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--light-bg);
    color: var(--text-gray);
    font-weight: 500;
}

.product-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link:hover {
    gap: 10px;
    color: var(--accent-hover);
}

/* ========== MODEL TABLE (固定8行可滚动) ========== */
.table-wrapper {
    margin-top: 56px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.table-scroll {
    max-height: 416px;
    overflow-y: auto;
}

.table-scroll::-webkit-scrollbar {
    width: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.model-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.model-table thead {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 2;
}

.model-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.model-table td {
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.model-table tbody tr:hover {
    background: var(--light-bg);
}

.model-table tbody tr:last-child td {
    border-bottom: none;
}

.model-table .model-name {
    font-weight: 700;
    color: var(--dark-text);
}

.table-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========== COMPANY ========== */
#company {
    background: var(--primary);
    color: var(--white);
}

#company .section-title h2,
#company .section-title p {
    color: var(--white);
}

#company .section-title p {
    opacity: 0.85;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ========== APPLICATIONS ========== */
#applications {
    background: var(--light-bg);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.app-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 73, 157, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: var(--transition);
}

.app-overlay h3 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.app-card:hover img {
    transform: scale(1.08);
}

.app-card:hover .app-overlay {
    background: linear-gradient(to top, rgba(15, 73, 157, 0.95) 0%, rgba(15, 73, 157, 0.3) 100%);
}

.app-cta {
    text-align: center;
    margin-top: 40px;
}

.app-cta p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* ========== CONTACT FORM ========== */
#contact {
    background: var(--white);
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 48px 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white) !important;
    color: var(--dark-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(21, 157, 146, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}



/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .solution-panel.active {
        grid-template-columns: 1fr;
    }

    .diagram-box {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .wide-container {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
        gap: 4px;
        transform: translateX(-100%);
        transition: var(--transition);
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-spacer,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    #home {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-card {
        height: 160px;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    section {
        padding: 60px 0;
    }

    .solution-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .diagram-box {
        margin: 0;
    }


    .solution-info {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 提交弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s ease;
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    font-weight: 700;
}

.modal-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.modal-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}