/*
Theme Name: 欣格瑞环境科技
Theme URI: https://www.jngreen.net
Description: 欣格瑞环境科技公司 WordPress 主题 - 工业切削液专业制造商
Author: XinGeRui
Version: 1.0
License: GPL v2
Text Domain: xingerui
*/

/* ============================================
   欣格瑞环境科技 - 切削液网站
   科技蓝 + 纯净白 | 简洁大气
   ============================================ */

/* ========== 变量 ========== */
:root {
    --primary: #1A3A6B;
    --primary-light: #3B82F6;
    --primary-dark: #0B1A30;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --gradient: linear-gradient(135deg, #0B1A30 0%, #1A3A6B 50%, #1E40AF 100%);
    --gradient-light: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    --white: #FFFFFF;
    --bg: #FAFBFC;
    --bg-alt: #F1F5F9;
    --text: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.14);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --max-width: 1200px;
    --header-h: 104px;
    --topbar-h: 38px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 重置 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
input, textarea, button { font-family: inherit; font-size: inherit; outline: none; border: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== 顶部工具栏 ========== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
    background: #0B1A30; z-index: 1001;
    font-size: 12.5px; color: rgba(255,255,255,0.7);
    display: flex; align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-sep { color: rgba(255,255,255,0.2); }
.topbar-right { color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 1px; }
/* 语言切换器 */
.lang-switcher { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; }
.lang-switcher li { position: relative; }
.lang-switcher li::after { content: '|'; color: rgba(255,255,255,0.2); margin-left: 2px; }
.lang-switcher li:last-child::after { content: none; }
.lang-switcher a {
    display: flex; align-items: center; gap: 4px; padding: 2px 4px;
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 11px; border-radius: 3px; transition: all var(--transition);
}
.lang-switcher a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switcher li.active a { color: var(--accent); font-weight: 600; }
.lang-switcher img { flex-shrink: 0; }

/* 导航栏语言下拉 */
.lang-switch {
    position: relative; margin-left: 8px; z-index: 100;
}
.lang-current {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; font-size: 13px; font-weight: 500;
    color: var(--text-body); border: 1px solid var(--border);
    border-radius: var(--radius); background: #fff; white-space: nowrap;
    transition: all var(--transition); cursor: pointer;
    font-family: inherit; line-height: 1.4;
}
.lang-current::after { content: ' ▾'; font-size: 10px; opacity: 0.5; }
.lang-switch.open .lang-current,
.lang-current:hover { border-color: var(--accent); color: var(--accent-hover); background: #FFFBEB; }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    list-style: none; padding: 6px 0; margin: 0; min-width: 170px;
    z-index: 100;
}
.lang-switch.open .lang-dropdown { display: block; }
.lang-dropdown li { border-bottom: 1px solid var(--border-light); }
.lang-dropdown li:last-child { border-bottom: none; }
.lang-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; font-size: 14px;
    color: var(--text-body); text-decoration: none; white-space: nowrap;
    transition: all var(--transition);
}
.lang-dropdown a:hover { background: rgba(245,158,11,0.06); color: var(--accent-hover); }
.lang-dropdown li.active a { color: var(--accent); font-weight: 600; background: rgba(245,158,11,0.04); }
/* 点击外部关闭 */
@media (min-width: 1025px) {
    .lang-switch.open .lang-dropdown { display: block; }
}

