/*
Theme Name: Qishan Industrial 启栅工业
Theme URI: https://www.qishan-sh.com
Author: Qishan Automation
Author URI: https://www.qishan-sh.com
Description: 工业简约风格企业官网主题，适配国内网络环境，支持Elementor可视化编辑，内置自定义文章类型（产品/案例/资讯）、分类子分类、缩略图、SEO功能。高端大气工业自动化设备企业官网主题。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qishan-industrial
Tags: industrial, business, corporate, minimal, elementor, seo, custom-post-types, responsive, translation-ready
*/

/* ========================================
   主题基础样式 - 工业简约风格
   配色：深灰 #1a1a1a / 工业蓝 #2c5f8a / 浅灰 #f5f6f8
   字体：系统中文字体栈，无海外字体依赖
   ======================================== */

:root {
    --qs-primary: #2c5f8a;
    --qs-primary-dark: #1e4566;
    --qs-primary-light: #3d7ab0;
    --qs-dark: #1a1a1a;
    --qs-dark-2: #2d2d2d;
    --qs-gray: #666;
    --qs-gray-light: #999;
    --qs-bg: #ffffff;
    --qs-bg-gray: #f5f6f8;
    --qs-bg-dark: #1a1a1a;
    --qs-border: #e5e7eb;
    --qs-text: #333;
    --qs-text-light: #666;
    --qs-white: #fff;
    --qs-accent: #c8a96a;
    --qs-transition: all 0.3s ease;
    --qs-container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--qs-text);
    background: var(--qs-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--qs-primary);
    text-decoration: none;
    transition: var(--qs-transition);
}

a:hover {
    color: var(--qs-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--qs-dark);
    line-height: 1.4;
    margin-bottom: 15px;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 15px;
}

.container {
    max-width: var(--qs-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航
   ======================================== */
.site-header {
    background: var(--qs-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--qs-transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--qs-dark);
    letter-spacing: 1px;
}

.main-navigation ul {
    display: flex;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 18px;
    color: var(--qs-dark);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--qs-primary);
    background: rgba(44,95,138,0.06);
}

/* 子菜单 */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--qs-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--qs-transition);
    z-index: 999;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0;
}

.main-navigation .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--qs-dark);
    font-weight: 600;
    font-size: 16px;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    fill: var(--qs-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--qs-dark);
    margin: 5px 0;
    transition: var(--qs-transition);
}

/* ========================================
   Hero 横幅区
   ======================================== */
.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c5f8a 100%);
    color: var(--qs-white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--qs-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--qs-transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--qs-primary);
    color: var(--qs-white);
    border-color: var(--qs-primary);
}

.btn-primary:hover {
    background: var(--qs-primary-dark);
    border-color: var(--qs-primary-dark);
    color: var(--qs-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44,95,138,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--qs-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: var(--qs-white);
    color: var(--qs-primary);
    border-color: var(--qs-white);
}

.btn-dark {
    background: var(--qs-dark);
    color: var(--qs-white);
    border-color: var(--qs-dark);
}

.btn-dark:hover {
    background: var(--qs-dark-2);
    color: var(--qs-white);
}

/* ========================================
   通用区块
   ======================================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--qs-bg-gray);
}

.section-dark {
    background: var(--qs-bg-dark);
    color: var(--qs-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--qs-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--qs-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--qs-primary);
    margin: 16px auto 0;
}

.section-desc {
    color: var(--qs-gray);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   关于我们 / 企业简介
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--qs-primary);
    border-radius: 8px;
    z-index: -1;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--qs-gray);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid var(--qs-border);
    border-bottom: 1px solid var(--qs-border);
}

.stat-item .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--qs-primary);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--qs-gray);
    margin-top: 8px;
}

/* ========================================
   产品中心网格
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--qs-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: var(--qs-transition);
    border: 1px solid var(--qs-border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--qs-bg-gray);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--qs-primary);
    color: var(--qs-white);
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.product-body {
    padding: 24px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--qs-dark);
}

.product-title a:hover {
    color: var(--qs-primary);
}

.product-excerpt {
    font-size: 14px;
    color: var(--qs-gray);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--qs-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-more:hover {
    gap: 10px;
}

/* ========================================
   案例展示
   ======================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--qs-white);
}

.case-overlay h3 {
    color: var(--qs-white);
    font-size: 18px;
    margin-bottom: 8px;
}

.case-overlay p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* ========================================
   新闻资讯
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--qs-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--qs-border);
    transition: var(--qs-transition);
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.news-thumb {
    height: 200px;
    overflow: hidden;
    background: var(--qs-bg-gray);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 22px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--qs-gray-light);
    margin-bottom: 12px;
}

.news-meta .news-cat {
    color: var(--qs-primary);
    font-weight: 600;
}

.news-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-title a {
    color: var(--qs-dark);
}

.news-title a:hover {
    color: var(--qs-primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--qs-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   服务优势
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 35px 25px;
    background: var(--qs-white);
    border-radius: 8px;
    border: 1px solid var(--qs-border);
    transition: var(--qs-transition);
}

.feature-item:hover {
    border-color: var(--qs-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44,95,138,0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(44,95,138,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--qs-primary);
}

.feature-item h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--qs-gray);
    margin-bottom: 0;
}

/* ========================================
   联系我们 CTA
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--qs-primary-dark) 0%, var(--qs-primary) 100%);
    color: var(--qs-white);
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--qs-white);
    font-size: 30px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}

.cta-phone {
    font-size: 32px;
    font-weight: 700;
    color: var(--qs-white);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ========================================
   页面标题区（内页）
   ======================================== */
.page-banner {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c5f8a 100%);
    color: var(--qs-white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--qs-white);
    font-size: 34px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========================================
   文章详情页
   ======================================== */
.single-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--qs-border);
}

