/* ============================================================
 * 默认主题 —— 企业简约商务风（完整独立）
 * ============================================================ */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent-cyan: #06b6d4;
    --gradient-main: linear-gradient(135deg, #2563eb, #3b82f6);
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark); background: #f8fafc; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* 导航栏 */
.navbar { padding: 12px 0; backdrop-filter: blur(12px); background: rgba(255,255,255,0.95) !important; border-bottom: 1px solid #e2e8f0; }
.navbar .navbar-brand { font-weight: 700; font-size: 20px; color: var(--dark); }
.logo-img { height: 36px; width: auto; }
.navbar .nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary) !important; padding: 6px 16px !important; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary) !important; background: rgba(37,99,235,0.05); }
.nav-icon { color: var(--text-muted) !important; font-size: 16px; padding: 6px 10px !important; border-radius: var(--radius-sm); }
.nav-icon:hover { color: var(--primary) !important; background: rgba(37,99,235,0.08); }
.lang-switch { font-size: 13px !important; font-weight: 500; text-decoration: none !important; }
.nav-spacer { height: 72px; }

/* 搜索弹窗 */
.search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; backdrop-filter: blur(4px); }
.search-overlay.active { display: flex; align-items: center; justify-content: center; }
.search-modal { background: #fff; border-radius: var(--radius); padding: 40px; width: 90%; max-width: 560px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.search-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; }
.search-input { height: 52px; font-size: 16px; border: 2px solid #e2e8f0; border-radius: var(--radius) 0 0 var(--radius); padding: 0 20px; }
.search-input:focus { border-color: var(--primary); box-shadow: none; }
.search-btn { padding: 0 24px; border-radius: 0 var(--radius) var(--radius) 0 !important; background: var(--primary); border-color: var(--primary); }

/* 页面主体 */
.main-content { min-height: 500px; padding: 40px 0 60px; }
.section-header { margin-bottom: 40px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 12px; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--primary); margin: 8px auto 0; border-radius: 2px; }
.section-subtitle { font-size: 15px; color: var(--text-muted); margin: 0; display: inline; }
.section-subtitle-wrap { max-width: 100%; margin: 0 auto; overflow: hidden; white-space: nowrap; }
#homeSubtitle { display: inline-block; padding-left: 100%; animation: scrollText 18s linear infinite; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.breadcrumb-nav { margin-bottom: 16px; }
.breadcrumb { background: transparent; padding: 8px 0; font-size: 13px; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-secondary); }

/* 类目卡片 */
.category-card { display: block; }
.category-card-inner { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.category-card:hover .category-card-inner { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.category-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.category-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-card:hover .category-img { transform: scale(1.05); }
.category-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.category-info { padding: 14px 16px; }
.category-name { font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.category-desc { font-size: 13px; color: var(--text-muted); margin: 0; }

/* 产品卡片 */
.product-card { display: block; }
.product-card-inner { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.product-card:hover .product-card-inner { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.product-img-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.product-info { padding: 12px 14px; }
.product-title { font-size: 14px; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-intro { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price .price { font-size: 16px; font-weight: 700; color: #dc2626; }

/* 产品详情 */
.product-gallery { position: sticky; top: 88px; }
.main-image-wrap { width: 100%; aspect-ratio: 1/1; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; background: #f1f5f9; margin-bottom: 12px; position: relative; }
.main-image { width: 100%; height: 100%; object-fit: contain; }
.video-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,0.7); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.thumbnails-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb-item { flex: 0 0 68px; height: 68px; border: 2px solid #e2e8f0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: #f1f5f9; }
.thumb-item.active { border-color: var(--primary); }
.thumb-item:hover { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--text-muted); gap: 2px; }
.thumb-video i { font-size: 18px; color: var(--primary); }
.video-player { width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.product-info-detail { padding: 0 8px; }
.product-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.product-detail-intro { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.7; }
.product-detail-price { background: #fef2f2; padding: 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.price-label { font-size: 14px; color: var(--text-muted); margin-right: 8px; }
.price-value { font-size: 28px; font-weight: 700; color: #dc2626; }
.sku-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.sku-options { display: flex; gap: 8px; flex-wrap: wrap; }
.sku-btn { min-width: 60px; padding: 6px 16px; border-radius: 20px; font-size: 13px; }
.sku-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.buy-now-btn { border-radius: var(--radius); font-size: 16px; font-weight: 600; padding: 14px 48px; background: var(--gradient-main); border: none; }
.product-detail-section { margin-top: 40px; }
.product-detail-content { line-height: 1.8; font-size: 15px; }
.product-detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.spec-table th { background: #f1f5f9; }
.spec-table td { color: var(--dark); }

/* 支持页面 */
.support-tabs .nav-link { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-radius: var(--radius); }
.support-tabs .nav-link.active { background: var(--primary); color: #fff; }
.accordion-button:not(.collapsed) { background: rgba(37,99,235,0.05); color: var(--primary); font-weight: 500; }
.article-detail { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 32px; }
.article-detail-title { font-size: 22px; font-weight: 700; }
.article-detail-content { line-height: 1.8; font-size: 15px; }
.article-detail-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-detail-content video,
.article-detail-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.news-card { border: 1px solid #e2e8f0; border-radius: var(--radius); transition: var(--transition); }
.news-card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transform: translateY(-2px); }
.about-content { border: 1px solid #e2e8f0; border-radius: var(--radius); line-height: 1.8; }
.about-content img,
.about-content video,
.about-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.contact-item { font-size: 14px; line-height: 1.6; }
.contact-item a { color: var(--primary); }

/* Footer */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-col { margin-bottom: 32px; }
.footer-brand-text { color: #fff; font-weight: 700; }
.footer-logo { height: 28px; width: auto; }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,0.5); }
.footer-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 12px; font-size: 14px; }
.footer-contact i { width: 20px; color: var(--primary); margin-right: 8px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 18px 0; margin-top: 20px; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-link { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-link:hover { color: #fff; }
.footer-icp { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; }
.footer-icp:hover { color: #fff; }

/* 按钮 */
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-primary { background: var(--primary); border: none; }
.load-more-btn { color: var(--primary); border-color: var(--primary); }
.load-more-btn:hover { color: #fff; background: var(--primary); }

/* 入场动画 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.category-card, .product-card { animation: fadeInUp .4s ease both; }
.category-card:nth-child(1) { animation-delay: .05s; }
.category-card:nth-child(2) { animation-delay: .1s; }
.category-card:nth-child(3) { animation-delay: .15s; }
.category-card:nth-child(4) { animation-delay: .2s; }
.category-card:nth-child(5) { animation-delay: .25s; }
.category-card:nth-child(6) { animation-delay: .3s; }
.category-card:nth-child(7) { animation-delay: .35s; }
.category-card:nth-child(8) { animation-delay: .4s; }

/* 响应式 */
@media (max-width:768px) { .section-title { font-size:22px; } .main-content { padding:24px 0 40px; } .product-detail-title { font-size:18px; } .price-value { font-size:22px; } .buy-now-btn { width:100%; } .search-modal { padding:24px; } }
@media (max-width:576px) { .category-info { padding:10px 12px; } .category-name { font-size:13px; } .category-desc { font-size:12px; } .product-info { padding:8px 10px; } .product-title { font-size:13px; } }
