/* L988 Modern Custom UI - Version 20260118v2 (DeepSeek Strategy Alignment) */

:root {
  /* 1. 严格配色系统 */
  --primary: #D4A017;          /* 琥珀金：主行动色 */
  --primary-deep: #B8860B;     /* 深琥珀：文字标题 / Hover */
  --primary-soft: rgba(212, 160, 23, 0.08); /* 极淡金：标签背景 */

  /* 兼容变量（旧代码里使用 --accent/--surface/--radius-md 等） */
  --accent: var(--primary);
  --accent-hover: var(--primary);
  --accent-ring: rgba(212, 160, 23, 0.35);
  --primary-hover: var(--primary-deep);

  --bg-main: #F8F9FA;          /* 全站浅灰底 */
  --bg-card: #FFFFFF;          /* 卡片白 */

  --background: var(--bg-main);
  --surface: var(--bg-card);
  --surface-border: var(--border-light);
  --border: var(--border-light);

  --text-title: #111827;       /* 标题/重要文字（更清晰） */
  --text-main: #334155;        /* 正文文字（更耐读） */
  --text-muted: #64748b;       /* 辅助/日期文字 */

  --border-light: #EEEEEE;     /* 极细边框 */

  /* 2. 空间与容器约束 */
  --radius-std: 8px;           /* 统一 8px 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.04); /* 极淡阴影 */
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow: var(--shadow-subtle);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 45px rgba(0,0,0,0.14);

  --glass-blur: 12px;

  /* 3. 字体系统：全站统一（正文轻盈，标题更清晰） */
  --font-ui: "Microsoft YaHei UI", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --font-title: var(--font-ui);
  --font-body: var(--font-ui);

  --weight-body: 400;
  --weight-medium: 500;
  --weight-title: 600;
  --weight-emphasis: 600;

  /* 正文排版（长文本更舒服） */
  --leading-body: 1.9;
  --leading-ui: 1.6;
}


/* --- 全局基础重置 --- */
body {
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--weight-body);
  line-height: var(--leading-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .title {
  color: var(--text-title);
  font-family: var(--font-title) !important;
  font-weight: var(--weight-title);
  letter-spacing: 0.1px;
}

/* --- 全站正文统一：默认不加粗，靠标题/strong 做层级 --- */
html body :where(p, li, dt, dd, blockquote){
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
}
html body :where(strong, b){
  color: var(--text-title);
  font-weight: var(--weight-emphasis);
}

/* --- 长文本区域：适合“产品介绍/商家介绍/新闻正文”这类文字很多的场景 --- */
html body :where(.you_xq_l_jj) :where(p, li){
  font-size: 15px;
  line-height: var(--leading-body);
  color: var(--text-main);
  font-weight: var(--weight-body);
  text-shadow: none;
}

/* 新闻/文章正文：统一更耐读的行高与灰阶（不去动标题） */
html body :where(.article-con, .article-con p, .article-con li){
  font-size: 15px !important;
  line-height: var(--leading-body) !important;
  color: var(--text-main) !important;
  font-weight: var(--weight-body) !important;
}

html body :where(.news-list li .con p, .newsxw-list li .con p){
  line-height: var(--leading-body) !important;
  color: var(--text-main) !important;
  font-weight: var(--weight-body) !important;
}

/* 只在“内容区”压掉意外的重字重，避免正文到处 700/800 */
html body :where(.you_xq_l_jj, .article-con, .news-list, .newsxw-list) :where(p, li){
  font-weight: var(--weight-body) !important;
}

/* 内容区链接：统一琥珀金语义（可读且不突兀） */
html body :where(.you_xq_l_jj, .article-con, .news-list, .newsxw-list) :where(a){
  color: var(--primary-deep);
  font-weight: var(--weight-medium);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.15em;
}
html body :where(.you_xq_l_jj, .article-con, .news-list, .newsxw-list) :where(a:hover){
  color: var(--primary) !important;
}

/* 大标题避免 800/900 的“糊重感”，统一到 700 更清爽 */
html body .category-title-text{
  font-weight: 700 !important;
}



a {
  color: inherit;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary) !important;
  text-decoration: none !important;
}

/* --- 最新资讯：更细、更清晰 --- */
.new-news ul li a,
.new-news ul li a *{
  font-weight: 300 !important;
  color: #333333 !important;
}
.new-news ul li a:hover,
.new-news ul li a:hover *{
  color: var(--primary) !important;
}
.new-news ul li span.date{
  font-weight: 300 !important;
  color: #7A7A7A !important;
}


/* 大家都在搜：颜色更深、字重略粗 */
.you_ss_jl .hot-search-label,
.you_ss_jl #l988HotSearchLinks > a.hot-search-item > span.hot-search-pill{
  font-weight: 500 !important;
  color: #2F2F2F !important;
}

/* 分类导航：默认更深，hover/active 变白 */
.category-nav :where(a, a span, a i){
  font-weight: 500 !important;
  color: #2E2E2E !important;
}
.category-nav :where(a:hover, a:hover span, a:hover i,
                     a.active, a.active span, a.active i,
                     a:focus, a:focus span, a:focus i){
  color: #FFFFFF !important;
}








