/* JAWO Global Styles - Performance Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

/* 性能优化：减少重绘重排 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 性能优化：硬件加速 */
.btn, .product-card, .slide, .cert-card, .mission-card {
    will-change: transform;
    transform: translateZ(0);
}

/* 性能优化：CSS Containment */
.hero-slider, .product-grid, .cert-grid, .mission-grid {
    contain: layout style;
}

/* 性能优化：图片渲染优化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
:root {
    /* JAWO 品牌主色：青色系 */
    --main-color: #2E8B8B;
    --main-hover: #247575;
    /* JAWO 品牌辅色 */
    --secondary: #4ECDC4;
    --light-bg: #F7FBFB;
    --dark-text: #333333;
    --gray-text: #666666;
    --white: #ffffff;
    --border: #e5e7eb;
}
body {
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s ease;
}
ul, li {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
    width: 100%;
}
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--main-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--main-hover);
    color: var(--white);
}

/* ========== 顶部热线栏 ========== */
.top-bar {
    width: 100%;
    background: var(--main-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hotline i {
    font-size: 14px;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}
.search-box input {
    border: none;
    background: transparent;
    padding: 6px 12px;
    width: 200px;
    outline: none;
    color: white;
    font-size: 13px;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-box button {
    background: var(--secondary);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    font-size: 13px;
    transition: background 0.3s;
}
.search-box button:hover {
    background: #3dbdb5;
}
.lang-switcher {
    display: flex;
    gap: 6px;
}
.lang-switcher a {
    color: white;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.7;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.lang-switcher a:hover, .lang-switcher a.active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

/* ========== 头部导航栏 ========== */
.header {
    width: 100%;
    height: 80px;
    line-height: 80px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.header-right {
    display: flex;
    align-items: center;
}
.main-nav {
    display: flex;
    gap: 0;
}
.main-nav > li {
    position: relative;
    padding: 0 22px;
}
.main-nav > li > a {
    font-size: 15px;
    font-weight: 500;
    display: block;
    transition: color 0.3s;
}
.main-nav > li:hover > a,
.main-nav > li > a.active {
    color: var(--main-color);
}

/* 下拉菜单 */
.sub-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 220px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 9999;
}
.sub-nav li {
    line-height: 45px;
    padding: 0 20px;
    border-bottom: 1px solid #f5f5f5;
}
.sub-nav li:last-child {
    border-bottom: none;
}
.sub-nav li a {
    display: block;
    font-size: 14px;
    color: var(--gray-text);
    transition: color 0.3s;
}
.sub-nav li:hover a {
    color: var(--main-color);
}
.main-nav > li:hover .sub-nav {
    display: block;
}

/* ========== 页面顶部标题栏 ========== */
.page-top {
    margin-top: 0;
    padding: 60px 0;
    background: var(--light-bg);
}
.page-top h1 {
    font-size: 32px;
    text-align: center;
    color: var(--dark-text);
}

/* ========== 首页Banner ========== */
.banner {
    width: 100%;
    height: calc(100vh - 136px);
    min-height: 500px;
    background: linear-gradient(120deg, #E6F7F4 0%, #F0FDFB 50%, #E8F8F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-content {
    max-width: 700px;
    padding: 0 20px;
}
.banner h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-text);
}
.banner p {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 30px;
    line-height: 1.8;
}
.banner .btn {
    padding: 12px 36px;
    font-size: 15px;
    border-radius: 4px;
}

/* ========== 首页产品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--dark-text);
}
.product-card:hover {
    transform: translateY(-6px);
}
.product-img {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 16px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}
.product-info p {
    color: var(--gray-text);
    font-size: 13px;
}

/* ========== 产品分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.category-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: var(--dark-text);
    min-width: 0;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card h3 {
    font-size: 16px;
    font-weight: 600;
}
.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon i {
    font-size: 36px;
    color: var(--main-color);
}

/* 分类图片样式 - 完全自适应卡片 */
.category-img-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
}
.category-img-wrapper img,
.category-img-wrapper .category-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.category-img-wrapper .category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    margin: 0;
}

/* ========== 关于我们区块 ========== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}
.about-left {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
    overflow: hidden;
}
.about-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-right {
    flex: 1;
    min-width: 300px;
}
.about-right h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.about-right p {
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 15px;
}
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}
.cert-item {
    padding: 6px 15px;
    background: var(--light-bg);
    border-radius: 4px;
    color: var(--main-color);
    font-size: 13px;
}

/* ========== 核心优势 ========== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.advantage-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.advantage-card:hover {
    transform: translateY(-5px);
}
.advantage-card i {
    font-size: 36px;
    color: var(--main-color);
    margin-bottom: 15px;
    display: block;
}
.advantage-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.advantage-card p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

/* ========== 新闻列表 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.news-item:hover {
    transform: translateY(-3px);
}
.news-date {
    color: var(--main-color);
    font-size: 13px;
    margin-bottom: 10px;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}
.news-item h3 a {
    color: var(--dark-text);
    transition: color 0.3s;
}
.news-item h3 a:hover {
    color: var(--main-color);
}
.news-item p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* ========== 联系表单 ========== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--light-bg);
    padding: 35px;
    border-radius: 8px;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--main-color);
}
.contact-form textarea {
    height: 140px;
    resize: none;
}
.contact-form .btn {
    width: 100%;
    padding: 14px 0;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.contact-info h3 {
    font-size: 20px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--gray-text);
    line-height: 1.8;
}
.contact-info li i {
    font-size: 20px;
    color: var(--main-color);
    width: 30px;
    text-align: center;
    margin-top: 3px;
}
.contact-info .hotline-num {
    font-size: 20px;
    color: var(--main-color);
    font-weight: 700;
    margin-top: 10px;
}

/* ========== 产品详情 ========== */
.product-detail {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.product-img-box {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 18px;
    overflow: hidden;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-text {
    flex: 1;
    min-width: 300px;
}
.product-text h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.product-text p {
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ========== 页脚 ========== */
.footer {
    width: 100%;
    background: #2D3748;
    color: #ccc;
    padding: 40px 0 20px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
}
.footer-col a {
    color: #ccc;
    line-height: 2;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--secondary);
}
.footer-col p {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .category-card {
        padding: 15px 10px;
    }
    .category-card h3 {
        font-size: 14px;
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-left {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .banner {
        height: auto;
        min-height: 400px;
        padding: 60px 0;
    }
    .banner h1 {
        font-size: 28px;
    }
    .search-box {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
}

/* ==================== Phase 2A 新增组件 ==================== */
/* 正式 JAWO Logo：深蓝黑字 + 透明底，含标语，按原比例缩放不裁切 */
.logo-img { height: 46px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.logo-link { display: inline-flex; align-items: center; }
/* 深色背景容器内使用：反白保证可读 */
.logo-invert { filter: brightness(0) invert(1); }

/* Header 常驻高对比询盘按钮 */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
    padding: 10px 20px;
    background: #2E8B8B;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46,139,139,.25);
    transition: background .2s, transform .2s;
}
.header-cta:hover { background: #1F6F6F; color: #fff !important; transform: translateY(-1px); }

/* 询盘表单：新增字段间距与 GDPR 勾选行 */
.contact-form input[name="country"],
.contact-form select[name="quantity"],
.contact-form-wrap input[name="country"],
.contact-form-wrap select[name="quantity"] {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}
.consent-row { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 16px; font-size: 12px; line-height: 1.6; color: var(--gray-text); cursor: pointer; }
.consent-row input { margin-top: 3px; flex-shrink: 0; }

/* 产品详情页移动端吸底 CTA */
.mobile-sticky-cta { display: none; }
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 10000;
        background: #fff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -3px 14px rgba(0,0,0,.08);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        gap: 10px;
    }
    .mobile-sticky-btn {
        flex: 1;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        background: #2E8B8B; color: #fff; text-decoration: none;
        border-radius: 8px; padding: 13px 10px; font-weight: 700; font-size: 15px;
    }
    .mobile-sticky-wa {
        width: 48px; display: flex; align-items: center; justify-content: center;
        border: 1px solid #25D366; color: #25D366; border-radius: 8px; text-decoration: none; font-size: 22px;
    }
    .header-cta { margin-left: 8px; padding: 8px 12px; font-size: 12px; }
    .logo-img { height: 38px; width: auto; max-width: 100%; object-fit: contain; }
    .main-nav > li { padding: 0 10px; }
}

/* ============================================================
   移动端触控与一致性（Phase 5A UI 收口）
   - 所有主要交互元素触控高度 ≥44px（WCAG 2.5.5 Target Size）
   - 768px 断点统一：头部 CTA / 卡片按钮 / 下载按钮 / 底部固定询盘条
   ============================================================ */
@media (max-width: 768px) {
    .btn,
    .header-cta,
    .doc-download-btn,
    .mobile-sticky-btn,
    .filter-btn,
    .contact-form button[type="submit"],
    .contact-form-wrap button[type="submit"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* 头部 CTA 在窄屏保留可点面积，同时不挤压 Logo */
    .header-cta {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 44px;
        white-space: nowrap;
    }
    .logo-img { height: 38px; }
    /* 防止底部固定条遮挡页脚最后一行 */
    body { padding-bottom: env(safe-area-inset-bottom); }
    .footer { padding-bottom: 76px; }
}

/* 表格/长文本在窄屏不横向溢出 */
@media (max-width: 768px) {
    .prose-section table,
    .news-detail-body table { display: block; overflow-x: auto; }
    img { max-width: 100%; height: auto; }
}

/* 页面小标题/面包屑（替代重复 h1，保证每页仅一个 h1） */
.page-top-crumb { font-size: 26px; font-weight: 700; text-align: center; color: var(--dark-text); margin: 0; }
.products-cat-title { font-size: 26px; color: var(--dark-text); margin-bottom: 8px; }
