/* ============================================
   泉风电机 - 全局样式
   参照轩芝电气风格
   ============================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 1200px; max-width: 95%; margin: 0 auto; }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: background .3s, box-shadow .3s;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
}
.logo img { height: 55px; width: auto; }
.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}
.logo-text .brand-cn { font-size: 22px; font-weight: 700; color: #0052b4; letter-spacing: 2px; }
.logo-text .brand-en { font-size: 11px; color: #666; letter-spacing: 1px; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 0 28px;
    height: 80px;
    line-height: 80px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color .3s, background .3s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: #fff;
    background: #0052b4;
}
.main-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 180px;
    background: #0052b4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 999;
}
.main-nav li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu a {
    display: block;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background .2s;
}
.sub-menu a:hover { background: rgba(255,255,255,0.15); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: .3s;
}

/* ============================================
   Hero Banner Slider
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center;
}
.hero-slider .slide.active { opacity: 1; }
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,40,100,0.6) 0%, rgba(0,82,180,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}
.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.3;
    letter-spacing: 2px;
}
.slide-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 36px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.slide-btn {
    display: inline-block;
    padding: 14px 42px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all .3s;
}
.slide-btn:hover {
    background: #fff;
    color: #0052b4;
}

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all .3s;
}
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 36px;
    color: #222;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    letter-spacing: 2px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0052b4;
    border-radius: 2px;
}
.section-title .subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ============================================
   Product Categories (Homepage)
   ============================================ */
.products-section {
    padding: 100px 0;
    background: #f8f9fb;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform .4s, box-shadow .4s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.product-card-img {
    height: 220px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-img img {
    max-height: 180px;
    object-fit: contain;
    transition: transform .4s;
}
.product-card:hover .product-card-img img {
    transform: scale(1.08);
}
.product-card-body {
    padding: 28px 24px;
    text-align: center;
}
.product-card-body h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}
.product-card-body p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 100px 0;
    background: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.about-img img {
    width: 100%;
    height: auto;
    display: block;
}
.about-text h3 {
    font-size: 28px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-left: 16px;
}
.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 28px;
    background: #0052b4;
    border-radius: 2px;
}
.about-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 16px;
}
.about-text .highlight-numbers {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.highlight-item .num {
    font-size: 42px;
    font-weight: 700;
    color: #0052b4;
    display: block;
}
.highlight-item .label {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

/* ============================================
   Certifications
   ============================================ */
.cert-section {
    padding: 100px 0;
    background: #f8f9fb;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.cert-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform .3s;
}
.cert-card:hover { transform: translateY(-5px); }
.cert-card img {
    height: 80px;
    margin: 0 auto 16px;
    object-fit: contain;
}
.cert-card h4 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    padding: 100px 0;
    background: #fff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.news-card-img {
    height: 200px;
    background: linear-gradient(135deg, #0052b4, #003d8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}
.news-card-body {
    padding: 24px;
}
.news-card-body .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}
.news-card-body h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.news-card-body p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Scenario Grid (应用场景)
   ============================================ */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.scenario-grid .scenario-card:nth-child(4),
.scenario-grid .scenario-card:nth-child(5) {
    /* Last row: center the remaining 2 cards */
}
@media (min-width: 769px) {
    .scenario-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}
.scenario-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform .3s, box-shadow .3s;
    background: #fff;
}
.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.scenario-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.scenario-card:hover img {
    transform: scale(1.05);
}
.scenario-info {
    padding: 18px 16px;
    text-align: center;
}
.scenario-info h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 600;
}
.scenario-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #003d8f 0%, #0052b4 50%, #0070e0 100%);
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}
.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item-text .label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}
.contact-item-text .value {
    font-size: 16px;
    font-weight: 500;
}
.contact-item-text .value-en {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.5;
}
.contact-qr-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-content: center;
}
.qr-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .3s, box-shadow .3s;
}
.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.qr-card img {
    max-width: 180px;
    margin-bottom: 12px;
    border-radius: 4px;
}
.qr-card p {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
/* Footer 2-column variant */
.footer-grid-2col {
    grid-template-columns: 2fr 1fr;
}

    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}
.footer-col a { color: #999; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
    color: #666;
}

/* ============================================
   Page Banner (inner pages)
   ============================================ */
.page-banner {
    height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.page-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,40,100,0.7), rgba(0,82,180,0.4));
}
.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.page-banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 4px;
}
.page-banner-content .breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}
.page-banner-content .breadcrumb a { color: #fff; }
.page-banner-content .breadcrumb span { margin: 0 8px; }

/* ============================================
   About Page
   ============================================ */
.about-intro {
    padding: 80px 0;
}
.about-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-intro-text { padding-top: 20px; }
.about-intro-text h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 24px;
    font-weight: 700;
    padding-left: 16px;
    border-left: 4px solid #0052b4;
}
.about-intro-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.9;
    margin-bottom: 16px;
    text-indent: 2em;
}

/* Timeline / History */
.history-section {
    padding: 80px 0;
    background: #f8f9fb;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: #0052b4;
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 45%;
    padding: 24px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.timeline-item:nth-child(odd) { margin-left: 5%; }
.timeline-item:nth-child(even) { margin-left: 50%; }
.timeline-item .year {
    font-size: 24px;
    font-weight: 700;
    color: #0052b4;
    margin-bottom: 8px;
}
.timeline-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Products Page
   ============================================ */
.products-page {
    padding: 80px 0;
}
.product-categories {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.cat-btn {
    padding: 10px 28px;
    border: 2px solid #0052b4;
    color: #0052b4;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    background: transparent;
}
.cat-btn:hover,
.cat-btn.active {
    background: #0052b4;
    color: #fff;
}
.products-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-list-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
}
.product-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-list-card .img-box {
    height: 200px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}
.product-list-card .info {
    padding: 20px;
    text-align: center;
}
.product-list-card .info h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}
.product-list-card .info p {
    font-size: 13px;
    color: #888;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
    padding: 80px 0;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0052b4;
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .submit-btn {
    padding: 14px 48px;
    background: #0052b4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background .3s;
}
.contact-form .submit-btn:hover { background: #003d8f; }
.contact-detail-card {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 40px;
}
.contact-detail-card h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 30px;
}
.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.detail-icon {
    width: 44px; height: 44px;
    background: #0052b4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.detail-item .text .label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.detail-item .text .value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.detail-item .text .value-en {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    line-height: 1.5;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .products-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { padding: 0 20px; height: 64px; }
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; }
    .main-nav > ul > li > a {
        height: 50px;
        line-height: 50px;
        padding: 0 24px;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f5f5f5;
    }
    .sub-menu a { color: #333; border-bottom: 1px solid #e8e8e8; }
    .hero-slider { height: 60vh; max-height: 800px; min-height: 360px; }
    .slide-content h1 { font-size: 28px; }
    .slide-content p { font-size: 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .about-intro .container { grid-template-columns: 1fr; }
    .contact-page-grid { grid-template-columns: 1fr; }
    .products-list-grid { grid-template-columns: 1fr 1fr; }
    .page-banner { height: 240px; }
    .page-banner-content h1 { font-size: 28px; }
    .section-title h2 { font-size: 28px; }
    .timeline::before { left: 20px; }
    .timeline-item { width: calc(100% - 50px); margin-left: 50px !important; }
}
@media (max-width: 480px) {
    .products-list-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .logo-text .brand-cn { font-size: 16px; }
    .highlight-numbers { flex-direction: column; gap: 20px !important; }
}