/* 参考“黄色.html”：可复用玻璃面板 */
.glass-panel {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 全站表单 focus/checkbox 去蓝紫 */
:where(input, select, textarea, button, .btn):focus {
  outline: none;
}
:where(input, select, textarea, button, .btn):focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
:where(input, select, textarea):focus-visible {
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18);
}
:where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--accent);
}

/* Bootstrap 变量兜底（避免组件默认色带蓝/紫味） */
:root {
  --bs-primary: #111827;
  --bs-primary-rgb: 17, 24, 39;
  --bs-link-color: #111827;
  --bs-link-hover-color: #D97706;
  --bs-focus-ring-color: rgba(245,158,11,0.30);
}

/* 常见主按钮统一到黑金（不改布局，仅换皮） */
.btn-primary {
  background: linear-gradient(135deg, #111827, #F59E0B) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(17,24,39,0.16) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0b1220, #D97706) !important;
  box-shadow: 0 16px 34px rgba(17,24,39,0.20) !important;
}
.btn-primary:active {
  transform: translateY(1px);
}


/* Modern Card Style - 强制圆角与可见边框 */
.card, .block, .you_gslb_nr {
  background: #FFFFFF !important;
  border: 1px solid #EAEAEA !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
  transition: all 0.2s ease-in-out !important;
  overflow: hidden;
  position: relative;
}
.card::before, .card::after,
.block::before, .block::after,
.you_gslb_nr::before, .you_gslb_nr::after{
  border-radius: 12px !important;
}

.card:hover, .block:hover, .you_gslb_nr:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
  border-color: rgba(0,0,0,0.12) !important;
}



/* Sidebar Modernization */
.sidebar-nav-inner {
  background: #ffffff !important;
  border-right: 1px solid var(--border);
  box-shadow: none !important;
}

.sidebar-item > a:hover, .sidebar-show {
  background: rgba(51, 65, 85, 0.08) !important;
  color: var(--primary) !important;
  border-left: 3px solid var(--primary) !important;
}

/* Header & Navigation */
.page-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Merchant Card Enhancements */
/* 头像区去掉“白色方块底” */
.you_gslb_nr_l {
  background: transparent !important;
}

.seller-name-text {
  font-weight: 600 !important;
  color: var(--text-main) !important;
}
.seller-years {
  color: var(--text-muted) !important;
  background: var(--background);
}
.you_gslb_nr_r_2 {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}
/* 会员卡片悬停：商家介绍变白（覆盖强制色） */
.you_gslb_nr:has(.you_gslb_nr_r_1_1):hover .you_gslb_nr_r_2,
.you_gslb_nr:has(.you_gslb_nr_r_1_1):hover .you_gslb_nr_3{
  color: #FFFFFF !important;
}
.index-cat-more {
  color: var(--text-muted) !important;
  background: var(--background);
}

.index-cat-more:hover {
  background: var(--primary);
  color: white !important;
}

/* Category Sections */
.you_gslb_bt {
  border: none !important;
  padding: 40px 0 20px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: none !important;
}

/* Category Nav Mobile Styles */
@media (max-width: 991px) {
  .category-nav-inner {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    padding: 20px 0;
    overflow-y: auto;
  }
  .category-nav-inner.open {
    left: 0;
  }
  .category-nav-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
  }
  .category-nav-mask.show {
    display: block;
  }
  .category-nav ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .category-nav li {
    width: 100%;
  }
  .category-nav a {
    width: 100%;
    border-radius: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 15px 25px !important;
    justify-content: flex-start !important;
    font-size: 16px !important;
  }
  .category-nav a.active {
    background: rgba(31, 41, 55, 0.05) !important;
    color: var(--primary) !important;
    border-right: 4px solid var(--primary) !important;
  }
}



.category-title-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  position: relative;
  padding-left: 15px;
}

.category-title-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: var(--primary);
  border-radius: 100px;
}


/* Search Bar Modernization */
#search-text {
  border-radius: 100px !important;
  border: 2px solid var(--border) !important;
  padding: 12px 24px !important;
  transition: all 0.3s !important;
}

#search-text:focus {
  border-color: rgba(245,158,11,0.60) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18) !important;
}


/* Mobile Optimizations */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0 !important;
    padding-bottom: 70px; /* Space for bottom nav */
  }
  
  .you_gslb_nr {
    margin-bottom: 15px !important;
  }

  /* 首页顶部推荐区：手机端保留轮播（原先隐藏会导致轮播区域“空白”） */
  .index_ts_1 {
    display: block;
  }
  /* 让轮播内容占满宽度，避免左侧小 tab 挤压 */
  .index_ts_1 .tab-title {
    display: none;
  }
  .index_ts_1 .tab-content {
    float: none !important;
    width: 100% !important;
  }
}

/* 首页顶部推荐区：平板/手机统一为“全宽轮播”布局（避免某些分辨率下出现空白） */
@media (max-width: 991px) {
  .index_ts_1 {
    display: block !important;
  }
  .index_ts_1 .tab-title {
    display: none !important;
  }
  .index_ts_1 .tab-content {
    float: none !important;
    width: 100% !important;
  }
}

