/**
 * Theme Name: 点睛互联
 * Theme URI: https://www.xqgyl.com
 * Description: 北京点睛互联科技官网主题 - 专业的电商ERP系统提供商
 * Version: 2.4
 * Author: 北京点睛互联科技
 * Author URI: https://www.xqgyl.com
 * Text Domain: dianjing
 * Requires at least: 5.0
 * Tested up to: 6.4
 * Requires PHP: 7.4
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: rgba(0, 102, 255, 0.1);
    --text-dark: #1D1D1F;
    --text-light: #86868B;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F7;
    --bg-dark: #1D1D1F;
    --success: #06C149;
    --border: #D2D2D7;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
}

/* ============================================
   Reset & Base
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============================================
   Container & Sections
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: white; }

/* ============================================
   Section Header
   ============================================ */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block; padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary); font-size: 13px; font-weight: 600; border-radius: 6px;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { font-size: 18px; color: var(--text-light); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); }
.site-logo img { height: 40px; width: auto; }
.site-logo-text { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
    text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--primary); }
.current-menu-item a { color: var(--primary) !important; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
    font-size: 13px; color: var(--text-light); cursor: pointer; padding: 6px 12px;
    border-radius: 6px; transition: all 0.2s;
}
.lang-switch:hover { background: var(--bg-gray); color: var(--text-dark); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 980px; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-gray); }
.btn-white { background: white; color: var(--text-dark); }
.btn-white:hover { background: var(--bg-gray); }
.btn-large { padding: 16px 32px; font-size: 17px; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px; background: linear-gradient(180deg, #FBFBFD 0%, #FFFFFF 100%);
}
.hero-content { max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: var(--bg-gray); border-radius: 980px; font-size: 14px; color: var(--text-dark); margin-bottom: 32px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title { font-size: clamp(40px, 8vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary), #5856D6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(18px, 3vw, 24px); color: var(--text-light); margin-bottom: 40px; font-weight: 400; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border); }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 40px; font-weight: 700; color: var(--text-dark); }
.hero-stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* ============================================
   Products Grid
   ============================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.products-grid .product-card { padding: 32px; }
.products-grid .product-card h3 { font-size: 20px; }
.products-grid .product-card .product-price { font-size: 24px; }

.product-card {
    background: var(--bg-white); border-radius: 24px; padding: 40px;
    box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), #5856D6); opacity: 0; transition: opacity 0.3s; }
.product-card:hover::before { opacity: 1; }
.product-card.featured { background: linear-gradient(135deg, var(--primary), #5856D6); color: white; }
.product-card.featured p, .product-card.featured .product-price span { color: rgba(255,255,255,0.8); }
.product-card.featured .product-features li { color: white; }
.product-card.featured .product-features li i { color: rgba(255,255,255,0.8); }

.product-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), #5856D6); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: white; font-size: 28px; }
.product-card.featured .product-icon { background: rgba(255,255,255,0.2); }
.product-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.product-card p { color: var(--text-light); margin-bottom: 24px; font-size: 15px; }

.product-features { list-style: none; margin-bottom: 24px; }
.product-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-dark); }
.product-features li i { width: 20px; height: 20px; background: rgba(0,102,255,0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }

.product-price { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.product-card.featured .product-price { color: white; }
.product-price span { font-size: 14px; font-weight: 400; color: var(--text-light); }

/* ============================================
   Features Grid
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card { text-align: center; padding: 40px 24px; background: var(--bg-white); border-radius: 20px; box-shadow: var(--shadow); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-light), rgba(88,86,214,0.1)); border-radius: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--primary); font-size: 32px; transition: all 0.3s; }
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--primary), #5856D6); color: white; transform: scale(1.1); }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.feature-card p { color: var(--text-light); font-size: 14px; text-align: left; }
.feature-highlight { font-weight: 500; color: var(--text-dark); margin-bottom: 12px; }
.feature-list { list-style: none; text-align: left; }
.feature-list li { padding: 4px 0; font-size: 13px; color: var(--text-light); }

/* ============================================
   Large Feature
   ============================================ */
.large-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.large-feature.reverse { direction: rtl; }
.large-feature.reverse > * { direction: ltr; }
.large-feature-content h2 { font-size: 40px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.02em; }
.large-feature-content p { font-size: 18px; color: var(--text-light); margin-bottom: 32px; }
.large-feature-list { list-style: none; }
.large-feature-list li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.large-feature-list li:last-child { border-bottom: none; }
.large-feature-list li i { width: 24px; height: 24px; background: rgba(0,102,255,0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.large-feature-list li span { font-size: 16px; }

/* 统一图标行样式 (订单/财务区块) */
.feature-icons-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 32px; direction: ltr; }
.feature-icon-sm { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary-light), rgba(88,86,214,0.1)); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.3s; cursor: pointer; }
.feature-icon-sm:hover { background: linear-gradient(135deg, var(--primary), #5856D6); color: white; transform: scale(1.1); }
.feature-icon-sm.more { font-size: 14px; color: var(--text-light); font-weight: 600; }

/* Order Platform Illustration */
.order-platform-illustration { background: linear-gradient(135deg, var(--bg-gray), #E8E8ED); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; }
.platform-arrow { display: flex; align-items: center; justify-content: center; margin: 20px 0; color: var(--primary); font-size: 32px; }
.order-center { background: linear-gradient(135deg, var(--primary), #5856D6); color: white; padding: 24px 48px; border-radius: 16px; text-align: center; box-shadow: 0 8px 30px rgba(0,102,255,0.3); }
.order-center h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.order-center p { font-size: 14px; opacity: 0.9; }

/* ============================================
   Cases Grid
   ============================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--bg-white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.case-image { height: 200px; background: linear-gradient(135deg, var(--bg-gray), #E8E8ED); display: flex; align-items: center; justify-content: center; color: var(--text-light); position: relative; }
.case-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; background: var(--primary); color: white; font-size: 12px; font-weight: 500; border-radius: 6px; }
.case-content { padding: 24px; }
.case-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.case-content p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.case-stats { display: flex; gap: 24px; }
.case-stat { text-align: center; }
.case-stat-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.case-stat-label { font-size: 12px; color: var(--text-light); }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #5856D6);
    text-align: center; padding: 120px 24px;
}
.cta-section h2 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; margin-bottom: 16px; color: white; }
.cta-section p { font-size: 20px; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-white { color: var(--primary); }

/* ============================================
   Contact Section
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 28px; font-weight: 600; margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item i { width: 44px; height: 44px; background: var(--primary-light); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: 14px; }

.contact-form { background: var(--bg-white); padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,102,255,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success { background: rgba(6,193,73,0.1); color: var(--success); padding: 16px; border-radius: 12px; margin-bottom: 20px; display: none; }
.form-success.show { display: block; }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--bg-dark); color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 16px; line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; transition: all 0.2s; text-decoration: none; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; cursor: pointer; }
.footer-col a:hover { color: white; }
.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: white; }

/* ============================================
   Modal
   ============================================ */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 20px; max-width: 700px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; }
.modal-header h3 { font-size: 20px; font-weight: 600; }
.modal-close { width: 36px; height: 36px; border: none; background: var(--bg-gray); border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px; }
.modal-body h4 { font-size: 16px; font-weight: 600; margin: 20px 0 12px; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p, .modal-body li { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.modal-body ul { padding-left: 20px; }

/* ============================================
   Floating Contact
   ============================================ */
.floating-contact { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.floating-btn { width: 56px; height: 56px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 20px rgba(0,102,255,0.4); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,102,255,0.5); color: white; }
.floating-btn.wechat { background: linear-gradient(135deg, #0087FF, #0066FF); box-shadow: 0 4px 20px rgba(0,102,255,0.4); }

/* ============================================
   Animations
   ============================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Team Section
   ============================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-card .team-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; background: var(--bg-gray); }
.team-card .team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.team-card .team-position { font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.team-card .team-desc { font-size: 13px; color: var(--text-light); }

/* ============================================
   Documents Section
   ============================================ */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc-card { background: var(--bg-white); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); transition: all 0.3s; }
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.doc-card i { font-size: 40px; color: var(--primary); margin-bottom: 16px; }
.doc-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.doc-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-white); padding: 20px; box-shadow: var(--shadow); z-index: 999; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--text-dark); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--bg-gray); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .large-feature { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-section { padding: 100px 24px 60px; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .section { padding: 60px 0; }
    .products-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .features-grid, .cases-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .team-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================
   WordPress Specific
   ============================================ */
.wp-block-button__link { border-radius: 980px !important; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; }

/* Text meant only for screen readers */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: var(--bg-gray); border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,0.6); clip: auto !important; clip-path: none; color: var(--text-dark); display: block; font-size: 14px; font-weight: 600; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
