/*
Theme Name: 弹珠奇兵科技主题
Theme URI: https://example.com/pinball-theme
Author: 韩智
Author URI: https://example.com
Description: 弹珠奇兵儿童动漫游戏机官网主题 - 科技感深色风格，支持产品展示、案例展示、新闻发布等功能。
Version: 1.3.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinball-theme
Tags: custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ========================================
   CSS Variables - 科技感配色体系
   ======================================== */
:root {
    --color-bg-primary: #0a0a1a;
    --color-bg-secondary: #111128;
    --color-bg-card: #1a1a3e;
    --color-bg-card-hover: #222255;
    --color-accent-primary: #00d4ff;
    --color-accent-secondary: #7b2dff;
    --color-accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2dff 100%);
    --color-text-primary: #e8e8f0;
    --color-text-secondary: #a0a0b8;
    --color-text-muted: #6a6a80;
    --color-border: rgba(0, 212, 255, 0.15);
    --color-border-hover: rgba(0, 212, 255, 0.4);
    --color-glow: rgba(0, 212, 255, 0.3);
    --color-success: #00ff88;
    --color-warning: #ffaa00;
    --font-primary: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --header-height: 90px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: #40e0ff;
}

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

ul, ol {
    list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    color: var(--color-accent-primary);
}

/* ========================================
   Grid Background Animation
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(90deg, rgba(20, 14, 6, 0.94) 0%, rgba(35, 22, 8, 0.94) 50%, rgba(20, 14, 6, 0.94) 100%);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 170, 0, 0.3);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 200, 50, 0.1) inset;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background: linear-gradient(90deg, rgba(20, 14, 6, 0.98) 0%, rgba(35, 22, 8, 0.98) 50%, rgba(20, 14, 6, 0.98) 100%);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 170, 0, 0.2) inset;
    border-bottom-color: rgba(255, 170, 0, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

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

.site-logo .logo-text {
    background: linear-gradient(135deg, #ffcc33 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffaa00, #ff6b00);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.main-navigation a:hover {
    color: #ffcc33;
    background: rgba(255, 170, 0, 0.08);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 60%;
}

.main-navigation .current-menu-item a {
    color: #ffcc33;
    background: rgba(255, 170, 0, 0.1);
}

.header-cta {
    margin-left: 8px;
}

.header-cta .btn {
    padding: 12px 26px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ffaa00, #ff6b00);
    border: none;
    color: #1a0f00;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(255, 140, 0, 0.35);
    transition: all var(--transition-fast);
}

.header-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.5);
    color: #1a0f00;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(123, 45, 255, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, 2%) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--color-accent-primary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .highlight {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Brand Intro (GEO/SEO)
   ======================================== */
.brand-intro-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.06) 0%, rgba(255, 107, 0, 0.04) 100%);
    border: 1px solid rgba(255, 170, 0, 0.18);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}

.brand-intro-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffcc33, #ff6b00);
}

.brand-intro-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffcc33 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-intro-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #c8c8d8;
    margin-bottom: 16px;
}

.brand-intro-content p:last-of-type {
    margin-bottom: 0;
}

.brand-intro-content strong {
    color: #ffd966;
    font-weight: 600;
}

.brand-intro-content a {
    color: #ffcc33;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 204, 51, 0.4);
    transition: all var(--transition-fast);
}

.brand-intro-content a:hover {
    color: #ff6b00;
    border-bottom-color: #ff6b00;
}

.brand-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 170, 0, 0.15);
}

.brand-intro-meta .meta-item {
    font-size: 0.9rem;
    color: #b0b0c0;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 170, 0, 0.12);
}

@media (max-width: 768px) {
    .brand-intro-wrapper {
        padding: 32px 24px;
    }
    .brand-intro-title {
        font-size: 1.4rem;
    }
    .brand-intro-content p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    .brand-intro-meta {
        gap: 8px;
    }
    .brand-intro-meta .meta-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ========================================
   Product Cards
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.product-info {
    padding: 28px;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--color-accent-primary);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.product-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-primary);
}

.product-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.product-link:hover::after {
    transform: translateX(4px);
}