/* WeChat Specifics */
.wechat-only {
  display: none;
}

body.in-wechat .wechat-only {
  display: block;
}

/* Button Refinement */
.btn-primary, .btn-light {
  border-radius: 100px !important;
  padding: 8px 24px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.hero-section {
  padding: 24px 0;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-top: 12px;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

.hero-section::after {
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* 轮播图样式 */
.main-carousel {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.main-carousel .bd, .main-carousel .bd ul, .main-carousel .bd li {
  height: 100%;
}

.main-carousel .bd li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-carousel .hd {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.main-carousel .hd ul {
  display: flex;
  gap: 8px;
}

.main-carousel .hd li {
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  cursor: pointer;
  text-indent: -9999px;
}

.main-carousel .hd li.on {
  background: var(--primary);
  width: 24px;
  border-radius: 100px;
}

.tab-header {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
  background: #f1f5f9;
  color: #64748b;
}

.tab-btn.active {
  background: linear-gradient(135deg, #111827, #F59E0B);
  color: #fff;
  box-shadow: 0 10px 18px rgba(17,24,39,0.14);
}


.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none !important;
  color: #1e293b !important;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  transition: transform 0.3s ease;
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card span {
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .main-carousel {
    height: 240px;
  }
  .hero-featured {
    display: none;
  }
}

.hero-featured {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.news-list-mini a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted) !important;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.news-list-mini a:hover {
  color: var(--primary) !important;
  padding-left: 5px;
}

.news-date {
  opacity: 0.6;
}

/* Bottom Tab Bar (Mobile) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  display: none;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border);
  z-index: 10000;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* Share Button */

.l988-share-btn {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.top-gradient-bg {
  /* 这块 400px 的局部渐变层会导致背景在某个高度“突然断掉”，产生你说的“一截一截”效果。
     统一交给 body 的整体背景来做氛围光晕。 */
  display: none !important;
}


.search-hero-section {
  padding: 60px 0 40px;
}

.you_ss_xl, .you_ss_gjc, .you_ss_an {
  border-radius: 12px !important;
  height: 54px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

.you_ss_an {
  background: var(--primary) !important;
  color: white !important;
}

.hot-search-pill {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: none !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* 首页「大家都在搜」：恢复关键词胶囊 hover 变色 + 白字 */
.you_ss_jl #l988HotSearchLinks > a.hot-search-item:hover > span.hot-search-pill,
.you_ss_jl #l988HotSearchLinks > a.hot-search-item:focus-visible > span.hot-search-pill{
  background: linear-gradient(135deg, #111827 0%, #F59E0B 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(17,24,39,0.10) !important;
}

/* 首页：去掉“搜索区上方那条灰色留白”（只影响 index.php）
   - 根因：`public/html_top.php` 里 `#tb`（.you_tb_3）占了 60px 高度，把主搜索整体往下推；
           同时你在首页把 `.search-hero-section` 背景做了透明，空出来的区域会露出 body 灰底。
   - 处理：把主搜索层（.you_tb_2）拉回顶部，并给搜索区一个白色背景覆盖，避免再露灰。
*/
.page-index .you_tb_2{
  top: 0 !important;
  height: auto !important;
}

/* 仍保留 `#tb_1` 的 fixed 搜索框逻辑，但不让它在首页“占位”出一条空白 */
.page-index #tb.you_tb_3{
  height: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
}

.page-index .search-hero-section{
  background: var(--surface) !important;
  border-bottom: 0 !important;
  /* 预留顶部 fixed 导航高度，避免搜索区被 header 压住 */
  padding-top: 86px !important;
}


 

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.you_gslb_nr {
  animation: fadeIn 0.5s ease backwards;
}

.index-cat-list .you_gslb_nr:nth-child(1) { animation-delay: 0.1s; }
.index-cat-list .you_gslb_nr:nth-child(2) { animation-delay: 0.15s; }
.index-cat-list .you_gslb_nr:nth-child(3) { animation-delay: 0.2s; }
.index-cat-list .you_gslb_nr:nth-child(4) { animation-delay: 0.25s; }



.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none !important;
}

.mobile-bottom-nav .nav-item i {
  font-size: 20px;
}

.mobile-bottom-nav .nav-item span {
  font-size: 11px;
  font-weight: 600;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 30px 20px;
  }
  .hero-content {
    flex-direction: column;
    padding: 0;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
  .hero-featured {
    width: 100%;
  }
  .mobile-bottom-nav {
    display: flex;
  }
}


/* Search Hero Section */
.search-hero-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* 首页：去掉搜索区顶部那块灰底留白（只影响 index.php） */
.page-index .search-hero-section {
  background: transparent !important;
  border-bottom: 0 !important;
  padding-top: 16px !important;
}

.search-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.search-hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.main-search-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.main-search-form {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  transition: all 0.2s ease;
}

.main-search-form:focus-within {
  border-color: rgba(245,158,11,0.45);
  box-shadow: 0 18px 55px rgba(17,24,39,0.16);
}


.main-search-type {
  flex: 0 0 auto;
  width: 90px;
  height: 48px;
  border: none;
  background: var(--background);
  color: var(--text-muted);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  margin-right: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.main-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0 12px;
  color: var(--text-main);
  outline: none;
}

.main-search-btn {
  flex: 0 0 auto;
  height: 48px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.main-search-btn:hover {
  background: var(--primary-hover);
}

.main-search-btn .icon-search {
  font-size: 1.25rem;
}

.hot-search-keywords {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hot-search-keywords ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-search-keywords a {
  color: var(--text-muted);
  text-decoration: none;
  background: var(--background);
  padding: 4px 12px;
  border-radius: 999px;
  transition: all 0.2s;
}

.hot-search-keywords a:hover {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* Home Featured Section */
.home-featured-section {
  padding: 24px 0;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.home-carousel-wrapper .main-carousel {
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-tabs-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
}

.modern-tab-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.modern-tab-btn {
  padding: 0 4px 12px 4px;
  margin-right: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.modern-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}


.modern-tab-pane { display: none; }
.modern-tab-pane.active { display: block; }

.featured-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.featured-item-card {
  text-decoration: none;
  color: var(--text-main);
}

.featured-item-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.3s;
}

.featured-item-card:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.featured-item-card span {
  font-size: 0.875rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-news-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.mini-news-list a:hover {
  color: var(--primary);
  background: var(--background);
}

.mini-news-list .news-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-news-list .news-date-text {
  flex-shrink: 0;
}

/* =================================================================
   Component: Modern Result List & Cards (for sjlb.php, cplb.php)
   ================================================================= */

/* Container for the new card grid */
.modern-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 16px 0;
}

/* New Card Design */
.modern-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,158,11,0.22);
}


.modern-card .card-main-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

.modern-card .card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Aspect ratio 4:3 */
  overflow: hidden;
  background-color: #f3f4f6;
}

.modern-card .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-card:hover .card-image {
  transform: scale(1.05);
}

.modern-card .card-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.modern-card .card-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.modern-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-card .card-title .title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-card .card-year-badge {
  background-color: var(--accent);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}


.modern-card .card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px; /* 2 lines * 1.5 line-height * 14px font-size */
}

.modern-card .card-footer {
  padding: 0 16px 12px;
  margin-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.modern-card .modern-share-btn {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(17,24,39,0.14);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  margin-top: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modern-card .modern-share-btn:hover {
  background: linear-gradient(135deg, rgba(17,24,39,0.94), rgba(245,158,11,0.94));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(17,24,39,0.18);
}

.modern-card .modern-share-btn:active {
  transform: translateY(1px);
}


.modern-card .modern-share-btn .iconfont {
  font-size: 14px;
}


/* Overrides for Page Title Area */
.you_gslb_bt {
  background: var(--surface) !important;
  border: 1px solid var(--surface-border) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  /* 给 css/css.css 的左侧徽标（::before/::after）预留空间，避免标题第一个字被遮挡 */
  padding: 24px 24px 24px 68px !important;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-md) !important;
}

@media (max-width: 600px) {
  /* 移动端徽标缩小后，对应缩回左内边距 */
  .you_gslb_bt {
    padding-left: 56px !important;
  }
}



.category-title-text {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  padding-left: 0 !important;
}


.category-title-text::before {
  display: none !important;
}

/* Overrides for Loading Indicators */
.category-scroll-loading {
  display: none;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0;
  font-weight: 600;
}


.category-scroll-sentinel { width: 100%; height: 1px; }

/* =========================================================
   Global Override Layer (De-purple + Glassmorphism)
   目标：彻底去除任何蓝/紫默认态（含 visited/focus/tab/pager/scrollbar）
   ========================================================= */

/* 让链接继承父级颜色，彻底屏蔽 Bootstrap 默认蓝紫；hover 用琥珀强调 */
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(245,158,11,0.18);
}
a:hover {
  color: var(--accent-hover);
}
a:active {
  color: var(--accent);
}
a:visited {
  color: inherit;
}

/* 兜底：避免某些区域仍被旧样式强行写蓝紫 */
:where(a, a:hover, a:active, a:focus, a:visited) {
  text-decoration-color: rgba(245,158,11,0.35);
}

/* 统一 focus ring（微信 WebView 常用 :focus 而非 :focus-visible） */
:where(a, button, .btn, input, select, textarea, .form-control):focus {
  outline: none !important;
}
:where(a, button, .btn, input, select, textarea, .form-control):focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
:where(input, select, textarea, .form-control):focus {
  border-color: rgba(245,158,11,0.62) !important;
  box-shadow: 0 0 0 0.25rem rgba(245,158,11,0.18) !important;
}
:where(button, .btn, input[type="submit"], input[type="button"], input[type="reset"]):focus {
  box-shadow: 0 0 0 0.25rem rgba(245,158,11,0.22) !important;
}

/* Bootstrap 链接/按钮类：去掉默认 link/outline 的蓝紫 */
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
  color: inherit;
  text-decoration: none;
  box-shadow: none !important;
}

/* Pagination（含 Bootstrap 与站内自定义分页） */
.page-link {
  color: var(--text-main);
  background: rgba(255,255,255,0.72);
  border-color: rgba(17,24,39,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
}
.page-link:hover {
  color: var(--text-main);
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
}
.page-item.active .page-link,
.page-link.active {
  color: #fff;
  background: linear-gradient(135deg, #111827, #F59E0B);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(17,24,39,0.16);
}
.page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(245,158,11,0.20) !important;
}

.index-cat-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.index-cat-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.12);
  background: rgba(255,255,255,0.76);
  color: var(--text-main);
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.index-cat-page-btn:hover {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17,24,39,0.12);
}
.index-cat-page-btn.is-active {
  background: linear-gradient(135deg, #111827, #F59E0B);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(17,24,39,0.16);
}
.index-cat-page-btn.is-disabled,
.index-cat-page-btn.is-disabled:hover {
  opacity: 0.45;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.index-cat-page-ellipsis,
.index-cat-page-meta {
  color: var(--text-muted);
  font-weight: 700;
}

/* Tabs（Bootstrap tabs/pills 与站内 tab） */
.nav-tabs .nav-link,
.nav-pills .nav-link {
  color: var(--text-muted);
}
.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
  color: var(--text-main);
}
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #fff !important;
  background: linear-gradient(135deg, #111827, #F59E0B) !important;
  border-color: transparent !important;
  box-shadow: 0 10px 18px rgba(17,24,39,0.14);
}

/* cplb.php 注入列表：容器级兜底，避免 Ajax 片段出现蓝/紫 link/focus */
#list {
  color: var(--text-main);
}

/* goods.php / list.php 内容区（可能含富文本/内联颜色）：强制去紫 */
.you_xq_l_jj,
.you_xq_r {
  color: var(--text-main);
}
.you_xq_l_jj a,
.you_xq_l_jj a:visited,
.you_xq_r a,
.you_xq_r a:visited {
  color: inherit !important;
}
.you_xq_l_jj a:hover,
.you_xq_r a:hover {
  color: var(--accent-hover) !important;
}

/* 详情/商家页右侧卡片：统一玻璃面板（不改结构，仅换皮） */
.you_xq_r,
.you_xq_r .you_xq_l_jj,
.you_xq_l {
  background: var(--surface) !important;
  border: 1px solid var(--surface-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}

/* “访问微商相册”按钮：确保任何状态不返蓝/紫 */
.you_xq_l_an {
  color: #fff !important;
}
a:hover .you_xq_l_an {
  color: #fff !important;
}

/* 年限/徽章高亮：统一为黑金琥珀体系（覆盖 goods.php / ajax 内联） */
.seller-years {
  background: linear-gradient(135deg, #111827, #F59E0B) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(17,24,39,0.18) !important;
}


#list a,
#list a:visited {
  color: inherit !important;
}
#list a:hover {
  color: var(--accent-hover) !important;
}
#list a:active {
  color: var(--accent) !important;
}

#list :where(button, .btn, input[type="button"], input[type="submit"]) {
  border-color: rgba(17,24,39,0.14) !important;
}

/* 滚动条统一（含微信 WebView / iOS 视觉） */
html, body {
  scrollbar-width: thin;
  scrollbar-color: rgba(17,24,39,0.55) rgba(255,255,255,0.65);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(17,24,39,0.92), rgba(245,158,11,0.92));
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.65);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(11,18,32,0.95), rgba(217,119,6,0.95));
}

