@charset "utf-8";
* { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; }
body { font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif; color:#1a1a1a; line-height:1.7; background:#f5f6f8; }
a { color:inherit; text-decoration:none; transition:color .15s; }
a:hover { color:#2563EB; }
img { max-width:100%; vertical-align:middle; }
ul,ol { list-style:none; }
input,button,textarea { font-family:inherit; outline:none; border:none; }

:root {
  --c-primary:#1d6fe0;
  --c-primary-dark:#155bb5;
  --c-primary-light:#e8f1fd;
  --c-accent:#ff6b35;
  --c-accent-light:#fff3ec;
  --c-text:#1a1a1a;
  --c-text-sub:#666;
  --c-text-mute:#999;
  --c-border:#e8e8e8;
  --c-bg:#f5f6f8;
  --c-white:#fff;
  --radius:6px;
  --shadow:0 1px 4px rgba(0,0,0,.06);
  --shadow-hover:0 4px 16px rgba(0,0,0,.1);
  --maxw:1200px;
}

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 16px; }
.container { max-width:var(--maxw); margin:0 auto; padding:24px 16px; }
.section { margin-bottom:32px; }
.section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; border-bottom:2px solid var(--c-border); padding-bottom:10px; }
.section-head h2 { font-size:20px; font-weight:600; }
.section-head h2::before { content:""; display:inline-block; width:4px; height:18px; background:var(--c-primary); border-radius:2px; margin-right:8px; vertical-align:-3px; }
.section-head .more { font-size:13px; color:var(--c-text-sub); }
.two-col { display:flex; gap:24px; }
.col-main { flex:1; min-width:0; }
.col-side { width:340px; flex-shrink:0; }

