/*
Theme Name: HengjiHuike Corporate
Theme URI: https://hengjihuike.cn/
Author: 张兆
Author URI: https://hengjihuike.cn/
Description: 专为陕西恒基汇科装配建筑新材料有限责任公司打造的企业官网主题。现代简约风格，蓝白配色，支持自定义文章类型、幻灯片管理、产品展示、新闻动态等功能。后台可完全自定义所有内容。
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hengjihuike
Copyright: (c) 2026 张兆, All rights reserved.
Tags: one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, featured-images, theme-options, translation-ready, blog, e-commerce
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================
   恒基汇科企业主题 - 主样式表
   现代简约风格 · 蓝白配色
   ============================================ */

/* CSS变量定义 */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e40af;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #0f172a;
    --accent: #0ea5e9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;
    
    --bg-white: #ffffff;
    --bg-gray-50: #f8fafc;
    --bg-gray-100: #f1f5f9;
    --bg-gray-200: #e2e8f0;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* 重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--bg-gray-50); color: var(--primary-dark); }

.btn-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 0.9rem; }
.btn-link i { font-size: 0.75rem; transition: transform 0.3s; }
.btn-link:hover i { transform: translateX(4px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* 顶部通知条 */
.top-bar {
    background: var(--secondary);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { opacity: 0.85; }
.top-bar-right a { color: var(--text-light); margin-left: 20px; opacity: 0.85; font-size: 0.85rem; }
.top-bar-right a:hover { opacity: 1; color: #fff; }

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
.logo-text h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* 主导航 */
.main-nav { flex-grow: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border-radius: var(--radius-sm);
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--primary); background: var(--primary-bg); }
.nav-menu li a:hover::after, .nav-menu li a.active::after { transform: translateX(-50%) scaleX(1); }

/* 头部右侧 */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.mobile-toggle span { display: block; width: 22px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(8px) translateX(6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px) translateX(6px); }

/* 移动端导航 */
.mobile-nav {
    position: fixed; top: 0; right: -100%;
    width: 300px; max-width: 85vw; height: 100vh;
    background: #fff; z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    padding: 90px 25px 30px;
}
.mobile-nav.open { right: 0; }
.mobile-menu li a {
    display: block; padding: 14px 0; color: var(--text-primary);
    font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border-light);
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-contact { margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--primary-bg); }
.mobile-contact a { display: block; padding: 12px; text-align: center; background: var(--primary-bg); border-radius: var(--radius); color: var(--primary); font-weight: 600; }

/* 遮罩层 */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 998;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.overlay.show { opacity: 1; visibility: visible; }

/* 英雄区/轮播图 */
.hero { position: relative; min-height: 700px; overflow: hidden; }
.hero-slider { position: relative; height: 700px; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    display: flex; align-items: center;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; }

.slide-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.slide-bg::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,58,92,0.92) 0%, rgba(45,90,135,0.88) 50%, rgba(37,99,235,0.75) 100%);
}
.default-bg { background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 60%, #3b82f6 100%); }
.green-bg { background: linear-gradient(135deg, #0d4f3c 0%, #15803d 50%, #22c55e 100%); }
.green-bg::after { background: linear-gradient(135deg, rgba(13,79,60,0.92) 0%, rgba(21,128,61,0.88) 50%, rgba(34,197,94,0.75) 100%); }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; min-height: 600px; }

.hero-content { color: #fff; }
.hero-content .badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px; font-size: 0.85rem; font-weight: 500;
    letter-spacing: 1px; margin-bottom: 24px;
}
.hero-content .badge.green { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.35); }

.hero-content h2 { font-size: 3.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 24px; text-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.hero-content h2 span { color: rgba(255,255,255,0.85); font-weight: 400; }
.hero-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; max-width: 520px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); max-height: 500px; object-fit: cover; }

.floating-card {
    background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg); padding: 40px 50px;
    text-align: center; color: #fff;
    animation: floatCard 6s ease-in-out infinite;
}
.floating-card i { font-size: 3.5rem; margin-bottom: 16px; display: block; color: rgba(255,255,255,0.95); }
.floating-card span { font-size: 1.15rem; font-weight: 500; }

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.slider-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; z-index: 5; }
.slider-prev, .slider-next {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.35); }

.slider-dots { display: flex; gap: 10px; }
.slider-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer; transition: var(--transition);
}
.slider-dots .dot.active { background: #fff; width: 32px; border-radius: 6px; }

.scroll-indicator {
    position: absolute; bottom: 30px; right: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.65); font-size: 0.8rem;
    animation: bounceDown 2s infinite;
}
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* 区块标题样式 */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .subtitle {
    display: inline-block; color: var(--primary); font-size: 0.85rem;
    font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin-bottom: 16px; }