/* iOS/微信滚动更顺滑，减少“卡顿/断触” */
:where(.new-news, .tab-content, .newsxw-list, .container) {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  /* 安全区：避免底部固定条/浏览器工具栏遮挡 */
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* =========================================================
   Home Page: De-purple Patches (Slogan/Search/Nav/Carousel)
   ========================================================= */

/* 标语：提供非渐变浏览器的可靠 fallback，避免出现“紫色文本” */
.search-slogan{
  color: var(--text-main) !important;
  text-shadow: none !important;
}
@supports (-webkit-background-clip: text) {
  .search-slogan{
    background: linear-gradient(135deg, #111827 0%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* 首页主搜索：用容器 ring 统一 focus，避免输入框自带的蓝/紫 ring */
.you_ss{
  -webkit-tap-highlight-color: rgba(245,158,11,0.18);
}
.you_ss:focus-within{
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18), 0 18px 55px rgba(17,24,39,0.14) !important;
}
.you_ss :where(input, select, textarea):focus{
  box-shadow: none !important;
}

/* 商家分类导航：visited/active/focus 全面去紫 */
.category-nav a,
.category-nav a:visited{
  color: var(--text-main) !important;
}
.category-nav a:focus,
.category-nav a:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18) !important;
}
.category-nav a.active,
.category-nav a.active:visited{
  color: #fff !important;
}

/* 顶部菜单同样去 visited 紫 */
.site-menu a,
.site-menu a:visited{
  color: inherit !important;
}

/* 通用轮播：把库默认主题色统一到琥珀（防止出现蓝/紫主题色） */
:root{
  --swiper-theme-color: var(--accent);
  --swiper-navigation-color: var(--accent);
}
.swiper-button-next,
.swiper-button-prev{
  color: var(--text-main) !important;
}

/* 轮播分页圆点：hover 到哪个点，哪个点就变琥珀金（与 active 一致） */
html body .swiper-pagination-bullet{
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}
html body .swiper-pagination-bullet:hover{
  background: var(--accent) !important;
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-ring);
}
html body .swiper-pagination-bullet-active,
html body .swiper-pagination-bullet-active:hover{
  background: var(--accent) !important;
  opacity: 1;
}