/* ========================================
   Features / Advantages Section
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Cases / Portfolio Section
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.case-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.case-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 24px 24px;
    background: linear-gradient(transparent, rgba(10, 10, 26, 0.95));
}

.case-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-location {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   News / Blog Section
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* Blog layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Horizontal news card */
.news-card {
    display: flex;
    flex-direction: row;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.news-card-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 160px;
    overflow: hidden;
    display: block;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.news-meta .category a {
    color: var(--color-accent-primary);
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.45;
}

.news-title a {
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    font-size: 0.85rem;
    color: var(--color-accent-primary);
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
}

.news-read-more:hover {
    text-decoration: underline;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    border-color: var(--color-border-hover);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
}

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

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 0;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-links a:hover {
    color: var(--color-accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================
   Single Post / Page Content
   ======================================== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header .page-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-area {
    padding: 64px 0;
}

.post-content,
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2,
.page-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: var(--color-text-primary);
}

.post-content h3,
.page-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 16px;
}

.post-content p,
.page-content p {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.post-content img,
.page-content img {
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.post-content li,
.page-content li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    list-style: disc;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 3px solid var(--color-accent-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.post-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ========================================
   Sidebar / Widget Area
   ======================================== */
.sidebar .widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* ========================================
   WordPress Specific Overrides
   ======================================== */
.wp-block-image figcaption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

.wp-block-quote {
    border-left: 3px solid var(--color-accent-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.wp-block-code {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow-x: auto;
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    text-align: left;
}

.wp-block-table th {
    background: var(--color-bg-card);
    font-weight: 600;
}

/* WordPress Menu Active State */
.current-menu-item a {
    color: var(--color-accent-primary) !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
    background: rgba(0, 212, 255, 0.08);
}

.pagination .current {
    background: var(--color-accent-gradient);
    color: #fff;
    border: none;
}

/* ========================================
   404 Page
   ======================================== */
.error-404 {
    text-align: center;
    padding: 160px 24px;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* ========================================
   Scroll Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 900px) {
    .main-navigation a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .header-cta .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        min-height: 80vh;
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 24px 20px 32px;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        border-bottom: 1px solid var(--color-border);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-wrapper.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-navigation {
        position: static;
        width: 100%;
        background: none;
        backdrop-filter: none;
        padding: 0;
        transform: none;
        opacity: 1;
        pointer-events: all;
        border: none;
        order: 1;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-navigation a {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        min-height: 52px;
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        background: rgba(0, 212, 255, 0.1);
    }

    .header-cta {
        margin-left: 0;
        margin-top: 20px;
        order: 2;
        display: block;
    }

    .header-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-radius: var(--radius-xl);
    }

    body.menu-open {
        overflow: hidden;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .products-grid,
    .cases-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* 首页新闻：手机端竖排两列卡（上图下文），列表页横排卡不受影响 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    .news-grid .news-card {
        flex-direction: column;
    }

    .news-grid .news-card a {
        display: block;
    }

    .news-grid img.news-image {
        width: 100%;
        height: 110px;
        object-fit: cover;
        display: block;
    }

    .news-grid .news-content {
        padding: 10px 12px 12px;
    }

    .news-grid .news-meta {
        font-size: 0.7rem;
        gap: 6px;
        margin-bottom: 4px;
    }

    .news-grid .news-title {
        font-size: 0.85rem;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .news-grid .news-excerpt {
        display: none;
    }

    /* 手机端footer重排 v1.3.6：品牌全宽+两栏链接并排+联系横排，压缩高度 */
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px 18px;
        padding-bottom: 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-brand .site-logo {
        margin-bottom: 10px;
    }

    .footer-brand p {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a,
    .footer-contact .footer-links li {
        font-size: 0.82rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-contact .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 18px;
    }

    .footer-contact .footer-links li {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 18px 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .footer-beian a {
        color: var(--color-text-muted);
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .site-logo img {
        height: 32px;
    }

    .nav-wrapper {
        padding: 20px 16px 28px;
    }

    .hero {
        padding: 90px 16px 50px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 100px 16px 40px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .product-info,
    .contact-form {
        padding: 20px;
    }

    /* News list tablet */
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        order: 2;
    }

    .news-card-thumb {
        width: 160px;
        height: 130px;
    }

    .news-card-body {
        padding: 16px 20px;
    }

    .news-title {
        font-size: 1.05rem;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .contact-item {
        padding: 16px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .main-navigation a {
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.1);
    }

    .btn,
    .product-card,
    .case-card,
    .news-card,
    .feature-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========================================
   Comments
   ======================================== */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--color-text-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
    margin-top: 16px;
    border-left: 2px solid rgba(255, 170, 0, 0.15);
}

.comment-body {
    display: flex;
    gap: 14px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 170, 0, 0.2);
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #ffd966;
    margin-bottom: 6px;
}

.comment-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.comment-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 0 8px;
}

.reply a {
    font-size: 0.85rem;
    color: var(--color-accent-primary);
    text-decoration: none;
}

.no-comments {
    text-align: center;
    color: var(--color-text-muted);
    padding: 24px;
}

.comment-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 18px;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.comment-form .required {
    color: #ff6b6b;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: rgba(255, 170, 0, 0.5);
}

.form-submit {
    margin: 0;
}

/* ========================================
   Product Detail Page v1.2.6
   ======================================== */

/* Hero区 */
.product-hero {
    text-align: center;
}

.product-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-category-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 170, 0, 0.12);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}

/* 详情主布局 */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    margin-bottom: 56px;
    align-items: start;
}

/* 图片区 */
.product-gallery-main {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a5e 100%);
}

/* 缩略图 */
.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}

.product-thumb-item:hover {
    border-color: #ffaa00;
}

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

/* 信息区 */
.product-detail-info {
    min-width: 0;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* 参数卡片 */
.product-specs-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 12px 0;
    color: var(--color-text-muted);
    width: 40%;
    font-size: 0.9rem;
}

.spec-value {
    padding: 12px 0;
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

/* CTA按钮 */
.product-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.product-cta-btn {
    flex: 1;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
}

/* 服务标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-tag {
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.08);
    color: var(--color-success);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
}

/* 产品详情内容区 */
.product-content-wrapper {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 48px;
}

.product-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ffaa00;
    display: inline-block;
}

/* 响应式视频容器 - 核心修复 */
.product-content,
.entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* WordPress自带视频播放器 */
.product-content .wp-video,
.entry-content .wp-video,
.product-content video,
.entry-content video,
.product-content .wp-block-video,
.entry-content .wp-block-video {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-content video,
.entry-content video {
    height: auto !important;
    display: block;
}

/* iframe / embed / object 响应式包裹 */
.product-content iframe,
.entry-content iframe,
.product-content embed,
.entry-content embed,
.product-content object,
.entry-content object {
    max-width: 100% !important;
    border-radius: var(--radius-md);
}

/* 16:9 响应式视频容器（自动包裹YouTube/B站等） */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 20px 0;
    background: #000;
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper embed,
.video-responsive-wrapper object,
.video-responsive-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 4:3 视频容器 */
.video-responsive-wrapper.ratio-43 {
    padding-bottom: 75%;
}

/* 内容区图片响应式 */
.product-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* 内容区段落间距 */
.product-content p,
.entry-content p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.product-content h2,
.entry-content h2,
.product-content h3,
.entry-content h3,
.product-content h4,
.entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

/* 上一篇/下一篇 */
.product-nav-links {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.product-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.product-nav-item:hover {
    border-color: #ffaa00;
    transform: translateY(-2px);
}

.product-nav-item.next {
    text-align: right;
}

.nav-direction {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.nav-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关产品 */
.related-products {
    border-top: 1px solid var(--color-border);
    padding-top: 48px;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

/* ========================================
   Product Detail Responsive
   ======================================== */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery-main {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .product-detail-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .product-cta-group {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 1.6rem;
    }

    .product-detail-layout {
        gap: 24px;
        margin-bottom: 40px;
    }

    .product-main-image {
        aspect-ratio: 4 / 3;
    }

    .product-placeholder {
        font-size: 4rem;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .product-thumb-item {
        width: 60px;
        height: 60px;
    }

    .product-detail-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }

    .product-specs-card {
        padding: 18px;
        margin-bottom: 24px;
    }

    .spec-label {
        width: 35%;
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .spec-value {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .product-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .product-cta-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .product-tags {
        gap: 8px;
    }

    .product-tag {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .product-content-wrapper {
        padding: 20px;
        margin-bottom: 32px;
    }

    .product-section-title {
        font-size: 1.2rem;
    }

    .product-nav-links {
        flex-direction: column;
        gap: 12px;
    }

    .product-nav-item,
    .product-nav-item.next {
        text-align: center;
        padding: 16px 20px;
    }

    .related-products {
        padding-top: 32px;
    }

    .related-title {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .product-content-wrapper {
        padding: 16px;
    }

    .product-thumb-item {
        width: 52px;
        height: 52px;
    }
}

/* ========================================
   手机端产品列表 + 内容区图片视频适配 v1.2.6
   ======================================== */

/* 产品列表卡片图片固定高度 */
.product-card .product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* 内容区所有图片自适应 */
.entry-content img,
.product-content img,
.article-content img,
.content-area img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 内容区视频播放器自适应 */
.entry-content video,
.product-content video,
.article-content video,
.content-area video,
.entry-content .wp-video,
.product-content .wp-video,
.article-content .wp-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    display: block;
    margin: 16px auto;
}

/* iframe/embed 响应式 */
.entry-content iframe,
.product-content iframe,
.article-content iframe,
.content-area iframe,
.entry-content embed,
.product-content embed,
.article-content embed,
.content-area embed {
    max-width: 100% !important;
    border-radius: var(--radius-md);
}

/* 手机端产品/案例/特色两列 + 新闻首页两列 v1.3.3 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    .product-card .product-image {
        height: 130px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: .92rem;
    }

    /* 案例卡、特色卡窄列适配 */
    .cases-grid,
    .features-grid {
        gap: 14px;
    }
    .feature-card {
        padding: 14px;
    }
    .feature-icon {
        font-size: 1.6rem;
    }
    .feature-title {
        font-size: .92rem;
    }
    .feature-desc {
        font-size: .8rem;
    }
    .case-image {
        height: 110px;
    }
    .case-title {
        font-size: .92rem;
    }
    .case-location {
        font-size: .75rem;
    }

    /* 手机端内容区视频和图片适中 */
    .entry-content,
    .product-content,
    .article-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .entry-content img,
    .product-content img,
    .article-content img {
        max-height: 280px;
        object-fit: contain;
        margin: 12px auto;
    }

    .entry-content video,
    .product-content video,
    .article-content video,
    .entry-content .wp-video,
    .product-content .wp-video {
        margin: 12px auto;
        border-radius: 8px;
    }

    /* iframe视频容器手机端 */
    .video-responsive-wrapper {
        margin: 12px 0;
    }

    /* 手机端段落间距 */
    .entry-content p,
    .product-content p,
    .article-content p {
        margin-bottom: 1em;
    }
}

@media (max-width: 480px) {
    .product-card .product-image {
        height: 180px;
    }

    .entry-content img,
    .product-content img,
    .article-content img {
        max-height: 240px;
    }

    .product-content-wrapper {
        padding: 16px;
    }
}

/* ========================================
   News list mobile
   ======================================== */
@media (max-width: 600px) {
    .news-list {
        gap: 14px;
    }

    .news-card {
        flex-direction: row;
        border-radius: 10px;
    }

    .news-card-thumb {
        width: 120px;
        height: 100px;
    }

    .news-card-body {
        padding: 12px 14px;
    }

    .news-meta {
        gap: 8px;
        margin-bottom: 4px;
        font-size: 0.75rem;
    }

    .news-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        line-height: 1.35;
    }

    .news-excerpt {
        font-size: 0.82rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }

    .news-read-more {
        font-size: 0.8rem;
    }

    .pagination {
        margin-top: 24px;
    }

    .pagination .nav-links {
        gap: 4px;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .news-card-thumb {
        width: 100px;
        height: 85px;
    }

    .news-card-body {
        padding: 10px 12px;
    }

    .news-title {
        font-size: 0.88rem;
    }

    .news-excerpt {
        display: none;
    }
}


/* ========================================
   Video Section Styles
   ======================================== */

/* Video grid layout (archive page) */
.video-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.video-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.video-card:hover .video-thumb-img {
    transform: scale(1.05);
}

.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.video-play-icon.large {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(245, 158, 11, 1);
}

.video-card-body {
    padding: 20px;
}

.video-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-card-title a {
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-title a:hover {
    color: var(--color-accent-primary);
}

.video-card-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.video-card-desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.video-douyin-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.video-douyin-link:hover {
    text-decoration: underline;
}

/* Single video page */
.single-video {
    max-width: 900px;
    margin: 0 auto;
}

.single-video-header {
    margin-bottom: 28px;
}

.single-video-header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.single-video-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.douyin-btn {
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    border: 1px solid #333;
}

.douyin-btn:hover {
    background: #fe2c55;
    border-color: #fe2c55;
    color: #fff;
}

.single-video-cover {
    position: relative;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.single-video-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.single-video-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.single-video-cta {
    margin-top: 40px;
    text-align: center;
}

.related-videos {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.related-videos h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.related-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-video-card {
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.related-video-card:hover {
    transform: translateY(-3px);
}

.related-thumb,
.related-video-card .video-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.related-video-title {
    font-size: 0.88rem;
    color: var(--color-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Homepage video section */
.videos-section {
    background: linear-gradient(180deg, var(--color-bg-page) 0%, var(--color-bg-section) 100%);
}

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.home-video-card {
    text-decoration: none;
    transition: all var(--transition-normal);
}

.home-video-card:hover {
    transform: translateY(-4px);
}

.home-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #000;
}

.home-video-thumb img,
.home-video-thumb .video-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.home-video-info time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.no-videos {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
    grid-column: 1 / -1;
}

/* Responsive videos */
@media (max-width: 1024px) {
    .video-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-video-header h1 {
        font-size: 1.4rem;
    }

    .single-video-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .home-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-play-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}


/* ===== 视频中心目录页 v1.2 ===== */
.video-catalog {
    max-width: 960px;
    margin: 0 auto;
}
.video-catalog-stats {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: .95rem;
    margin: -4px 0 28px;
}
.video-catalog-stats strong {
    color: var(--color-accent-primary);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    padding: 0 2px;
}
.vcat-month {
    margin-bottom: 34px;
}
.vcat-month-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}
.vcat-month-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--color-accent-gradient);
    flex: none;
}
.vcat-month-count {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}
.vcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vcat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: var(--radius-md, 10px);
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, transform .2s;
}
.vcat-item:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    transform: translateX(4px);
}
.vcat-item a.vcat-link {
    text-decoration: none;
}
.vcat-thumb {
    position: relative;
    flex: none;
    width: 118px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-card);
}
.vcat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vcat-thumb .video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
    background: rgba(0,0,0,.12);
}
.vcat-info {
    flex: 1;
    min-width: 0;
}
.vcat-title {
    display: block;
    color: var(--color-text-primary);
    font-size: .95rem;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}
.vcat-item:hover .vcat-title {
    color: var(--color-accent-primary);
}
.vcat-date {
    color: var(--color-text-muted);
    font-size: .8rem;
    font-family: var(--font-mono);
}
.vcat-dy {
    flex: none;
    font-size: .8rem;
    color: var(--color-accent-primary);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 5px 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.vcat-dy:hover {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 12px var(--color-glow);
}
@media (max-width: 640px) {
    .vcat-item { gap: 10px; padding: 8px; }
    .vcat-thumb { width: 92px; height: 54px; }
    .vcat-dy { padding: 4px 8px; font-size: .72rem; }
    .vcat-title { font-size: .88rem; }
}

/* ===== 封面/播放按钮直接跳抖音 v1.3 ===== */
a.single-video-cover-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}
a.single-video-cover-link:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--color-accent-primary);
    color: #06121f;
}
a.single-video-cover-link img { transition: transform .3s; }
a.single-video-cover-link:hover img { transform: scale(1.03); }

/* ===== 产品卡片等高修复 (2026-09-01) ===== */
.products-grid {
    align-items: stretch;
}
.product-card {
    display: flex !important;
    flex-direction: column;
}
.product-card > a {
    display: block;
    flex-shrink: 0;
}
.product-card .product-image,
.product-card img.wp-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card .product-excerpt {
    flex: 1;
}
.product-card .product-link {
    margin-top: auto;
}
@media (max-width: 768px) {
    .product-card .product-image,
    .product-card img.wp-post-image {
        height: 200px;
    }
}

