/*
Theme Name: 雷赛和面机落地页主题
Description: 专为WordPress 6.8.2设计的雷赛和面机落地页主题，一键导入即可使用
Author: 雷赛团队
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8.2
Requires PHP: 8.0
Text Domain: leesay
*/

/* WordPress 6.8.2 兼容性重置 */
.site-header,
.site-footer,
.entry-header,
.entry-footer,
.post-navigation,
.comments-area {
    display: none !important;
}

.site-main {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* WordPress 6.8.2 管理栏适配 */
body.admin-bar .header {
    padding-top:0px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        padding-top: 0px;
    }
}

/* ==================== 移动端防拖动 ==================== */

/* 防止移动端橡皮筋效果和过度滚动 */
html {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    width: 100%;
}

body {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 防止所有元素溢出 */
* {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* 移动端特定防拖动 */
@media (max-width: 768px) {
    html {
        touch-action: pan-y pinch-zoom;
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        touch-action: pan-y pinch-zoom;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 防止图片和链接被拖动 */
    img {
        -webkit-user-drag: none;
        -webkit-touch-callout: none;
        pointer-events: none;
    }
    
    a {
        -webkit-user-drag: none;
        -webkit-touch-callout: none;
    }
    
    /* 允许表单元素正常操作 */
    input, 
    textarea, 
    select, 
    button,
    .btn {
        touch-action: manipulation;
        -webkit-user-select: auto;
        user-select: auto;
        pointer-events: auto;
    }
    
    /* 允许链接和按钮点击 */
    a,
    button,
    .btn {
        pointer-events: auto;
    }
}

/* ==================== 原始样式开始 ==================== */

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

:root {
    --primary-purple: #2d1744;
    --light-purple: #6a3a9a;
    --white-color: #ffffff;
    --text-color-secondary: rgba(255, 255, 255, 0.8);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: var(--white-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 确保第一个元素没有顶部间距 */
body > *:first-child {
    margin-top: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background-color: var(--primary-purple) !important;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 滚动后的导航栏效果（可选，通过JS添加scrolled类） */
.header.scrolled {
    background-color: var(--primary-purple) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    background-color: var(--white-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color-secondary);
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--white-color);
}

.get-started-btn {
    background-color: var(--white-color);
    color: #000;
    font-weight: bold;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero {
    background: url('https://img.jegary.com/luodiye/leapay/assets/img/home.webp') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* 为固定导航栏预留空间 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270.00deg, rgba(0, 0, 0, 0),rgba(3, 2, 0, 1) 57%,rgba(9, 9, 9, 1) 100%),
                linear-gradient(to top, rgba(28, 5, 50, 0.7), transparent 30%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
}

.features {
    display: flex;
    gap: 15px;
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-color-secondary);
}

.features span:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: #f39c12;
}


.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    border: 1px solid var(--light-purple);
}

.hero-buttons .btn:hover {
    background: linear-gradient(90deg, #a445f2, #6a1cf3);
}

.hero-buttons .btn img {
    height: 20px;
    width: 20px;
}

.note {
    font-size: 14px;
    color: var(--text-color-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .get-started-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: min(70vw, 300px); /* Use 70% of viewport width, but no more than 300px */
        background-color: var(--primary-purple) !important;
        
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        gap: 20px;

        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger-menu {
        display: block;
        z-index: 101; /* Ensure hamburger is above the drawer */
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo {
        border-radius: 0 0 15px 15px;
        padding: 15px;
        max-width: 150px;
    }
    
    .logo img {
        max-width: 100%;
        height: auto;
    }

    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    .hero {
        height: auto;
        min-height: auto;
        padding: 100px 0 40px; /* 减少padding */
        text-align: left;
        background: var(--primary-purple) !important;
        align-items: flex-start;
        overflow: hidden;
    }
    .hero::before {
        display: none;
    }
    .hero::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: 0;
        right: 0;
        height: 40%;
        background: url('https://img.jegary.com/luodiye/leapay/assets/img/home.webp') no-repeat;
        background-position: 80% 100%;
        background-size: contain;
        opacity: 0.6;
        pointer-events: none;
    }
    .hero .container {
        display: flex;
        position: relative;
        z-index: 1;
        width: 100%;
    }
    .hero-content {
        margin: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-content .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .features {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .features span {
        white-space: nowrap;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
        margin-bottom: 0;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: none;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
    }
    .note {
        display: none;
    }
}

/* 针对小屏幕手机优化 (360px-480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 0;
    }
    
    .navbar {
        padding: 0;
    }
    
    .logo {
        padding: 12px;
        max-width: 120px;
    }
    
    .hamburger-menu {
        padding: 10px;
    }
    
    .hero {
        min-height: auto;
        padding: 90px 0 30px; /* 为固定导航栏留空间 */
    }
    
    .hero::after {
        height: 35%;
        bottom: -30px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .hero-content h1 br {
        display: none;
    }
    
    .hero-content .subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .features {
        font-size: 13px;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .hero-buttons .btn img {
        height: 18px;
        width: 18px;
    }
    
    .hero-buttons .btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 针对超小屏幕优化 (<360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .features {
        font-size: 12px;
    }
}

/* --- Page Content (Light Theme) --- */
.page-content {
    background-color: #fff;
    color: #333;
    flex-grow: 1;
}

/* --- Certification Section --- */
.certification-section {
    padding: 80px 0;
}

.certification-section .container {
    /* Styles moved to .certification-content */
}

.certification-content {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 60px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.certification-text {
    flex-basis: 50%;
}

.certification-text h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 48px;
}

.certification-text p {
    font-size: 21px;
    color: #6c757d;
    line-height: 1.7;
}

.certification-images {
    flex-basis: 50%;
}

.certification-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* --- Hot Selling Section --- */
.hot-selling-section {
    padding: 80px 0;
    text-align: center;
}

.hot-selling-section h2 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 50px;
}

.product-card {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.product-card .product-model {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: 0;
}

.product-info {
    background-color: #fff;
    padding: 20px;
    margin: 20px -20px -20px -20px;
    border-radius: 0 0 18px 18px;
}

.product-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info .sales-info {
    font-size: 18px;
    color: #212529;
    font-weight: 700;
}

.product-info .sales-info strong {
    font-size: 24px;
    margin-right: 4px;
}

/* --- Quote Section --- */
.quote-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.quote-section p {
    font-size: 26px;
    color: #6c757d;
}

.quote-btn {
    background: linear-gradient(90deg, rgba(123, 59, 224, 1), rgba(86, 27, 169, 1));
    color: var(--white-color);
    border: none;
    padding: 12px 28px;
    width: 228px;
}

.quote-btn img {
    filter: brightness(0) invert(1);
    height: 18px;
    width: 18px;
}

/* --- Features Comparison Section --- */
.features-comparison-section {
    padding: 80px 0;
}

.feature-block {
    margin-bottom: 80px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block h3 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 16px; /* Keep radius on parent for shadow shape */
}

.feature-card img {
    width: 100%;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 746 / 564;
    position: relative; /* Ensure image is on top of the shadow layer */
    z-index: 1;
}

.overlay-btn {
    position: absolute;
    bottom: 43px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 247px;
    height: 48px;
    background: linear-gradient(90deg, rgba(123, 59, 224, 1), rgba(86, 27, 169, 1));
    color: var(--white-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.overlay-btn img {
    filter: brightness(0) invert(1);
    height: 20px;
    width: 20px;
}

/* --- Mobile Responsive for Page Content --- */
@media (max-width: 768px) {
    /* Certification Section Mobile */
    .certification-section {
        padding: 15px 0;
    }
    .certification-section .container {
        /* This override is no longer needed */
    }
    .certification-content {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    .certification-text {
        text-align: center;
    }
    .certification-text h2 {
        font-size: 24px;
    }
    .certification-text p {
        font-size: 16px;
    }

    /* Hot Selling Section Mobile */
    .hot-selling-section {
        padding: 15px 0;
    }
    .hot-selling-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 0;
    }
    .product-info p {
        font-size: 14px;
    }
    .product-info .sales-info {
        font-size: 15px;
    }
    .product-info .sales-info strong {
        font-size: 18px;
    }
    .quote-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    .quote-section p {
        font-size: 18px;
    }

    /* Features Comparison Section Mobile */
    .features-comparison-section {
        padding: 40px 0;
    }
    .feature-block {
        margin-bottom: 40px;
    }
    .feature-block h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .overlay-btn {
        width: 90%;
        bottom: 20px;
        height: 40px;
        font-size: 14px;
    }
    .overlay-btn img {
        height: 16px;
        width: 16px;
    }
}

/* --- Motor Advantages Section --- */
.motor-advantages-section {
    padding: 80px 0;
    /* This will prevent horizontal scrollbars caused by negative margins */
    overflow-x: clip; 
}

.advantage-block {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    justify-content: flex-end; /* Align content to the right for the default block */
}

.advantage-block:last-child {
    margin-bottom: 0;
}

.advantage-block.reverse-layout {
    flex-direction: row-reverse;
}

.advantage-image {
    width: 688px;
    height: 472px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

.advantage-text {
    --container-max-width: 1440px;
    --bleed-margin: calc((100vw - var(--container-max-width)) / 2 + 20px);

    background-color: #fff; /* Restored white background */
    border-radius: 16px 0 0 16px; /* Corrected border-radius */
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 692px;
    display: flex;
    align-items: center;
    
    /* Replicating JS logic: increase width and apply negative margin */
    width: calc(50% + 245px + var(--bleed-margin));
    margin-right: calc(-1 * var(--bleed-margin));
}

.text-content-wrapper {
    max-width: 726px;
    overflow: auto;
    margin-left: 216px; /* Align to the right by default */
}

.advantage-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.advantage-text p:not(.chart-note) {
    color: #000;
    line-height: 1.8;
    font-size: 20px;
    text-align: justify;
}

.durability-chart {
    margin-top: 30px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bar-item .label {
    width: 120px;
    font-size: 14px;
    color: #6c757d;
}

.bar-container {
    flex-grow: 1;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(123, 59, 224, 1), rgba(86, 27, 169, 1));
    border-radius: 10px;
}

.bar-item .value {
    font-weight: 700;
    font-size: 18px;
}

.chart-note {
    text-align: right;
    font-size: 12px;
    margin-top: 10px;
}

/* --- Mobile Responsive for Motor Advantages --- */
@media (max-width: 768px) {
    .motor-advantages-section {
        padding: 40px 0;
    }

    .advantage-block {
        /* Stack text on top of image */
        flex-direction: column-reverse;
        margin-bottom: 40px;
        /* Ensure no card styles on the container */
        background-color: transparent;
        box-shadow: none;
    }

    .advantage-image {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        /* The image is a standalone card now, round all corners */
        border-radius: 16px;
    }

    .advantage-text {
        width: 100%;
        height: auto;
        margin-right: 0;
        /* Remove card styles as per design */
        background-color: transparent;
        box-shadow: none;
        padding: 0 5px 30px 5px; /* Adjust padding for spacing */
        border-radius: 0;
    }

    .text-content-wrapper {
        margin-left: 0;
        max-width: 100%;
    }

    .advantage-text h3 {
        font-size: 28px;
        text-align: center;
    }

    .advantage-text p:not(.chart-note) {
        font-size: 16px;
        text-align: justify;
    }
}

/* --- Durable Motor Card Section --- */
.durable-motor-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #f8f9fa;
}

.motor-card-title {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    padding: 50px 50px 0;
}

.motor-image-container {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motor-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    padding: 20px;
}

.motor-stats-content {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 0 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.progress-group {
    /* This container is no longer needed for vertical centering, 
       as the parent .motor-stats-content handles it.
       Kept for semantic grouping. */
}

.motor-progress-item {
    margin-bottom: 25px;
}
.motor-progress-item:last-child {
    margin-bottom: 0;
}

.progress-bar-row {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between bar and value */
}

.progress-value {
    color: #333;
    font-weight: bold;
    font-size: 22px;
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.progress-bar-wrapper {
    height: 32px;
    background-color: #e9ecef;
    border-radius: 16px;
    flex-grow: 1;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    border-radius: 16px;
}

.usage-note {
    text-align: right;
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

/* --- Mobile Responsive for Durable Motor Card --- */
@media (max-width: 768px) {
    .durable-motor-card {
        display: flex;
        flex-direction: column;
    }

    .motor-card-title {
        padding: 30px 20px 20px;
        font-size: 28px;
    }

    .motor-image-container {
        /* The image keeps its rounded corners from the parent card's overflow:hidden */
    }

    .motor-stats-content {
        padding: 30px 20px;
    }

    .progress-bar-wrapper {
        height: 24px;
        border-radius: 12px;
    }
    
    .progress-bar-inner {
        border-radius: 12px;
    }

    .progress-value {
        font-size: 18px;
    }
}

/* --- Showcase Section --- */
.showcase-section {
    padding: 80px 0;
    text-align: center;
}

.showcase-header, .customization-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.showcase-header h2, .customization-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.showcase-header p {
    font-size: 18px;
    line-height: 1.7;
    color: #6c757d;
}

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

.showcase-gallery img,
.showcase-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.customization-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.custom-card {
    /* Card styles removed as per request */
}

.custom-card img {
    width: 100%;
    display: block;
    border-radius: 16px; /* Applying border-radius directly to the image */
}

.custom-card-info {
    padding: 25px;
}

.card-category {
    font-size: 14px;
    color: #6c757d;
    display: block;
    margin-bottom: 8px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.customization-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.customization-cta p {
    font-size: 18px;
    color: #6c757d;
}

.customization-cta .btn {
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    color: #fff;
    border: none;
}

.customization-cta .btn img {
    filter: brightness(0) invert(1);
    height: 16px;
}

/* --- Mobile Responsive for Showcase Section --- */
@media (max-width: 768px) {
    .showcase-section {
        padding: 40px 0;
    }

    .showcase-header h2, .customization-header h2 {
        font-size: 28px;
    }

    .showcase-header p {
        font-size: 16px;
    }

    .showcase-gallery {
        /* Keep the 3-column layout on mobile as per the design */
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 60px;
    }

    .customization-cards {
        grid-template-columns: 1fr;
    }

    .customization-cta {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .customization-cta .btn {
        width: 100%;
        max-width: 300px; /* Prevent button from being too wide */
    }
}

/* --- Partners & Testimonials Section --- */
.partners-testimonials-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 -10px 20px -10px rgba(0,0,0,0.1), 0 10px 20px -10px rgba(0,0,0,0.1);
    position: relative; /* Needed for shadow to appear correctly */
    z-index: 10; /* Ensure it's above other elements if needed */
}

.partners-header, .testimonials-header {
    margin-bottom: 40px;
}

.partners-header h2, .testimonials-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
}

.partner-logos {
    margin-bottom: 80px;
}

.partner-logos img {
    max-width: 100%;
    height: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
    margin-bottom: 60px;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    min-height: 50px; /* 确保有足够高度 */
}

.testimonial-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.stars-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
}

.star.full {
    color: #8E2DE2;
}

.star.empty {
    color: #D8D8D8;
}

.star.partial {
    position: relative;
    color: #D8D8D8;
}

.star.partial::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fill, 0%);
    color: #8E2DE2;
    overflow: hidden;
}


.rating-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.testimonials-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.testimonials-cta p {
    font-size: 18px;
    color: #6c757d;
}

.testimonials-cta .btn {
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    color: #fff;
    border: none;
}

/* --- After-sales Service Section --- */
.after-sales-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.after-sales-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.after-sales-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.after-sales-header p {
    font-size: 18px;
    line-height: 1.7;
    color: #6c757d;
    text-align: center;
}

.world-map {
    max-width: 1000px;
    margin: 0 auto;
}

.world-map img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Contact Form Section --- */
.contact-form-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.contact-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.procurement-cycle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
}

.description {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    max-width: 100%;
}

/* PC端布局 - 匹配设计图 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 两列字段（姓名、邮箱） */
.form-row.two-columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 全宽字段（产品选择、详细需求） */
.form-row.full-width {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

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

.form-group p {
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
    min-height: 44px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.privacy-note {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 20px;
    margin-top: 10px;
}

.submit-btn {
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #a445f2, #6a1cf3);
    transform: translateY(-2px);
}

/* --- Mobile Responsive for Partners & Testimonials Section --- */
@media (max-width: 768px) {
    .partners-testimonials-section {
        padding: 40px 0;
    }

    .partners-header h2, .testimonials-header h2 {
        font-size: 28px;
    }

    .partner-logos {
        margin-bottom: 40px;
    }

    .partner-logos img {
        content: url('https://img.jegary.com/luodiye/leapay/assets/img/mbrands.png'); /* 移动端使用不同的品牌图片 */
    }

    .testimonials-grid {
        display: grid;
        grid-template-rows: repeat(2, 1fr); /* 2行 */
        grid-auto-flow: column; /* 让内容按列排列 */
        grid-auto-columns: 85vw; /* 每列宽度为屏幕的85% */
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-bottom: 40px;
        padding: 0 10px 10px 10px; /* 左右各10px内边距 */
        -webkit-overflow-scrolling: touch;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 */
    }

    /* 对于Firefox浏览器隐藏滚动条 */
    .testimonials-grid {
        scrollbar-width: none;
    }

    .testimonial-card {
        padding: 20px;
        scroll-snap-align: start;
        width: 80vw; /* 直接设置卡片宽度为屏幕的80% */
        max-width: 80vw;
        min-width: 80vw;
    }

    .testimonial-card .card-footer {
        margin-bottom: 15px;
        min-height: 40px;
    }

    .testimonial-card .avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-card p {
        font-size: 12px; /* 从14px缩小到12px */
        line-height: 1.5;
    }

    .star {
        font-size: 16px; /* 从20px缩小到16px */
    }

    .rating-value {
        font-size: 14px; /* 从16px缩小到14px */
    }

    .testimonials-cta {
        flex-direction: column;
        gap: 20px;
    }

    .testimonials-cta p {
        font-size: 16px;
        text-align: center;
    }

    .testimonials-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* --- Mobile Responsive for After-sales Service Section --- */
@media (max-width: 768px) {
    .after-sales-section {
        padding: 40px 0;
    }

    .after-sales-header {
        margin: 0 auto 40px;
    }

    .after-sales-header h2 {
        font-size: 28px;
    }

    .after-sales-header p {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .world-map {
        max-width: 100%;
        padding: 0 10px;
    }

    .world-map img {
        border-radius: 8px;
    }
}

/* --- Mobile Responsive for Contact Form Section --- */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 40px 0;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .contact-text h2 {
        font-size: 28px;
        text-align: center;
    }

    .procurement-cycle {
        text-align: center;
        font-size: 14px;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .contact-form {
        padding: 25px 20px;
    }

    /* 移动端垂直排列 */
    .form-row,
    .form-row.two-columns,
    .form-row.full-width {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 16px;
    }

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

    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
        color: #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        color: #333;
        border-radius: 8px;
    }

    .privacy-note {
        font-size: 12px;
        text-align: center;
        margin-bottom: 25px;
    }

    .submit-btn {
        padding: 18px 40px;
        font-size: 16px;
        border-radius: 8px;
    }
}

/* --- Transport Packaging Section --- */
.transport-packaging-section {
    padding: 80px 0;
    background-color: #fff;
}

.packaging-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.packaging-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.packaging-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.packaging-description:last-child {
    margin-bottom: 0;
}

.packaging-main-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.packaging-main-image img {
    width: 100%;
    height: auto;
}

.packaging-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.packaging-gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.packaging-gallery img:hover {
    transform: translateY(-5px);
}

/* --- Mobile Responsive for Transport Packaging Section --- */
@media (max-width: 768px) {
    .transport-packaging-section {
        padding: 40px 0;
    }

    .packaging-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .packaging-text h2 {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }

    .packaging-description {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 15px;
    }

    .packaging-main-image img {
        width: 100%;
        height: auto;
    }

    .packaging-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .packaging-gallery img {
        width: 100%;
        height: auto;
        transition: none;
    }

    .packaging-gallery img:hover {
        transform: none;
    }
}

/* --- About Us Section --- */
.about-us-section {
    position: relative;
    padding: 0;
}

.about-content {
    background: linear-gradient(180.00deg, rgba(31, 9, 51, 1), rgba(103, 151, 203, 1) 100%);
    height: 735px;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 2;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.about-content .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us-section h2 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.about-text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.about-column p {
    font-size: 24px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.about-column p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

/* PC端竖线分割 - 3条分割线分成4个区域 */
.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.about-stats::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.stat-item:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.about-factory-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -80px;
    z-index: 1;
}

.about-factory-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsive for About Us Section --- */
@media (max-width: 768px) {
    .about-content {
        height: auto;
        padding: 40px 0;
    }

    .about-content .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .about-us-section h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .about-text-columns {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .about-column p {
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 15px;
    }

    .about-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px;
        max-width: 100%;
        position: relative;
    }

    /* 移动端重置PC端的竖线分割 */
    .about-stats::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        width: auto;
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%);
    }

    .about-stats::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateX(-50%);
    }

    /* 移动端隐藏PC端的stat-item分割线 */
    .stat-item::before,
    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 48px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 12px;
        line-height: 1.3;
    }

    .about-factory-image {
        margin-top: -40px;
    }
}

/* --- Factory Pictures Section --- */
.factory-pictures-section {
    padding: 80px 0;
    background-color: #fff;
}

.factory-section-divider {
    width: 144px;
    height: 2px;
    background: linear-gradient(90deg, #8E2DE2 0%, #4A00E0 100%);
    margin: 40px auto 0 auto;
    border-radius: 1px;
}

.factory-pictures-content {
    display: grid;
    grid-template-columns: 358px 1fr;
    gap: 40px;
    align-items: center;
}

.factory-text {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 358px;
    height: 478px;
}

.factory-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
}

.factory-icon {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: auto;
}

.factory-icon img {
    width: 170px;
    height: auto;
    margin-right: -45px;
}

.factory-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 478px;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
}

.gallery-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-row img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Mobile Responsive for Factory Pictures Section --- */
@media (max-width: 768px) {
    .factory-pictures-section {
        padding: 40px 0;
    }

    .factory-pictures-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
        height: 480px;
    }

    .factory-text {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        background-color: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        height: 100%;
    }

    .factory-text h2 {
        font-size: 20px;
        margin-bottom: 0;
        text-align: left;
        line-height: 1.2;
    }

    .factory-icon {
        justify-content: flex-end;
        align-items: flex-end;
        margin-top: auto;
    }

    .factory-icon img {
        width: 130px;
        margin-right: -24px;
    }

    .factory-gallery {
        display: contents;
        height: auto;
    }

    .gallery-row {
        display: contents;
    }

    .gallery-row:first-child img:nth-child(1) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .gallery-row:first-child img:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .gallery-row:first-child img:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .gallery-row:last-child img:nth-child(1) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .gallery-row:last-child img:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }

    .gallery-row:last-child img:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }

    .gallery-row img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        transition: none;
    }

    .gallery-row img:hover {
        transform: none;
        box-shadow: none;
    }
}

/* --- Participation Section --- */
.participation-section {
    padding: 80px 0 100px 0;
    background-color: #fff;
    min-height: auto;
    overflow: visible;
}

.participation-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px 480px;
    gap: 20px;
    margin-bottom: 60px;
}

.participation-text {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 420px;
}

.participation-text h2 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
    text-align: left;
}

.participation-icon {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: auto;
}

.participation-icon img {
    width: 145px;
    height: auto;
    margin-right: -30px;
}

.participation-gallery {
    display: contents;
}

.gallery-grid {
    display: contents;
}

/* 上部分：2行4列（第1列被卡片占用） */
.gallery-grid img:nth-child(1) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-grid img:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-grid img:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.gallery-grid img:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-grid img:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.gallery-grid img:nth-child(6) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* 下部分：1行4列（列高等于上部分两行高度之和） */
.gallery-grid img:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-grid img:nth-child(8) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.gallery-grid img:nth-child(9) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.gallery-grid img:nth-child(10) {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

/* 上部分图片高度 */
.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(2),
.gallery-grid img:nth-child(3),
.gallery-grid img:nth-child(4),
.gallery-grid img:nth-child(5),
.gallery-grid img:nth-child(6) {
    height: 200px;
}

/* 下部分图片高度（等于上部分两行高度+间距） */
.gallery-grid img:nth-child(7),
.gallery-grid img:nth-child(8),
.gallery-grid img:nth-child(9),
.gallery-grid img:nth-child(10) {
    height: 480px;
}

.gallery-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Factory Visit Content --- */
.factory-visit-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    text-align: center;
}

.visit-text h2 {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

.visit-button {
    flex-shrink: 0;
}

.visit-btn {
    background: linear-gradient(90deg, #8E2DE2, #4A00E0);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.visit-btn:hover {
    background: linear-gradient(90deg, #a445f2, #6a1cf3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 45, 226, 0.3);
}

.btn-icon {
    font-size: 12px;
}

/* --- Mobile Responsive for Participation Section --- */
@media (max-width: 768px) {
    .participation-section {
        padding: 40px 0 60px 0;
    }

    .participation-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 80px 80px 80px 80px 230px 230px;
        gap: 10px;
        margin-bottom: 30px;
        height: auto;
    }

    .participation-text {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        height: 170px;
        padding: 15px;
    }

    .participation-text h2 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .participation-icon img {
        width: 75px;
        margin-right: -15px;
    }

    /* 上部分：2列4行（第1列第1-2行被卡片占用） */
    .gallery-grid img:nth-child(1) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        height: 80px;
    }

    .gallery-grid img:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        height: 80px;
    }

    .gallery-grid img:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        height: 80px;
    }

    .gallery-grid img:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        height: 80px;
    }

    .gallery-grid img:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        height: 80px;
    }

    .gallery-grid img:nth-child(6) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
        height: 80px;
    }

    /* 下部分：2列2行（每行高度等于上部分两行+间距） */
    .gallery-grid img:nth-child(7) {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
        height: 230px;
    }

    .gallery-grid img:nth-child(8) {
        grid-column: 2 / 3;
        grid-row: 5 / 6;
        height: 230px;
    }

    .gallery-grid img:nth-child(9) {
        grid-column: 1 / 2;
        grid-row: 6 / 7;
        height: 230px;
    }

    .gallery-grid img:nth-child(10) {
        grid-column: 2 / 3;
        grid-row: 6 / 7;
        height: 230px;
    }

    .factory-visit-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .visit-text h2 {
        font-size: 14px;
        text-align: center;
    }

    .visit-btn {
        padding: 10px 20px;
        font-size: 12px;
        width: 200px;
        justify-content: center;
    }
}