/* =========================================================
   Home Page: Hard De-purple Lock (v20260117v3)
   - 目的：不管旧 CSS/visited/focus/控件默认色怎么搞，都强制统一黑金
   ========================================================= */

/* 兜底：任何链接 visited 都不允许回到紫色 */
a:visited{ color: inherit !important; }

/* 标语：确保不支持渐变裁剪的浏览器也不会出现“奇怪的紫色/透明” */
.search-slogan{
  color: var(--text-main) !important;
  text-shadow: none !important;
}
@supports (-webkit-background-clip: text) {
  .search-slogan{
    background: linear-gradient(135deg, #111827 0%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
}
@supports not (-webkit-background-clip: text) {
  .search-slogan{
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: var(--text-main) !important;
  }
}

/* 首页主搜索：边框/焦点 ring 统一为琥珀，彻底禁用蓝紫 focus 样式 */
.you_ss{ -webkit-tap-highlight-color: rgba(245,158,11,0.18); }
.you_ss:focus-within{
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18), 0 18px 55px rgba(17,24,39,0.14) !important;
}
.you_ss :where(input, select, textarea):focus,
.you_ss :where(input, select, textarea):focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* 硬兜底：避免输入框/下拉框自身出现边框色（某些浏览器会给 select 注入默认 focus border） */
.you_ss :where(.you_ss_xl, .you_ss_gjc, .you_ss_an){
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.you_ss .you_ss_xl{
  border-right: 1px solid rgba(17,24,39,0.10) !important;
}
.you_ss .you_ss_an{
  background: linear-gradient(135deg, #111827, #F59E0B) !important;
  color: #fff !important;
}

/* 首页主搜索：让“搜索”按钮在手机端更像胶囊（避免看起来像“方形按钮”） */
.you_ss .you_ss_an{
  border-radius: 999px !important;
  height: calc(100% - 12px) !important;
  margin: 6px 6px 6px 4px !important;
  box-shadow: 0 10px 24px rgba(17,24,39,0.18) !important;
}


/* 商家分类导航：桌面端更深色 + hover 变白 */
.category-nav :where(a, a:visited, a:focus, a:focus-visible){
  color: #2E2E2E !important;
  outline: none !important;
  font-weight: 500 !important;
}
.category-nav :where(a i, a span){
  color: inherit !important;
  font-weight: inherit !important;
}
.category-nav :where(a:hover, a:hover span, a:hover i){
  color: #FFFFFF !important;
}

.category-nav a:focus,
.category-nav a:focus-visible{
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18) !important;
}
.category-nav a.active,
.category-nav a.active:visited{ color:#fff !important; }



/* 轮播（FlexSlider）：分页点/左右按钮去紫 + focus ring 统一 */
.flex-control-nav a,
.flex-control-nav a:visited{
  background: rgba(255,255,255,0.55) !important;
}
.flex-control-nav a:hover{ background: rgba(255,255,255,0.85) !important; }
.flex-control-nav a:focus,
.flex-control-nav a:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18) !important;
}
.flex-control-nav .flex-active{
  background: linear-gradient(135deg, #111827 0%, #F59E0B 100%) !important;
}
.flex-direction-nav li a:focus,
.flex-direction-nav li a:focus-visible{
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18) !important;
  border-radius: 999px;
}

/* 分类标题：修复“第一个字被挡住”（让文字层级高于左侧徽标伪元素） */
.you_gslb_bt{ position: relative !important; display:block !important; }
.you_gslb_bt::before,
.you_gslb_bt::after{ z-index: 1 !important; }
.category-title-text,
.index-cat-more{ position: relative !important; z-index: 2 !important; }

/* 分类标题去紫：默认黑字；支持裁剪的浏览器用黑金渐变 */
.category-title-text{ color: var(--text-main) !important; }
@supports (-webkit-background-clip: text) {
  .category-title-text{
    background: linear-gradient(135deg, #111827 0%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }
}

/* 还原“鼠标移上去转圈”效果：转的是前面金色方块（::before），不是里面白色小图标（::after） */
@keyframes l988-title-block-spin{
  from{ transform: translateY(-50%) scale(1.05) rotate(0deg); }
  to{ transform: translateY(-50%) scale(1.05) rotate(360deg); }
}
.you_gslb_bt:hover::before{
  animation: l988-title-block-spin 0.85s ease-in-out 1;
  transform-origin: 50% 50%;
}


/* 商家卡片：会员默认就有一圈边框；悬停时才进入“流光 + 炫彩流动” */
.you_gslb_nr:has(.you_gslb_nr_r_1_1){
  /* 说明：上方通用卡片规则会把 .you_gslb_nr 的 border/background 强制成统一风格
     这里需要为“会员卡片”单独把默认边框还原出来 */
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%) !important;
  border: 2px solid rgba(245,158,11,0.28) !important;
}
.you_gslb_nr:has(.you_gslb_nr_r_1_1):hover{
  border-color: transparent !important;
  background-clip: padding-box;
}
.you_gslb_nr:has(.you_gslb_nr_r_1_1):hover::after{
  content: '' !important;
  background-size: 200% 200% !important;
  animation: borderFlow 1.6s linear infinite !important;
}


/* 会员等级标志：需要显示（用户需要等级标志）
   说明：之前为去掉“白方块”临时隐藏了 badge，现在恢复显示。
   若个别 badge 图片素材本身带白底，可再单独换成透明 PNG 来彻底解决。
*/
.you_gslb_nr_l img.badge-on-avatar{
  display: block !important;
}


/* 兜底：头像区域保持透明底（不影响圆形头像本身） */
.you_gslb_nr a,
.you_gslb_nr_l,
.you_gslb_nr_l img{
  background-color: transparent !important;
}


/* =========================================================
   搜索结果页（商品列表）按钮统一（移动端）
   - 目标：更“细”、更省高度；并支持“2×2（长/短）”与“2×1+1”
   ========================================================= */

/* 桌面端：统一 cplb.php 按钮组尺寸（重点修复“立即下单”比“分享”更高）
   根因：
   - Meilisearch Ajax 片段里“立即下单”( .mall-order-btn )会被写入更大 padding/font-size 且带 !important。
   - 另外 `.more-btn` 在部分基础样式下会继承到较大的 line-height（例如 24px），导致视觉高度偏大。
   处理：在 `.newsxw-list .btm[data-btn-count]` 作用域内，把“咨询/详情/分享/下单”统一为同一高度/行高/内边距。
*/
@media (min-width: 769px){
  html body .newsxw-list .btm[data-btn-count] :where(.more-btn, .l988-share-btn, .mall-order-btn){
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;

    height: 38px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    line-height: 1 !important;

    border-radius: 999px !important;
    min-width: 150px !important;
  }
}







@media (max-width: 768px){
  .newsxw-list .btm{
    display: grid !important;
    gap: 8px !important;
    align-items: stretch;
    margin-top: 12px;
    grid-template-columns: 1fr 1fr;
  }

  .newsxw-list .btm[data-has-order="1"]{
    grid-template-columns: 1.35fr 0.65fr;
  }

  /* 4 按钮且有下单：固定落位（咨询/详情在左，分享/下单在右） */
  .newsxw-list .btm[data-has-order="1"][data-btn-count="4"]{
    grid-template-areas:
      "consult share"
      "detail  order";
  }
  .newsxw-list .btm[data-has-order="1"][data-btn-count="4"] .consult-btn{ grid-area: consult; }
  .newsxw-list .btm[data-has-order="1"][data-btn-count="4"] .ghost-btn{ grid-area: detail; }
  .newsxw-list .btm[data-has-order="1"][data-btn-count="4"] .l988-share-btn{ grid-area: share; }
  .newsxw-list .btm[data-has-order="1"][data-btn-count="4"] .mall-order-btn{ grid-area: order; }

  .newsxw-list .btm[data-has-order="0"]{
    grid-template-columns: 1fr 1fr;
  }


  /* 1 个按钮：占满一行 */
  .newsxw-list .btm > :only-child{
    grid-column: 1 / -1;
  }

  /* 3 个按钮：最后一个独占一行（2×1 + 1） */
  .newsxw-list .btm[data-btn-count="3"] > :last-child{
    grid-column: 1 / -1;
  }


  .newsxw-list .btm > a{
    display: block;
    text-decoration: none !important;
  }
  .newsxw-list .btm > button{
    width: 100%;
  }

  /* 避免旧的 “.btm .l988-share-btn{margin-left:10px}” 影响 grid 对齐 */
  .newsxw-list .btm .l988-share-btn{
    margin-left: 0 !important;
  }

  .newsxw-list .btm :where(.more-btn, .ghost-btn, .share-btn, .l988-share-btn, .mall-order-btn){
    width: 100% !important;
    height: 42px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    letter-spacing: 0.1px !important;
    transform: none !important;
  }
}

/* =========================================================
   搜索结果页（cplb.php）图集缩略图：hover/选中高亮
   - 兜底：某些情况下列表的内联 <style> 可能被缓存/覆盖
   - 目标：和 goods.php 一样，圆角保持，只把边框变琥珀金
   ========================================================= */
html body .newsxw-list .gallery-strip .gallery-thumb{
  border: 2px solid rgba(17,24,39,0.12) !important;
  border-radius: 12px;
  background: transparent !important;
}
html body .newsxw-list .gallery-strip .gallery-thumb:hover,
html body .newsxw-list .gallery-strip .gallery-thumb:focus-visible{
  /* border + 内收 outline：保证圆角金边一定可见，且不外扩不裁剪 */
  border: 2px solid rgba(245,158,11,0.55) !important;
  outline: 2px solid rgba(245,158,11,0.55) !important;
  outline-offset: -2px !important;
  background: transparent !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12) !important;
}
html body .newsxw-list .gallery-strip .gallery-thumb.is-active{
  border: 2px solid rgba(245,158,11,0.95) !important;
  outline: 2px solid rgba(245,158,11,0.95) !important;
  outline-offset: -2px !important;
  background: transparent !important;
  box-shadow: 0 12px 24px rgba(245,158,11,0.28) !important;
}

/* =========================================================
   会员商家卡片 hover：名字下方“商家介绍”变白
   - 不依赖 :has()，避免部分浏览器/环境不生效
   - 放文件末尾，保证优先级压过旧样式
   ========================================================= */
html body .you_gslb_nr:hover .you_gslb_nr_r .you_gslb_nr_r_1_1 + .you_gslb_nr_r_2,
html body .you_gslb_nr:hover .you_gslb_nr_r .you_gslb_nr_r_1_1 + .you_gslb_nr_r_2 *{
  color: #FFFFFF !important;
}

/* =========================================================
   店铺链接 hover：恢复琥珀金主题色（goods.php / cplb.php）
   - 根因：.you_xq_l_jj / #list 对链接做了 color: inherit !important 强制继承
           但 hover 使用的 --accent-hover 未定义，导致 hover 颜色规则整体失效
   ========================================================= */
html body .l988-intro-shop:hover,
html body #list a.mall-shop-chip:hover{
  color: var(--primary) !important;
}

