/* =========================================
   1. 全局基础设置
   ========================================= */
:root {
    --primary-blue: #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:hover {
    background-color: var(--accent-yellow);
    color: #000;
    transform: translateY(-2px);
}

.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%;
}

.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-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;
}

.about-content p {
    color: var(--text-sub);
    margin-bottom: 20px;
    text-align: justify;
}

/* 特性列表图标 */
.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);
}

/* =========================================
   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;
}

.prod-content h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.prod-desc {
    color: var(--text-sub);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.8;
}

.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);
}

/* 图片堆叠效果 */
.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);
}

/* =========================================
   6. 底部 Footer (复刻版)
   ========================================= */
footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    /* 浅灰文字 */
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* 左侧稍微宽一点 */
    gap: 60px;
    padding-bottom: 60px;
}

/* 列 1: 公司简介 */
.footer-col h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 350px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* 半透明背景 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* 列 2: 快速链接 */
.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    font-size: 15px;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

/* 列 3: 联系方式 */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-list i {
    color: var(--accent-yellow);
    /* 金色图标 */
    font-size: 18px;
    margin-top: 2px;
}

/* 底部版权条 */
.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* =========================================
   响应式适配
   ========================================= */
@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;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .prod-content h3 {
        font-size: 24px;
    }


}



/* =========================================
   8. Footer Filing Info
   ========================================= */
.filing-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.filing-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.filing-link:hover {
    color: var(--accent-yellow);
}

.police-filing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.police-filing img {
    width: 16px;
    height: 16px;
    display: block;
    position: relative;
    top: -1px;
}

.filing-separator {
    color: rgba(255, 255, 255, 0.2);
}


/* =========================================
   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) {
    footer {
        padding: 10px 0 0;
        background-color: #f7f9fc;
        color: #475569;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 8px;
    }

    .footer-grid .footer-about {
        grid-column: auto;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-about h3,
    .footer-about p {
        display: none;
    }

    .footer-about p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .social-icons {
        gap: 8px;
        flex-wrap: wrap;
        margin: 4px auto 6px;
        justify-content: center;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        background: #fff;
        color: #1f2937;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .footer-links ul li {
        margin-bottom: 10px;
    }

    .footer-links ul li a {
        font-size: 14px;
    }

    .footer-links,
    .contact-list {
        display: none;
    }

    .contact-list li {
        gap: 10px;
        margin-bottom: 15px;
        font-size: 13px;
    }

    .contact-list i {
        font-size: 16px;
        margin-top: 0;
    }

    .copyright-bar {
        padding: 12px 0;
        font-size: 12px;
        background-color: #edf1f7;
        color: #475569;
        border-top: 1px solid #d8dde7;
    }

    .industry-content h3 {
        font-size: 20px;
    }
}