/* =========================================
   1. 全局基础设置
   ========================================= */
:root {
    --primary-blue: var(--primary-color, #004aad);
    /* 品牌蓝 */
    --primary-dark: #003380;
    /* 深蓝 */
    --accent-yellow: #fdb913;
    /* 品牌黄 */
    --dark-bg: #0f172a;
    /* 底部背景深蓝 */
    --text-main: #1a1a1a;
    --text-sub: #555555;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* 通用组件 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn:visited {
    color: var(--white);
}


.btn:hover {
    background-color: var(--accent-yellow);
    color: #000;
    transform: translateY(-2px);
}

.home-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: var(--primary-blue);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 999;
}

.home-back-to-top i {
    font-size: 18px;
    line-height: 1;
}

.home-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.home-back-to-top:hover {
    background-color: var(--accent-yellow);
    color: #000;
}

@media (max-width: 768px) {
    .home-back-to-top {
        right: 16px;
        bottom: 70px;
        width: 32px;
        height: 32px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-sub);
    font-size: 16px;
}

/* =========================================
   2. 顶部导航
   ========================================= */
header {
    height: 80px;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* 吸顶导航栏样式 */
header.sticky-header {
    position: fixed;
    top: 0;
}

/* WordPress Admin Bar 适配 */
body.admin-bar header.sticky-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.sticky-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    header.sticky-header {
        position: relative;
        top: 0;
    }

    body.admin-bar header.sticky-header {
        top: 0;
    }
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (min-width: 769px) {
    header.site-header .container.nav-flex {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        width: min(100%, var(--header-container-max-width, var(--container-max-width, 1280px))) !important;
        max-width: var(--header-container-max-width, var(--container-max-width, 1280px)) !important;
        padding-left: clamp(20px, 2vw, 36px) !important;
        padding-right: clamp(20px, 2vw, 36px) !important;
        column-gap: clamp(20px, 2vw, 36px);
        justify-content: initial;
    }

    header.site-header .site-branding-nav {
        justify-self: start;
    }

    header.site-header nav.nav-links {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    header.site-header nav.nav-links > ul.nav-links {
        width: max-content;
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    header.site-header .header-actions {
        justify-self: end;
    }
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-yellow);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-links a:hover {
    color: #ff6a00;
}

@media (min-width: 992px) {
    header nav.nav-links {
        height: var(--header-height, 80px);
    }

    header nav.nav-links>ul.nav-links {
        height: 100%;
        align-items: center;
    }

    header nav.nav-links>ul.nav-links>li {
        height: 100%;
        display: flex;
        align-items: center;
    }

    header nav.nav-links>ul.nav-links>li>a {
        height: 100%;
        display: flex;
        align-items: center;
    }
}

.nav-links .current-menu-item>a,
.nav-links .current-menu-ancestor>a,
.nav-links .current-menu-parent>a,
.nav-links .current_page_parent>a,
.nav-links .current_page_ancestor>a {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Show single logo per device */
.logo-img.mobile-logo {
    display: none;
}

@media (max-width: 767px) {
    .logo-img.mobile-logo {
        display: inline-block;
    }

    .logo-img.pc-logo {
        display: none;
    }
}

/* =========================================
   3. Hero Banner
   ========================================= */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0, 30, 60, 0.7), rgba(0, 74, 173, 0.6)),
        url('https://images.unsplash.com/photo-1581093458791-9f3039cd3577?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* =========================================
   4. 关于我们 (新增模块)
   ========================================= */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-grid > * {
    min-width: 0;
}

/* 左侧图片区域 */
.about-img-wrapper {
    position: relative;
}

.about-img {
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* 装饰性边框 */
.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--accent-yellow);
    border-left: 5px solid var(--accent-yellow);
    z-index: 0;
}

/* 右侧文本区域 */
.about-content h3 {
    font-size: 14px;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
    transform: translateY(-10px);
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-content p {
    color: var(--text-sub);
    margin-bottom: 20px;
    text-align: justify;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 特性列表图标 */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 24px;
}

.feature-text h4 {
    font-size: 16px;
    color: var(--text-main);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================
   5. 产品展示 (Zig-Zag 布局)
   ========================================= */
.products-section {
    background-color: var(--bg-light);
    padding: 100px 0 20px;
}

.product-row {
    margin-bottom: 100px;
}

.row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.row-grid > * {
    min-width: 0;
}

.prod-content h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prod-desc {
    color: var(--text-sub);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prod-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.variant-tag {
    background: var(--white);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 图片堆叠效果 */
.prod-images {
    position: relative;
    height: 400px;
}

.img-main {
    position: absolute;
    width: 80%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.img-sub {
    position: absolute;
    width: 50%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--white);
    z-index: 2;
    transition: transform 0.5s ease;
}

/* 布局控制 */
.layout-normal .img-main {
    top: 0;
    left: 0;
}

.layout-normal .img-sub {
    bottom: 0;
    right: 0;
}

.layout-normal:hover .img-sub {
    transform: translateY(-10px);
}

.layout-reverse .img-main {
    top: 0;
    right: 0;
}

.layout-reverse .img-sub {
    bottom: 0;
    left: 0;
}

.layout-reverse:hover .img-sub {
    transform: translateY(-10px);
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 350px;
    }

    .row-grid {
        grid-template-columns: 1fr;
    }

    .product-row:nth-child(even) .prod-images {
        order: -1;
    }

    /* 手机端图片始终在上方 */
    .prod-images {
        height: 350px;
        margin-bottom: 30px;
    }

    .img-main {
        width: 90%;
        height: 280px;
        left: 0;
        right: auto;
    }

    .img-sub {
        width: 55%;
        height: 180px;
        right: 0;
        bottom: 0;
        left: auto;
    }

    .layout-reverse .img-main {
        left: auto;
        right: 0;
    }

    .layout-reverse .img-sub {
        left: 0;
        bottom: 0;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .prod-content h3 {
        font-size: 24px;
    }


}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-box {
        align-items: flex-start;
    }

    .about-content p {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        word-break: normal;
        overflow-wrap: break-word;
    }
}



/* =========================================
   9. Industries Section
   ========================================= */
.industries-section {
    padding: 100px 0;
    background-color: var(--white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card {
    position: relative;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.industry-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.industry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-card:hover .industry-img {
    transform: scale(1.1);
}

.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.industry-card:hover .industry-content {
    transform: translateY(0);
}

.industry-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.industry-card:hover .industry-icon {
    opacity: 1;
    transform: translateY(0);
}

.industry-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.industry-content p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.industry-card:hover .industry-content p {
    max-height: 100px;
    opacity: 1;
}

.industry-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 992px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-section {
        padding: 70px 0 70px;
    }
}

@media (max-width: 576px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        height: 300px;
    }

    .industries-section {
        padding: 50px 0 70px;
    }
}

/* =========================================
   导航菜单二级菜单样式
   ========================================= */
.nav-links ul {
    position: relative;
}

.nav-links li {
    position: relative;
}

.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    border-radius: 0;
    margin-top: 0;
}

/* 创建不可见的桥接区域,防止鼠标移动时菜单消失 */
.nav-links .sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.nav-links li:hover>.sub-menu {
    display: block;
}

.nav-links .sub-menu li {
    display: block;
    width: 100%;
}

.nav-links .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 14px;
    white-space: nowrap;
}

.nav-links .sub-menu a:hover {
    background-color: var(--bg-light);
    color: #ff6a00;
}

/* header 层级 overrides for a richer dropdown */
header .nav-links .sub-menu {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 25px 35px rgba(15, 23, 42, 0.15);
    border-top: none;
}

header .nav-links .sub-menu::before {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
}

header .nav-links li:hover>.sub-menu {
    animation: slideDown 0.3s ease-out;
}

header .nav-links .sub-menu a {
    transition: all 0.2s ease;
}

header .nav-links .sub-menu a:hover {
    padding-left: 20px;
    background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =========================================
   3级菜单样式 (Level 3 Menu)
   ========================================= */
/* Ensure parent li has relative positioning */
.nav-links .sub-menu li {
    position: relative;
}

/* Level 3 Menu Styling - Expand to Right */
header .nav-links .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    /* Position to the right of the parent item */
    transform: none;
    /* Reset the centering transform from Level 2 */
    margin-top: 0;
    /* Align top edges of level-2 item and level-3 panel */
    display: none;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-radius: 0;
}

/* Show Level 3 on hover */
header .nav-links .sub-menu li:hover>.sub-menu {
    display: block;
    animation: slideRight 0.3s ease-out;
}

/* Animation for Level 3 */
@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Arrow indicator for items with children in submenu */
.nav-links .sub-menu .menu-item-has-children>a {
    padding-right: 30px;
    /* Make room for the arrow */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links .sub-menu .menu-item-has-children>a::after {
    content: '\F285';
    /* Bootstrap Icons: chevron-right */
    font-family: 'bootstrap-icons';
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s;
}

/* Hover state for the item that opens the submenu */
.nav-links .sub-menu li:hover>a {
    color: #ff6a00;
    background-color: var(--bg-light);
}

/* =========================================
   产品分类页面样式
   ========================================= */
.cat-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cat-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cat-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .industry-content h3 {
        font-size: 20px;
    }
}

/* =========================================
   Sample Request (Homepage)
   ========================================= */
.bsche-sample-request {
    padding: 50px 0;
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}

.bsche-sample-request__card {
    display: flex;
    flex-wrap: wrap;
    background: #f9fbfe;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e3e8f1;
}

.bsche-sample-request__info {
    flex: 1;
    min-width: 280px;
    padding: 40px;
    background: linear-gradient(135deg, #0f2a4d 0%, #0a1f3a 100%);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bsche-sample-request__info h2 {
    font-size: 26px;
    margin-bottom: 18px;
}

.bsche-sample-request__info p {
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 26px;
}

.bsche-sample-request__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #f8fafc;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    width: fit-content;
}

.bsche-sample-request__more:hover {
    background: #ffffff;
    color: #0f2a4d;
    transform: translateY(-1px);
}

.bsche-sample-request__form {
    flex: 1.2;
    min-width: 320px;
    padding: 40px;
    background: #fdfefe;
}

.bsche-sample-request__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bsche-sample-request__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bsche-sample-request__field--full {
    grid-column: span 2;
}

.bsche-sample-request__field label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #1f2a37;
    font-weight: 600;
}

.bsche-sample-request__field input,
.bsche-sample-request__field select {
    padding: 12px 12px;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    background: #ffffff;
}

.bsche-sample-request__field input:focus,
.bsche-sample-request__field select:focus {
    border-color: #1d4c9a;
    box-shadow: 0 0 0 4px rgba(29, 76, 154, 0.14);
}

.bsche-sample-request__hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7a90;
}

.bsche-sample-request__submit {
    grid-column: span 2;
    background: linear-gradient(135deg, #0f3f8c 0%, #0b2f66 100%);
    color: #ffffff;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
    transition: background 0.2s, transform 0.2s;
}

.bsche-sample-request__submit:hover {
    background: linear-gradient(135deg, #0b2f66 0%, #092653 100%);
    transform: translateY(-1px);
}

.bsche-sample-request__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .bsche-sample-request {
        padding: 24px 0;
    }

    .bsche-sample-request__info,
    .bsche-sample-request__form {
        padding: 24px;
    }

    .bsche-sample-request__form-grid {
        grid-template-columns: 1fr;
    }

    .bsche-sample-request__field--full {
        grid-column: span 1;
    }

    .bsche-sample-request__submit {
        grid-column: span 1;
    }
}