/* --- Footer Section --- */
.footer-section {
    background-image: url('https://img.jegary.com/luodiye/leapay/assets/img/foot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    color: #fff;
    position: relative;
}


.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    width: 86px;
    height: auto;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin: 5px 0;
}

.footer-info p:first-child {
    font-weight: 600;
    font-size: 14px;
}

/* --- Mobile Responsive for Footer Section --- */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        order: -1;
        margin-bottom: 10px;
    }

    .footer-logo img {
        width: 60px;
        margin-bottom: 15px;
    }

    .footer-info p {
        font-size: 12px;
        line-height: 1.3;
        margin: 3px 0;
    }

    .footer-info p:first-child {
        font-size: 13px;
        font-weight: 600;
    }

    .footer-contact {
        gap: 15px;
        align-items: center;
    }

    .contact-item {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .contact-item span {
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
    }
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #5855eb, #7c3aed);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 浮动询盘按钮样式 */
.inquiry-button {
    position: fixed;
    top: 70%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    box-shadow: -3px 0 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 15px 20px 15px 15px;
    min-width: 120px;
    animation: pulse 2s infinite;
}

.inquiry-button:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    box-shadow: -5px 0 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-50%) translateX(-5px);
    animation: none;
}

.inquiry-button .inquiry-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-button .inquiry-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* 询盘弹窗样式 */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inquiry-modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 25px;
}