.section-header.light .subtitle { color: rgba(255,255,255,0.8); }
.section-header.light h2 { color: #fff; }
.section-header .divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px; margin: 0 auto 20px;
}
.section-header .divider.white { background: linear-gradient(90deg, #fff, rgba(255,255,255,0.6)); }
.section-header .section-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-footer { text-align: center; margin-top: 50px; }

/* 关于我们模块 */
.about-section { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 45% 55%; gap: 70px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.about-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: var(--primary); border-radius: var(--radius-lg);
}
.about-placeholder i { font-size: 3rem; }

.experience-badge {
    position: absolute; bottom: 24px; right: 24px;
    background: var(--primary); color: #fff;
    padding: 18px 24px; border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow-lg);
}
.experience-badge .number { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1; }
.experience-badge .text { font-size: 0.8rem; opacity: 0.9; }

.about-content h3 { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.about-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }

.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.highlight-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--primary-bg); border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--primary-dark); font-weight: 500;
}
.highlight-item i { color: var(--primary); flex-shrink: 0; }

/* 荣誉资质 */
.certifications-section { background: var(--bg-gray-50); padding: 70px 0; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cert-card {
    background: #fff; padding: 36px 24px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--border-light);
}
.cert-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cert-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.cert-icon i { font-size: 1.8rem; color: var(--primary); }
.cert-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.cert-card p { font-size: 0.85rem; color: var(--text-muted); }

/* 产品中心 */
.products-section { background: var(--bg-white); }
.product-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; }
.tab-btn {
    padding: 12px 32px; background: var(--bg-gray-100);
    border: 2px solid var(--border-color); border-radius: 50px;
    font-size: 0.95rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }

.product-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.product-thumb a { display: block; width: 100%; height: 100%; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-thumb img { transform: scale(1.08); }

.product-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-gray-100), var(--primary-bg));
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.product-placeholder i { font-size: 2.5rem; }

.product-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex; justify-content: center; opacity: 0;
    transform: translateY(10px); transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; transform: translateY(0); }

.product-body { padding: 24px; }
.product-cat {
    display: inline-block; padding: 4px 12px;
    background: var(--primary-bg); color: var(--primary);
    font-size: 0.78rem; font-weight: 600; border-radius: 50px; margin-bottom: 12px;
}
.product-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-body h3 a { color: var(--text-primary); }
.product-body h3 a:hover { color: var(--primary); }

.product-model { display: inline-block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.product-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

.product-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border-light);
}
.product-price { font-weight: 700; color: var(--primary); font-size: 1.05rem; }

/* 产品八大特点 */
.features-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e40af 100%);
    color: #fff;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: var(--transition);
}
.feature-card:hover {
    background: rgba(255,255,255,0.15); transform: translateY(-5px);
    border-color: rgba(255,255,255,0.25);
}
.feature-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon i { font-size: 1.6rem; color: #fff; }
.feature-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 0.88rem; opacity: 0.85; line-height: 1.7; }
.feature-card p strong { color: #93c5fd; }

/* 数据统计 */
.stats-section { background: var(--primary); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; color: #fff; }
.stat-number { font-size: 3.5rem; font-weight: 900; line-height: 1; display: inline; }
.stat-unit { font-size: 1.5rem; font-weight: 600; opacity: 0.8; display: inline; margin-left: 4px; }
.stat-label { font-size: 1rem; opacity: 0.85; margin-top: 8px; }

/* 新闻动态 */
.news-section { background: var(--bg-gray-50); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.news-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.news-thumb a { display: block; width: 100%; height: 100%; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }

.news-date-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--primary); color: #fff;
    padding: 10px 14px; border-radius: var(--radius-sm); text-align: center; line-height: 1;
}
.date-day { display: block; font-size: 1.5rem; font-weight: 900; }
.date-month { display: block; font-size: 0.75rem; opacity: 0.85; margin-top: 4px; }

.news-body { padding: 28px; }
.news-cat {
    display: inline-block; padding: 4px 12px;
    background: var(--primary-bg); color: var(--primary);
    font-size: 0.78rem; font-weight: 600; border-radius: 50px; margin-bottom: 12px;
}
.news-body h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.news-body h3 a { color: var(--text-primary); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.news-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border-light);
    font-size: 0.85rem; color: var(--text-muted);
}
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; }
.read-more i { font-size: 0.75rem; }

