/*
Theme Name: 秘奥软件
Theme URI: https://www.miya-software.com
Author: 秘奥软件
Author URI: https://www.miya-software.com
Description: 秘奥软件官方WordPress主题 - 专业零售管理软件，服务全球华人超市和连锁店。支持23种语言，覆盖50+国家。
Version: 7.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miya-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, rtl-language-support
*/

/* ============================================
   CSS Variables - Modern Blue Theme
   ============================================ */
:root {
    /* Primary - Deep Ocean Blue */
    --primary: #0052CC;
    --primary-light: #0065FF;
    --primary-dark: #003D99;
    --primary-50: #E6F0FF;
    --primary-100: #CCE0FF;
    --primary-200: #99C2FF;
    
    /* Accent - Warm Amber */
    --accent: #FF9500;
    --accent-light: #FFB340;
    --accent-dark: #E6.9.0;
    --accent-50: #FFF4E5;
    
    /* Success/Trust */
    --success: #00875A;
    --success-light: #E3FCEF;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-25: #FAFBFC;
    --gray-50: #F4F5F7;
    --gray-100: #EBECF0;
    --gray-200: #DFE1E6;
    --gray-300: #C1C7D0;
    --gray-400: #A5ADBA;
    --gray-500: #6B778C;
    --gray-600: #505F79;
    --gray-700: #344563;
    --gray-800: #253858;
    --gray-900: #172B4D;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(23,43,77,0.04);
    --shadow-sm: 0 1px 3px rgba(23,43,77,0.1), 0 1px 2px rgba(23,43,77,0.06);
    --shadow-md: 0 4px 8px -2px rgba(23,43,77,0.1), 0 2px 4px -2px rgba(23,43,77,0.06);
    --shadow-lg: 0 12px 24px -4px rgba(23,43,77,0.12), 0 8px 16px -4px rgba(23,43,77,0.08);
    --shadow-xl: 0 24px 48px -8px rgba(23,43,77,0.15);
    --shadow-primary: 0 8px 24px -4px rgba(0,82,204,0.3);
    --shadow-accent: 0 8px 24px -4px rgba(255,149,0,0.3);
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-base: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
    
    /* Typography */
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Noto Sans SC', sans-serif;
    
    /* Layout */
    --container-max: 1280px;
    --header-height: 72px;
    --header-height-mobile: 60px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}
body { 
    font-family: var(--font-sans); 
    font-size: 1rem;
    line-height: 1.6; 
    color: var(--gray-700); 
    background: var(--white);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol, li { list-style: none; margin: 0; padding: 0; }
li::before, li::marker { display: none; content: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-display);
    font-weight: 700; 
    line-height: 1.25; 
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .container { padding: 0 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-lg);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm), var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-primary);
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm), var(--shadow-accent);
}
.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}
.btn-white {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn i, .btn svg { width: 18px; height: 18px; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}
.top-bar-item i { width: 14px; height: 14px; color: var(--accent); }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-bar-right a {
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}
.top-bar-right a:hover { color: var(--accent-light); }
@media (max-width: 768px) {
    .top-bar { padding: 8px 0; font-size: 12px; }
    .top-bar-left { display: none; }
    .top-bar-inner { justify-content: center; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 32px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-primary);
}
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}
.logo-text span { color: var(--primary); }