/* ========== 主导航 ========== */
.header {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }
.logo span { font-size: 17px; font-weight: 500; color: var(--primary-dark); white-space: nowrap; letter-spacing: 0.3px; }
.nav { display: flex; gap: 4px; }
.nav a {
    display: inline-block; padding: 8px 18px; font-size: 14.5px;
    color: var(--text-body); border-radius: 8px;
    transition: all var(--transition); font-weight: 500;
}
.nav a:hover { color: var(--accent-hover); background: rgba(245,158,11,0.06); }
.nav a.active {
    color: var(--accent-hover); background: rgba(245,158,11,0.1);
    font-weight: 500;
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========== Hero 视频背景 ========== */
.hero {
    margin-top: var(--header-h); position: relative; height: 560px;
    overflow: hidden; background: var(--primary-dark);
}
.hero-video .hero-bg-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-video .hero-poster {
    position: absolute; inset: 0; background-size: cover;
    background-position: center; z-index: 0;
    transition: opacity 0.6s ease;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(11,26,48,0.50) 0%, rgba(26,58,107,0.30) 50%, rgba(11,26,48,0.15) 100%);
    z-index: 2;
}
.hero-particles {
    position: absolute; inset: 0; z-index: 3; opacity: 0.04;
    background-image: radial-gradient(circle at 20% 80%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px),
                      radial-gradient(circle at 50% 50%, #fff 2px, transparent 2px);
    background-size: 60px 60px, 80px 80px, 120px 120px;
}

/* 旧轮播样式保留兼容 */
.hero-slider { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.hero-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: heroZoom 15s ease-in-out infinite alternate; }
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 4; max-width: 800px; margin: 0 auto; text-align: center; padding: 0 40px; }
.hero-content .badge {
    display: inline-block; padding: 6px 20px;
    background: rgba(245,158,11,0.25); color: #fff;
    border-radius: 20px; font-size: 13px; letter-spacing: 2px; margin-bottom: 24px;
    backdrop-filter: blur(4px); border: 1px solid rgba(245,158,11,0.3);
}
.hero-content h1 { font-size: 52px; font-weight: 300; color: #fff; letter-spacing: 0.5px; margin-bottom: 16px; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.82); line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px; border-radius: 30px; font-size: 15px;
    font-weight: 600; cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); text-align: center;
    letter-spacing: 0.3px;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 16px rgba(245,158,11,0.25); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 24px rgba(245,158,11,0.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }
.btn-blue { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-blue:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,0.35); }
.btn-white { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-white:hover { background: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 4; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); background: transparent; cursor: pointer; transition: all var(--transition); padding: 0; }
.hero-dots button.active { background: #fff; border-color: #fff; width: 28px; border-radius: 10px; }

/* ========== 通用区块 ========== */
.section { padding: 100px 0; background: var(--white); }
.section-alt { padding: 100px 0; background: var(--bg); }
.section-lined { padding: 100px 0; background: var(--white); border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
    display: inline-block; padding: 6px 20px;
    background: rgba(245,158,11,0.08); color: var(--accent-hover);
    border-radius: 20px; font-size: 13px; font-weight: 500; letter-spacing: 1.5px;
    margin-bottom: 16px; text-transform: uppercase;
}
.section-header h2 { font-size: 38px; color: var(--text); font-weight: 300; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-header h2 span { color: var(--primary); font-weight: 600; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto; font-weight: 300; }

/* ========== 公司数据亮点 ========== */
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-top: -52px; position: relative; z-index: 5;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); overflow: hidden;
}
.stat-item {
    padding: 36px 24px; text-align: center;
    border-right: 1px solid var(--border-light);
    transition: all var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg); }
.stat-item .num {
    font-size: 42px; font-weight: 300; color: var(--primary);
    line-height: 1.1; margin-bottom: 6px;
}
.stat-item .num span { font-size: 18px; }
.stat-item .label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ========== 产品分类卡片 ========== */
.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
    background: #fff; border-radius: var(--radius-lg); padding: 36px 18px 28px;
    text-align: center; transition: all var(--transition);
    border: 1px solid var(--border-light); position: relative; overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.category-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient); transform: scaleX(0);
    transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-card:hover::before { transform: scaleX(1); }