.single-header h1 {
    font-size: 30px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--qs-gray-light);
}

.single-meta a {
    color: var(--qs-primary);
}

.single-thumbnail {
    margin-bottom: 35px;
    border-radius: 8px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
}

.entry-content {
    font-size: 16px;
    line-height: 2;
    color: var(--qs-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    border-radius: 6px;
    margin: 20px 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.entry-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--qs-primary);
    padding: 15px 20px;
    background: var(--qs-bg-gray);
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

/* 产品详情参数表 */
.product-specs {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.product-specs th,
.product-specs td {
    border: 1px solid var(--qs-border);
    padding: 12px 16px;
    text-align: left;
}

.product-specs th {
    background: var(--qs-bg-gray);
    font-weight: 600;
    color: var(--qs-dark);
    width: 30%;
}

/* 上一篇/下一篇 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--qs-border);
    gap: 20px;
}

.post-nav-item {
    flex: 1;
    padding: 18px 22px;
    background: var(--qs-bg-gray);
    border-radius: 6px;
    transition: var(--qs-transition);
}

.post-nav-item:hover {
    background: rgba(44,95,138,0.08);
}

.post-nav-item .nav-label {
    font-size: 12px;
    color: var(--qs-gray-light);
    margin-bottom: 6px;
}

.post-nav-item .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--qs-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-next {
    text-align: right;
}

/* ========================================
   归档/列表页
   ======================================== */
.archive-header {
    text-align: center;
    padding: 50px 0 30px;
}

.archive-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--qs-gray);
    font-size: 15px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

/* 分类筛选栏 */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-filter a {
    padding: 8px 22px;
    border: 1px solid var(--qs-border);
    border-radius: 30px;
    font-size: 14px;
    color: var(--qs-gray);
    background: var(--qs-white);
    transition: var(--qs-transition);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--qs-primary);
    color: var(--qs-white);
    border-color: var(--qs-primary);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 60px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--qs-border);
    border-radius: 6px;
    color: var(--qs-gray);
    font-size: 14px;
    background: var(--qs-white);
    transition: var(--qs-transition);
}

.pagination .page-numbers:hover,
.pagination .current {
    background: var(--qs-primary);
    color: var(--qs-white);
    border-color: var(--qs-primary);
}

/* ========================================
   侧边栏
   ======================================== */
.sidebar {
    padding: 20px 0;
}

.widget {
    background: var(--qs-white);
    border: 1px solid var(--qs-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--qs-primary);
    display: inline-block;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--qs-border);
    font-size: 14px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--qs-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--qs-primary);
}

.widget .cat-count {
    background: var(--qs-bg-gray);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--qs-gray-light);
}

/* 搜索框 */
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--qs-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
}

.widget_search .search-field:focus {
    border-color: var(--qs-primary);
}

.widget_search .search-submit {
    padding: 10px 18px;
    background: var(--qs-primary);
    color: var(--qs-white);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--qs-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--qs-white);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--qs-primary);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    max-height: 40px;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--qs-transition);
}

.footer-col ul li a:hover {
    color: var(--qs-white);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--qs-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

/* ========================================
   404页面
   ======================================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 .error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--qs-primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--qs-gray);
    margin-bottom: 30px;
}

/* ========================================
   Elementor 兼容
   ======================================== */
.elementor-page .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.elementor-page .page-banner {
    display: none;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1024px) {
    .product-grid,
    .case-grid,
    .news-grid,
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    .section { padding: 50px 0; }
    .hero-section { min-height: 420px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .section-title { font-size: 24px; }
    .product-grid,
    .case-grid,
    .news-grid,
    .archive-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .header-contact {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--qs-white);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        padding: 15px 20px;
        transform: translateY(-120%);
        transition: var(--qs-transition);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .main-navigation.active {
        transform: translateY(0);
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }
    .main-navigation li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    .post-navigation {
        flex-direction: column;
    }
    .post-nav-next {
        text-align: left;
    }
    .cta-phone {
        font-size: 24px;
    }
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none; }

/* 图片懒加载占位 */
img.lazy {
    background: var(--qs-bg-gray);
    min-height: 100px;
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .pagination,
    .post-navigation {
        display: none !important;
    }
    .single-content {
        max-width: 100%;
        padding: 0;
    }
}