html body .l988-intro-shop:hover{
  border-color: rgba(212,160,23,0.55) !important;
  background: rgba(212,160,23,0.10) !important;
  filter: none !important;
}

html body #list a.mall-shop-chip:hover{
  border-color: rgba(212,160,23,0.55) !important;
  background: rgba(212,160,23,0.10) !important;
}

/* =========================================================
   goods.php 产品标题：细长/清晰（强制压掉 css/css.css 的 800 + 渐变字）
   - 只作用于 goods.php 标题行（.you_xq_l_nr1.l988-title-line）
   - 核心：恢复“纯色文字 + 正常字重”，避免长标题看起来一团
   ========================================================= */
html body .you_xq_l_nr1.l988-title-line{
  /* 父级只做兜底，真正的文字样式在 .l988-title-text 上 */
  font-weight: 300 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;

  letter-spacing: 0 !important;
  text-shadow: none !important;
  filter: none !important;
  font-synthesis: none;
}

/* 标题文本：强制取消渐变/透明填充/加粗，优先使用更“干净”的字体回退栈 */
html body .you_xq_l_nr1.l988-title-line .l988-title-text{
  font-family: "Microsoft YaHei UI Light", "Microsoft YaHei UI", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-weight: 300 !important;
  background: none !important;

  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  filter: none !important;
  text-rendering: geometricPrecision;
}