/* Main Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--primary);
    background: var(--primary-50);
}
.nav-menu > li > a i { 
    width: 16px; 
    height: 16px; 
    transition: transform var(--transition-fast);
    opacity: 0.6;
}
.nav-menu > li:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}
.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-menu .sub-menu li { margin: 0; }
.nav-menu .sub-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-menu .sub-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-accent);
    transition: all var(--transition-fast);
}
.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(255,149,0,0.4);
}
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}
.menu-toggle:hover { background: var(--gray-50); }
.menu-toggle i { width: 24px; height: 24px; }

/* Mobile Header */
@media (max-width: 1024px) {
    .header-inner { height: var(--header-height-mobile); }
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .logo-icon { width: 38px; height: 38px; font-size: 18px; }
    .logo-text { font-size: 20px; }
    .header-cta { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
    .header-cta span { display: none; }
    .header-cta { padding: 10px; }
}

/* ============================================
   Mobile Menu - Compact Design
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.mobile-menu-header .site-logo { gap: 8px; }
.mobile-menu-header .logo-icon { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
.mobile-menu-header .logo-text { font-size: 16px; }
.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
}
.mobile-menu-close i { width: 20px; height: 20px; }
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav > li {
    border-bottom: 1px solid var(--gray-50);
}
.mobile-nav > li:last-child { border-bottom: none; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
}
.mobile-nav-link i { 
    width: 16px; 
    height: 16px; 
    color: var(--gray-400);
    transition: transform 0.2s;
}
.mobile-nav > li.open .mobile-nav-link i { transform: rotate(180deg); }
.mobile-nav .sub-menu {
    display: none;
    padding: 0 0 8px 12px;
    background: transparent;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
}
.mobile-nav > li.open .sub-menu { display: block; }
.mobile-nav .sub-menu a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    color: var(--gray-600);
}
.mobile-nav .sub-menu a:hover { color: var(--primary); }
.mobile-menu-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
    background: var(--gray-25);
}
.mobile-menu-footer .btn { width: 100%; padding: 10px; font-size: 13px; }
.mobile-menu-contact {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
}
.mobile-menu-contact a { color: var(--primary); font-weight: 500; }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23,43,77,0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content { color: var(--white); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}
.hero-title-accent { color: var(--accent-light); }
.hero-desc {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 14px;
    opacity: 0.8;
}
.hero-visual {
    position: relative;
}
.hero-mockup {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 16px;
    box-shadow: var(--shadow-xl);
}
.hero-mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.hero-mockup-dot.red { background: #FF5F57; }
.hero-mockup-dot.yellow { background: #FFBD2E; }
.hero-mockup-dot.green { background: #28C840; }
.hero-mockup-screen {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 280px;
}
.hero-mockup-stat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.hero-mockup-stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}
.hero-mockup-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}
.hero-mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.hero-mockup-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-xs);
}
.hero-mockup-card-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--primary);
}
.hero-mockup-card-icon i { width: 18px; height: 18px; }
.hero-mockup-card-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

@media (max-width: 1024px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .hero { padding: 48px 0 64px; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: 24px; }
    .hero-stat-value { font-size: 28px; }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}
.section-gray { background: var(--gray-25); }
.section-primary { 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.section-label i { width: 16px; height: 16px; }
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}
.section-desc {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }
    .section-desc { font-size: 16px; }
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}
.feature-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}
.feature-icon i { width: 28px; height: 28px; }
.feature-icon.accent {
    background: var(--accent-50);
    color: var(--accent-dark);
}
.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    .feature-icon { width: 48px; height: 48px; }
    .feature-icon i { width: 24px; height: 24px; }
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}
.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}
.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.product-image i { width: 64px; height: 64px; position: relative; z-index: 1; }
.product-content { padding: 24px; }
.product-title {
    font-size: 20px;
    margin-bottom: 12px;
}
.product-title a { transition: color var(--transition-fast); }
.product-title a:hover { color: var(--primary); }
.product-desc {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.6;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.product-tag {
    padding: 4px 10px;
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
}
.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}
.product-link:hover { gap: 10px; }
.product-link i { width: 16px; height: 16px; }
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .products-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-image { height: 160px; }
    .product-image i { width: 48px; height: 48px; }
    .product-content { padding: 20px; }
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 16px;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-value { font-size: 36px; }
    .stat-label { font-size: 14px; }
}
@media (max-width: 480px) {
    .stats-section { padding: 48px 0; }
    .stat-value { font-size: 32px; }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--white);
}
.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .cta-section { padding: 48px 0; }
    .cta-desc { font-size: 16px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 280px; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand-desc {
    font-size: 15px;
    line-height: 1.7;
    margin: 16px 0 24px;
    max-width: 320px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}
.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}
.footer-social a i { width: 20px; height: 20px; }
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a { color: var(--gray-500); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--gray-300); }
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
    .site-footer { padding: 32px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .footer-brand-desc { max-width: 100%; margin: 12px 0 16px; }
    .footer-social { justify-content: center; }
    .footer-social a { width: 36px; height: 36px; }
    .footer-title { margin-bottom: 12px; font-size: 15px; }
    .footer-links li { margin-bottom: 8px; }
    .footer-links a { font-size: 13px; }
    .footer-bottom { 
        flex-direction: column; 
        gap: 12px; 
        text-align: center; 
        padding: 16px 0;
        font-size: 12px;
    }
    .footer-legal { justify-content: center; gap: 16px; }
    .footer-legal a { font-size: 12px; }
}

/* ============================================
   Page Hero
   ============================================ */
.page-hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--white);
}
.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    opacity: 0.8;
}
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb span:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.5;
}
@media (max-width: 640px) {
    .page-hero { padding: 40px 0 60px; }
    .page-hero p { font-size: 16px; }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all var(--transition-fast);
    font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}
