/* =========================================================
   餐饮加盟网 · 帝国CMS 模板样式
   主色：橙红（食欲/转化）  风格：现代扁平 + 卡片网格 + 响应式
   ========================================================= */
:root{
  --primary:#ff5b1f;
  --primary-dark:#e2371a;
  --primary-light:#fff1ea;
  --accent:#ffb400;
  --text:#222;
  --text-2:#666;
  --text-3:#999;
  --line:#eee;
  --bg:#f5f6f8;
  --white:#fff;
  --radius:12px;
  --shadow:0 6px 22px rgba(0,0,0,.06);
  --shadow-hover:0 10px 30px rgba(255,91,31,.18);
  --maxw:1200px;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%;max-width:100%;overflow-x:hidden}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  color:var(--text);background:var(--bg);font-size:14px;line-height:1.7;
  -webkit-tap-highlight-color:transparent;max-width:100%;overflow-x:hidden;
}
a{color:inherit;text-decoration:none;transition:.2s}
a:hover{color:var(--primary)}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
/* 关键：用 max-width 而非 width，窄屏才能自动收缩，否则手机端会横向溢出 1200px */
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 15px;overflow-wrap:anywhere;word-break:break-word}
.section{margin:26px 0}
.section-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.section-hd h2{font-size:20px;position:relative;padding-left:14px}
.section-hd h2::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:20px;border-radius:3px;background:linear-gradient(var(--primary),var(--primary-dark))}
.section-hd .more{color:var(--text-3);font-size:13px}
.section-hd .more:hover{color:var(--primary)}