.category-card .icon { font-size: 40px; margin-bottom: 16px; transition: transform var(--transition); }
.category-card:hover .icon { transform: scale(1.1); }
.category-card h3 { font-size: 16px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.category-card p { font-size: 13px; color: var(--text-muted); }

/* ========== 产品优势 (首页) ========== */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
    background: #fff; border-radius: var(--radius-lg); padding: 36px 24px;
    text-align: center; box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.adv-card .adv-icon {
    width: 64px; height: 64px; margin: 0 auto 18px;
    background: var(--gradient-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
}
.adv-card h4 { font-size: 17px; color: var(--text); font-weight: 500; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ========== 认证Logo条 ========== */
.cert-strip {
    background: #fff; border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 36px 0;
}
.cert-strip .container {
    display: flex; align-items: center; justify-content: center; gap: 48px;
    flex-wrap: wrap;
}
.cert-strip img { height: 56px; object-fit: contain; opacity: 0.75; transition: opacity var(--transition); }
.cert-strip img:hover { opacity: 1; }

/* ========== 产品网格 ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border-light); transition: all var(--transition);
    cursor: pointer; box-shadow: var(--shadow-xs);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card .thumb {
    aspect-ratio: 1; background: var(--bg); display: flex;
    align-items: center; justify-content: center; padding: 24px;
    position: relative; overflow: hidden;
}
.product-card .thumb img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.5s; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .thumb .tag {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; background: var(--accent); color: #fff;
    font-size: 11px; border-radius: 12px; font-weight: 500; letter-spacing: 0.5px;
}
.product-card .info { padding: 16px 20px 20px; }
.product-card .info h4 { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.product-card .info .model { font-size: 12px; color: var(--accent-hover); font-weight: 500; }
.product-card .info .cate { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

/* ========== 筛选标签 ========== */
.filter-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-tabs button {
    padding: 10px 26px; border: 2px solid var(--border); border-radius: 25px;
    background: #fff; color: var(--text-body); font-size: 14px;
    cursor: pointer; transition: all var(--transition); font-weight: 500;
}
.filter-tabs button:hover { border-color: var(--accent); color: var(--accent-hover); }
.filter-tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

/* ========== 产品中心布局（左侧导航 + 右侧列表）========== */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

/* 左侧边栏 */
.products-sidebar {
    position: sticky; top: 120px;
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); overflow: hidden;
}
.sidebar-title {
    font-size: 16px; font-weight: 600; color: #fff;
    background: var(--primary-dark); padding: 18px 22px;
    letter-spacing: 0.5px;
}
.sidebar-nav { padding: 8px 0; }
.sidebar-nav li { border-bottom: 1px solid var(--border-light); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 22px; font-size: 14px; color: var(--text-body);
    transition: all var(--transition); font-weight: 400;
}
.sidebar-nav a:hover { color: var(--accent-hover); background: rgba(245,158,11,0.04); padding-left: 26px; }
.sidebar-nav li.active a {
    color: var(--accent-hover); background: rgba(245,158,11,0.08);
    font-weight: 600; border-left: 3px solid var(--accent);
}
.sidebar-nav .count { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* 侧边栏联系卡片 */
.sidebar-contact {
    margin: 16px; padding: 22px 18px; text-align: center;
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border-radius: var(--radius); border: 1px solid rgba(245,158,11,0.15);
}
.sidebar-contact-icon { font-size: 28px; margin-bottom: 8px; }
.sidebar-contact h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.sidebar-contact p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }

/* 右侧产品区 */
.products-main { min-width: 0; }
.products-header {
    display: flex; align-items: baseline; gap: 16px;
    margin-bottom: 28px; padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}
.products-header h2 { font-size: 24px; font-weight: 500; color: var(--text); }
.products-count { font-size: 14px; color: var(--text-muted); }
.products-empty {
    text-align: center; padding: 80px 0; color: var(--text-muted);
}
.products-empty a { color: var(--accent-hover); font-weight: 600; }

/* 产品卡片缩略图占位 */
.thumb-placeholder {
    font-size: 48px; color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    height: 100%;
}

/* ========== 产品详情页 ========== */
/* 顶部分区：图片 + 基本信息 */
.product-detail-header {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
    align-items: start; margin-bottom: 8px;
}
.product-detail-gallery {
    background: #F8FAFC; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    min-height: 340px; padding: 32px;
}
.product-detail-main-img {
    max-width: 100%; max-height: 380px; object-fit: contain;
    display: block;
}
.product-detail-img-placeholder {
    font-size: 72px; color: var(--text-light);
}
.product-detail-intro {
    display: flex; flex-direction: column; gap: 12px;
}
.product-detail-cat {
    display: inline-block; align-self: flex-start;
    padding: 4px 14px; background: rgba(30,64,175,0.08);
    color: #1E40AF; border-radius: 20px; font-size: 13px; font-weight: 600;
}
.product-detail-model {
    font-size: 28px; color: var(--text); font-weight: 800;
    line-height: 1.3; margin: 0;
}
.product-detail-name {
    font-size: 17px; color: var(--text-body); font-weight: 500;
    margin: 0; line-height: 1.4;
}
.product-detail-features {
    list-style: none; padding: 0; margin: 4px 0;
    display: flex; flex-direction: column; gap: 6px;
}
.product-detail-features li {
    font-size: 14px; color: var(--text-body);
    padding-left: 20px; position: relative; line-height: 1.6;
}
.product-detail-features li::before {
    content: '◆'; position: absolute; left: 0; top: 0;
    color: var(--accent); font-size: 8px;
}
.product-detail-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
/* 联系电话 */
.product-detail-phone {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius);
    margin-top: 4px;
}
.product-detail-phone-label {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
    white-space: nowrap;
}
.product-detail-phone-number {
    font-size: 22px; font-weight: 800; color: var(--accent-hover);
    text-decoration: none; letter-spacing: 0.5px;
    transition: color var(--transition);
}
.product-detail-phone-number:hover { color: var(--primary); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--primary);
    border: 1.5px solid var(--border); text-decoration: none;
    font-weight: 500; cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }

/* 分隔线 */
.section-divider {
    border: none; border-top: 1px solid var(--border);
    margin: 32px 0;
}
.section-divider:last-child { display: none; }

/* 详情内容段 */
.detail-section { margin: 0; }
.detail-section-title {
    font-size: 18px; font-weight: 600; color: var(--primary-dark);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.detail-section-icon { font-size: 20px; }
.detail-section-body {
    font-size: 14px; color: var(--text-body); line-height: 2;
    padding-left: 28px;
}

/* 底部联系卡片 */
.detail-bottom-cta { margin-top: 8px; }
.detail-contact-card {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg);
    padding: 24px 28px;
}
.detail-contact-card-icon { font-size: 42px; flex-shrink: 0; }
.detail-contact-card-text { flex: 1; }
.detail-contact-card-text h4 {
    font-size: 16px; color: var(--text); font-weight: 600; margin: 0 0 4px;
}
.detail-contact-card-text p {
    font-size: 13px; color: var(--text-muted); margin: 0;
}

/* 同类产品推荐 */
.related-products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.related-product-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; background: var(--bg);
    border-radius: var(--radius); border: 1px solid var(--border-light);
    text-decoration: none; transition: all var(--transition);
}
.related-product-item:hover {
    border-color: var(--accent); background: #FFF7ED;
    transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.related-product-item img {
    width: 48px; height: 48px; object-fit: contain;
    border-radius: var(--radius-sm); flex-shrink: 0;
}
.related-product-icon {
    font-size: 32px; flex-shrink: 0; width: 48px; text-align: center;
}
.related-product-info {
    display: flex; flex-direction: column; min-width: 0;
}
.related-product-model {
    font-size: 12px; color: var(--accent-hover); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-product-name {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 产品详情响应式 */
@media (max-width: 1024px) {
    .product-detail-header {
        grid-template-columns: 1fr; gap: 24px;
    }
    .product-detail-gallery { min-height: 240px; }
    .related-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-contact-card { flex-direction: column; text-align: center; }
    .detail-section-body { padding-left: 0; }
    .product-detail-model { font-size: 22px; }
    .product-detail-actions { flex-direction: column; }
    .product-detail-actions .btn { text-align: center; justify-content: center; }
    .product-detail-phone { flex-direction: column; align-items: flex-start; gap: 6px; }
    .product-detail-phone-number { font-size: 20px; }
}
@media (max-width: 480px) {
    .related-products-grid { grid-template-columns: 1fr; }
}

/* ========== 产品详情弹窗 ========== */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(11,26,48,0.65);
    z-index: 2000; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius-xl); max-width: 800px;
    width: calc(100% - 40px); max-height: 85vh; overflow-y: auto;
    box-shadow: var(--shadow-xl); position: relative; animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
    position: sticky; top: 16px; float: right; z-index: 10;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,0,0,0.06); display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 20px;
    transition: all var(--transition); color: var(--text);
    border: none; margin-right: 16px;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }
.modal-body { padding: 20px 40px 40px; }
.modal-body h3 { font-size: 24px; color: var(--text); margin-bottom: 6px; }
.modal-body .model-num { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.modal-body .detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid var(--border-light); }
.modal-body .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-body .spec-item { background: var(--bg); padding: 12px 16px; border-radius: var(--radius-sm); }
.modal-body .spec-item strong { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.modal-body .spec-item span { font-size: 14px; color: var(--text); font-weight: 500; }

/* ========== 新闻卡片 ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .thumb { height: 200px; overflow: hidden; background: var(--bg); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .info { padding: 22px 24px 24px; }
.news-card .info .date { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.news-card .info h4 { font-size: 16px; color: var(--text); line-height: 1.5; margin-bottom: 10px; transition: color var(--transition); }
.news-card:hover .info h4 { color: var(--accent-hover); }
.news-card .info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ========== FAQ 手风琴 ========== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); margin-bottom: 10px;
    overflow: hidden; transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-q {
    padding: 20px 24px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 600; color: var(--text);
    user-select: none; transition: all var(--transition);
}
.faq-q .arrow {
    width: 24px; height: 24px; flex-shrink: 0;
    transition: transform var(--transition); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); color: var(--accent); }
.faq-item.open .faq-q { color: var(--accent-hover); background: rgba(245,158,11,0.04); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ========== 首页联系表单 ========== */
.cta-section {
    background: var(--gradient); padding: 72px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0; opacity: 0.04;
    background: radial-gradient(circle at 30% 50%, #fff 2px, transparent 2px),
                radial-gradient(circle at 70% 30%, #fff 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 32px; color: #fff; font-weight: 300; margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.home-contact-form {
    max-width: 600px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 14px;
}
.home-contact-form .full { grid-column: 1 / -1; }
.home-contact-form input, .home-contact-form textarea {
    width: 100%; padding: 14px 18px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12);
    color: #fff; font-size: 14px; transition: all var(--transition);
}
.home-contact-form input::placeholder, .home-contact-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.home-contact-form input:focus, .home-contact-form textarea:focus {
    background: rgba(255,255,255,0.22); border-color: var(--accent);
}
.home-contact-form textarea { min-height: 100px; border-radius: 20px; resize: vertical; }
.home-contact-form button {
    padding: 14px; border-radius: 30px; background: var(--accent);
    color: #fff; font-weight: 500; font-size: 15px;
    cursor: pointer; transition: all var(--transition); border: none;
}
.home-contact-form button:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }

/* ========== 通用页面Hero ========== */
.page-hero {
    margin-top: var(--header-h); padding: 140px 0; text-align: center; color: #fff;
    position: relative; overflow: hidden; min-height: 380px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient);
    background-size: cover;
    background-position: center 30%;
}
.breadcrumb + .page-hero { margin-top: 0; }
.page-hero::after {
    content: ''; position: absolute; inset: 0; opacity: 0.03;
    background: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 50px 50px; z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 42px; font-weight: 300; margin-bottom: 8px; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.page-hero p { font-size: 16px; opacity: 0.85; font-weight: 300; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }

/* ========== 面包屑 ========== */
.breadcrumb {
    margin-top: var(--header-h); background: #fff;
    padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.breadcrumb .container { font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

/* ========== 关于页面 ========== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-intro .text h2 { font-size: 30px; color: var(--text); margin-bottom: 20px; font-weight: 300; }
.about-intro .text p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 14px; }
.about-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: auto; }

/* 企业文化 */
.culture-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.culture-card {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 28px 22px;
    text-align: center; transition: all var(--transition);
}
.culture-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: transparent;
}
.culture-icon { font-size: 40px; margin-bottom: 12px; }
.culture-card h4 { font-size: 16px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.culture-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* 荣誉资质卡片 */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 24px 20px;
    text-align: center; transition: all var(--transition);
}
.cert-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: transparent;
}
.cert-card img { height: 160px; object-fit: contain; margin: 0 auto 14px; display: block; border-radius: 4px; }
.cert-card h4 { font-size: 15px; color: var(--text); font-weight: 600; }

/* ISO认证卡片 */
.iso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.iso-card {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 24px 20px;
    text-align: center; transition: all var(--transition);
}
.iso-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: transparent;
}
.iso-card img {
    height: 240px; object-fit: contain; margin: 0 auto 14px;
    display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-radius: 4px;
}
.iso-card h4 { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.iso-card p { font-size: 13px; color: var(--text-light); }

/* 发展历程时间线 */
.timeline {
    max-width: 800px; margin: 0 auto; position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px;
    width: 2px; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.timeline-item {
    position: relative; margin-bottom: 32px;
    display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); margin-left: -34px; margin-top: 8px;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
    position: relative; z-index: 1;
}
.timeline-year {
    font-size: 18px; font-weight: 700; color: var(--primary);
    white-space: nowrap; padding-top: 2px;
}
.timeline-card {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow-xs);
}
.timeline-card h4 { font-size: 16px; color: var(--text); font-weight: 600; margin-bottom: 6px; }
.timeline-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* 关于页面响应式 */
@media (max-width: 1024px) {
    .culture-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid, .iso-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .culture-grid { grid-template-columns: 1fr; }
    .cert-grid, .iso-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cert-card img { height: 120px; }
    .iso-card img { height: 200px; }
    .timeline { padding-left: 30px; }
    .timeline-item { grid-template-columns: 1fr; gap: 8px; }
    .timeline-dot { margin-left: -25px; }
}
@media (max-width: 480px) {
    .cert-grid, .iso-grid { grid-template-columns: 1fr; }
}