/* hover：保持纯色，避免长文本 hover 后又变“糊一团” */
html body .you_xq_l_nr1.l988-title-line:hover .l988-title-text{
  background: none !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
}

/* =========================================================
   sjlb.php（商家列表）：分享按钮贴到卡片最右下角
   - 说明：以前按钮在 <a> 内（button 嵌套 a 不合法），且会员标题行 .you_gslb_nr_r_1_1 还有 position: relative
           容易导致 absolute 参照错位、点击层级怪异。
   - 方案：按钮作为 .you_gslb_nr 的直接子元素，absolute 统一以卡片容器为参照，贴右下角。
   ========================================================= */
html body.l988-sjlb .you_gslb_nr::before,
html body.l988-sjlb .you_gslb_nr::after,
html body.page-category #category-card-list .you_gslb_nr::before,
html body.page-category #category-card-list .you_gslb_nr::after{
  pointer-events: none !important;
}

/* 兜底：避免某些旧样式让按钮参照到标题行（仅本页） */
html body.l988-sjlb .you_gslb_nr_r_1_1,
html body.page-category #category-card-list .you_gslb_nr_r_1_1{
  position: static !important;
}

/* 确保卡片容器就是 absolute 的参照物 */
html body.l988-sjlb .you_gslb_nr,
html body.page-category #category-card-list .you_gslb_nr{
  position: relative !important;
}

/* 确保卡片主链接层级在下，分享按钮层级在上（可点击） */
html body.l988-sjlb .you_gslb_nr > a,
html body.page-category #category-card-list .you_gslb_nr > a{
  position: relative;
  z-index: 1;
  display: block;
}

/* 分享按钮：贴卡片容器最右下角（不做任何预留空间/额外留白） */
html body.l988-sjlb .you_gslb_nr > .l988-share-btn,
html body.page-category #category-card-list .you_gslb_nr > .l988-share-btn{
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  z-index: 50 !important;
}

/* 交互：不要 hover 时“上浮”导致看起来不贴边（仅 sjlb 卡片） */
html body.l988-sjlb .you_gslb_nr > .l988-share-btn:hover,
html body.page-category #category-card-list .you_gslb_nr > .l988-share-btn:hover{
  transform: none !important;
}









































































































