/* Doolike B2B Website - Main Styles */
/* Modern, Clean, SEO-Optimized Design */
/* Version 3 - Fixed image aspect ratio */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #52525b; /* Improved contrast ratio: 7:1 */
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --max-width: 1280px;
}

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

/* 防止页面水平滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

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

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #fff;
}

.header-top a:hover {
    opacity: 1;
}

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

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 45px;
    width: 45px;
    aspect-ratio: 1;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

/* Navigation */
.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   Language Switcher 语言切换器
   ============================================ */
.language-switcher {
    position: relative;
    margin-left: 16px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    font-size: 13px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.lang-dropdown.active + .lang-btn .lang-arrow,
.language-switcher:focus-within .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-option.active {
    background: var(--bg-gray);
    color: var(--primary);
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 18px;
}

.lang-option .lang-name {
    flex: 1;
}

/* Inline Language Switcher (alternative style) */
.language-switcher-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.language-switcher-inline .lang-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-switcher-inline .lang-link:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.language-switcher-inline .lang-link.active {
    color: var(--primary);
    font-weight: 700;
}

.language-switcher-inline .lang-sep {
    color: var(--border);
}

/* RTL Support 阿拉伯语等从右到左语言 */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .header-main .container,
html[dir="rtl"] .nav,
html[dir="rtl"] .logo,
html[dir="rtl"] .footer-grid {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat .stat-number {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.hero-stat p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Product Cards - 正方形图片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

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

.product-image {
    display: block;
    aspect-ratio: 1/1;
    background: var(--bg-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-info h3 a {
    color: var(--secondary);
}

.product-info h3 a:hover {
    color: var(--primary);
}

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

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 32px;
}

.feature-item h3 {
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
}

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

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-list {
    list-style: none;
    margin: 24px 0;
}

.about-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.about-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    position: relative;
}

.testimonial-quote {
    color: var(--primary);
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text);
}

.testimonial-author small {
    color: var(--text-light);
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
}

.faq-item h4 {
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-light);
}

/* Factory Images Grid */
.factory-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.factory-image-item {
    border-radius: var(--radius);
    overflow: hidden;
}

.factory-image-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Certifications Grid */
.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cert-item {
    text-align: center;
}

.cert-icon {
    width: 100px;
    height: 100px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow);
}

