/*
Theme Name: YP Theme
Theme URI: https://kjt-sensors.com
Author: 半路电工网
Author URI: https://kjt-sensors.com
Description: 工业自动化 B2B 企业主题，适用于传感器产品展示与行业资讯发布。
Version: 1.0.0
Text Domain: yp-theme
*/

/* ==========================================================================
   全局基础重置与变量
   ========================================================================== */
:root {
    --primary-color: #0f172a; /* 欧美偏爱的深邃板岩黑 */
    --accent-color: #2563eb;  /* 沉稳的技术蓝 */
    --text-color: #334155;
    --border-color: #e2e8f0;
    --header-height: 80px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
}

/* ==========================================================================
   Header 主体布局 (PC Desktop)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); /* 极其轻微的底部阴影 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo 排版优化 --- */
.site-logo .logo-text {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo .logo-text span {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- 导航与操作区并排 --- */
.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* --- 导航菜单美化 --- */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

/* 欧美风经典的底部下划线悬浮特效 */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--accent-color);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

/* --- 极简搜索框 (无边框胶囊设计) --- */
.custom-search-form {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border-radius: 9999px; /* 完美圆角 */
    padding: 0.3rem 0.5rem 0.3rem 1.2rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-search-form:focus-within {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 140px;
    color: var(--primary-color);
    transition: width 0.3s ease;
}

.search-field:focus {
    width: 180px; /* 聚焦时优雅伸展 */
}

.search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.search-submit:hover {
    color: var(--accent-color);
}

/* 默认隐藏移动端按钮 */
.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   移动端自适应适配 (Mobile Responsive)
   ========================================================================== */
@media screen and (max-width: 991px) {
    :root {
        --header-height: 65px;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    /* 开启移动端汉堡按钮 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle .bar {
        width: 100%;
        height: 2.5px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* 汉堡按钮激活态：变为 X */
    .mobile-menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .mobile-menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* 导航下拉区域 */
    .header-nav-actions {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s ease;
        box-shadow: none;
        z-index: 999;
    }

    /* 展开菜单 */
    .header-nav-actions.active {
        transform: translateX(0);
        opacity: 1;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .nav-menu li a::after {
        display: none;
    }

    .header-search {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .custom-search-form {
        width: 100%;
    }

    .search-field {
        width: 100%;
    }
    .search-field:focus {
        width: 100%;
    }

    /* 防止菜单展开时页面滚动 */
    body.menu-open {
        overflow: hidden;
    }
}



/* ==========================================================================
   首页主体公用基础
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: #f8fafc; /* 极浅的蓝灰色背景，用于区分层级 */
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 3rem 0;
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.link-action {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 3rem;
    transition: opacity 0.2s;
}
.link-action:hover { opacity: 0.8; }

/* ==========================================================================
   1. Banner 轮播模块样式
   ========================================================================== */
/* ==========================================================================
   Banner 双端独立变量响应式控制
   ========================================================================== */
/* PC 桌面端：宽屏排版，调用 --bg-pc 变量 */
.hero-banner {
    width: 100%;
    height: 550px;
    position: relative;
}

.responsive-banner {
    background-image: var(--bg-pc);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.banner-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: block;
}

/* 移动设备端：断点切换尺寸，且背景源自动变更为 --bg-mobile 变量 */
@media screen and (max-width: 768px) {
    .hero-banner {
        height: 420px; /* 调整为更适合手机浏览的近似 4:3 或竖版高度 */
    }
    .responsive-banner {
        background-image: var(--bg-mobile); 
    }
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}



.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* 自定义 Swiper 指示点颜色 */
.swiper-pagination-bullet { background: #ffffff !important; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1 !important; }

/* ==========================================================================
   核心产品矩阵排版与交互样式
   ========================================================================== */
.home-products {
    background-color: #ffffff;
}

/* 最新产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-card-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.product-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.product-card-thumb .thumb-placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.product-card-info {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-color);
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-cat {
    font-size: 0.8rem;
    color: #94a3b8;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.product-card:hover .product-card-title {
    color: var(--accent-color);
}
.product-card:hover .product-card-thumb img {
    transform: scale(1.05);
}

.products-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* 移动设备端适配 */
@media screen and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ==========================================================================
   产品分类层级样式（产品中心页面）
   ========================================================================== */
.product-group-block {
    margin-bottom: 4.5rem;
}
.product-group-block:last-child { 
    margin-bottom: 0; 
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.group-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

.child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.child-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.child-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.2s;
}

.card-arrow {
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.2s;
}

.child-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}
.child-card:hover .child-title { 
    color: var(--accent-color); 
}
.child-card:hover .card-arrow {
    color: var(--accent-color);
    transform: translateX(5px);
}

.empty-child-notice {
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .product-group-block {
        margin-bottom: 3rem;
    }
    .group-title {
        font-size: 1.3rem;
    }
    .child-card {
        padding: 1.4rem;
    }
    .child-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. 新闻资讯排版
   ========================================================================== */

/* 左右非对称布局 (1.3 : 1) */
.editorial-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
}

/* 左侧焦点图样式 */
.news-lead .lead-thumb img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}
.news-lead .lead-thumb:hover img { transform: scale(1.02); }

.lead-thumb img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s;
}
.lead-thumb a:hover img { opacity: 0.9; }

.post-meta {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.lead-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
}
.lead-title a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
.lead-title a:hover { color: var(--accent-color); }

.lead-excerpt {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 右侧侧边栏列表样式 */
.news-feed {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feed-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.feed-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.feed-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0.5rem;
}
.feed-title a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
.feed-title a:hover { color: var(--accent-color); }

/* 移动端适配 */
@media screen and (max-width: 991px) {
    .editorial-layout { grid-template-columns: 1fr; gap: 3rem; }
    .news-lead .lead-thumb img { height: 250px; }
}


/* ==========================================================================
   欧美风格 Footer 样式
   ========================================================================== */
.site-footer {
    background-color: #0f172a; /* 欧美偏爱的深岩色 */
    color: #94a3b8;
    padding: 5rem 0 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 4px solid var(--accent-color); /* 顶部亮蓝色细线，增加高级感 */
}

/* 矩阵排版 */
.footer-matrix {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* 标题样式 */
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
}

/* 简介列 */
.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
.footer-logo .logo-main {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.footer-logo .logo-sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}
.footer-desc {
    max-width: 320px;
}

/* 导航链接样式 */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav ul li {
    margin-bottom: 0.8rem;
}
.footer-nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-nav ul li a:hover {
    color: #ffffff;
    padding-left: 5px; /* 欧美风常用的轻微位移 */
}

/* 社交媒体占位图标 */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #334155;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.social-icon:hover {
    border-color: var(--accent-color);
    color: #ffffff;
    background: var(--accent-color);
}

/* 版权栏 */
.footer-copyright {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
}
.copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.legal-links {
    display: flex;
    gap: 1rem;
}
.legal-links a {
    color: #64748b;
    text-decoration: none;
}
.legal-links a:hover { color: #ffffff; }

/* 移动端适配 */
@media screen and (max-width: 991px) {
    .footer-matrix {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
@media screen and (max-width: 576px) {
    .footer-matrix {
        grid-template-columns: 1fr;
    }
    .copyright-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}



/* ==========================================================================
   产品分类页样式
   ========================================================================== */

/* 面包屑 */
.breadcrumbs {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2rem;
}
.breadcrumbs a { color: #64748b; text-decoration: none; }
.breadcrumbs .sep { margin: 0 0.5rem; }

/* 头部介绍 */
.archive-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.archive-description {
    max-width: 800px;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* 二级列表页专有样式 */
.product-archive-wrapper { padding: 40px 0 80px; background: #fcfcfc; }

.breadcrumb-nav { margin-bottom: 30px; font-size: 14px; color: #64748b; }
.breadcrumb-nav a { color: #334155; text-decoration: none; transition: 0.3s; }
.breadcrumb-nav a:hover { color: var(--accent-color); }
.breadcrumb-nav .sep { margin: 0 8px; color: #cbd5e1; }

.page-title { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 15px; }
.term-desc { font-size: 16px; color: #666; max-width: 900px; line-height: 1.8; margin-bottom: 50px; }

/* 产品网格与卡片 */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}

.product-card { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.product-card a {
    text-decoration: none;
    display: block;
}
.product-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08); 
    border-color: var(--accent-color); 
}

.product-img { 
    aspect-ratio: 1 / 1;
    padding: 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img img { 
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    transition: transform 0.3s;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-text { 
    padding: 1rem 1.2rem; 
}
.product-text .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.product-card:hover .product-text .product-title {
    color: var(--accent-color);
}
.product-sku { font-size: 0.8rem; color: #94a3b8; }

@media screen and (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* 分页样式 */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.pagination .page-numbers {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--primary-color);
}
.pagination .page-numbers.current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ==========================================================================
   搜索结果页搜索横条
   ========================================================================== */
.search-bar-box {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.search-bar-box form {
    display: flex;
    gap: 0.8rem;
}
.search-bar-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.search-bar-input:focus {
    border-color: var(--accent-color);
}
.search-bar-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-bar-btn:hover {
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .search-bar-box {
        padding: 1rem;
    }
    .search-bar-box form {
        flex-direction: column;
    }
    .search-bar-btn {
        width: 100%;
    }
}

/* ==========================================================================
   使用条款 & 站点地图页面
   ========================================================================== */
.legal-page,
.sitemap-page {
    background: #fff;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.legal-updated {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.legal-content {
    max-width: 860px;
}
.legal-section {
    margin-bottom: 2.5rem;
}
.legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.legal-section p {
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 0.6rem;
}

.sitemap-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.sitemap-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.sitemap-heading a {
    color: inherit;
    text-decoration: none;
}
.sitemap-heading a:hover {
    color: var(--accent-color);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li {
    margin-bottom: 0.5rem;
}
.sitemap-list li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.sitemap-list li a:hover {
    color: var(--accent-color);
}
.sitemap-list ul {
    list-style: none;
    padding-left: 1.2rem;
    margin-top: 0.4rem;
}
.sitemap-list ul li a {
    font-size: 0.9rem;
    color: #64748b;
}

@media screen and (max-width: 768px) {
    .sitemap-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   产品详情页样式
   ========================================================================== */
.product-detail-page { padding: 40px 0; background: #fff; }

/* 核心展示区布局 */
.product-essential { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; align-items: start; }
.product-essential > * { min-width: 0; }

.product-gallery .main-image {
    border: 1px solid #eee;
    padding: 30px;
    background: #fff;
    text-align: center;
    max-width: 100%;
}
.product-gallery img { max-width: 100%; height: auto; object-fit: contain; display: block; }

.main-image-box { 
    border: 1px solid #f1f5f9; 
    padding: 20px; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}
.main-image-box img { max-width: 100%; max-height: 460px; height: auto; object-fit: contain; }

.product-title { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.product-meta-data { margin-bottom: 25px; color: #64748b; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; }
.product-meta-info { margin-bottom: 30px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.product-meta-info p { margin-bottom: 5px; color: #666; font-size: 14px; }
.product-meta-info span { color: #1a1a1a; font-weight: 600; }

.product-excerpt { line-height: 1.7; color: #475569; margin-bottom: 35px; }
.product-excerpt h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 10px; }

.short-description h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.short-description { line-height: 1.8; color: #444; margin-bottom: 40px; }

/* 询盘按钮 */
.btn-inquiry {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 18px 45px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-inquiry:hover { background: #000; transform: translateY(-3px); }

.btn-primary-inquiry {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 16px 40px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s ease;
}
.btn-primary-inquiry:hover { background: #1e40af; transform: translateY(-3px); }

/* 产品价格区间 */
.product-price-range {
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.2rem;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #fde68a;
}
.price-label {
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
}
.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d97706;
    margin-left: 0.3rem;
}

/* 快捷参数摘要 */
.product-quick-specs {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.quick-specs-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.8rem 0;
}
.quick-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.9rem;
}
.quick-specs-list li:last-child {
    border-bottom: none;
}
.spec-name {
    color: #64748b;
}
.spec-val {
    color: var(--primary-color);
    font-weight: 600;
}

/* 询盘弹窗 */
.inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.inquiry-modal.active {
    display: flex;
}
.inquiry-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.inquiry-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.inquiry-modal-close:hover {
    color: #1e293b;
}
.inquiry-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.3rem 0;
}
.inquiry-modal-product {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.inquiry-modal-form .form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}
.inquiry-modal-form .form-field label .required {
    color: #ef4444;
}
.inquiry-modal-form .form-field input,
.inquiry-modal-form .form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.inquiry-modal-form .form-field input:focus,
.inquiry-modal-form .form-field textarea:focus {
    border-color: var(--accent-color);
}
.inquiry-modal-form .full-width {
    margin-bottom: 1.5rem;
}
.inquiry-modal-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.inquiry-modal-submit:hover {
    background: #1e40af;
}

@media screen and (max-width: 768px) {
    .modal-form-grid {
        grid-template-columns: 1fr;
    }
    .inquiry-modal {
        padding: 0.5rem;
        align-items: flex-end;
    }
    .inquiry-modal-content {
        padding: 1.5rem;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        width: 100%;
    }
    .inquiry-modal-form .form-field input,
    .inquiry-modal-form .form-field textarea {
        box-sizing: border-box;
        width: 100%;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 选项卡样式 */
.tabs-nav { border-bottom: 2px solid #f1f5f9; margin-bottom: 30px; display: flex; gap: 40px; }
.tab-link { 
    background: none; border: none; padding: 15px 0; font-weight: 700; color: #64748b; 
    cursor: pointer; position: relative; font-size: 16px;
}
.tab-link.active { color: #2563eb; }
.tab-link.active::after { 
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: #2563eb; 
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.4s; }

.industrial-specs { width: 100%; border-collapse: collapse; }
.industrial-specs th { text-align: left; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; width: 200px; }
.industrial-specs td { padding: 12px; border: 1px solid #e2e8f0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 移动端适配 */
@media (max-width: 991px) {
    .product-essential { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .product-essential { grid-template-columns: 1fr; }
    .main-image-box { min-height: 300px; }
}


/* ==========================================================================
   Service 服务中心页面样式
   ========================================================================== */
.service-page .section-desc {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 600px;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}

/* --- 公告列表 --- */
.announcements-section {
    margin-bottom: 5rem;
}

.announcement-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-item:hover {
    background-color: #f8fafc;
}

.announcement-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.announcement-arrow {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: transform 0.2s, color 0.2s;
}
.announcement-item:hover .announcement-arrow {
    transform: translateX(3px);
    color: var(--accent-color);
}
.announcement-item:hover .announcement-title {
    color: var(--accent-color);
}

.no-announcements {
    color: #64748b;
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* --- 服务表单 --- */
.inquiry-section {
    padding: 4rem 0;
}

.inquiry-form {
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: auto;
}

.form-submit {
    margin-top: 0.5rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* 表单提交反馈 */
.form-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.product-inquiry-status {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .announcement-item {
        padding: 1rem 1.2rem;
    }
    .announcement-title {
        white-space: normal;
    }
}


/* ==========================================================================
   产品图册轮播样式
   ========================================================================== */
.product-gallery {
    position: relative;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.product-swiper {
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.product-swiper .main-image-box {
    border: none;
    min-height: 350px;
    max-height: 450px;
    padding: 15px;
}
.product-swiper .swiper-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-swiper .swiper-button-prev::after,
.product-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

/* 缩略图导航条 */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb-item:hover {
    opacity: 0.9;
    border-color: #cbd5e1;
}
.gallery-thumb-item.active {
    opacity: 1;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .product-swiper .main-image-box {
        min-height: 220px;
        max-height: 300px;
    }
    .gallery-thumb-item {
        width: 55px;
        height: 55px;
    }
}
