/* ============================================================
   家电维修网站 — 前端样式表
   设计：专业可信赖，蓝色+橙色，移动端优先
   ============================================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1340a2;
    --primary-light: #e8f0fe;
    --accent: #e65c00;
    --accent-light: #fff4ed;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #fff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --header-h: 60px;
    --topbar-h: 44px;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    padding-top: calc(var(--topbar-h) + var(--header-h));
}

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

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* ===== 顶部联系栏 — 移动端始终外显 ===== */
.top-contact-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    height: var(--topbar-h); box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: flex; align-items: center;
    height: 50px;
}
.contact-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0 4px;
}
.contact-info-left {
    display: flex; align-items: center; gap: 8px;
}
.site-label { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.service-badge { 
    background: rgba(255,255,255,.2); color: #fff; font-size: 10px;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.contact-info-right {
    display: flex; align-items: center; gap: 10px;
}
.qr-code-box {
    display: flex; align-items: center; gap: 4px; cursor: pointer;
    background: rgba(255,255,255,.15); padding: 3px 8px; border-radius: 6px;
    transition: background .2s;
}
.qr-code-box:hover { background: rgba(255,255,255,.25); }
.qr-code-box img { width: 28px; height: 28px; border-radius: 4px; }
.qr-label { color: #fff; font-size: 11px; white-space: nowrap; }

.phone-link {
    display: flex; align-items: center; gap: 4px; color: #fff !important;
    text-decoration: none !important; font-weight: 700; font-size: 15px;
    letter-spacing: .5px; white-space: nowrap;
}
.phone-link svg { width: 18px; height: 18px; color: #fbbf24; flex-shrink: 0; }
.phone-link:hover { color: #fbbf24 !important; }

.mobile-call-btn {
    display: none; background: var(--accent); color: #fff; border: none;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(230,92,0,.3); transition: transform .2s;
}
.mobile-call-btn:hover { transform: scale(1.05); }

/* ===== 导航栏 ===== */
.site-header {
    position: fixed; top: 50px;; left: 0; right: 0; z-index: 1000;
    background: var(--white); height: var(--header-h);
    box-shadow: var(--shadow); display: flex; align-items: center;
}
.main-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--dark) !important; font-weight: 700; font-size: 18px; }
.logo img { height: 44px; width: auto; flex-shrink: 0;border-radius: 5px; }
.logo-icon { font-size: 24px; }
.nav-list { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-list a {
    display: block; padding: 8px 14px; color: var(--gray-700); font-size: 14px;
    font-weight: 500; border-radius: 8px; transition: all .2s;
}
.nav-list a:hover, .nav-list a.active { color: var(--primary); background: var(--primary-light); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle .bar { width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .3s; }

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 40%, #e0f2fe 100%);
    padding: 48px 0;
}
.hero-content { text-align: center; }
.hero-title { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 12px; letter-spacing: -0.5px; }
.hero-desc { font-size: 17px; color: var(--gray-500); max-width: 700px; margin: 0 auto 28px; line-height: 1.6; }
.hero-search { max-width: 600px; margin: 0 auto 16px; }
.search-form { display: flex; gap: 0; background: var(--white); border-radius: 50px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input { flex: 1; border: none; padding: 14px 20px; font-size: 16px; outline: none; color: var(--dark); }
.search-btn {
    background: var(--accent); color: #fff; border: none; padding: 14px 28px;
    font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .2s;
}
.search-btn:hover { background: #d45500; }
.hero-hot-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hot-tag { color: var(--primary); font-size: 13px; background: rgba(26,86,219,.1); padding: 4px 12px; border-radius: 20px; transition: all .2s; }
.hot-tag:hover { background: var(--primary); color: #fff; }

/* ===== Section ===== */
.section-header { text-align: center; margin-bottom: 32px; }
.section-title { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-desc { font-size: 15px; color: var(--gray-500); }

/* ===== 分类卡片 ===== */
.category-section { padding: 48px 0; }
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.category-card {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); transition: all .3s; cursor: pointer;
    border: 1px solid transparent;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-card-link { display: block; color: inherit !important; text-decoration: none !important; }
.cat-card-icon { font-size: 40px; margin-bottom: 12px; }
.cat-card-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.cat-card-desc { font-size: 14px; color: var(--gray-500); line-height: 1.5; }
.cat-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; margin-bottom: 12px; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== 文章列表 ===== */
.article-section { padding: 48px 0; background: var(--white); }
.article-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px;
}
.article-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--gray-100);
    display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-thumb { height: 200px; overflow: hidden; }
.article-thumb a { display: block; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-card-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--gray-500); }
.article-cat-badge {
    background: var(--accent-light); color: var(--accent); font-size: 12px;
    padding: 2px 10px; border-radius: 12px; font-weight: 500; transition: background .2s;
}
.article-cat-badge:hover { background: var(--accent); color: #fff; }
.article-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.article-card-title a { color: var(--dark); }
.article-card-title a:hover { color: var(--primary); }
.article-card-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.article-card-footer { display: flex; justify-content: space-between; align-items: center; }
.read-more { color: var(--primary); font-weight: 600; font-size: 14px; transition: color .2s; }
.read-more:hover { color: var(--primary-dark); }
.article-views { font-size: 13px; color: var(--gray-500); }

/* ===== 热门文章 ===== */
.hot-section { padding: 48px 0; }
.hot-list { max-width: 1200px; margin: 0 auto; }
.hot-item {
    display: flex; align-items: center; gap: 16px; padding: 12px 16px;
    background: var(--white); border-radius: var(--radius-sm); margin-bottom: 8px;
    box-shadow: var(--shadow); transition: transform .2s;
}
.hot-item:hover { transform: translateX(4px); }
.hot-rank { font-size: 22px; font-weight: 800; color: var(--accent); min-width: 36px; text-align: center; }
.hot-item:nth-child(1) .hot-rank { color: #dc2626; }
.hot-item:nth-child(2) .hot-rank { color: #ea580c; }
.hot-item:nth-child(3) .hot-rank { color: #d97706; }
.hot-info { flex: 1; min-width: 0; }
.hot-title { display: block; color: var(--dark) !important; font-weight: 600; font-size: 15px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-title:hover { color: var(--primary) !important; }
.hot-cat { font-size: 12px; color: var(--gray-500); }
.hot-views { font-size: 12px; color: var(--gray-500); white-space: nowrap; }

/* ===== 信任背书 ===== */
.trust-section { padding: 48px 0; background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.trust-item { padding: 24px 16px; border-radius: var(--radius); background: var(--gray-50); transition: transform .3s; }
.trust-item:hover { transform: translateY(-3px); }
.trust-icon { font-size: 40px; margin-bottom: 12px; }
.trust-item h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.trust-item p { font-size: 14px; color: var(--gray-500); }

/* ===== 文章详情 ===== */
.article-detail-page { padding:20px 10px;; }
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.detail-main { min-width: 0; }

.breadcrumb-nav { margin-bottom: 20px; }
.breadcrumb { display: flex; list-style: none; gap: 4px; font-size: 14px; flex-wrap: wrap; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin: 0 6px; color: var(--gray-300); }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item span { color: var(--gray-700); }

.article-detail {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow);
}
.article-title { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.4; }
.article-meta-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; font-size: 14px; color: var(--gray-500); }
.meta-sep { color: var(--gray-300); }
.article-cover { margin-bottom: 24px; border-radius: var(--radius-sm); overflow: hidden; }
.article-cover img { width: 100%; }

.article-body { font-size: 16px; line-height: 1.9; color: var(--gray-700); }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { color: var(--dark); font-weight: 700; margin: 24px 0 12px; }
.article-body h2 { font-size: 22px; border-left: 4px solid var(--primary); padding-left: 14px; }
.article-body h3 { font-size: 18px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: var(--radius-sm); max-width: 100%; margin: 16px 0; }
.article-body blockquote {
    background: var(--primary-light); border-left: 4px solid var(--primary);
    padding: 14px 18px; margin: 16px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th, .article-body td { border: 1px solid var(--gray-300); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--gray-100); font-weight: 600; }

.article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tags-label { font-weight: 600; color: var(--dark); font-size: 14px; }
.tag-link {
    display: inline-block; background: var(--accent-light); color: var(--accent);
    font-size: 13px; padding: 4px 14px; border-radius: 20px; font-weight: 500;
    transition: all .2s;
}
.tag-link:hover { background: var(--accent); color: #fff; }

/* 相关文章 */
.related-section { margin-top: 32px; }
.related-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.related-grid { display: flex; flex-direction: column; gap: 10px; }
.related-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.related-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: var(--dark) !important; }
.related-link h4 { font-size: 15px; font-weight: 600; }
.related-link:hover h4 { color: var(--primary); }
.related-date { font-size: 13px; color: var(--gray-500); white-space: nowrap; }

/* 侧边栏 */
.detail-sidebar { position: sticky; top: 124px; align-self: start; }
.sidebar-card {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 10px; }
.sidebar-list a { font-size: 14px; color: var(--gray-700); display: block; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-list a:hover { color: var(--primary); }

.contact-card { text-align: center; background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%); color: #fff; }
.contact-card h3 { color: #fff; }
.contact-phone-btn {
    display: block; background: var(--accent); color: #fff !important; font-size: 18px;
    font-weight: 700; padding: 12px; border-radius: 30px; margin: 10px 0; text-align: center;
}
.contact-phone-btn:hover { background: #d45500; }
.contact-hours { color: rgba(255,255,255,.8); font-size: 13px; margin: 8px 0 0; }

/* ===== 分类页/标签页/搜索页 ===== */
.category-page, .tag-page, .search-page { padding: 20px 20px;; }
.category-header { margin-bottom: 28px; }
.category-title { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.category-desc { font-size: 15px; color: var(--gray-500); max-width: 700px; line-height: 1.6; }
.search-page-form { margin-bottom: 24px; }
.search-page-form .search-form { max-width: 500px; margin: 0; }

.tag-cloud-section { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--gray-100); }
.tag-cloud-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: var(--dark); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* 分页 */
.pagination-nav { display: flex; justify-content: center; margin-top: 32px; }
.pagination { display: flex; list-style: none; gap: 6px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: 8px; font-size: 14px;
    border: 1px solid var(--gray-300); color: var(--gray-700); background: var(--white);
    padding: 0 12px; transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled span { color: var(--gray-300); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state p { font-size: 16px; margin-bottom: 12px; }
.empty-state ul { list-style: none; }
.empty-state li { margin-bottom: 6px; }
.empty-state a { color: var(--primary); }

/* ===== 404页面 ===== */
.error-page { padding: 80px 0; }
.error-content { text-align: center; }
.error-code { font-size: 100px; font-weight: 900; color: var(--primary); opacity: .2; line-height: 1; }
.error-content h1 { font-size: 32px; font-weight: 700; color: var(--dark); margin: 16px 0; }
.error-content p { font-size: 16px; color: var(--gray-500); margin-bottom: 24px; }
.error-links { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.error-suggestions { text-align: left; max-width: 400px; margin: 0 auto; }
.error-suggestions h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--dark); }
.error-suggestions ul { list-style: none; }
.error-suggestions li { margin-bottom: 8px; }
.error-suggestions a { font-size: 15px; padding: 8px 12px; display: block; background: var(--gray-50); border-radius: 8px; }
.error-suggestions a:hover { background: var(--primary-light); }

/* ===== Footer ===== */
.site-footer {
    background: var(--gray-900); color: rgba(255,255,255,.8); padding: 48px 0 24px;
    margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; margin-left: 30px;}
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.footer-contact p { font-size: 14px; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,.9); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.footer-links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-qr-img { margin-bottom: 8px; }
.footer-qr-img img { width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 8px; }
.footer-wx { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 32px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom p { margin-bottom: 4px; }

/* ===== 移动端底部固定栏 ===== */
.mobile-bottom-bar { display: none; }

.qr-popup {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 9999; align-items: center; justify-content: center;
}
.qr-popup.active { display: flex; }
.qr-popup-content {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    text-align: center; position: relative; max-width: 300px; width: 90%;
}
.qr-popup-close {
    position: absolute; top: 8px; right: 12px; background: none; border: none;
    font-size: 22px; cursor: pointer; color: var(--gray-500);
}
.qr-popup-content img { width: 180px; height: 180px; border-radius: 8px; margin-bottom: 12px; }
.qr-popup-content p { font-size: 15px; color: var(--dark); font-weight: 600; }
.qr-popup-id { font-size: 13px; color: var(--gray-500) !important; font-weight: 400 !important; }

/* ===== 页面详情 ===== */
.page-detail { padding: 32px 0; }
.page-detail .article-detail { padding: 32px; }

/* ===== 导航-产品中心高亮 ===== */
.nav-product-highlight { margin-left: 4px; }
.nav-product-link {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    color: #fff !important; font-weight: 700 !important;
    border-radius: 20px !important; padding: 6px 16px !important;
    font-size: 14px !important; box-shadow: 0 2px 8px rgba(255,107,53,.35);
    transition: all .3s;
}
.nav-product-link:hover, .nav-product-link.active {
    background: linear-gradient(135deg, #e55d2b, #e0841a) !important;
    box-shadow: 0 4px 14px rgba(255,107,53,.5); transform: translateY(-1px);
}

/* ===== 产品页 Hero Banner ===== */
.product-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff; text-align: center; padding: 48px 0 40px;
}
.product-hero-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.product-hero-sub { font-size: 16px; opacity: .8; color: #f7931e; }

/* ===== 产品筛选栏 ===== */
.product-filter-bar {
    background: #fff; border-bottom: 1px solid var(--gray-100);
    position: sticky; top: var(--header-h); z-index: 50; padding: 12px 0;
}
.filter-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.filter-tab {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: var(--gray-50); color: var(--gray-600); font-size: 14px;
    white-space: nowrap; text-decoration: none !important; transition: all .2s;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--primary); color: #fff;
}

/* ===== 产品网格 ===== */
.product-grid-section { padding: 32px 0 48px; }
.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-empty { text-align: center; padding: 80px 20px; color: var(--gray-400); font-size: 16px; }

/* 产品卡片 */
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--gray-100); transition: all .3s; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.product-card-link { text-decoration: none !important; color: inherit; display: block; }
.product-card-img {
    position: relative; background: var(--gray-50); padding: 20px;
    text-align: center; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
}
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-badge {
    position: absolute; top: 10px; left: 10px;
    background: #f7931e; color: #fff; font-size: 12px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
}
.product-card-body { padding: 16px; }
.product-card-brand { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.product-card-title {
    font-size: 15px; font-weight: 600; margin: 6px 0 8px;
    line-height: 1.4; color: var(--dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.spec-tag {
    font-size: 11px; background: var(--gray-50); color: var(--gray-500);
    padding: 2px 6px; border-radius: 3px;
}
.product-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product-card-price { font-size: 20px; font-weight: 800; color: #e74c3c; }
.product-card-warranty { font-size: 12px; color: #27ae60; font-weight: 600; }
.product-card-actions { display: flex; }
.btn-product-detail {
    flex: 1; text-align: center; padding: 10px 0; font-size: 14px;
    color: var(--primary); border: 2px solid var(--primary); border-radius: 6px;
    font-weight: 600; transition: all .2s;
}
.btn-product-detail:hover { background: var(--primary); color: #fff; }
.btn-product-call {
    flex: 1; text-align: center; padding: 8px 0; font-size: 13px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff; border-radius: 6px; font-weight: 600;
    text-decoration: none !important; transition: all .2s;
}
.btn-product-call:hover { opacity: .9; }

/* ===== 产品详情页 ===== */
.product-detail-wrapper { padding: 24px 0 48px; }
.product-detail-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }

/* 产品图片 */
.product-detail-gallery {}
.product-main-image {
    background: var(--gray-50); border-radius: 16px; padding: 32px;
    text-align: center; margin-bottom: 12px;
}
.product-main-image img { max-width: 100%; max-height: 380px; object-fit: contain; }
.product-thumb-list { display: flex; gap: 8px; justify-content: center; }
.product-thumb {
    width: 60px; height: 60px; border: 2px solid var(--gray-100); border-radius: 8px;
    overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.product-thumb:hover { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 产品信息 */
.product-detail-brand { margin-bottom: 8px; }
.brand-badge {
    display: inline-block; background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
}
.product-detail-title { font-size: 26px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }

/* 核心参数 - 紧凑带背景 */
.product-specs-highlights {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin-bottom: 20px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.spec-highlight-item {
    text-align: center; padding: 12px 8px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.spec-highlight-item:last-child { border-right: none; }
.spec-value { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.spec-label { display: block; font-size: 11px; color: rgba(255,255,255,.75); margin-top: 3px; }

/* 价格盒子 */
.product-price-box {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 2px solid #ffe0e0; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px;
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.product-price-current { font-size: 32px; font-weight: 900; color: #e74c3c; }
.product-install-fee { font-size: 14px; color: #666; }
.product-install-fee.free { color: #27ae60; font-weight: 600; }
.product-warranty-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e8f5e9; color: #2e7d32; padding: 6px 14px;
    border-radius: 20px; font-size: 14px; font-weight: 600;
}

/* 购买按钮 */
.product-actions { display: flex; }
.btn-product-full { flex: 1; }
.btn-product-buy {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff; text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(255,107,53,.4); transition: all .2s;
}
.btn-product-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,.5); color: #fff; }
.btn-product-inquiry {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 600;
    border: 2px solid var(--primary); color: var(--primary);
    text-decoration: none !important; transition: all .2s;
}
.btn-product-inquiry:hover { background: var(--primary); color: #fff; }

/* 底部详情区 */
.product-detail-bottom { max-width: 860px; margin: 0 auto; }
.product-section { margin-bottom: 36px; }
.product-section-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); display: inline-block; }

/* 亮点网格 */
.product-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--gray-50); border-radius: 8px; font-size: 14px;
}
.feature-check { color: #27ae60; font-weight: 800; font-size: 16px; }

/* 参数表格 */
.product-specs-table { border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden; }
.spec-row { display: flex; border-bottom: 1px solid var(--gray-100); }
.spec-row:last-child { border-bottom: none; }
.spec-row-label {
    width: 140px; flex-shrink: 0; padding: 12px 16px;
    background: var(--gray-50); font-weight: 600; font-size: 14px; color: var(--gray-600);
}
.spec-row-value { flex: 1; padding: 12px 16px; font-size: 14px; }

/* 产品描述 */
.product-desc-content { font-size: 15px; line-height: 1.8; color: var(--gray-700); }
.product-desc-content p { margin-bottom: 12px; }

/* 相关产品 */
.related-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-product-card {
    border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden;
    text-decoration: none !important; color: inherit; transition: all .25s;
}
.related-product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.related-product-img {
    background: var(--gray-50); padding: 16px; text-align: center; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.related-product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.related-product-info { padding: 12px; }
.related-brand { font-size: 11px; color: var(--primary); font-weight: 600; }
.related-product-info h4 { font-size: 14px; margin: 4px 0 6px; }
.related-price { font-size: 16px; font-weight: 800; color: #e74c3c; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }

    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail-main { grid-template-columns: 1fr; gap: 24px; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-product-link { font-size: 13px !important; padding: 5px 12px !important; }
}

@media (max-width: 768px) {
    :root { --topbar-h: 40px; --header-h: 52px; }
    
    /* 顶部栏手机端 */
    .site-label { font-size: 12px; }
    .service-badge { display: none; }
    .qr-code-box { padding: 2px 6px; }
    .qr-label { display: none; }
    .qr-code-box img { width: 24px; height: 24px; }
    .phone-link .phone-number { font-size: 13px; }
    .phone-link svg { width: 16px; height: 16px; }
    
    /* 显示一键拨号按钮（移动端） */
    .mobile-call-btn { display: inline-block !important; }
    
    /* 手机端菜单 */
    .menu-toggle { display: flex; }
    .nav-list {
        display: none; position: fixed; top: calc(var(--topbar-h) + var(--header-h));
        left: 0; right: 0; background: var(--white); flex-direction: column;
        padding: 12px; box-shadow: var(--shadow-lg); z-index: 999;
    }
    .nav-list.active { display: flex; }
    .nav-list a { padding: 12px 16px; width: 100%; }
    
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 15px; }
    .search-input { padding: 12px 16px; font-size: 15px; }
    .search-btn { padding: 12px 18px; font-size: 14px; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { padding: 16px; }
    .cat-card-icon { font-size: 28px; }
    .cat-card-title { font-size: 15px; }
    .cat-card-desc { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    
    .article-grid { grid-template-columns: 1fr; }
    .article-detail { padding: 20px 16px; }
    .article-title { font-size: 22px; }
    
    .site-footer { padding: 32px 0 16px; margin-top: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-about { text-align: center; }
    .footer-about p { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
    .footer-about .footer-title { font-size: 15px; margin-bottom: 8px; }
    .footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
    .footer-contact p { font-size: 12px; margin-bottom: 0; }
    .footer-links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .footer-links .footer-title { font-size: 14px; margin-bottom: 10px; margin-left: 30px;}
    .footer-links li { margin-bottom: 5px; font-size: 13px; }
    .footer-qr { text-align: center; grid-column: 1 / -1; margin-top: 4px; }
    .footer-qr .footer-title { display: none; }
    .footer-qr-img { margin: 0 auto 6px; }
    .footer-qr-img img { width: 90px; height: 90px; padding: 5px; }
    .footer-wx { font-size: 12px; }
    .footer-bottom { margin-top: 16px; padding-top: 12px; font-size: 12px; }
    
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-item { padding: 16px 12px; }
    .trust-icon { font-size: 30px; }
    .trust-item h3 { font-size: 15px; }
    
    .section-title { font-size: 22px; }
    
    /* 移动端底部固定栏 */
    .mobile-bottom-bar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--white); border-top: 1px solid var(--gray-100);
        padding: 6px 0 env(safe-area-inset-bottom, 6px);
        z-index: 1050; box-shadow: 0 -2px 10px rgba(0,0,0,.08);
        justify-content: space-around;
    }
    .mbb-item {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        color: var(--gray-500); font-size: 10px; text-decoration: none !important;
        padding: 4px 8px; border-radius: 8px; transition: all .2s;
    }
    .mbb-item svg { color: var(--gray-500); }
    .mbb-item span { white-space: nowrap; }
    .mbb-item:hover, .mbb-item:active { color: var(--primary); }
    .mbb-item:hover svg, .mbb-item:active svg { color: var(--primary); }
    .mbb-call {
        color: var(--accent) !important; font-weight: 600;
    }
    .mbb-call svg { color: var(--accent) !important; }
    
    body { padding-bottom: 70px; }
    
    .category-title { font-size: 22px; }

    /* 产品页手机端 */
    .product-hero { padding: 32px 0 28px; }
    .product-hero-title { font-size: 22px; }
    .product-hero-sub { font-size: 13px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card-body { padding: 12px; }
    .product-card-title { font-size: 13px; }
    .product-card-price { font-size: 17px; }
    .product-card-actions { flex-direction: column; }
    .btn-product-detail { padding: 9px 0; font-size: 13px; }
    .product-detail-title { font-size: 20px; }
    .product-specs-highlights { grid-template-columns: repeat(2, 1fr); }
    .spec-highlight-item { padding: 10px 6px; }
    .spec-highlight-item:nth-child(2) { border-right: none; }
    .spec-value { font-size: 13px; }
    .price-row { flex-wrap: wrap; }
    .product-price-current { font-size: 26px; }
    .btn-product-buy { padding: 12px; font-size: 14px; }
    .product-features-grid { grid-template-columns: 1fr; }
    .spec-row-label { width: 100px; font-size: 13px; }
    .spec-row-value { font-size: 13px; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-main-image { padding: 16px; }
    .product-main-image img { max-height: 260px; }
    .filter-tab { font-size: 12px; padding: 5px 12px; }
}