.topbar { background:#f9fafc; border-bottom:1px solid var(--c-border); font-size:12px; color:var(--c-text-sub); height:32px; line-height:32px; }
.topbar .wrap { display:flex; justify-content:space-between; align-items:center; }
.topbar .city-switch { color:var(--c-primary); font-weight:500; cursor:pointer; }
.topbar .links a { margin-left:16px; }

.header { background:var(--c-white); box-shadow:var(--shadow); position:sticky; top:0; z-index:100; }
.header .wrap { display:flex; align-items:center; height:64px; gap:32px; }
.logo { font-size:22px; font-weight:700; color:var(--c-primary); letter-spacing:-.5px; white-space:nowrap; }
.logo .dot { color:var(--c-accent); }
.nav { display:flex; gap:28px; flex:1; }
.nav a { font-size:15px; font-weight:500; color:var(--c-text); position:relative; padding:4px 0; }
.nav a:hover, .nav a.active { color:var(--c-primary); }
.nav a.active::after { content:""; position:absolute; bottom:-4px; left:0; right:0; height:2px; background:var(--c-primary); border-radius:1px; }
.header-search { display:flex; align-items:center; border:2px solid var(--c-primary); border-radius:var(--radius); overflow:hidden; width:240px; }
.header-search input { flex:1; padding:7px 12px; font-size:13px; border:none; }
.header-search button { padding:7px 16px; background:var(--c-primary); color:#fff; font-size:13px; cursor:pointer; font-weight:500; }
.btn-call { background:var(--c-accent); color:#fff; padding:8px 20px; border-radius:var(--radius); font-size:14px; font-weight:600; white-space:nowrap; }
.btn-call:hover { color:#fff; opacity:.9; }

.hero { background:linear-gradient(135deg,#1d6fe0 0%,#2563eb 50%,#3b82f6 100%); padding:48px 0; text-align:center; color:#fff; }
.hero-with-bg { background:linear-gradient(135deg,rgba(29,111,224,.92) 0%,rgba(37,99,235,.88) 50%,rgba(59,130,246,.85) 100%), url('/static/www/images/hero_bg.png') center/cover no-repeat; }
.hero h1 { font-size:28px; font-weight:700; margin-bottom:8px; text-shadow:0 1px 3px rgba(0,0,0,.2); }
.hero .subtitle { font-size:15px; opacity:.95; margin-bottom:24px; }
.hero-search { display:flex; max-width:560px; margin:0 auto 16px; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,.15); }
.hero-search input { flex:1; padding:12px 20px; font-size:14px; border:none; color:var(--c-text); }
.hero-search button { padding:12px 28px; background:var(--c-accent); color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.hero-tags { font-size:13px; opacity:.95; }
.hero-tags a { margin:0 8px; text-decoration:underline; }

.cat-nav { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); display:flex; overflow:hidden; margin-bottom:24px; }
.cat-nav-item { flex:1; text-align:center; padding:14px 8px; border-right:1px solid var(--c-border); cursor:pointer; transition:background .15s; display:flex; flex-direction:column; align-items:center; }
.cat-nav-item:last-child { border-right:none; }
.cat-nav-item:hover { background:var(--c-primary-light); }
.cat-nav-item .cat-thumb { width:42px; height:42px; object-fit:cover; border-radius:6px; margin-bottom:6px; }
.cat-nav-item .cat-icon-default { width:42px; height:42px; line-height:42px; background:var(--c-primary-light); color:var(--c-primary); border-radius:6px; font-size:18px; font-weight:700; margin-bottom:6px; }
.cat-nav-item .cat-icon-svg { width:42px; height:42px; background:var(--c-primary); border-radius:6px; margin-bottom:6px; display:flex; align-items:center; justify-content:center; padding:6px; }
.cat-nav-item .cat-icon-svg svg { width:100%; height:100%; }
.cat-nav-item .name { font-size:14px; font-weight:600; }
.cat-nav-item .sub { font-size:11px; color:var(--c-text-mute); margin-top:2px; }

.service-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }

/* V2 Service Cards with image area */
.svc-group { margin-bottom:28px; }
.svc-group-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.svc-group-head .svc-group-icon { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; }
.svc-group-head .svc-group-icon svg { width:100%; height:100%; }
.svc-group-head h3 { font-size:17px; font-weight:600; }
.svc-group-head .svc-group-count { font-size:12px; color:var(--c-text-mute); }

.svc-card-v2 { display:flex; flex-direction:column; background:var(--c-white); border:1px solid var(--c-border); border-radius:8px; overflow:hidden; transition:all .2s; position:relative; text-decoration:none; color:inherit; }
.svc-card-v2:hover { border-color:var(--c-primary); box-shadow:var(--shadow-hover); transform:translateY(-3px); }
.svc-card-v2 .svc-card-img { height:100px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; color:var(--c-primary); }
.svc-card-v2 .svc-card-img svg { width:48px; height:30px; opacity:.7; z-index:1; }
.svc-card-v2 .svc-card-body { padding:12px 14px; position:relative; }
.svc-card-v2 .svc-card-body h3 { font-size:15px; font-weight:600; margin-bottom:4px; }
.svc-card-v2 .svc-card-body .price { display:inline-block; color:var(--c-accent); font-weight:700; font-size:14px; margin-bottom:4px; }
.svc-card-v2 .svc-card-body .faults { display:block; font-size:11px; color:var(--c-text-sub); line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.svc-card-v2 .svc-card-body .badge { position:absolute; top:8px; right:8px; background:var(--c-accent-light); color:var(--c-accent); font-size:10px; padding:2px 6px; border-radius:3px; }

/* Per-category gradient backgrounds */
.svc-img-jiadian { background:linear-gradient(135deg,#e8f1fd,#d0e3fb); }
.svc-img-qingxi { background:linear-gradient(135deg,#e8f5e9,#c8e6c9); }
.svc-img-shuma { background:linear-gradient(135deg,#f3e5f5,#e1bee7); }
.svc-img-jiaju { background:linear-gradient(135deg,#fff3e0,#ffe0b2); }
.svc-img-fangwu { background:linear-gradient(135deg,#e0f7fa,#b2ebf2); }

/* Old service-card still works */
.service-card { display:block; background:var(--c-white); border:1px solid var(--c-border); border-radius:var(--radius); padding:16px 14px; transition:all .2s; position:relative; overflow:hidden; }
.service-card:hover { border-color:var(--c-primary); box-shadow:var(--shadow-hover); transform:translateY(-2px); }
.service-card::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--c-primary); opacity:0; transition:opacity .2s; }
.service-card:hover::before { opacity:1; }
.service-card h3 { font-size:15px; font-weight:600; color:var(--c-text); margin-bottom:6px; }
.service-card .price { display:inline-block; color:var(--c-accent); font-weight:700; font-size:15px; }
.service-card .price-unit { font-size:12px; color:var(--c-text-mute); }
.service-card .faults { display:block; font-size:12px; color:var(--c-text-sub); margin-top:6px; line-height:1.5; }
.service-card .badge { position:absolute; top:8px; right:8px; background:var(--c-accent-light); color:var(--c-accent); font-size:10px; padding:2px 6px; border-radius:3px; font-weight:500; }

.article-list { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.article-list li { padding:14px 20px; border-bottom:1px solid var(--c-border); display:flex; justify-content:space-between; align-items:center; transition:background .15s; }
.article-list li:last-child { border-bottom:none; }
.article-list li:hover { background:var(--c-primary-light); }
.article-list a { color:var(--c-text); font-size:15px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.article-list a:hover { color:var(--c-primary); }
.article-list .meta { color:var(--c-text-mute); font-size:12px; margin-left:16px; flex-shrink:0; }
.article-list .tag { display:inline-block; font-size:11px; padding:2px 8px; border-radius:3px; margin-right:8px; background:var(--c-primary-light); color:var(--c-primary); }

.qa-card { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 20px; margin-bottom:12px; }
.qa-card .q { font-size:15px; font-weight:600; color:var(--c-text); margin-bottom:6px; }
.qa-card .q::before { content:"Q"; display:inline-block; background:var(--c-primary); color:#fff; width:20px; height:20px; line-height:20px; text-align:center; border-radius:50%; font-size:12px; margin-right:8px; vertical-align:-2px; }
.qa-card .a { font-size:13px; color:var(--c-text-sub); line-height:1.6; }
.qa-card .a::before { content:"A"; display:inline-block; background:var(--c-accent); color:#fff; width:20px; height:20px; line-height:20px; text-align:center; border-radius:50%; font-size:12px; margin-right:8px; vertical-align:-2px; }
.qa-card-link { display:block; text-decoration:none; color:inherit; transition:all .15s; }
.qa-card-link:hover { color:var(--c-primary); }
.qa-card-link:hover .q { color:var(--c-primary); }

.review-card { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 20px; margin-bottom:12px; border-left:3px solid var(--c-accent); }
.review-card .content { font-size:14px; color:var(--c-text); line-height:1.7; margin-bottom:6px; }
.review-card .meta { font-size:12px; color:var(--c-text-mute); }

.wd-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.wd-card { background:var(--c-white); border:1px solid var(--c-border); border-radius:var(--radius); padding:16px; transition:all .2s; }
.wd-card:hover { border-color:var(--c-primary); box-shadow:var(--shadow-hover); }
.wd-card h3 { font-size:15px; font-weight:600; margin-bottom:8px; }
.wd-card .info { display:flex; gap:12px; font-size:13px; color:var(--c-text-sub); margin-bottom:4px; }
.wd-card .addr { font-size:12px; color:var(--c-text-mute); }

.breadcrumb { max-width:var(--maxw); margin:0 auto; padding:12px 16px; font-size:13px; color:var(--c-text-mute); }
.breadcrumb a { color:var(--c-text-sub); }
.breadcrumb a:hover { color:var(--c-primary); }
.breadcrumb .sep { margin:0 6px; }

.cat-hero { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); padding:24px; margin-bottom:20px; }
.cat-hero h1 { font-size:22px; font-weight:700; margin-bottom:12px; }
.cat-price-tag { display:inline-block; background:var(--c-accent-light); color:var(--c-accent); padding:4px 14px; border-radius:20px; font-size:15px; font-weight:700; margin-bottom:14px; }
.cat-info-row { font-size:14px; color:var(--c-text-sub); margin-bottom:6px; line-height:1.7; }
.cat-info-row strong { color:var(--c-text); font-weight:600; margin-right:6px; }
.cat-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.cat-tags a { padding:3px 10px; background:var(--c-primary-light); color:var(--c-primary); border-radius:12px; font-size:12px; }

.article-detail { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); padding:32px; }
.article-detail h1 { font-size:24px; font-weight:700; margin-bottom:10px; line-height:1.4; }
.article-meta { color:var(--c-text-mute); font-size:13px; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--c-border); display:flex; gap:16px; flex-wrap:wrap; }
.article-cover { margin-bottom:24px; border-radius:var(--radius); overflow:hidden; }
.article-cover img { width:100%; max-height:300px; object-fit:cover; }
.article-content { font-size:15px; line-height:1.9; color:#333; }
.article-content h2 { font-size:19px; font-weight:600; margin:24px 0 12px; padding-left:12px; border-left:4px solid var(--c-primary); }
.article-content h3 { font-size:16px; font-weight:600; margin:18px 0 10px; }
.article-content p { margin-bottom:14px; }
.article-content ul, .article-content ol { margin:12px 0 14px 20px; }
.article-content li { margin-bottom:6px; }
.article-content img { max-width:100%; border-radius:var(--radius); margin:16px 0; }
.article-content blockquote { border-left:4px solid var(--c-accent); background:var(--c-accent-light); padding:12px 16px; margin:16px 0; border-radius:0 var(--radius) var(--radius) 0; }
.article-content blockquote p { margin:0; }
.article-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; padding-top:20px; border-top:1px solid var(--c-border); }
.article-tags .tag { padding:5px 14px; border-radius:4px; font-size:13px; font-weight:500; background:var(--c-primary-light); color:var(--c-primary); border:1px solid transparent; }
.article-tags .tag-price { background:var(--c-accent-light); color:var(--c-accent); font-weight:600; border:1px solid var(--c-accent); }
.article-tags .tag-warranty { background:#e8f5e9; color:#2e7d32; border:1px solid #66bb6a; }
.article-tags .tag-doorstep { background:#e3f2fd; color:#1565c0; border:1px solid #42a5f5; }

.article-cta { border-radius:8px; overflow:hidden; margin-top:24px; border:1px solid var(--c-border); }
.article-cta-bar { height:4px; background:linear-gradient(90deg,var(--c-primary),var(--c-accent)); }
.article-cta-body { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 28px; background:linear-gradient(135deg,#f0f7ff 0%,#fff5ef 100%); }
.article-cta-title { font-size:16px; font-weight:600; color:var(--c-text); margin-bottom:10px; }
.article-cta-phone { display:inline-block; font-size:28px; font-weight:800; color:var(--c-accent); text-decoration:none; letter-spacing:1px; margin-bottom:10px; }
.article-cta-phone:hover { opacity:.85; }
.article-cta-guarantees { display:flex; gap:16px; flex-wrap:wrap; }
.guarantee-item { font-size:13px; color:var(--c-text-sub); font-weight:500; }
.article-cta-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:var(--c-accent); color:#fff; padding:16px 32px; border-radius:8px; text-decoration:none; font-weight:700; white-space:nowrap; transition:all .2s; box-shadow:0 4px 12px rgba(255,107,53,.3); }
.article-cta-btn:hover { background:#e55a2b; color:#fff; transform:translateY(-2px); box-shadow:0 6px 16px rgba(255,107,53,.4); }
.cta-btn-icon { font-size:20px; }
.cta-btn-text { font-size:16px; }

.side-box { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; margin-bottom:16px; }
.side-box h3 { font-size:16px; font-weight:600; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--c-primary); }

.footer { background:#1a2332; color:#889; padding:40px 0 20px; margin-top:40px; }
.footer .wrap { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.footer h4 { font-size:15px; color:#ccd; margin-bottom:12px; font-weight:600; }
.footer li { margin-bottom:8px; font-size:13px; }
.footer li a { color:#889; }
.footer li a:hover { color:var(--c-primary); }
.footer-bottom { border-top:1px solid #2a3a4e; margin-top:24px; padding-top:16px; text-align:center; font-size:12px; color:#667; }

.pager { text-align:center; padding:20px 0; }
.pager a, .pager span { display:inline-block; padding:6px 12px; margin:0 3px; border:1px solid var(--c-border); border-radius:var(--radius); font-size:13px; color:var(--c-text-sub); }
.pager .current { background:var(--c-primary); color:#fff; border-color:var(--c-primary); }
.pager a:hover { border-color:var(--c-primary); color:var(--c-primary); }

.section-title { font-size:22px; font-weight:700; margin-bottom:20px; padding-left:12px; border-left:4px solid var(--c-primary); line-height:1.4; }
.qa-list { background:var(--c-white); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.qa-list li { padding:16px 20px; border-bottom:1px solid var(--c-border); }
.qa-list li:last-child { border-bottom:none; }
.qa-list .q { font-size:15px; font-weight:600; color:var(--c-text); margin-bottom:6px; }
.qa-list .q::before { content:"Q"; display:inline-block; background:var(--c-primary); color:#fff; width:20px; height:20px; line-height:20px; text-align:center; border-radius:50%; font-size:12px; margin-right:8px; vertical-align:-2px; }
.qa-list .a { font-size:13px; color:var(--c-text-sub); line-height:1.7; padding-left:28px; margin-bottom:6px; }
.qa-list .meta { font-size:12px; color:var(--c-text-mute); }

.breadcrumb { max-width:var(--maxw); margin:0 auto; padding:12px 16px; font-size:13px; color:var(--c-text-mute); }
.breadcrumb a { color:var(--c-text-sub); }
.breadcrumb a:hover { color:var(--c-primary); }
.breadcrumb .sep { margin:0 6px; }

.empty { color:var(--c-text-mute); text-align:center; padding:40px 20px; font-size:14px; }

/* 拨号引导卡片 */
.side-call-cta { background:linear-gradient(135deg,var(--c-primary-light),var(--c-accent-light)); text-align:center; border:1px solid var(--c-border); }

@media (max-width:768px) {
  .nav { display:none; }
  .header-search { display:none; }
  .hero h1 { font-size:20px; }
  .two-col { flex-direction:column; }
  .col-side { width:100%; }
  .footer .wrap { grid-template-columns:repeat(2,1fr); }
}

/* ===== GEO 结构化内容块（榜单 / 价格表 / FAQ / 直答） =====
   模型抽取的是原子字段，这些块的表头与结构需保持稳定，不要随意改动类名。 */
.geo-answer { background:linear-gradient(135deg,#eef4ff,#f7fbff); border-left:4px solid var(--c-primary); border-radius:0 var(--radius) var(--radius) 0; padding:14px 18px; margin:0 0 22px; }
.geo-answer-label { font-size:12px; font-weight:700; color:var(--c-primary); letter-spacing:.5px; margin-bottom:6px; }
.geo-answer-text { font-size:15px; color:var(--c-text); line-height:1.8; margin:0; }

.geo-rank-table,.geo-price-table,.geo-compare-table { width:100%; border-collapse:collapse; margin:14px 0 24px; font-size:13px; background:var(--c-white); box-shadow:var(--shadow); border-radius:var(--radius); overflow:hidden; }
.geo-rank-table th,.geo-price-table th,.geo-compare-table th { background:#f0f4fa; color:#334155; font-weight:600; text-align:left; padding:10px 12px; border-bottom:2px solid #dbe4f0; white-space:nowrap; font-size:12.5px; }
.geo-rank-table td,.geo-price-table td,.geo-compare-table td { padding:10px 12px; border-bottom:1px solid var(--c-border); vertical-align:top; line-height:1.65; }
.geo-rank-table tr:last-child td,.geo-price-table tr:last-child td,.geo-compare-table tr:last-child td { border-bottom:none; }
.geo-rank-table tbody tr:hover,.geo-price-table tbody tr:hover,.geo-compare-table tbody tr:hover { background:#fafcff; }
.geo-rank-table .rank { width:48px; text-align:center; font-weight:700; color:var(--c-primary); }
.geo-rank-table .brand { font-weight:600; color:var(--c-text); white-space:nowrap; }
.geo-rank-table .src { color:var(--c-text-sub); font-size:12px; }
.geo-price-table .price { color:var(--c-accent); font-weight:600; white-space:nowrap; }

.geo-faq { margin:24px 0; }
.geo-faq-item { border-bottom:1px solid var(--c-border); padding:12px 0; }
.geo-faq-item:last-child { border-bottom:none; }
.geo-faq-item h3 { font-size:15px; font-weight:600; color:var(--c-text); margin-bottom:6px; }
.geo-faq-item p { font-size:14px; color:var(--c-text-sub); line-height:1.75; margin:0; }

.geo-source { background:#f8fafc; border:1px solid var(--c-border); border-radius:var(--radius); padding:14px 18px; margin:24px 0; }
.geo-source h2 { font-size:15px; margin-bottom:8px; }
.geo-source ul { list-style:disc; padding-left:20px; }
.geo-source li { font-size:12.5px; color:var(--c-text-sub); line-height:1.8; }
.geo-updated { font-size:12px; color:var(--c-text-mute); margin-top:8px; }
.geo-cred { list-style:disc; padding-left:20px; margin:10px 0 20px; }
.geo-cred li { font-size:13.5px; color:var(--c-text-sub); line-height:1.9; }

.geo-hub-intro { font-size:13.5px; color:var(--c-text-sub); background:var(--c-white); border-radius:var(--radius); padding:14px 18px; margin-bottom:22px; box-shadow:var(--shadow); line-height:1.8; }
.geo-hub-group { margin-bottom:28px; }
.geo-hub-cat { font-size:18px; margin-bottom:12px; padding-left:10px; border-left:4px solid var(--c-primary); }
.geo-hub-block { background:var(--c-white); border-radius:var(--radius); padding:14px 18px; margin-bottom:12px; box-shadow:var(--shadow); }
.geo-hub-block h3 { font-size:15px; margin-bottom:8px; }
.geo-hub-block h3 a { color:var(--c-primary); }

@media (max-width:768px) {
  .geo-rank-table,.geo-price-table,.geo-compare-table { font-size:12px; }
  .geo-rank-table th,.geo-rank-table td,.geo-price-table th,.geo-price-table td { padding:8px 6px; }
  .geo-rank-table .src { display:none; }
}

.geo-hub-entry { margin:0 0 24px; }
.geo-hub-entry a { display:flex; flex-direction:column; gap:2px; background:var(--c-white); border-left:4px solid var(--c-accent); border-radius:0 var(--radius) var(--radius) 0; padding:12px 16px; box-shadow:var(--shadow); }
.geo-hub-entry strong { font-size:15px; color:var(--c-text); }
.geo-hub-entry span { font-size:12.5px; color:var(--c-text-sub); }
.geo-hub-entry a:hover { box-shadow:var(--shadow-hover); }
/* @patch: city-select */
/* 城市选择页：159 城分组展示 + 拼音/中文即时筛选 */

.cs-hero { padding-bottom: 8px; }
.cs-sub { font-size: 14px; color: var(--c-text-sub); margin-bottom: 16px; }
.cs-sub strong { color: var(--c-primary); font-size: 16px; }

.cs-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cs-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.4;
  transition: background .15s, box-shadow .15s;
}
.cs-btn-primary { background: var(--c-primary); color: #fff; }
.cs-btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.cs-search {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 340px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
.cs-search:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29,111,224,.12); }
.cs-count { font-size: 13px; color: var(--c-text-mute); }

.cs-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--c-border);
}
.cs-anchors a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-size: 13px;
  white-space: nowrap;
}
.cs-anchors a:hover { background: var(--c-primary); color: #fff; }
.cs-anchors a em { font-style: normal; font-size: 11px; opacity: .7; }

.cs-group { margin-top: 22px; }
.cs-gh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--c-border);
}
.cs-gh span { font-size: 12px; font-weight: 400; color: var(--c-text-mute); }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.cs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cs-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-primary);
  color: inherit;
}
.cs-name { font-size: 15px; font-weight: 600; color: var(--c-text); }
.cs-dom { font-size: 11px; color: var(--c-text-mute); word-break: break-all; text-align: center; }
.cs-item.is-cur { border-color: var(--c-primary); background: var(--c-primary-light); }
.cs-item.is-cur .cs-name { color: var(--c-primary-dark); }

.cs-empty { margin: 24px 0; text-align: center; font-size: 14px; color: var(--c-text-sub); }
.cs-empty a { color: var(--c-primary); }

@media (max-width: 768px) {
  .cs-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .cs-item { padding: 10px 6px; }
  .cs-name { font-size: 14px; }
  .cs-search { max-width: none; flex: 1 1 100%; }
}
/* @patch: header-nav */
/* 头部导航：窄视口下中文导航项被挤成两行（"首/页""家电维/修"）。
   根因：logo(固定) + 8 项导航 + 240px 搜索框 + 电话按钮 ≈ 1175px，
   容器只有 1200px 减掉左右 padding，视口一旦 < ~1150px 必然溢出，
   而 .nav a 没有 nowrap，浏览器只能把每个词拆开换行。
   修法：① 导航项强制单行 ② 外层元素不参与收缩 ③ 分级收窄间距与字号，
   960px 以下隐藏搜索框（hero 区已有搜索入口，功能不丢）。 */
.header .wrap { gap:24px; }
.nav { gap:24px; min-width:0; }
.nav a { white-space:nowrap; flex:0 0 auto; }
.logo, .header-search, .btn-call { flex-shrink:0; }

@media (max-width:1280px){
  .header .wrap { gap:16px; }
  .nav { gap:16px; }
  .header-search { width:200px; }
}
@media (max-width:1120px){
  .nav { gap:12px; }
  .nav a { font-size:14px; }
  .header-search { width:170px; }
  .btn-call { padding:8px 12px; font-size:13px; }
}
@media (max-width:960px){
  .header-search { display:none; }
  .nav { gap:10px; }
}
/* @patch: rec-cards */
/* ===== 首页「专题推荐」图文卡片（2026-10-27 新增） =====
   配图复用 static/www/images/ 下已有的 6 张父品类大图，
   由 Jinja 过滤器 cat_parent 把叶子栏目（kongtiao/cizhuan/…）映射到父品类。
   标题压在图上（底部深色渐变保证可读），摘要放在浅灰块里，与参考样式一致。 */
.rec-section { padding-top:8px; }
.rec-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.rec-card { display:flex; flex-direction:column; background:var(--c-white);
  border-radius:10px; overflow:hidden; box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease; }
.rec-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover); }
.rec-cover { position:relative; aspect-ratio:16/10; overflow:hidden; background:#e9edf2; }
.rec-cover img { width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .45s ease; }
.rec-card:hover .rec-cover img { transform:scale(1.06); }
.rec-cover::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.18) 45%,rgba(0,0,0,.78) 100%); }
.rec-badge { position:absolute; top:12px; left:12px; z-index:2; padding:2px 9px;
  font-size:12px; line-height:1.7; color:#fff; background:rgba(29,111,224,.92);
  border-radius:20px; letter-spacing:.3px; }
.rec-title { position:absolute; left:14px; right:14px; bottom:12px; z-index:2;
  color:#fff; font-size:16px; font-weight:700; line-height:1.45;
  text-shadow:0 1px 6px rgba(0,0,0,.5);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rec-desc { padding:14px 16px 16px; font-size:13px; line-height:1.75;
  color:var(--c-text-sub); background:#f7f8fa; flex:1;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:768px){
  .rec-grid { grid-template-columns:1fr; gap:14px; }
  .rec-title { font-size:15px; }
}