.hp-fcard-bot{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 6px 7px}
.hp-fcard-bot b{color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1 1 auto;min-width:0}
.hp-fcard-bot i{font-style:normal;background:var(--primary);color:#fff;font-size:11px;padding:3px 6px;border-radius:3px;white-space:nowrap;flex:0 0 auto}

/* ---------- 顶部条 ---------- */
.topbar{background:#1f1f1f;color:#bbb;font-size:12px}
.topbar .wrap{display:flex;justify-content:space-between;height:34px;align-items:center}

/* ---------- 站头 ---------- */
.header{background:var(--white);box-shadow:0 2px 10px rgba(0,0,0,.04)}
.header .wrap{display:flex;align-items:center;gap:24px;height:78px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:var(--primary);white-space:nowrap}
.logo .dot{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;display:grid;place-items:center;font-size:16px}
.search{flex:1;display:flex;max-width:460px;border:2px solid var(--primary);border-radius:30px;overflow:hidden}
.search input{flex:1;border:0;padding:0 16px;height:40px;outline:none;font-size:14px}
.search button{background:var(--primary);color:#fff;border:0;padding:0 26px;font-size:15px;cursor:pointer}
.header .hotline{margin-left:auto;text-align:right;white-space:nowrap}
.header .hotline b{color:var(--primary);font-size:18px;display:block}
.btn-consult{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:10px 22px;border-radius:30px;font-weight:600;white-space:nowrap}
.btn-consult:hover{color:#fff;box-shadow:var(--shadow-hover)}

/* ---------- 导航 ---------- */
.nav{background:var(--white);border-bottom:2px solid var(--primary)}
.nav .wrap{display:flex;align-items:center;gap:4px;height:48px;overflow-x:auto}
.nav a{padding:0 16px;height:48px;line-height:48px;font-size:15px;font-weight:600;white-space:nowrap;border-bottom:3px solid transparent}
.nav a:hover,.nav a.on{color:var(--primary);border-bottom-color:var(--primary)}
.nav .toggle{display:none;margin-left:auto;color:var(--primary);font-size:13px;cursor:pointer}

/* ---------- Banner ---------- */
.banner{margin-top:16px;position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.banner .slide{display:none}
.banner .slide.active{display:block}
.banner img{width:100%;height:380px;object-fit:cover}
.banner .dots{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.banner .dots span{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.6);cursor:pointer}
.banner .dots span.on{background:#fff;width:24px;border-radius:6px}

/* ---------- 品类快捷 ---------- */
.cats{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.cat{background:var(--white);border-radius:var(--radius);padding:18px 8px;text-align:center;box-shadow:var(--shadow);transition:.2s}
.cat:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.cat .ico{width:50px;height:50px;margin:0 auto 8px;border-radius:14px;background:var(--primary-light);color:var(--primary);display:grid;place-items:center;font-size:24px}
.cat span{font-weight:600}

/* ---------- 品牌卡片 ---------- */
.brand-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.brand-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.2s;display:flex;flex-direction:column}
.brand-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.brand-card .pic{aspect-ratio:16/10;background:var(--primary-light);position:relative}
.brand-card .pic img{width:100%;height:100%;object-fit:cover}
.brand-card .tag{position:absolute;left:10px;top:10px;background:rgba(226,55,26,.92);color:#fff;font-size:12px;padding:3px 10px;border-radius:20px}
.brand-card .body{padding:14px;flex:1;display:flex;flex-direction:column}
.brand-card h3{font-size:16px;margin-bottom:6px}
.brand-card .desc{color:var(--text-2);font-size:13px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brand-card .money{color:var(--primary);font-weight:700;font-size:15px;margin:8px 0}
.brand-card .acts{display:flex;gap:8px;margin-top:6px}
.brand-card .acts a{flex:1;text-align:center;padding:8px 0;border-radius:8px;font-size:13px}
.brand-card .acts .detail{border:1px solid var(--primary);color:var(--primary)}
.brand-card .acts .ask{background:var(--primary);color:#fff}

/* ---------- 预算选品 ---------- */
.budget{background:var(--white);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.budget .lab{font-weight:700;margin-right:6px}
.budget a{padding:7px 16px;background:var(--primary-light);color:var(--primary-dark);border-radius:20px;font-size:13px}
.budget a:hover{background:var(--primary);color:#fff}

/* ---------- 资讯两栏 ---------- */
.news-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.news-list{background:var(--white);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.news-list li{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px dashed var(--line)}
.news-list li:last-child{border-bottom:0}
.news-list li a{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.news-list li a::before{content:"•";color:var(--primary);margin-right:8px}
.news-list li time{color:var(--text-3);font-size:12px;white-space:nowrap}

/* ---------- 排行榜 ---------- */
.rank{background:var(--white);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.rank li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line)}
.rank li:last-child{border-bottom:0}
.rank .no{width:24px;height:24px;border-radius:6px;background:var(--line);color:var(--text-2);font-weight:700;display:grid;place-items:center;font-style:normal}
.rank li:nth-child(1) .no{background:var(--primary);color:#fff}
.rank li:nth-child(2) .no{background:var(--accent);color:#fff}
.rank li:nth-child(3) .no{background:#7cc04a;color:#fff}
.rank li a{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- 布局：列表页 ---------- */
.layout{display:grid;grid-template-columns:1fr 320px;gap:22px;align-items:start}
.crumbs{color:var(--text-3);font-size:13px;margin:14px 0}
.crumbs a:hover{color:var(--primary)}
.list-hd{background:var(--white);border-radius:var(--radius) var(--radius) 0 0;padding:18px 20px;box-shadow:var(--shadow)}
.list-hd h1{font-size:22px;margin-bottom:6px}
.list-hd p{color:var(--text-2);font-size:13px}
.list-body{background:var(--white);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow);padding:8px 20px 20px}
.list-item{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.list-item:last-child{border-bottom:0}
.list-item .pic{width:200px;height:130px;border-radius:10px;overflow:hidden;flex-shrink:0;background:var(--primary-light)}
.list-item .pic img{width:100%;height:100%;object-fit:cover}
.list-item .info{flex:1;display:flex;flex-direction:column}
.list-item h3{font-size:17px;margin-bottom:6px}
.list-item .summary{color:var(--text-2);font-size:13px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.list-item .meta{color:var(--text-3);font-size:12px;margin-top:8px}
.list-item .meta .money{color:var(--primary);font-weight:700;margin-right:14px}
.pager{display:flex;justify-content:center;gap:8px;margin:22px 0}
.pager a,.pager span{padding:8px 14px;border-radius:8px;background:var(--white);box-shadow:var(--shadow);font-size:13px}
.pager .on{background:var(--primary);color:#fff}
.pager a:hover{color:var(--primary)}

/* 侧栏 */
.sidebar .box{background:var(--white);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:18px}
.sidebar .box h3{font-size:16px;margin-bottom:12px;padding-left:10px;border-left:3px solid var(--primary)}
.sidebar .rank li{padding:8px 0}
.consult{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);text-align:center}
.consult h3{font-size:18px;margin-bottom:6px;color:#fff}
.consult p{font-size:13px;opacity:.9;margin-bottom:12px}
.consult .phone{font-size:24px;font-weight:800;display:block;margin-bottom:12px}
.consult input,.consult textarea{width:100%;border:0;border-radius:8px;padding:10px;margin-bottom:10px;font-size:14px;font-family:inherit}
.consult button{width:100%;background:#fff;color:var(--primary-dark);border:0;border-radius:8px;padding:11px;font-weight:700;font-size:15px;cursor:pointer}
.sub-cats{display:flex;flex-wrap:wrap;gap:8px}
.sub-cats a{padding:6px 14px;background:var(--bg);border-radius:18px;font-size:13px}
.sub-cats a.on,.sub-cats a:hover{background:var(--primary);color:#fff}

/* ---------- 内容页 ---------- */
.article{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 30px}
.article h1{font-size:26px;line-height:1.4;margin-bottom:12px}
.article .meta{color:var(--text-3);font-size:13px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:18px}
.article .meta span{margin-right:16px}
.article .lead{background:var(--primary-light);border-left:4px solid var(--primary);padding:14px 18px;border-radius:8px;color:var(--text);margin-bottom:20px;font-size:15px}
.article .content{font-size:16px;line-height:1.9}
.article .content img{max-width:100%;border-radius:8px;margin:14px 0}
.article .content p{margin-bottom:14px}
.info-card{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0;background:var(--bg);border-radius:var(--radius);padding:18px}
.info-card .item{text-align:center}
.info-card .item b{display:block;color:var(--primary);font-size:22px;margin-bottom:4px}
.info-card .item span{color:var(--text-2);font-size:13px}
.rel{margin-top:26px}
.rel h3{font-size:18px;margin-bottom:12px;padding-left:12px;border-left:3px solid var(--primary)}
.rel ul li{padding:9px 0;border-bottom:1px dashed var(--line)}
.rel ul li a::before{content:"▪";color:var(--primary);margin-right:8px}
.page-nav{display:flex;justify-content:space-between;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);color:var(--text-2);font-size:14px}
.page-nav a:hover{color:var(--primary)}

/* ---------- 专题页 ---------- */
.zt-hero{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border-radius:var(--radius);padding:34px;box-shadow:var(--shadow);margin-bottom:22px}
.zt-hero h1{font-size:30px;margin-bottom:10px}
.zt-hero p{opacity:.92;font-size:15px;max-width:760px}
.zt-cats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.zt-cats a{padding:8px 18px;background:var(--white);border-radius:20px;box-shadow:var(--shadow);font-weight:600}
.zt-cats a.on,.zt-cats a:hover{background:var(--primary);color:#fff}

/* ---------- 页脚 ---------- */
.footer{background:#1f1f1f;color:#aaa;margin-top:40px;padding:34px 0 18px}
.footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}
.footer h4{color:#fff;font-size:15px;margin-bottom:14px}
.footer a{color:#aaa;display:block;padding:4px 0;font-size:13px}
.footer a:hover{color:var(--primary)}
.footer .links{display:flex;flex-wrap:wrap;gap:14px}
.footer .copy{border-top:1px solid #333;text-align:center;padding-top:16px;margin-top:24px;font-size:12px;color:#777;grid-column:1/-1}

/* ---------- 返回顶部 ---------- */
.backtop{position:fixed;right:24px;bottom:30px;width:46px;height:46px;border-radius:50%;background:var(--primary);color:#fff;display:none;place-items:center;cursor:pointer;box-shadow:var(--shadow-hover);font-size:20px;z-index:50}

/* =========================================================
   响应式 / H5 移动端适配
   断点：1024 平板 · 900 小平板-横屏 · 768 手机 · 480 窄屏 · 360 超窄
   原则：流式容器 + 减少列数 + 触控目标≥44px + 输入框≥16px 防 iOS 缩放
   ========================================================= */

/* ---------- ≤1024 平板 ---------- */
@media(max-width:1024px){
  .wrap{padding:0 16px}
  .cats{grid-template-columns:repeat(4,1fr)}
  .brand-grid{grid-template-columns:repeat(3,1fr)}
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .header .wrap{gap:14px}
  .search{max-width:340px}
  .header .hotline{display:none}
  .footer .wrap{gap:22px}
}

/* ---------- ≤900 小平板 / 手机横屏 ---------- */
@media(max-width:900px){
  .brand-grid{grid-template-columns:repeat(2,1fr)}
  .banner img{height:clamp(200px,34vw,300px)}
}

/* ---------- ≤768 手机（核心） ---------- */
@media(max-width:768px){
  body{font-size:15px;line-height:1.75}
  .wrap{padding:0 12px}
  .section{margin:18px 0}
  .section-hd{margin-bottom:12px}
  .section-hd h2{font-size:18px;padding-left:11px}
  .section-hd h2::before{height:17px;width:3px}
  .section-hd .more{font-size:12px}

  /* 顶部条 */
  .topbar{font-size:11px}
  .topbar .wrap{height:auto;min-height:30px;padding:5px 12px;gap:8px}
  .topbar .wrap span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* 站头：logo + 咨询按钮一行，搜索框独占一行 */
  .header .wrap{flex-wrap:wrap;height:auto;padding:10px 12px;gap:10px}
  .logo{font-size:18px;gap:8px}
  .logo .dot{width:26px;height:26px;font-size:14px;border-radius:7px}
  .search{order:3;flex:1 1 100%;max-width:none;width:100%}
  .search input{height:44px;padding:0 14px;font-size:16px}
  .search button{padding:0 20px;font-size:15px;min-height:44px}
  .header .hotline{display:none}
  .btn-consult{margin-left:auto;padding:10px 16px;font-size:13px;min-height:44px;display:inline-flex;align-items:center}

  /* 导航：默认收起 / 菜单按钮常驻 / 点击展开（配合 main.js 的 .open） */
  .nav .wrap{height:auto;flex-direction:column;align-items:stretch;gap:0;padding:0 12px;overflow:visible;position:relative}
  .nav .toggle{display:flex;order:-1;margin:0;height:46px;padding:0 4px;font-size:14px;font-weight:600;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
  .nav .toggle::after{content:"▾";font-size:12px;color:var(--text-3);transition:transform .2s}
  .nav .wrap.open .toggle::after{transform:rotate(180deg)}
  .nav a{display:none;height:46px;line-height:46px;padding:0 4px;font-size:15px;white-space:normal;border-bottom:1px solid var(--line)}
  .nav .wrap.open a{display:block}
  .nav a.on{border-left:3px solid var(--primary);padding-left:9px}
  .nav .wrap.hide a{display:none}   /* 兼容旧版 JS 的 hide 类名 */

  /* Banner：高度随视口流动，指示点扩大触控区 */
  .banner{margin-top:12px;border-radius:10px}
  .banner img{height:clamp(150px,48vw,230px)}
  .banner .dots{bottom:8px;gap:4px}
  .banner .dots span{width:20px;height:20px;position:relative;background:none}
  .banner .dots span::after{content:"";position:absolute;inset:6px;border-radius:50%;background:rgba(255,255,255,.65)}
  .banner .dots span.on{width:20px;height:20px;background:none;border-radius:0}
  .banner .dots span.on::after{background:#fff;width:auto;border-radius:50%}

  /* 品类快捷 */
  .cats{grid-template-columns:repeat(4,1fr);gap:8px}
  .cat{padding:12px 4px;border-radius:10px}
  .cat .ico{width:42px;height:42px;border-radius:12px;font-size:20px;margin-bottom:6px}
  .cat span{font-size:12px;line-height:1.35;display:block}

  /* 品牌卡片 */
  .brand-grid{gap:10px}
  .brand-card .pic{aspect-ratio:16/10;min-height:96px}
  .brand-card .body{padding:11px}
  .brand-card h3{font-size:14px}
  .brand-card .desc{font-size:12px}
  .brand-card .money{font-size:14px}
  .brand-card .acts{gap:6px}
  .brand-card .acts a{padding:10px 0;font-size:12px;min-height:42px;display:flex;align-items:center;justify-content:center}

  /* 预算选品：横滑不换行 */
  .budget{padding:12px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .budget::-webkit-scrollbar{display:none}
  .budget .lab{white-space:nowrap;font-size:13px}
  .budget a{flex:0 0 auto;padding:9px 14px;font-size:13px;min-height:40px;display:flex;align-items:center}

  /* 资讯 / 排行 */
  .news-cols{grid-template-columns:1fr;gap:14px}
  .news-list,.rank{padding:14px}
  .news-list li{padding:11px 0;gap:8px}
  .news-list li a{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px}
  .news-list li time{font-size:11px}
  .section-hd h2.sub{font-size:16px}

  /* 列表页 */
  .crumbs{font-size:12px;margin:10px 0}
  .list-hd{padding:14px 16px}
  .list-hd h1{font-size:19px}
  .list-body{padding:4px 16px 16px}
  .list-item{flex-direction:column;gap:10px;padding:14px 0}
  .list-item .pic{width:100%;height:clamp(150px,50vw,220px)}
  .list-item h3{font-size:16px}
  .list-item .summary{font-size:13px}
  .pager{flex-wrap:wrap;gap:6px;margin:16px 0}
  .pager a,.pager span{min-width:40px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px}
  .sub-cats a{padding:8px 13px;min-height:38px;display:inline-flex;align-items:center}

  /* 内容页 */
  .article{padding:16px 15px}
  .article h1{font-size:21px}
  .article .meta{font-size:12px}
  .article .meta span{margin-right:10px;display:inline-block}
  .article .lead{padding:12px 14px;font-size:14px}
  .article .content{font-size:16px;line-height:1.85}
  .article .content img{height:auto}
  .article .content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .info-card{grid-template-columns:1fr;gap:10px;padding:14px}
  .info-card .item{display:flex;align-items:baseline;justify-content:space-between;text-align:left;border-bottom:1px dashed var(--line);padding:6px 0}
  .info-card .item:last-child{border-bottom:0}
  .page-nav{flex-wrap:wrap;gap:8px;font-size:13px}

  /* 专题页 */
  .zt-hero{padding:20px 16px;border-radius:10px}
  .zt-hero h1{font-size:22px}
  .zt-hero p{font-size:13px}
  .zt-cats{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:none}
  .zt-cats::-webkit-scrollbar{display:none}
  .zt-cats a{flex:0 0 auto;padding:9px 15px;font-size:13px}

  /* 咨询表单：输入框 16px 防 iOS 聚焦自动放大 */
  .consult{padding:18px 16px}
  .consult .phone{font-size:21px}
  .consult input,.consult textarea{font-size:16px;padding:12px;min-height:46px}
  .consult button{min-height:48px;font-size:16px}
  .consult .btn-light{min-height:46px}

  /* 页脚 */
  .footer{margin-top:28px;padding:26px 0 calc(18px + env(safe-area-inset-bottom))}
  .footer .wrap{grid-template-columns:1fr;gap:18px}
  .footer h4{margin-bottom:10px}
  .footer a{padding:6px 0;min-height:36px;display:inline-flex;align-items:center}
  .footer .links{gap:10px 14px}
  .footer .copy{margin-top:16px;padding-top:14px;font-size:11px;line-height:1.9}

  /* 返回顶部：避开 iPhone 底部安全区 */
  .backtop{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:44px;height:44px;font-size:18px}
}

/* ---------- ≤480 窄屏手机 ---------- */
@media(max-width:480px){
  .topbar .wrap span:last-child{display:none}
  .section-hd h2{font-size:17px}
  .cats{gap:6px}
  .cat{padding:10px 2px}
  .cat .ico{width:38px;height:38px;font-size:18px}
  .cat span{font-size:11px}
  .brand-card .body{padding:10px}
  .brand-card .acts a{font-size:11px}
  .news-list li time{display:none}
  .banner img{height:clamp(140px,50vw,200px)}
}

/* ---------- ≤360 超窄屏 ---------- */
@media(max-width:360px){
  .cats{grid-template-columns:repeat(3,1fr)}
  .brand-grid{grid-template-columns:1fr}
  .btn-consult{display:none}
  .logo{font-size:16px}
}

/* ---------- 横屏手机：限制 Banner 高度 ---------- */
@media(max-width:900px) and (orientation:landscape){
  .banner img{height:clamp(130px,30vw,190px)}
}

/* ---------- 减少动效偏好 ---------- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* =========================================================
   v5 品牌列表 / 内容页布局（仿参考站品牌参数区，2026-11-06）
   使用独立类名，不覆盖 v4 的 .list-item / .info-card
   ========================================================= */

/* ---------- 列表排序条 ---------- */
.sortbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--white);border:1px solid var(--line);border-bottom:0;border-radius:var(--radius) var(--radius) 0 0;padding:12px 16px}
.sortbar-title{font-weight:700;font-size:15px;margin-right:6px}
.sortbar button{border:1px solid var(--line);background:var(--white);color:var(--text-2);border-radius:6px;padding:6px 14px;font-size:13px;cursor:pointer;font-family:inherit}
.sortbar button:hover{color:var(--primary);border-color:var(--primary)}
.sortbar button.cur{color:var(--primary);border-color:var(--primary);background:var(--primary-light);font-weight:700}
.sortbar .arw{font-style:normal;font-size:11px;opacity:.75}
.sortbar-tip{margin-left:auto;color:var(--text-3);font-size:12px}

/* ---------- 品牌列表卡片 ---------- */
.bitem{display:flex;gap:18px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:14px;transition:box-shadow .2s,border-color .2s}
.bitem:hover{border-color:#ffd0bb;box-shadow:var(--shadow-hover)}
.bitem-logo{position:relative;flex:0 0 128px;width:128px;height:128px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg);display:grid;place-items:center}
.bitem-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.bitem-logo img[src=""]{display:none}
.bitem-ph{position:relative;z-index:0;padding:8px;text-align:center;font-size:22px;font-weight:800;color:var(--primary);line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.bitem-main{flex:1;min-width:0}
.bitem-main h3{font-size:19px;line-height:1.4;margin-bottom:8px;font-weight:700}
.bitem-main h3 a:hover{color:var(--primary)}
.bitem-kv{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--text-2);font-size:13px;margin-bottom:8px}
.bitem-kv b{font-weight:700;color:var(--text)}
.bitem-kv .hl{color:var(--primary);font-size:15px}
.bitem-desc{color:var(--text-2);font-size:13px;line-height:1.7;margin-bottom:10px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.bitem-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px;color:var(--text-3);font-size:12px}
.bitem-more{margin-left:auto;color:var(--primary);font-weight:700}

/* ---------- 内容页品牌头部 ---------- */
.bhero{display:grid;grid-template-columns:minmax(0,44%) minmax(0,1fr);gap:26px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin:20px 0}
.bhero-pic{position:relative;border-radius:10px;overflow:hidden;background:var(--bg);min-height:300px;display:grid;place-items:center}
.bhero-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.bhero-pic img[src=""]{display:none}
.bhero-ph{position:relative;z-index:0;padding:16px;text-align:center;font-size:28px;font-weight:800;color:var(--primary)}
.bhero-info{min-width:0}
.bhero-info h1{font-size:24px;line-height:1.4;margin-bottom:4px}
.bhero-sub{color:var(--text-3);font-size:13px;min-height:20px;margin-bottom:16px}
.bhero-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin-bottom:14px}
.bhero-grid .bi{min-width:0}
.bhero-grid .bi span{display:block;color:var(--text-3);font-size:12px;margin-bottom:4px}
.bhero-grid .bi b{font-size:20px;font-weight:700;color:var(--text);word-break:break-all}
.bhero-grid .bi b.hl{color:var(--primary)}
.bhero-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;color:var(--text-2);font-size:13px;margin-bottom:18px}
.bhero-lines>div{display:flex;gap:8px;min-width:0}
.bhero-lines dt{flex:0 0 auto;color:var(--text-3)}
.bhero-lines dd{min-width:0;word-break:break-all}
.bhero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn-apply{background:var(--primary);color:#fff;border-radius:8px;padding:12px 34px;font-weight:700;font-size:15px}
.btn-apply:hover{background:var(--primary-dark);color:#fff}
.btn-digg,.btn-cost{border:1px solid var(--line);border-radius:8px;padding:11px 18px;font-size:14px;color:var(--text-2)}
.btn-digg{color:var(--primary)}
.btn-cost:hover,.btn-digg:hover{border-color:var(--primary)}
.barticle{margin-top:0}
.notice{background:var(--white);border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:var(--radius);padding:18px}
.notice h3{font-size:17px;margin-bottom:8px}
.notice p{color:var(--text-2);font-size:13px}

/* ---------- v5 响应式 ---------- */
@media(max-width:900px){
  .bhero{grid-template-columns:1fr}
  .bhero-pic{min-height:220px}
  .bhero-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .sortbar{padding:10px 12px;gap:6px}
  .sortbar-tip{display:none}
  .sortbar button{padding:6px 10px;font-size:12px}
  .bitem{padding:14px;gap:12px}
  .bitem-logo{flex:0 0 84px;width:84px;height:84px}
  .bitem-ph{font-size:16px}
  .bitem-main h3{font-size:16px}
  .bitem-kv{gap:4px 12px;font-size:12px}
  .bitem-kv .hl{font-size:13px}
  .bitem-more{margin-left:0;width:100%}
  .bhero{padding:14px;gap:14px}
  .bhero-info h1{font-size:20px}
  .bhero-grid{gap:8px;padding:12px 0}
  .bhero-grid .bi b{font-size:17px}
  .bhero-lines{grid-template-columns:1fr}
  .btn-apply{flex:1 1 100%;text-align:center;padding:12px}
  .btn-digg,.btn-cost{flex:1;text-align:center;padding:10px}
}
@media(max-width:360px){
  .bitem-logo{flex:0 0 68px;width:68px;height:68px}
  .bhero-grid .bi b{font-size:15px}
}

/* =========================================================
   v6 品牌列表筛选条（2026-11-06，仿参考站四行档位筛选）
   与 .sortbar 上下衔接；分类行在手机端折叠，避免首屏被 70 个标签撑爆
   ========================================================= */
.filter{background:var(--white);border:1px solid var(--line);border-bottom:0;border-radius:var(--radius) var(--radius) 0 0;padding:4px 16px}
.filter dl{display:flex;align-items:flex-start;gap:10px;margin:0;padding:9px 0;border-bottom:1px dashed var(--line)}
.filter dl:last-child{border-bottom:0}
.filter dt{flex:0 0 74px;color:var(--text-3);font-size:13px;line-height:28px;white-space:nowrap}
.filter dd{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:2px 4px;margin:0}
.filter .fopt{display:inline-block;border:0;background:transparent;color:var(--text-2);font-family:inherit;font-size:13px;line-height:28px;padding:0 10px;border-radius:5px;cursor:pointer;white-space:nowrap;text-decoration:none}
.filter .fopt:hover{color:var(--primary);background:var(--primary-light)}
.filter .fopt.on,.filter .fopt.on:hover{background:var(--primary);color:#fff;font-weight:700}
.filter .f-more{display:none;border:0;background:var(--primary-light);color:var(--primary);font-family:inherit;font-size:12px;line-height:26px;padding:0 10px;border-radius:5px;cursor:pointer;white-space:nowrap}
.filter+.sortbar{border-top:0;border-radius:0}
.sortbar .f-clear{border-color:#ffd0bb;color:var(--primary);background:var(--primary-light)}
.filter-empty{text-align:center;color:var(--text-3);padding:40px 12px;font-size:14px;background:var(--white);border:1px dashed var(--line);border-radius:var(--radius);margin:0 0 14px}
.filter-empty b{color:var(--primary)}
.list-body.is-empty{padding:0;background:transparent;box-shadow:none;border:0}
[hidden]{display:none!important}
@media(max-width:768px){
  .filter{padding:2px 12px}
  .filter dl{flex-wrap:wrap;gap:4px;padding:7px 0}
  .filter dt{flex:0 0 100%;line-height:22px;font-size:12px}
  .filter .fopt{font-size:12px;padding:0 8px;line-height:26px}
  .filter dd.f-cates{max-height:84px;overflow:hidden}
  .filter dd.f-cates.expand{max-height:none;overflow:visible}
  .filter .f-more{display:inline-block}
}

/* =========================================================
   v7 新闻系统模型（默认新闻列表模板 / 默认新闻内容模板）
   独立类名 n*，不覆盖 v5/v6 的 .bitem / .bhero / .rel
   ========================================================= */
.news-main{min-width:0}
.news-hd{background:var(--white);border-radius:var(--radius) var(--radius) 0 0;padding:18px 20px;box-shadow:var(--shadow)}
.news-hd h1{font-size:23px;margin-bottom:5px}
.news-hd p{color:var(--text-2);font-size:13px}
.ntabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:var(--white);border-left:1px solid var(--line);border-right:1px solid var(--line);padding:10px 16px;box-shadow:var(--shadow)}
.ntabs-label{font-weight:700;font-size:13px;color:var(--text-3);margin-right:8px}
.ntabs a{padding:5px 12px;border-radius:20px;background:var(--bg);color:var(--text-2);font-size:13px;white-space:nowrap}
.ntabs a:hover,.ntabs a.on{background:var(--primary);color:#fff}
.news-list{background:var(--white);border-radius:0 0 var(--radius) var(--radius);padding:6px 20px 20px;box-shadow:var(--shadow)}
.nitem{display:flex;gap:18px;padding:20px 0;border-bottom:1px dashed var(--line)}
.nitem:last-child{border-bottom:0}
.nitem-pic{position:relative;flex:0 0 210px;width:210px;height:132px;border-radius:10px;overflow:hidden;background:var(--bg);display:grid;place-items:center}
.nitem-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.nitem-pic img[src=""]{display:none}
.nitem-ph{position:relative;z-index:0;padding:10px;text-align:center;font-size:17px;font-weight:700;color:var(--primary);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.nitem-main{flex:1;min-width:0}
.nitem-main h2{font-size:19px;line-height:1.45;margin-bottom:8px;font-weight:700}
.nitem-main h2 a:hover{color:var(--primary)}
.nitem-desc{color:var(--text-2);font-size:13px;line-height:1.8;margin-bottom:12px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.nitem-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;color:var(--text-3);font-size:12px}
.nitem-more{margin-left:auto;color:var(--primary);font-weight:700}
.side-links li{padding:8px 0;border-bottom:1px dashed var(--line);font-size:13px;line-height:1.5}
.side-links li:last-child{border-bottom:0}
.side-links li a:hover{color:var(--primary)}

/* ---------- 新闻内容页 ---------- */
.narticle{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 28px}
.narticle h1{font-size:26px;line-height:1.45;margin-bottom:12px}
.nmeta{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--text-3);font-size:13px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}
.narticle-lead{background:var(--primary-light);border-left:4px solid var(--primary);padding:14px 18px;border-radius:8px;font-size:15px;line-height:1.8;margin-bottom:20px;color:var(--text)}
.narticle-body{font-size:16px;line-height:1.95;color:var(--text);overflow-wrap:anywhere}
.narticle-body p{margin:0 0 16px}
.narticle-body h2{font-size:20px;margin:26px 0 12px;padding-left:12px;border-left:4px solid var(--primary)}
.narticle-body h3{font-size:17px;margin:20px 0 10px}
.narticle-body img{max-width:100%;height:auto;display:block;margin:14px auto;border-radius:8px}
.narticle-body a{color:var(--primary);text-decoration:underline}
.narticle-body table{max-width:100%;border-collapse:collapse}
.narticle-body td,.narticle-body th{border:1px solid var(--line);padding:8px}
.ntags{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);color:var(--text-3);font-size:13px}
.nnotice{margin-top:18px;background:var(--bg);border-radius:8px;padding:14px 16px;color:var(--text-3);font-size:12px;line-height:1.8}
.nprevnext{margin-top:18px;border-top:1px dashed var(--line);padding-top:14px;font-size:14px;line-height:2;overflow-wrap:anywhere}
.nprevnext a:hover{color:var(--primary)}
.nrel{margin-top:26px;background:var(--white);border-radius:var(--radius);padding:18px 22px;box-shadow:var(--shadow)}
.nrel h3{font-size:18px;margin-bottom:12px;padding-left:12px;border-left:3px solid var(--primary)}
.nrel ul li{padding:9px 0;border-bottom:1px dashed var(--line)}
.nrel ul li:last-child{border-bottom:0}
.nrel ul li a::before{content:"▪";color:var(--primary);margin-right:8px}

/* ---------- v7 响应式 ---------- */
@media(max-width:768px){
  .news-hd{padding:14px 16px}
  .news-hd h1{font-size:19px}
  .ntabs{padding:10px 12px;gap:5px;max-height:76px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .ntabs-label{width:100%}
  .ntabs a{font-size:12px;padding:4px 10px}
  .news-list{padding:4px 14px 14px}
  .nitem{gap:12px;padding:15px 0}
  .nitem-pic{flex:0 0 96px;width:96px;height:96px}
  .nitem-ph{font-size:13px}
  .nitem-main h2{font-size:16px;margin-bottom:5px}
  .nitem-desc{font-size:12px;-webkit-line-clamp:2;margin-bottom:8px}
  .nitem-more{margin-left:0;width:100%}
  .narticle{padding:16px 15px}
  .narticle h1{font-size:21px}
  .nmeta{gap:5px 12px;font-size:12px}
  .narticle-lead{font-size:14px;padding:12px 14px}
  .narticle-body{font-size:15px;line-height:1.85}
  .narticle-body h2{font-size:18px}
  .nprevnext{font-size:13px}
}
@media(max-width:360px){
  .nitem-pic{flex:0 0 76px;width:76px;height:76px}
  .nitem-ph{font-size:12px}
}

/* ==========================================================
   v8 首页四版块（统一 .hp- 前缀，不与新闻 / 品牌模板类冲突）
   版式参考 xiuxianshipin.com 首页 1200px 布局，配色沿用本站主色
   ========================================================== */
.hp{padding-top:16px}
.hp-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--white);border-bottom:1px solid var(--line);padding:0 16px;height:52px}
.hp-hd h2{font-size:18px;font-weight:700;position:relative;padding-left:12px;white-space:nowrap}
.hp-hd h2::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:18px;background:var(--primary);border-radius:2px}
.hp-more{color:var(--text-3);font-size:13px;white-space:nowrap}
.hp-more:hover{color:var(--primary)}
/* 图片容器：占位文字在底层，图片正常时覆盖；空 src / 破图时保留可读兜底 */
.hp-box{position:relative;display:block;overflow:hidden;background:#fafafa}
.hp-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hp-box img[src=""]{display:none}
.hp-ph{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:12px;color:#c4c4c4;background:#fafafa}
.hp-empty{text-align:center;color:var(--text-3);font-size:13px;padding:14px}
.hp-empty[hidden]{display:none}

/* ---------- 版块 1 · 焦点区 ---------- */
.hp-hero{display:grid;grid-template-columns:190px minmax(0,1fr) 250px;gap:12px;align-items:start}
.hp-cats{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;min-width:0}
.hp-cats-t{background:#c8161d;color:#fff;font-size:16px;height:44px;line-height:44px;padding:0 14px;font-weight:700}
.hp-cats ul{padding:6px 0}
.hp-cats li a{display:flex;align-items:center;gap:8px;height:34px;padding:0 14px;font-size:13px;color:var(--text-2);border-bottom:1px solid #f7f7f7}
.hp-cats li:last-child a{border-bottom:0}
.hp-cats li a:hover{color:var(--primary);background:var(--primary-light)}
.hp-cats li a b{margin-left:auto;color:#ccc;font-weight:400}
.hp-dot{width:16px;height:16px;border-radius:50%;background:#f2f2f2;flex:0 0 16px;position:relative}
.hp-dot::after{content:"";position:absolute;inset:5px;border-radius:50%;background:#c9c9c9}
.hp-hero-mid{min-width:0}
.hp-hero-mid .banner{margin-top:0;height:300px;background:linear-gradient(120deg,#fff1ea,#ffdcc8)}
.hp-hero-mid .banner img{height:300px;object-fit:cover}
.hp-hero-mid .banner img[src=""]{display:none}
.hp-hero-mid .banner .slide{position:relative}
.hp-slide-t{position:absolute;left:0;right:0;bottom:0;padding:10px 14px;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.62));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-mini4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.hp-mini{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:8px;display:block;min-width:0}
.hp-mini:hover{border-color:var(--primary)}
.hp-mini .hp-box{height:56px;border-radius:6px}
.hp-mini b{display:block;font-size:13px;font-weight:700;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-mini-d{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text-3);font-size:12px;line-height:1.5}
.hp-first{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:0 12px 14px;min-width:0}
.hp-first h2{font-size:16px;font-weight:700;height:46px;line-height:46px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.hp-dots{display:inline-flex;gap:4px}
.hp-dots b{width:7px;height:7px;border-radius:50%;background:#ddd;display:block}
.hp-dots b.on{background:var(--primary)}
.hp-first-pic{display:block;position:relative;height:150px;margin-top:12px;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.hp-first-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hp-first-card h3{font-size:15px;margin:10px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-first-money{font-size:13px;color:var(--text-2)}
.hp-first-money b{color:var(--primary);font-size:16px}
.hp-first-desc{font-size:12px;color:var(--text-3);line-height:1.6;height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0 10px}
.hp-first-acts{display:flex;gap:8px}
.hp-first-acts a{flex:1;text-align:center;padding:8px 0;border-radius:6px;font-size:13px}
.hp-first-acts .ghost{border:1px solid var(--primary);color:var(--primary)}
.hp-first-acts .solid{background:var(--primary);color:#fff}
.hp-first-acts .solid:hover{background:var(--primary-dark);color:#fff}

/* ---------- 版块 2 · 精品推荐 ---------- */
.hp-fine{margin-top:22px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.hp-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hp-tabs button{background:none;border:0;padding:5px 10px;font-size:13px;color:var(--text-2);cursor:pointer;border-radius:4px;font-family:inherit}
.hp-tabs button:hover{color:var(--primary)}
.hp-tabs button.on{color:var(--primary);font-weight:700;background:var(--primary-light)}
.hp-fine-bd{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;padding:14px}
.hp-logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-content:start}
.hp-logo{display:block;border:1px solid var(--line);border-radius:6px;overflow:hidden;min-width:0}
.hp-logo .hp-box{height:68px}
.hp-logo:hover{border-color:var(--primary)}
.hp-logo:first-child{grid-column:1/-1;grid-row:span 2}
.hp-logo:first-child .hp-box{height:142px}
.hp-fcards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-content:start}
.hp-fcard{display:block;min-width:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.hp-fcard:hover{border-color:var(--primary)}
.hp-fcard[hidden]{display:none!important}
.hp-fcard .hp-box{height:118px}
.hp-fcard-name{display:block;font-size:12px;padding:6px 6px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-fcard-bot{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:5px 6px 7px}
.hp-fcard-bot b{color:var(--primary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-fcard-bot i{font-style:normal;background:var(--primary);color:#fff;font-size:11px;padding:3px 6px;border-radius:3px;white-space:nowrap}

/* ---------- 版块 3 · 项目大全 ---------- */
.hp-all{margin-top:22px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.hp-blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.hp-block{border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}
/* v9：站点当前只建了 1 个品类栏目（火锅加盟）时，单块占满整行，避免 2×2 网格右半边留白。
   以后在「项目大全」下新增品类栏目、生成器 HOME_BLOCK_CLASS_IDS 补齐后，本规则自动失效。 */
.hp-block:only-child{grid-column:1/-1}
.hp-block:only-child .hp-blk-item .hp-box{height:110px}
.hp-block-hd{display:flex;align-items:center;gap:10px;min-height:40px;height:40px;background:#f7f7f7;padding:0 12px}
.hp-block-t{display:flex;align-items:center;gap:6px;color:#fff;font-size:14px;font-weight:700;padding:5px 12px;border-radius:4px;white-space:nowrap}
.hp-block-t:hover{color:#fff;opacity:.88}
.hp-block.c1 .hp-block-t{background:#ff6600}
.hp-block.c2 .hp-block-t{background:#2196f3}
.hp-block.c3 .hp-block-t{background:#e15b9e}
.hp-block.c4 .hp-block-t{background:#18a058}
.hp-bico{width:14px;height:14px;border:2px solid rgba(255,255,255,.85);border-radius:3px;display:block}
.hp-hot{color:var(--text-3);font-size:12px;white-space:nowrap}
.hp-block-more{margin-left:auto;color:var(--text-3);font-size:12px;white-space:nowrap}
.hp-block-bd{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
.hp-blk-item{display:block;min-width:0;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.hp-blk-item .hp-box{height:82px}
.hp-blk-name{display:block;text-align:center;background:#f5f5f5;font-size:12px;color:var(--text-2);padding:5px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 第 4-6 条由 CSS 降级为底部文字链，一次查询兼顾「3 图 + 文字链」 */
.hp-blk-item:nth-child(n+4){border:0;background:none}
.hp-blk-item:nth-child(n+4) .hp-box{display:none}
.hp-blk-item:nth-child(n+4) .hp-blk-name{background:none;text-align:left;padding:2px 0;color:var(--text-2)}
.hp-blk-item:nth-child(n+4) .hp-blk-name::before{content:"· ";color:var(--primary)}
.hp-empty-hint{grid-column:1/-1;text-align:center;color:var(--text-3);font-size:12px;padding:18px 0}

/* ---------- 版块 4 · 品牌新闻 / 资讯 ---------- */
.hp-news{margin-top:22px;display:grid;grid-template-columns:minmax(0,1fr) 1.05fr 1.05fr;gap:14px;align-items:start}
.hp-news-l,.hp-news-r{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:0 14px 14px;min-width:0}
.hp-news .hp-hd{padding:0 2px;height:50px;background:none;border:0}
.hp-hd-sub{border-bottom:1px solid var(--line)!important;margin-top:8px}
.hp-nlist li{display:flex;gap:10px;padding:10px 0;border-bottom:1px dashed var(--line)}
.hp-nlist li:last-child{border-bottom:0}
.hp-nlist-pic{position:relative;flex:0 0 92px;width:92px;height:66px;border-radius:4px;overflow:hidden}
.hp-nlist-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hp-nlist li>div{min-width:0;flex:1}
.hp-nlist h3{font-size:14px;line-height:1.4;margin-bottom:3px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.hp-nlist p{font-size:12px;color:var(--text-3);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hp-news-m{min-width:0}
.hp-leadpic{position:relative;display:block;height:230px;border-radius:var(--radius);overflow:hidden;background:#f0f0f0}
.hp-leadpic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hp-leadpic>span{position:absolute;left:0;right:0;bottom:0;padding:9px 12px;color:#fff;font-size:14px;background:linear-gradient(transparent,rgba(0,0,0,.72));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.hp-entries a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:88px;background:#f5f5f5;border-radius:8px;font-size:14px;font-weight:700}
.hp-entries a:hover{background:var(--primary-light);color:var(--primary)}
.hp-entries i{font-style:normal;font-size:20px;color:var(--primary)}
.hp-headline{padding:12px 0 8px;border-bottom:1px dashed var(--line)}
.hp-headline h3{font-size:18px;color:#d90000;line-height:1.4;margin-bottom:6px}
.hp-headline h3 a{color:#d90000}
.hp-headline p{font-size:12px;color:var(--text-2);line-height:1.7}
.hp-headline p a{color:var(--primary);white-space:nowrap}
.hp-tlist li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:13px}
.hp-tlist li:last-child{border-bottom:0}
.hp-tlist li a{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-tlist time{color:var(--text-3);font-size:12px;white-space:nowrap}
.hp-tail{margin-top:22px}
.hp-tail .consult{max-width:560px;margin:0 auto}

/* ---------- 首页四版块响应式 ---------- */
@media(max-width:1024px){
  .hp-hero{grid-template-columns:160px minmax(0,1fr) 210px}
  .hp-fine-bd{grid-template-columns:210px minmax(0,1fr)}
  .hp-fcards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hp-news{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-news-r{grid-column:1/-1}
}
@media(max-width:900px){
  .hp-hero{grid-template-columns:150px minmax(0,1fr)}
  .hp-first{grid-column:1/-1}
  .hp-first-pic{height:180px}
  .hp-fine-bd{grid-template-columns:1fr}
  .hp-logos{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hp-logo:first-child{grid-column:span 2;grid-row:span 2}
  .hp-blocks{grid-template-columns:1fr}
}
@media(max-width:768px){
  .hp{padding-top:12px}
  .hp-hd{height:auto;min-height:46px;padding:8px 12px;flex-wrap:wrap}
  .hp-tabs{gap:2px}
  .hp-tabs button{padding:6px 8px;font-size:12px;min-height:34px}
  .hp-hero{grid-template-columns:1fr}
  .hp-cats ul{display:flex;overflow-x:auto;gap:6px;padding:8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .hp-cats ul::-webkit-scrollbar{display:none}
  .hp-cats li{flex:0 0 auto}
  .hp-cats li a{border:1px solid var(--line);border-radius:16px;padding:0 12px;height:34px}
  .hp-cats li a b{display:none}
  .hp-hero-mid .banner,.hp-hero-mid .banner img{height:clamp(160px,46vw,260px)}
  .hp-mini4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-fcards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hp-fcard .hp-box{height:100px}
  .hp-logos{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hp-logo:first-child{grid-column:span 2;grid-row:span 2}
  .hp-news{grid-template-columns:1fr}
  .hp-news-r{grid-column:auto}
  .hp-leadpic{height:clamp(160px,44vw,230px)}
  .hp-entries a{height:72px;font-size:13px}
  .hp-news-l,.hp-news-r{padding:0 12px 12px}
}
@media(max-width:480px){
  .hp-fcards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hp-logo:first-child{grid-column:span 3;grid-row:auto}
  .hp-logo:first-child .hp-box{height:120px}
  .hp-blocks{padding:10px}
  .hp-block-bd{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:8px}
  .hp-blk-item .hp-box{height:64px}
  .hp-blk-name{font-size:11px}
  .hp-block-hd{height:auto;min-height:40px;flex-wrap:wrap;padding:8px;gap:6px}
  .hp-hot{display:none}
  .hp-nlist-pic{flex:0 0 76px;width:76px;height:58px}
  .hp-headline h3{font-size:16px}
}
@media(max-width:360px){
  .hp-fcards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-block-bd{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hp-first-acts a{font-size:12px}
}

/* =========================================================
   模板原子样式（原行内 style 收拢至此）
   由 build_temp_group.py 生成，改样式请直接编辑本文件
   ========================================================= */
.topbar b{color:var(--accent)}
.header .hotline small{display:block;color:var(--text-3);font-size:12px}
.footer p{font-size:13px;line-height:1.8}
.footer .links{margin-top:10px}
.footer .copy a{color:#777}
.section-hd h2.sub{font-size:17px}
.consult .btn-light{display:block;background:#fff;color:var(--primary-dark);border-radius:8px;padding:11px;text-align:center;font-weight:700}
.consult .btn-light:hover{opacity:.9}