.form-textarea { min-height: 120px; resize: vertical; }
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Page Template Mobile Responsive
   ============================================ */
@media (max-width: 1024px) {
    /* Two column layouts become single column */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }
    [style*="gap: 60px"] {
        gap: 32px !important;
    }
    [style*="gap: 48px"] {
        gap: 24px !important;
    }
    [style*="padding: 32px"] {
        padding: 20px !important;
    }
    [style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    [style*="font-size: 48px"] {
        font-size: 36px !important;
    }
    [style*="font-size: 40px"] {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    [style*="padding: 24px"] {
        padding: 16px !important;
    }
    [style*="gap: 32px"] {
        gap: 16px !important;
    }
    [style*="gap: 24px"] {
        gap: 12px !important;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray-500); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Entry content styles for WordPress editor */
.entry-content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}
.entry-content h3 {
    font-size: 1.35rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--gray-800);
}
.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
}
.entry-content ul, .entry-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}
.entry-content a {
    color: var(--primary);
    text-decoration: underline;
}
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray-700);
    font-style: italic;
}

/* ============================================
   Enhanced Mobile Responsive - v6.5
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-stats { justify-content: center; }
    .section-header { text-align: center; }
    
    /* Grid adjustments */
    [style*="grid-template-columns: repeat(4"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    [style*="grid-template-columns: repeat(3"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    [style*="grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns:1fr 1fr;"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Typography scaling */
    h1, .hero-title { font-size: 2rem !important; }
    h2, .section-title { font-size: 1.5rem !important; }
    h3 { font-size: 1.2rem !important; }
    
    /* Container */
    .container { padding-left: 16px; padding-right: 16px; }
    
    /* Sections */
    .section { padding: 48px 0; }
    .page-hero { padding: 60px 0; }
    
    /* Top bar hide on mobile */
    .top-bar { display: none; }
    
    /* Grid to single column */
    [style*="grid-template-columns: repeat(4"] { 
        grid-template-columns: 1fr !important; 
    }
    [style*="grid-template-columns: repeat(3"] { 
        grid-template-columns: 1fr !important; 
    }
    [style*="grid-template-columns: repeat(2"] { 
        grid-template-columns: 1fr !important; 
    }
    [style*="grid-template-columns: repeat(6"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    
    /* Gap adjustments */
    [style*="gap: 64px"] { gap: 32px !important; }
    [style*="gap:64px"] { gap: 32px !important; }
    [style*="gap: 60px"] { gap: 32px !important; }
    [style*="gap:60px"] { gap: 32px !important; }
    [style*="gap: 48px"] { gap: 24px !important; }
    [style*="gap:48px"] { gap: 24px !important; }
    
    /* Hero */
    .hero { padding: 80px 0 60px; }
    .hero-title { font-size: 1.8rem !important; line-height: 1.3; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat { min-width: 80px; }
    
    /* Buttons */
    .btn-lg { padding: 14px 24px; font-size: 15px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; }
    
    /* Cards */
    .feature-card, .feature-block, .benefit-card, .testimonial-card { 
        padding: 24px !important; 
    }
    
    /* CTA section */
    .cta-content { padding: 48px 0 !important; }
    .cta-title { font-size: 1.75rem !important; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 32px; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-contact-info { text-align: center; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    /* Page hero */
    .page-hero h1 { font-size: 1.75rem !important; }
    .page-hero p { font-size: 1rem; }
    
    /* Forms */
    .form-grid { grid-template-columns: 1fr !important; }
    
    /* Stat cards */
    .stat-card { padding: 24px !important; }
    .stat-value { font-size: 2rem !important; }
    
    /* Timeline */
    .timeline-item { padding-left: 24px; padding-bottom: 24px; }
    
    /* Modal */
    #wechat-modal > div { 
        margin: 16px; 
        padding: 24px; 
        max-width: calc(100vw - 32px);
    }
    #wechat-modal img { width: 160px !important; height: 160px !important; }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1, .hero-title { font-size: 1.6rem !important; }
    h2, .section-title { font-size: 1.35rem !important; }
    
    .hero { padding: 60px 0 40px; }
    .section { padding: 40px 0; }
    
    [style*="padding: 32px"] { padding: 20px !important; }
    [style*="padding:32px"] { padding: 20px !important; }
    [style*="padding: 48px"] { padding: 24px !important; }
    [style*="padding:48px"] { padding: 24px !important; }
    
    .btn { padding: 12px 20px; font-size: 14px; }
    
    /* Region grid stays 2 columns */
    [style*="grid-template-columns: repeat(6"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
    }
}

/* Ensure content area works with editors */
.entry-content {
    max-width: 100%;
    overflow-wrap: break-word;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* Elementor compatibility */
.elementor-page .site-main {
    padding: 0;
}

.elementor-page .entry-content {
    max-width: none;
}

/* WordPress Block Editor alignment */
.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* User content section */
.user-content {
    background: var(--gray-25);
}

.user-content .entry-content {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== RTL Support (Arabic) ===== */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .container {
    direction: rtl;
}

.rtl .top-bar-inner,
.rtl .header-inner,
.rtl .footer-grid {
    flex-direction: row-reverse;
}

.rtl .nav-menu {
    flex-direction: row-reverse;
}

.rtl .hero-inner {
    flex-direction: row-reverse;
}

.rtl .hero-content {
    text-align: right;
}

.rtl .hero-buttons {
    justify-content: flex-start;
}

.rtl .btn i {
    margin-left: 8px;
    margin-right: 0;
}

.rtl .logo-text {
    margin-right: 12px;
    margin-left: 0;
}

.rtl .feature-card,
.rtl .product-card {
    text-align: right;
}

.rtl .footer-column {
    text-align: right;
}

.rtl .mobile-menu {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

.rtl .mobile-menu.active {
    transform: translateX(0);
}

/* RTL specific adjustments for icons */
.rtl [data-lucide="arrow-right"] {
    transform: scaleX(-1);
}

.rtl [data-lucide="chevron-right"] {
    transform: scaleX(-1);
}

/* Language switcher enhancements */
.lang-switcher {
    position: relative;
}

.lang-switcher .lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switcher .lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

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

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.lang-item:hover {
    background: #f5f5f5;
}

.lang-item.active {
    background: #e3f2fd;
    color: #1976d2;
}

.lang-item .flag {
    font-size: 20px;
}

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

.lang-item .check {
    color: #1976d2;
    opacity: 0;
}

.lang-item.active .check {
    opacity: 1;
}