/* ========== 科研页 ========== */
.research-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rstat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 32px 20px;
    text-align: center; border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.rstat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.rstat-num { font-size: 42px; font-weight: 300; color: var(--primary); margin-bottom: 6px; }
.rstat-num span { font-size: 16px; }
.rstat-label { font-size: 14px; color: var(--text-muted); }

/* 研发方向 */
.rd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-card {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 32px 24px;
    text-align: center; transition: all var(--transition);
}
.rd-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
    border-color: transparent;
}
.rd-icon { font-size: 40px; margin-bottom: 14px; }
.rd-card h4 { font-size: 16px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.rd-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* 科研成果 */
.achievement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.achievement-card {
    background: var(--bg-alt); border-radius: var(--radius-lg);
    padding: 28px; transition: all var(--transition);
}
.achievement-card:hover { background: #fff; box-shadow: var(--shadow-sm); }
.achievement-icon { font-size: 28px; margin-bottom: 10px; }
.achievement-card h4 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.achievement-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* 实验设施 */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.facility-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.facility-card span {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; padding: 40px 20px 16px; font-size: 15px; font-weight: 500;
}

/* ========== 联系页 ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 22px; color: var(--text); margin-bottom: 24px; font-weight: 500; }

/* 联系详情项 */
.contact-detail-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-detail-icon {
    width: 46px; height: 46px; background: rgba(245,158,11,0.08);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-detail-text h4 { font-size: 13px; color: var(--text-light); margin-bottom: 2px; font-weight: 500; }
.contact-detail-text p { font-size: 15px; color: var(--text); font-weight: 500; margin: 0; }
.contact-map-placeholder {
    margin-top: 32px; background: var(--bg-alt); border-radius: var(--radius-lg);
    height: 240px; display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 14px; border: 1px dashed var(--border);
}
.contact-map {
    margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); box-shadow: var(--shadow-xs);
}
.contact-map iframe { display: block; }

/* 联系表单 */
.contact-form-wrap {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-size: 20px; color: var(--text); margin-bottom: 0; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-body); margin-bottom: 5px; font-weight: 500; }
.form-group label .required { color: #EF4444; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px;
    transition: all var(--transition); background: var(--bg);
    color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }
.submit-btn { width: 100%; border-radius: 8px; padding: 14px; font-size: 16px; }

/* 科研/联系响应式 */
@media (max-width: 1024px) {
    .rd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .rd-grid { grid-template-columns: 1fr; }
    .achievement-grid { grid-template-columns: 1fr; }
    .facility-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
.form-group textarea { min-height: 130px; resize: vertical; }
.field-error { color: #EF4444; font-size: 12px; margin-top: 4px; }
/* 表单反馈消息 */
.form-success {
    background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0;
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px;
    font-size: 14px; font-weight: 500;
}
.form-error {
    background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA;
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px;
    font-size: 14px;
}

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-body);
    border: 1px solid var(--border); transition: all var(--transition);
    background: #fff;
}
.pagination a:hover, .pagination span.current {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ========== 页脚 ========== */
.footer {
    background: #0B1A30; color: #7B93AD; padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 44px; }
.footer-col h4 { color: #E2E8F0; font-size: 16px; margin-bottom: 18px; font-weight: 600; }
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 6px; }
.footer-col a { display: block; font-size: 14px; color: #7B93AD; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: #E2E8F0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0; text-align: center; font-size: 13px;
    color: #5A7088;
}
.footer-bottom a { color: #7B93AD; }

/* ========== 新闻页面 ========== */
.news-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.news-main { min-width: 0; }
/* 新闻侧边栏 */
.news-sidebar {
    position: sticky; top: 120px;
    background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--border-light); overflow: hidden;
}
.news-sidebar-list { padding: 4px 0; }
.news-sidebar-list li { border-bottom: 1px solid var(--border-light); }
.news-sidebar-list li:last-child { border-bottom: none; }
.news-sidebar-list a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 18px; text-decoration: none;
    transition: all var(--transition);
}
.news-sidebar-list a:hover { background: rgba(245,158,11,0.04); }
.news-sidebar-list li.active a { background: rgba(30,64,175,0.05); border-left: 3px solid var(--primary); }
.news-sidebar-date { font-size: 11px; color: var(--text-light); }
.news-sidebar-title {
    font-size: 13px; color: var(--text-body); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 新闻缩略图占位 */
.news-thumb-placeholder {
    width: 100%; height: 200px; display: flex; align-items: center;
    justify-content: center; background: var(--bg-alt);
    font-size: 48px; color: var(--text-light);
}

/* 新闻详情文章 */
.news-article-header { margin-bottom: 24px; }
.news-article-header h1 {
    font-size: 28px; color: var(--text); font-weight: 700; line-height: 1.4;
    margin-bottom: 12px;
}
.news-article-meta {
    display: flex; gap: 20px; font-size: 13px; color: var(--text-muted);
    padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.news-article-thumb {
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px;
}
.news-article-thumb img { width: 100%; height: auto; display: block; }
.news-article-content {
    font-size: 16px; color: #334155; line-height: 2;
}
.news-article-content h2 { font-size: 22px; color: var(--text); margin: 32px 0 12px; }
.news-article-content h3 { font-size: 18px; color: var(--text); margin: 24px 0 10px; }
.news-article-content p { margin-bottom: 16px; }
.news-article-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.news-article-content ul, .news-article-content ol { margin: 12px 0 16px; padding-left: 20px; }
.news-article-content li { margin-bottom: 6px; }
/* 上一篇/下一篇 */
.news-article-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-light);
}
.news-article-nav .prev, .news-article-nav .next { font-size: 14px; }
.news-article-nav .next { text-align: right; }
.news-article-nav a { color: var(--text-body); text-decoration: none; }
.news-article-nav a:hover { color: var(--accent-hover); }

/* 新闻响应式 */
@media (max-width: 1024px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
}
@media (max-width: 768px) {
    .news-article-header h1 { font-size: 22px; }
    .news-article-content { font-size: 15px; }
}

/* ========== 入场动画 ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 初始隐藏（等 JS 触发） */
[data-animate] {
    opacity: 0;
    will-change: transform, opacity;
}

/* JS 注入动画类 */
.anim-fadeUp    { animation: fadeUp    0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-fadeIn    { animation: fadeIn    0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-fadeLeft  { animation: fadeLeft  0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-fadeRight { animation: fadeRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-scaleIn   { animation: scaleIn   0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Hero 特殊动画 — 页面加载立即触发 */
.hero .hero-content > * {
    opacity: 0;
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero .hero-content .badge      { animation-delay: 0.1s; }
.hero .hero-content h1          { animation-delay: 0.25s; }
.hero .hero-content p           { animation-delay: 0.4s; }
.hero .hero-content .hero-btns  { animation-delay: 0.55s; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .categories { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-intro { grid-template-columns: 1fr; gap: 32px; }
    .contact-layout { grid-template-columns: 1fr; }
    .research-stats { grid-template-columns: repeat(2, 1fr); }
    .products-layout { grid-template-columns: 1fr; }
    .products-sidebar { position: static; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
    .sidebar-nav li { border: none; }
    .sidebar-nav a { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; }
    .sidebar-nav li.active a { border-left: 1px solid var(--accent); }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .header { top: 0; }
    .hero { margin-top: 64px; }
    .page-hero { margin-top: 64px; }
    .menu-toggle { display: flex; }
    .nav {
        display: none; position: absolute; top: 64px;
        left: 0; right: 0; background: #fff; flex-direction: column;
        padding: 12px; box-shadow: var(--shadow-md); gap: 2px;
        border-bottom: 1px solid var(--border-light);
    }
    .nav.open { display: flex; }
    .hero { height: 440px; }
    .hero-video .hero-bg-video { object-fit: cover; }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 15px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 24px 14px; }
    .stat-item .num { font-size: 30px; }
    .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .advantages { grid-template-columns: 1fr 1fr; gap: 12px; }
    .news-grid { grid-template-columns: 1fr; }
    .home-contact-form { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 30px; }
    .page-hero { padding: 48px 0; }
    .page-hero h1 { font-size: 30px; }
    .filter-tabs { gap: 6px; }
    .filter-tabs button { padding: 8px 16px; font-size: 13px; }
    .modal-body { padding: 16px 24px 28px; }
    .modal-body .specs { grid-template-columns: 1fr; }
    /* FAQ & CTA 双栏变单栏 */
    .faq-layout, .cta-layout { grid-template-columns: 1fr !important; gap: 28px !important; }
    .cta-layout h2 { text-align: center !important; font-size: 24px !important; }
    .cta-layout p { text-align: center !important; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .categories { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages { grid-template-columns: 1fr; }
    .hero { height: 360px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content .badge { font-size: 11px; padding: 4px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .cert-strip .container { gap: 24px; }
    /* 科研 */
    .research-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rstat-num { font-size: 32px; }
    .rstat-card { padding: 20px 12px; }
    .facility-grid { grid-template-columns: 1fr; }
    /* 关于 */
    .timeline { padding-left: 24px; }
    .timeline::before { left: 8px; }
    .timeline-dot { width: 10px; height: 10px; margin-left: -20px; }
    .timeline-year { font-size: 16px; }
    .culture-card { padding: 20px 16px; }
    .culture-icon { font-size: 32px; }
    /* 联系 */
    .contact-form-wrap { padding: 24px 18px; }
    /* 产品详情 */
    .product-detail-gallery { min-height: 200px; padding: 20px; }
    .product-detail-phone-number { font-size: 18px; }
    /* 页面hero */
    .page-hero h1 { font-size: 26px; }
    .page-hero p { font-size: 14px; }
    .breadcrumb { font-size: 12px; padding: 10px 0; }
    /* 侧边栏 */
    .sidebar-contact { margin: 12px; padding: 16px 14px; }
    .cert-strip img { height: 40px; }
}