/* CTA行动号召 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 80px 0; text-align: center; color: #fff;
}
.cta-content h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.cta-content p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* 联系我们 */
.contact-section { background: var(--bg-gray-50); }
.contact-grid {
    display: grid; grid-template-columns: 42% 58%; gap: 50px;
    background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff; padding: 50px 40px;
}
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon {
    width: 48px; height: 48px; background: rgba(255,255,255,0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon i { font-size: 1.1rem; }
.contact-detail h4 { font-size: 0.85rem; font-weight: 600; opacity: 0.8; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { color: #fff; font-size: 1rem; font-weight: 500; }

.wechat-qrcode { margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; }
.wechat-qrcode img { width: 140px; height: 140px; margin: 0 auto 10px; border-radius: var(--radius); border: 3px solid rgba(255,255,255,0.3); }
.wechat-qrcode span { font-size: 0.85rem; opacity: 0.8; }

/* 表单 */
.contact-form-wrapper { padding: 50px 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem; color: var(--text-primary);
    background: var(--bg-white); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-bg);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

/* 页脚 */
.footer { background: var(--secondary); color: var(--text-light); }
.footer-main { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about p { opacity: 0.75; margin-top: 16px; line-height: 1.7; font-size: 0.92rem; }
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 45px; width: auto; }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--text-light);
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-col h4 {
    color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 20px;
    position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 3px; background: var(--primary); border-radius: 2px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted); font-size: 0.92rem; transition: var(--transition);
    display: inline-flex; align-items: center;
}
.footer-links a::before {
    content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    margin-right: 8px; font-size: 0.75rem; opacity: 0.5;
}
.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-contact-list li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; font-size: 0.9rem; color: var(--text-muted);
}
.footer-contact-list li i { color: var(--primary-light); width: 18px; text-align: center; }
.footer-contact-list a { color: var(--text-muted); }
.footer-contact-list a:hover { color: #fff; }

.footer-qrcode { margin-top: 20px; text-align: center; }
.footer-qrcode img {
    width: 120px; height: 120px; border-radius: var(--radius);
    margin: 0 auto 8px; border: 2px solid rgba(255,255,255,0.1);
}
.footer-qrcode span { font-size: 0.8rem; color: var(--text-muted); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom .icp a { color: var(--text-muted); }
.footer-bottom .icp a:hover { color: var(--primary-light); }

/* 返回顶部 */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: var(--transition); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-4px); }

/* 面包屑 */
.breadcrumb { padding: 20px 0; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 8px; color: var(--border-color); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* 分页 */
.pagination { margin-top: 40px; }
.pagination ul { display: flex; justify-content: center; gap: 8px; }
.pagination li a, .pagination li span {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition);
}
.pagination li a:hover, .pagination li span.current {
    background: var(--primary); border-color: var(--primary); color: #fff;
}

/* 文章列表/详情页 */
.post-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
    transition: var(--transition); margin-bottom: 28px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-thumb { overflow: hidden; aspect-ratio: 16/10; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 24px; }
.post-cat {
    display: inline-block; padding: 4px 12px;
    background: var(--primary-bg); color: var(--primary);
    font-size: 0.78rem; font-weight: 600; border-radius: 50px; margin-bottom: 10px;
}
.post-body h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.post-body h2 a { color: var(--text-primary); }
.post-body h2 a:hover { color: var(--primary); }

.post-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.post-excerpt { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.read-more-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* 单篇文章 */
.post-single {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow);
}
.post-header { padding-bottom: 24px; border-bottom: 1px solid var(--border-light); margin-bottom: 28px; }
.post-meta-top { display: flex; gap: 20px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.post-title { font-size: 2rem; font-weight: 800; line-height: 1.3; color: var(--text-primary); }
.post-categories { display: flex; gap: 8px; margin-top: 14px; }
.cat-tag { padding: 4px 14px; background: var(--primary-bg); color: var(--primary); font-size: 0.82rem; font-weight: 600; border-radius: 50px; }
.post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.post-thumbnail img { width: 100%; }

.post-content { font-size: 1.02rem; line-height: 1.9; color: var(--text-primary); }
.post-content p { margin-bottom: 18px; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; }
.post-content h2, .post-content h3, .post-content h4 { margin-top: 32px; margin-bottom: 16px; color: var(--text-primary); }

.post-tags { display: flex; align-items: center; gap: 10px; padding: 20px 0; margin-top: 28px; border-top: 1px solid var(--border-light); color: var(--text-secondary); }
.post-share { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.post-share a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-gray-100); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: var(--transition);
}
.post-share a:hover { background: var(--primary); color: #fff; }

.post-navigation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 28px; padding: 20px; background: var(--bg-gray-50); border-radius: var(--radius);
}
.nav-prev a, .nav-next a { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.nav-next { text-align: right; }
.nav-next a { justify-content: flex-end; }

.author-box {
    display: flex; gap: 20px; padding: 24px;
    background: var(--bg-gray-50); border-radius: var(--radius); margin-top: 20px;
}
.author-avatar img { width: 72px; height: 72px; border-radius: 50%; }
.author-info h4 { font-weight: 700; margin-bottom: 4px; }
.author-info p { font-size: 0.9rem; color: var(--text-secondary); }

/* 页面包装器 */
.page-wrapper, .single-wrapper, .archive-wrapper {
    display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 30px 0 60px;
}
.page-wrapper .page-content, .single-main, .archive-main { min-width: 0; }

/* 侧边栏 */
.sidebar { position: sticky; top: 110px; align-self: start; }
.widget {
    background: #fff; border-radius: var(--radius); padding: 24px;
    margin-bottom: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.widget-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); color: var(--text-primary); }

.widget-search form { display: flex; border: 2px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.widget-search input { flex: 1; border: none; padding: 10px 14px; outline: none; font-size: 0.9rem; }
.widget-search button { background: var(--primary); color: #fff; border: none; padding: 10px 16px; cursor: pointer; }

.widget-list li a {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border-light); color: var(--text-secondary); font-size: 0.92rem;
}
.widget-list li:last-child a { border-bottom: none; }
.widget-list li a:hover, .widget-list li a.active { color: var(--primary); }
.widget-list .count { font-size: 0.8rem; color: var(--text-muted); }

.widget-post-list .widget-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.widget-post-item:last-child { border-bottom: none; }
.widget-post-item a { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; line-height: 1.4; }
.widget-post-item a:hover { color: var(--primary); }
.post-date-sm { font-size: 0.78rem; color: var(--primary); font-weight: 600; flex-shrink: 0; }

.widget-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.widget-contact p i { color: var(--primary); width: 18px; text-align: center; }

.contact-widget .contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; }
.contact-widget .contact-item a { color: var(--text-secondary); font-weight: 500; }
.contact-widget .contact-item a:hover { color: var(--primary); }
.contact-widget .contact-item i { color: var(--primary); width: 18px; text-align: center; }

.qrcode-widget { text-align: center; }
.qrcode-widget img { max-width: 140px; border-radius: var(--radius); margin: 0 auto 8px; }
.qrcode-caption { font-size: 0.85rem; color: var(--text-muted); }

/* 404错误页 */
.error-content { text-align: center; padding: 100px 20px; }
.error-code {
    font-size: 8rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.error-content h1 { font-size: 2rem; margin: 20px 0 12px; }
.error-content > p { color: var(--text-secondary); margin-bottom: 30px; }
.error-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 50px; }
.error-search { max-width: 480px; margin: 0 auto 40px; }
.error-search form { display: flex; border: 2px solid var(--border-color); border-radius: 50px; overflow: hidden; background: #fff; }
.error-search input { flex: 1; border: none; padding: 14px 24px; outline: none; font-size: 1rem; }
.error-search button { background: var(--primary); color: #fff; border: none; padding: 14px 28px; cursor: pointer; }
.quick-links h3 { font-size: 1.1rem; margin-bottom: 16px; }
.quick-links ul { display: flex; justify-content: center; gap: 24px; }
.quick-links a { color: var(--text-secondary); font-weight: 500; }
.quick-links a:hover { color: var(--primary); }

.no-content { text-align: center; padding: 80px 20px; }
.no-content-icon { font-size: 4rem; color: var(--text-muted); margin-bottom: 20px; }
.no-content h2 { margin-bottom: 12px; }
.no-content p { color: var(--text-secondary); margin-bottom: 24px; }
.no-content-actions { display: flex; justify-content: center; gap: 16px; }

/* 搜索结果页 */
.search-header { margin-bottom: 40px; }
.search-header h1 { font-size: 2rem; margin-bottom: 24px; }
.search-header h1 span { color: var(--primary); }
.search-form-wrapper { margin-bottom: 20px; }
.search-form-large {
    display: flex; border: 2px solid var(--border-color);
    border-radius: 50px; overflow: hidden; background: #fff; max-width: 600px; margin: 0 auto;
}
.search-form-large input { flex: 1; border: none; padding: 14px 24px; outline: none; font-size: 1rem; }
.search-count { color: var(--text-secondary); text-align: center; }

.result-item {
    display: grid; grid-template-columns: 180px 1fr; gap: 24px;
    background: #fff; padding: 24px; border-radius: var(--radius);
    margin-bottom: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
    transition: var(--transition);
}
.result-item:hover { box-shadow: var(--shadow-md); }
.result-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; background: var(--bg-gray-100); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.post-type-badge { display: inline-block; padding: 3px 10px; background: var(--primary-bg); color: var(--primary); font-size: 0.75rem; font-weight: 600; border-radius: 50px; margin-bottom: 8px; }
.result-info h2 { font-size: 1.2rem; margin-bottom: 8px; }
.result-info h2 a { color: var(--text-primary); }
.result-info h2 a:hover { color: var(--primary); }
.result-info p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 12px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.no-results { text-align: center; padding: 60px 20px; }
.no-results i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.no-results h2 { margin-bottom: 10px; }
.no-results p { color: var(--text-secondary); margin-bottom: 24px; }
.no-results-links { display: flex; justify-content: center; gap: 16px; }

/* 分类筛选 */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.category-filter a {
    padding: 8px 20px; background: var(--bg-gray-100);
    border: 1px solid var(--border-color); border-radius: 50px;
    font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition);
}
.category-filter a:hover, .category-filter a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 评论区域 */
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 2px solid var(--border-light); }
.comment-reply-title { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { padding: 20px; background: var(--bg-gray-50); border-radius: var(--radius); margin-bottom: 16px; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author img { width: 44px; height: 44px; border-radius: 50%; }
.comment-meta { font-size: 0.85rem; color: var(--text-muted); }
.comment-content { font-size: 0.95rem; line-height: 1.7; color: var(--text-primary); }
.reply a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* 响应式设计 */

/* 平板 (<=1024px) */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .hero-slider { height: 550px; } .hero { min-height: 550px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-number { font-size: 2.8rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .product-hero { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { gap: 4px; }
    .nav-menu li a { padding: 8px 14px; font-size: 0.88rem; }
    .header-actions .btn { display: none; }
    .page-wrapper, .single-wrapper, .archive-wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .result-item { grid-template-columns: 140px 1fr; }
    .scroll-indicator { display: none; }
}

/* 手机 (<=768px) */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .header-inner { height: 66px; }
    .logo img { height: 40px; }
    .logo-text h1 { font-size: 1.2rem; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header { margin-bottom: 40px; }
    .hero-slider { height: 520px; } .hero { min-height: 520px; }
    .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
    .slider-controls { bottom: 20px; }
    .slider-prev, .slider-next { width: 38px; height: 38px; }
    .about-highlights { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-section { padding: 50px 0; }
    .stat-number { font-size: 2.5rem; }
    .product-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .product-tabs { flex-wrap: wrap; }
    .tab-btn { font-size: 0.88rem; padding: 10px 22px; }
    .news-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 1.7rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
    .contact-info { padding: 30px 24px; }
    .contact-form-wrapper { padding: 30px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .post-single .post-header { text-align: center; }
    .post-title { font-size: 1.5rem; }
    .post-categories { justify-content: center; }
    .post-meta-top { justify-content: center; }
    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
    .author-box { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .post-thumbnail { margin-top: 16px; }
    .product-tab-nav { flex-direction: column; }
    .product-tab-nav .tab-btn { border-bottom: 1px solid var(--border-color); margin-bottom: 0; }
    .product-tab-nav .tab-btn.active { border-bottom-color: var(--primary); }
    .product-tab-content { padding: 20px; }
    .specs-table th, .specs-table td { padding: 12px 14px; font-size: 0.88rem; }
    .related-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
    .search-form-large { flex-direction: column; border-radius: var(--radius); }
    .error-code { font-size: 5rem; }
    .error-content h1 { font-size: 1.5rem; }
    .error-actions { flex-direction: column; }
    .quick-links ul { flex-direction: column; gap: 12px; }
    .result-item { grid-template-columns: 1fr; }
    .result-thumb { aspect-ratio: 16/9; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
    .widget { padding: 18px; }
}

/* 小屏手机 (<=480px) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h2 { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.5rem; }
    .cta-content h2 { font-size: 1.4rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
    .floating-card { padding: 28px 32px; }
    .floating-card i { font-size: 2.5rem; }
    .experience-badge { bottom: 14px; right: 14px; padding: 14px 18px; }
    .experience-badge .number { font-size: 1.4rem; }
}

/* 打印样式 */
@media print {
    .header, .footer, .back-to-top, .mobile-nav, .overlay,
    .hero-slider, .cta-section, .contact-section { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
