/* ===== 首页专用样式表 ===== */

/* 重置与全局 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
.container-1440 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0;
    box-sizing: border-box;
}

/* 区块通用标题样式 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* 透明页眉 */
.site-header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-title a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.main-navigation a:hover {
    opacity: 0.8;
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}

/* 版块1：轮播图 */
.hero-slider {
    width: 100%;
    height: 900px;
    margin-top: 0;
    position: relative;
    z-index: 0;
}
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    height: 900px;
}

/* =====版块2 Revolutionary Release ===== */
.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}
.product-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.product-card:hover .product-bg {
    transform: scale(1.05);
    filter: brightness(0.5);
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #fff;
    text-align: center;
    z-index: 2;
}
.product-card:hover .product-overlay {
    opacity: 1;
}
.product-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.product-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 80%;
}
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-title {
        font-size: 20px;
    }
}

/* 版块3：About Us */
.about-section {
    background: url('/wp-content/uploads/2026/07/ABOUT-US-bg.jpg') center/cover no-repeat;
    padding: 60px 0 160px;
    position: relative;
}
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-text {
    flex: 1;
    color: #fff;
}
.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 16px;
    line-height: 1.8;
}
.about-image {
    flex: 1;
    text-align: right;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    .about-image {
        text-align: center;
    }
}

/* 版块5：统计数字 */
.stats-section {
    background-color: transparent;
    padding: 0;
    margin-top: -120px;
    margin-bottom: -120px;
    position: relative;
    z-index: 2;
}
.stats-section .container-1440 {
    max-width: 1180px;
    background-color: #fff;
    padding: 60px 0;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    gap: 0;
}
.stat-item {
    flex: 1;
    min-width: 0;
    padding: 0 25px;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5%;
    bottom: 5%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.3);
}
.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #7b7b7b;
}
.stat-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}
@media (max-width: 768px) {
    .stat-item {
        padding: 20px 0;
        flex: 100%;
    }
    .stat-item:not(:last-child)::after {
        display: none;
    }
    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }
}

/* 版块4：Solution */
.solution-section {
    padding: 160px 0 60px;
    background-color: #fff;
}
.solution-section h2 {
    text-align: center;
    margin-bottom: 20px;
}
.solution-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}
.solution-placeholder {
    text-align: center;
}
.solution-placeholder img {
    max-width: 100%;
    height: auto;
}

/* 版块6：Field Test */
.field-section {
    background: url('/wp-content/uploads/2026/07/test-data-bg-1.jpg') center/cover no-repeat;
    padding: 60px 0;
    color: #fff;
}
.field-section h2 {
    text-align: center;
    margin-bottom: 20px;
}
.field-section .subtitle {
    text-align: center;
    margin-bottom: 40px;
}
.field-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.6);
}
.field-table th,
.field-table td {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 15px;
    text-align: left;
}
.field-table th {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* ===== 版块7：Case Studies（首页） ===== */
.case-studies-section {
    padding: 80px 0;
    background-color: #fff;
}
.case-studies-section h2 {
    display: block !important;
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}
.case-studies-section .subtitle {
    display: block !important;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.case-card {
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.case-card:hover {
    transform: translateY(-5px);
}

/* 覆盖 core.css 中可能影响图片和卡片布局的样式 */
.case-studies-section .case-img-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
}
.case-card .img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    font-size: 0 !important;    /* 清除空白 */
    line-height: 0 !important;  /* 清除空白 */
}
.case-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}
.case-card .card-body {
    padding: 20px;
}
.case-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.case-card h3 a {
    text-decoration: none;
    color: #333;
}
.case-card h3 a:hover {
    color: #e67e22;
}
.case-card p {
    font-size: 14px;
    color: #666;
}
.no-results {
    text-align: center;
    grid-column: 1 / -1;
}
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Manufacturing Powerhouse ===== */
.manufacturing-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: auto;
    overflow: hidden;
    background: #fffa;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}
.manufacturing-title {
    position: static;
    letter-spacing: 2px;
    text-align: center;
    padding: 40px 20px 25px;
    margin: 0;
    white-space: nowrap;
    transform: none;
}
.manufacturing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 580px;
    gap: 20px;
    padding: 0;
}
.gallery-item {
    background-size: cover;
    background-position: center;
    transition: filter 0.8s ease;
    filter: brightness(0.85);
    border-radius: 10px;
    overflow: hidden;
}
.gallery-item:hover {
    filter: brightness(1);
}
.item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.item-3 { grid-column: 3 / 4; grid-row: 1 / 2; }
.item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.item-5 { grid-column: 3 / 4; grid-row: 2 / 3; }
@media (max-width: 768px) {
    .manufacturing-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    .manufacturing-title {
        font-size: 1.8rem;
        white-space: normal;
        padding: 30px 15px 20px;
    }
    .manufacturing-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 6px;
    }
    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1 / 1;
    }
    .item-1 {
        grid-column: span 2;
        aspect-ratio: 2 / 1;
    }
}

/* ===== 版块10：News & Events ===== */
.news-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.news-section h2 {
    text-align: center;
    margin-bottom: 10px;
}
.news-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card .img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.news-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card .card-body {
    padding: 20px;
}
.news-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.news-card h3 a {
    text-decoration: none;
    color: #333;
}
.news-card p {
    font-size: 14px;
    color: #666;
}
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Send Us a Message 表单区块 ===== */
.contact-section {
    position: relative;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.contact-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.contact-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    min-height: 500px;
}
.contact-left {
    flex: 1;
}
.contact-right {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}
.form-content {
    padding: 60px 0 60px 60px;
    color: #fff;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.form-content h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 700;
    color: #fff;
}
.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}
.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}
.form-submit-wrapper {
    text-align: right;
}
.contact-form button {
    display: inline-block;
    width: auto;
    padding: 14px 40px;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background: #cf6d17;
}
@media (max-width: 768px) {
    .contact-bg-overlay {
        width: 100%;
    }
    .contact-layout {
        flex-direction: column;
    }
    .contact-left {
        display: none;
    }
    .contact-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .form-content {
        padding: 40px 20px;
    }
    .form-content h3 {
        text-align: center;
    }
    .contact-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .form-submit-wrapper {
        text-align: center;
    }
}

/* 标题链接继承父级样式，保持视觉不变 */
.section-title a,
.about-text h2 a,
.solution-section h2 a,
.field-section h2 a,
.case-studies-section h2 a,
.manufacturing-title a,
.news-section h2 a,
.form-content h3 a {
    text-decoration: none;      /* 去掉下划线 */
    color: inherit;            /* 继承父级文字颜色 */
    font: inherit;             /* 继承字体大小、粗细、行高等 */
    background: transparent;   /* 保证背景透明 */
    display: inline;           /* 不破坏块级布局 */
    border: none;              /* 去掉可能出现的边框 */
    outline: none;             /* 去掉焦点轮廓 */
    cursor: pointer;           /* 保留鼠标手型，提示可点击（可选） */
}