.cert-icon span {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.cert-icon svg {
    color: var(--primary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge-item {
    text-align: center;
}

.trust-badge-icon {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-badge-icon span {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.trust-badge-icon svg {
    color: var(--primary);
}

.trust-badge-item > span {
    font-size: 12px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 简化版 Footer 两栏布局 */
.footer-grid.footer-simple {
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Footer 链接行保持单行 */
.footer-contact p:last-child {
    white-space: nowrap;
}

.footer-brand p {
    color: rgba(255,255,255,0.85);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.footer ul a:hover {
    color: #fff;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Blog Cards - 正方形图片 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    display: block;
    aspect-ratio: 1/1;
    background: var(--bg-light);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
}

.blog-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.blog-card h3 a {
    color: var(--secondary);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Breadcrumb - 美化版面包屑导航 */
.breadcrumb {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-light);
    border-bottom: 1.5px solid var(--text-light);
    transform: rotate(-45deg);
    margin: 0 12px;
    opacity: 0.5;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li:last-child {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-light);
    transition: all 0.2s ease;
    padding: 4px 0;
    position: relative;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb a:hover::after {
    width: 100%;
}

/* 首页图标 */
.breadcrumb .home-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb .home-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 分类高亮（权重最高的关键词） */
.breadcrumb .category-link {
    color: var(--secondary);
    font-weight: 500;
}

.breadcrumb .category-link:hover {
    color: var(--primary);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-light);
}

.product-main-image img {
    width: 100%;
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.product-thumb:hover {
    border-color: var(--primary);
}

.product-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

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

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.product-moq {
    display: inline-block;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-specs {
    margin: 30px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.product-specs h3 {
    margin-bottom: 16px;
}

.specs-list {
    display: grid;
    gap: 12px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.specs-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.specs-list span:first-child {
    color: var(--text-light);
}

/* Inquiry Form */
.inquiry-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 40px;
}

.inquiry-section h2 {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-card {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-card h4 {
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--text-light);
    font-size: 15px;
}

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

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

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

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

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

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

    /* 产品列表侧边栏在平板上隐藏 */
    .products-page-grid {
        grid-template-columns: 1fr !important;
    }

    .products-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 基础字体调整 */
    html {
        font-size: 15px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 16px;
    }

    /* 顶部导航栏优化 */
    .header-top {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .logo img {
        height: 36px;
        width: 36px;
    }

    .logo-text {
        font-size: 20px;
    }

    /* 移动端菜单 */
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        z-index: 1001;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 17px;
        color: var(--text);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* 语言切换器移动端 - 放在左侧 logo 旁边 */
    .language-switcher {
        margin-left: 8px;
        margin-right: auto;
        order: 1; /* logo 后面 */
    }

    .lang-btn {
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lang-code {
        display: none; /* 移动端隐藏文字 */
    }

    .lang-arrow {
        display: none;
    }

    /* 移动端下拉菜单 - 从左侧展开 */
    .lang-dropdown {
        left: 0;
        right: auto;
        min-width: 150px;
        max-width: calc(100vw - 32px);
    }

    /* 搜索按钮移动端 */
    .search-btn {
        order: 2;
    }

    /* 确保菜单按钮在最右边 */
    .mobile-menu-btn {
        order: 3;
    }

    /* Hero区域移动端 - 工厂背景带模糊效果 */
    .hero {
        padding: 40px 0;
        position: relative;
        overflow: hidden;
    }

    /* 模糊背景图层 */
    .hero::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: url('../images/factory/factory.jpg') center 30% / 100% auto no-repeat;
        background-color: #0f172a;
        z-index: 0;
    }

    /* 渐变遮罩层 */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 58, 95, 0.7) 100%);
        z-index: 1;
    }

    /* 确保内容在最上层 */
    .hero .container {
        position: relative;
        z-index: 2;
    }

    /* 文字加阴影，确保在亮色背景上也清晰 */
    .hero-content h1,
    .hero-content p {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    }

    /* 移动端隐藏元素 */
    .hide-mobile {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 30px;
        padding-top: 24px;
    }

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

    .hero-stat p {
        font-size: 12px;
    }

    /* Section移动端 */
    .section {
        padding: 40px 0;
    }

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

    .section-header p {
        font-size: 1rem;
    }

    /* ========================================
       核心网格布局 - 强制覆盖基础CSS (使用!important)
       ======================================== */

    /* 分类卡片移动端 - 三列紧凑布局 */
    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .category-card {
        padding: 12px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .category-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }

    .category-card h3 {
        margin-bottom: 0 !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }

    .category-card p {
        display: none !important;
    }

    .category-card .btn {
        display: none !important;
    }

    /* 产品卡片移动端 - 双列 */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        border-radius: 8px !important;
    }

    .product-image {
        aspect-ratio: 1 !important;
    }

    .product-info {
        padding: 12px !important;
    }

    .product-category {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }

    .product-info h3 {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-info p {
        display: none !important;
    }

    .product-info .btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 13px !important;
        margin-top: 8px !important;
    }

    /* 特性网格移动端 - 六个特性 2行×3列 */
    .features-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .feature-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 12px 6px !important;
        background: var(--bg) !important;
        border-radius: var(--radius) !important;
        border: 1px solid var(--border) !important;
    }

    .feature-icon {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .feature-item h3 {
        margin-bottom: 0 !important;
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }

    .feature-item p {
        display: none !important;
    }

    /* 客户评价移动端 - 三列紧凑布局 */
    .testimonials-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .testimonial-card {
        padding: 12px 8px !important;
        background: var(--bg-light) !important;
        border-radius: var(--radius) !important;
    }

    .testimonial-quote {
        font-size: 20px !important;
        margin-bottom: 6px !important;
        color: var(--primary) !important;
        line-height: 1 !important;
    }

    .testimonial-card p {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-style: italic !important;
        color: var(--text) !important;
    }

    .testimonial-author strong {
        font-size: 11px !important;
    }

    .testimonial-author small {
        font-size: 9px !important;
        color: var(--text-light) !important;
    }

    /* 信任徽章移动端 - 六个徽章，3列×2行 */
    .trust-badges {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .trust-badge-item {
        text-align: center !important;
    }

    .trust-badge-icon {
        width: 50px !important;
        height: 50px !important;
        background: #fff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .trust-badge-icon span {
        font-size: 14px !important;
        font-weight: bold !important;
        color: var(--primary) !important;
    }

    .trust-badge-item > span {
        font-size: 10px !important;
        color: var(--text-light) !important;
        display: block !important;
    }

    /* 博客卡片移动端 - 双列紧凑布局 */
    .blog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .blog-card-image {
        aspect-ratio: 1/1 !important;
    }

    .blog-card-content {
        padding: 10px !important;
    }

    .blog-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .blog-card p {
        display: none !important;
    }

    .blog-meta {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .blog-card .btn {
        display: none !important;
    }

    /* FAQ移动端紧凑布局 - 双列 */
    .faq-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        max-width: none !important;
    }

    .faq-item {
        padding: 12px !important;
        margin-bottom: 0 !important;
        background: var(--bg) !important;
        border-radius: var(--radius) !important;
    }

    .faq-item h4 {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .faq-item p {
        font-size: 11px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: var(--text-light) !important;
    }

    /* About页面工厂图片网格 - 四列 */
    .factory-images-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .factory-image-item img {
        height: 80px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* 认证徽章移动端 - 四列圆形图标 */
    .certifications-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }

    .cert-item {
        text-align: center !important;
    }

    .cert-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 8px !important;
        background: #fff !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .cert-icon span {
        font-size: 12px !important;
        font-weight: bold !important;
        color: var(--primary) !important;
    }

    .cert-item h4 {
        font-size: 10px !important;
    }

    /* ========================================
       其他移动端优化
       ======================================== */

    /* About区域移动端 */
    .about-grid {
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-list {
        margin: 16px 0;
    }

    .about-list li {
        padding: 6px 0;
        padding-left: 24px;
        font-size: 14px;
    }

    /* CTA区域移动端 */
    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Footer移动端 - 简洁紧凑布局 */
    .footer {
        padding: 20px 0 0;
    }

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

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        font-size: 12px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer h4 {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .footer-contact p {
        font-size: 12px;
        margin-bottom: 6px;
        display: inline-block;
        margin-right: 16px;
    }

    .footer-bottom {
        padding: 12px 0;
        font-size: 11px;
    }

    /* 表单移动端 */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    /* 产品详情页移动端 */
    .product-detail {
        padding: 20px 0;
    }

    .product-detail-grid {
        gap: 24px;
    }

    .product-gallery {
        position: static;
    }

    .product-main-image {
        margin-bottom: 12px;
    }

    /* 产品缩略图移动端 - 横向滚动 */
    .product-thumbnails {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-detail-info h1 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .product-moq {
        padding: 6px 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .product-specs {
        padding: 16px;
        margin: 16px 0;
    }

    .product-specs h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* Mobile Card View for Specifications - GEO Optimized */
    .specs-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .specs-list li {
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        border: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .specs-list li:last-child {
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
    }

    .specs-list span:first-child {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.7;
    }

    .specs-list span:last-child {
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
    }

    .inquiry-section {
        padding: 20px;
        margin-top: 24px;
        border-radius: var(--radius);
    }

    .inquiry-section h2 {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    /* Related Products 移动端 */
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 联系页移动端 - 紧凑布局 */
    .contact-grid {
        gap: 20px;
    }

    .contact-info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .contact-info-card {
        padding: 12px 10px;
        margin-bottom: 0;
        text-align: center;
        flex-direction: column;
    }

    .contact-info-card .icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin: 0 auto 8px;
    }

    .contact-info-card h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .contact-info-card p {
        font-size: 11px;
    }

    /* 面包屑移动端 */
    .breadcrumb {
        padding: 12px 0;
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb ul {
        flex-wrap: nowrap;
    }

    .breadcrumb li::after {
        margin: 0 8px;
    }

    .breadcrumb .home-icon span {
        display: none;
    }

    /* Page Header移动端 */
    .page-header {
        padding: 40px 0;
    }

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

    .page-header p {
        font-size: 14px;
    }

    /* 分页移动端 */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* WhatsApp浮动按钮移动端 */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    /* 按钮移动端 */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大点击区域 */
    .nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    /* 禁用hover效果 */
    .product-card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    .whatsapp-float:hover {
        transform: none;
    }

    /* 点击反馈 */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .product-card:active {
        opacity: 0.9;
    }

    .category-card:active {
        opacity: 0.9;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        display: none;
    }

    .section {
        padding: 30px 0;
    }
}

/* iOS安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   Blog Article Content Styles
   匹配 TinyMCE 编辑器排版效果
   ======================================== */

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}

/* 段落间距 */
.article-content p {
    margin-bottom: 1.5em;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* 标题样式 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    color: var(--secondary);
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child {
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content h4 {
    font-size: 1.2rem;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
    line-height: 1.8;
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5em 0;
    display: block;
}

.article-content img.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.article-content img.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.article-content img.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* 图片说明 */
.article-content figure {
    margin: 1.5em 0;
}

.article-content figcaption {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
}

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

.article-content table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary);
}

.article-content table tr:nth-child(even) {
    background: var(--bg-light);
}

.article-content table tr:hover {
    background: #f1f5f9;
}

/* 引用块样式 */
.article-content blockquote {
    margin: 1.5em 0;
    padding: 1.5em 2em;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
}

.article-content blockquote p {
    margin-bottom: 0.5em;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

/* 代码样式 */
.article-content code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #e91e63;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5em;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* 链接样式 */
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary);
}

/* 分隔线 */
.article-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2.5em 0;
}

/* 强调文本 */
.article-content strong,
.article-content b {
    font-weight: 600;
    color: var(--secondary);
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content mark {
    background: #fef08a;
    padding: 1px 4px;
    border-radius: 2px;
}

/* 视频嵌入 */
.article-content iframe,
.article-content video {
    max-width: 100%;
    margin: 1.5em 0;
    border-radius: var(--radius);
}

.article-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5em 0;
}

.article-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* 清除浮动 */
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

/* 移动端文章样式 */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    .article-content table th,
    .article-content table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .article-content img.alignleft,
    .article-content img.alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }

    .article-content blockquote {
        padding: 1em 1.5em;
        margin-left: 0;
        margin-right: 0;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 1.5em;
    }
}

/* ========================================
   小屏幕手机优化 (iPhone SE, 375px 等)
   ======================================== */
@media (max-width: 400px) {
    /* 容器更小的边距 */
    .container {
        padding: 0 12px;
    }

    /* Header 更紧凑 */
    .logo img {
        height: 32px;
        width: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    /* 语言切换器更紧凑 */
    .language-switcher {
        margin-left: 6px;
    }

    .lang-btn {
        padding: 6px 10px;
        min-width: 40px;
        min-height: 40px;
    }

    .lang-flag {
        font-size: 18px;
    }

    /* Hero 区域更紧凑 */
    .hero {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stat .stat-number {
        font-size: 1.25rem;
    }

    .hero-stat p {
        font-size: 10px;
    }

    /* 分类卡片更小 */
    .category-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .category-card h3 {
        font-size: 0.65rem !important;
    }

    /* 产品卡片更紧凑 */
    .products-grid {
        gap: 8px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-info h3 {
        font-size: 0.85rem !important;
    }

    /* 特性网格更紧凑 */
    .feature-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .feature-item h3 {
        font-size: 0.6rem !important;
    }

    /* 按钮更紧凑 */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Section 间距更小 */
    .section {
        padding: 30px 0;
    }

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

    .section-header h2 {
        font-size: 1.3rem;
    }

    /* 产品详情页更紧凑 */
    .product-detail-info h1 {
        font-size: 1.2rem;
    }

    .product-thumb {
        width: 50px;
        height: 50px;
    }

    /* 表单更紧凑 */
    .inquiry-section {
        padding: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
    }

    /* CTA 区域更紧凑 */
    .cta-section {
        padding: 30px 0;
    }

    .cta-section h2 {
        font-size: 1.25rem;
    }

    /* Footer 更紧凑 */
    .footer-brand p {
        font-size: 11px;
    }

    .footer-bottom {
        font-size: 10px;
    }

    /* WhatsApp 按钮更小 */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
   Product Description - AI Generated Content Styles
   ============================================================ */

/* Section Headers with Icon */
.product-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 28px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

/* Feature List */
.product-content .feature-list,
.product-content .benefit-list,
.product-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.product-content .feature-list li,
.product-content .benefit-list li,
.product-content ul li {
    position: relative;
    padding: 12px 16px 12px 36px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.2s ease;
}

.product-content .feature-list li:hover,
.product-content .benefit-list li:hover,
.product-content ul li:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(4px);
}

.product-content .feature-list li::before,
.product-content .benefit-list li::before,
.product-content ul li::before {
    content: "\2713";
    position: absolute;
    left: 12px;
    color: var(--success);
    font-weight: bold;
}

.product-content .benefit-list li::before {
    content: "\2605";
    color: var(--warning);
}

.product-content li strong {
    color: var(--text-dark);
}

/* Specs Table */
.product-content .specs-table,
.product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-content .specs-table th,
.product-content table th {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.product-content .specs-table td,
.product-content table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.product-content .specs-table tr:last-child td,
.product-content table tr:last-child td {
    border-bottom: none;
}

.product-content .specs-table tr:nth-child(even),
.product-content table tr:nth-child(even) {
    background: #f9fafb;
}

.product-content .specs-table tr:hover td,
.product-content table tr:hover td {
    background: #f0f9ff;
}

.product-content .specs-table td:first-child,
.product-content table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
    width: 40%;
}

/* Opening Paragraph */
.product-content > p:first-child {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-content h3 {
        font-size: 1.1rem;
        margin: 24px 0 12px 0;
    }

    .product-content .feature-list li,
    .product-content .benefit-list li,
    .product-content ul li {
        padding: 10px 12px 10px 32px;
        font-size: 0.9rem;
    }

    .product-content .specs-table th,
    .product-content .specs-table td,
    .product-content table th,
    .product-content table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .product-content .specs-table td:first-child,
    .product-content table td:first-child {
        width: 45%;
    }
}

/* ============================================
   Mobile Category Filter (Products Page)
   ============================================ */
.mobile-category-filter {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 60px;
    z-index: 99;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-tag {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 992px) {
    .mobile-category-filter {
        display: block;
    }
}

/* ============================================
   Search Button & Overlay
   ============================================ */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: 8px;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 90%;
    max-width: 700px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-close:hover {
    opacity: 1;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0 20px;
}

.search-input-wrapper svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 18px 16px;
    font-size: 18px;
    background: transparent;
    outline: none;
}

.search-submit {
    padding: 18px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.search-hints {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-hints p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.search-hints a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.search-hints a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ============================================
   Search Results Page
   ============================================ */
.search-page-form {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-input-large {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    transition: border-color 0.2s;
}

.search-input-large:focus-within {
    border-color: var(--primary);
}

.search-input-large svg {
    color: var(--text-light);
    flex-shrink: 0;
}

.search-input-large input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    outline: none;
}

.search-input-large .btn {
    flex-shrink: 0;
}

.search-results-header {
    margin-bottom: 40px;
}

.search-results-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.search-results-header p {
    color: var(--text-light);
}

.search-section {
    margin-bottom: 50px;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.search-section-title svg {
    color: var(--primary);
}

/* Article Card Horizontal */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card-horizontal {
    display: flex;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.article-card-horizontal:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card-horizontal .article-image {
    width: 200px;
    flex-shrink: 0;
}

.article-card-horizontal .article-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.article-card-horizontal .article-content {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-horizontal h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-card-horizontal h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.article-card-horizontal h3 a:hover {
    color: var(--primary);
}

.article-card-horizontal p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.article-card-horizontal .article-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    margin-bottom: 24px;
    color: var(--text-light);
}

.search-no-results h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.search-no-results > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.search-suggestions p {
    font-weight: 600;
    margin-bottom: 12px;
}

.search-suggestions ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-light);
}

.search-suggestions li {
    margin-bottom: 8px;
}

/* Search Welcome */
.search-welcome {
    text-align: center;
    padding: 40px 0;
}

.search-welcome h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.search-welcome > p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.search-popular {
    max-width: 600px;
    margin: 0 auto;
}

.search-popular h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-tag {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.popular-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 10vh;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input-wrapper input {
        font-size: 16px;
        padding: 14px 12px;
    }

    .search-submit {
        width: 100%;
        padding: 14px;
    }

    .search-hints {
        justify-content: center;
    }

    .search-input-large {
        flex-direction: column;
        padding: 12px;
    }

    .search-input-large svg {
        display: none;
    }

    .search-input-large input {
        width: 100%;
        padding: 8px 0;
    }

    .search-input-large .btn {
        width: 100%;
    }

    .article-card-horizontal {
        flex-direction: column;
    }

    .article-card-horizontal .article-image {
        width: 100%;
    }

    .article-card-horizontal .article-image img {
        height: 180px;
    }

    .article-card-horizontal .article-content {
        padding: 16px;
    }
}