.submission-success {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.submission-success.show {
    display: flex;
}

.success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.success-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    text-align: center;
    animation: successPop 0.3s ease-out;
    color: #1f2937;
}

.success-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.success-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
}

.success-dialog h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.success-dialog p {
    margin: 0 0 24px;
    color: #6b7280;
    line-height: 1.6;
}

.success-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.25);
}

.success-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, #e55a2b, #e8841a);
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .success-dialog {
        padding: 32px 24px;
        max-width: 360px;
    }

    .success-dialog h3 {
        font-size: 20px;
    }

    .success-dialog p {
        font-size: 14px;
    }

    .success-primary-btn {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .success-dialog {
        padding: 28px 20px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
}

.modal-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.inquiry-form label {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-submit {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .inquiry-button {
        padding: 12px 15px 12px 12px;
        min-width: 100px;
        border-radius: 20px 0 0 20px;
    }
    
    .inquiry-button .inquiry-text {
        font-size: 13px;
    }
    
    .inquiry-button .inquiry-icon {
        margin-right: 6px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .inquiry-button {
        padding: 10px 12px 10px 10px;
        min-width: 90px;
    }
    
    .inquiry-button .inquiry-text {
        font-size: 12px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .inquiry-form input,
    .inquiry-form select,
    .inquiry-form textarea {
        padding: 12px;
    }
}

/* 提交按钮加载状态 */
.btn-submit {
    position: relative;
    min-width: 140px;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 表单状态显示样式 */
.form-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.status-success,
.status-error {
    text-align: center;
    padding: 40px 30px;
    max-width: 400px;
}

.status-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-success h3,
.status-error h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1f2937;
}

.status-success p,
.status-error p {
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.btn-back-home {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back-home:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-retry {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    background: linear-gradient(135deg, #e55a2b, #e8841a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 状态显示动画 */
.form-status {
    animation: statusSlideIn 0.3s ease-out;
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端状态显示适配 */
@media (max-width: 768px) {
    .status-success,
    .status-error {
        padding: 30px 20px;
    }
    
    .status-success h3,
    .status-error h3 {
        font-size: 20px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .btn-retry,
    .btn-back-home {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .status-success,
    .status-error {
        padding: 25px 15px;
    }
    
    .status-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .status-success h3,
    .status-error h3 {
        font-size: 18px;
    }
}

/* =============================================== */
/* Contact Form 7 样式优化 */
/* =============================================== */

.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 表单行布局 */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wpcf7-form .form-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

.wpcf7-form .form-row.full-width {
    grid-template-columns: 1fr;
}

.wpcf7-form .form-group {
    display: flex;
    flex-direction: column;
}

/* 标签样式 */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

/* 输入框样式 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--light-purple);
    box-shadow: 0 0 0 3px rgba(106, 58, 154, 0.1);
    background: #fff;
}

/* 下拉选择框优化 */
.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* 文本域样式 */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* 提交按钮样式 */
.wpcf7-form input[type="submit"] {
    background: var(--primary-purple);
    color: var(--white-color);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    align-self: flex-start;
    min-width: 150px;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 58, 154, 0.3);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* 隐私声明样式 */
.wpcf7-form .privacy-note {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    margin: 10px 0;
    font-style: italic;
}

/* 成功/错误消息样式 */
.wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-spam-blocked {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 验证错误样式 */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* 加载状态 */
.wpcf7-form.submitting input[type="submit"] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wpcf7-form.submitting input[type="submit"]:after {
    content: " 发送中...";
}

/* 备用表单样式 (Contact Form 7未安装时) */
.backup-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.backup-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.backup-contact-form .form-row.two-columns {
    grid-template-columns: 1fr 1fr;
}

.backup-contact-form .form-row.full-width {
    grid-template-columns: 1fr;
}

.backup-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.backup-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.backup-contact-form input,
.backup-contact-form select,
.backup-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.backup-contact-form input:focus,
.backup-contact-form select:focus,
.backup-contact-form textarea:focus {
    outline: none;
    border-color: var(--light-purple);
    box-shadow: 0 0 0 3px rgba(106, 58, 154, 0.1);
    background: #fff;
}

.backup-contact-form button {
    align-self: flex-start;
}

/* 表单样式优化 - 强制覆盖所有样式 */
.contact-form .wpcf7-form input,
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea,
.contact-form .backup-contact-form input,
.contact-form .backup-contact-form select,
.contact-form .backup-contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
}

.contact-form .wpcf7-form textarea,
.contact-form .backup-contact-form textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* 主表单：短字段（姓名、邮箱）同行显示 - 匹配设计图 */
.contact-form .form-row.two-columns .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.contact-form .form-row.two-columns .form-group label {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.contact-form .form-row.two-columns .form-group input {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 长字段（产品选择、详细需求）保持垂直布局 - 匹配设计图 */
.contact-form .form-row.full-width .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.contact-form .form-row.full-width .form-group label {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    color: #333 !important;
    font-weight: 500 !important;
    min-width: auto !important;
}

.contact-form .form-row.full-width .form-group select,
.contact-form .form-row.full-width .form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 确保full-width容器本身占满宽度 */
.contact-form .form-row.full-width {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.contact-form .form-row.full-width .form-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 强制全宽显示 - 最高优先级 */
.contact-form,
.contact-form * {
    box-sizing: border-box !important;
}

.contact-form .form-row {
    width: 100% !important;
    max-width: 100% !important;
}

.contact-form .form-row.full-width,
.wpcf7-form .form-row.full-width,
.backup-contact-form .form-row.full-width {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.contact-form .form-row.full-width .form-group,
.wpcf7-form .form-row.full-width .form-group,
.backup-contact-form .form-row.full-width .form-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 强制所有输入字段占满宽度 */
.contact-form .form-row.full-width .form-group select,
.contact-form .form-row.full-width .form-group textarea,
.wpcf7-form .form-row.full-width .form-group select,
.wpcf7-form .form-row.full-width .form-group textarea,
.backup-contact-form .form-row.full-width .form-group select,
.backup-contact-form .form-row.full-width .form-group textarea,
.contact-form select,
.contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* 弹窗表单：所有字段垂直排列 */
.inquiry-form .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.inquiry-form label {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    margin-right: 0 !important;
    color: #333 !important;
    min-width: auto !important;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100% !important;
    margin: 0 !important;
}

/* 终极修复 - 覆盖所有可能的样式冲突 */
.contact-form-section .contact-form .wpcf7-form select[name="your-product"],
.contact-form-section .contact-form .backup-contact-form select[name="product"],
.contact-form-section .contact-form .wpcf7-form textarea[name="your-message"],
.contact-form-section .contact-form .backup-contact-form textarea[name="message"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* 通用选择器强制覆盖 */
.contact-form select,
.contact-form textarea {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Contact Form 7 移动端响应式 */
@media (max-width: 768px) {
    .wpcf7-form .form-row,
    .wpcf7-form .form-row.two-columns,
    .wpcf7-form .form-row.full-width,
    .backup-contact-form .form-row,
    .backup-contact-form .form-row.two-columns,
    .backup-contact-form .form-row.full-width {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    /* 移动端：所有字段垂直布局 */
    .contact-form .form-row.two-columns .form-group,
    .contact-form .form-row.full-width .form-group,
    .inquiry-form .form-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .contact-form .form-row.two-columns .form-group label,
    .contact-form .form-row.full-width .form-group label,
    .inquiry-form label {
        display: block !important;
        min-width: auto !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }
    
    .contact-form .form-row.two-columns .form-group input,
    .contact-form .form-row.full-width .form-group select,
    .contact-form .form-row.full-width .form-group textarea,
    .inquiry-form input,
    .inquiry-form select,
    .inquiry-form textarea {
        width: 100% !important;
        flex: none !important;
    }
    
    .wpcf7-form input[type="submit"],
    .backup-contact-form button {
        align-self: stretch;
        min-width: auto;
    }
}

/* =============================================== */
/* 弹窗中的 Contact Form 7 样式优化 */
/* =============================================== */

/* 弹窗中的CF7表单容器 */
#modal-cf7-form {
    margin: 0;
    padding: 0;
}

/* 弹窗中隐藏CF7的提交按钮（使用统一的取消按钮布局） */
#modal-cf7-form .wpcf7-form input[type="submit"] {
    background: var(--primary-purple);
    color: var(--white-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

#modal-cf7-form .wpcf7-form input[type="submit"]:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 58, 154, 0.3);
}

/* 弹窗表单操作按钮区域 */
.modal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 取消按钮在CF7表单上方 */
.modal-form-actions .btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-form-actions .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* CF7未安装提示样式 */
.cf7-not-installed {
    padding: 40px 20px;
    text-align: center;
    background: #fff3cd;
    border-radius: 8px;
    margin: 20px 0;
}

.cf7-not-installed p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* 弹窗中的CF7响应消息样式优化 */
#modal-cf7-form .wpcf7-response-output {
    margin: 15px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* 弹窗中CF7表单的字段间距 */
#modal-cf7-form .wpcf7-form .form-row {
    margin-bottom: 12px;
}

/* 移动端弹窗表单适配 */
@media (max-width: 768px) {
    .modal-form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .modal-form-actions .btn-cancel {
        width: 100%;
    }
    
    #modal-cf7-form .wpcf7-form input[type="submit"] {
        padding: 14px 24px;
    }
}
