/* base.css —— bcq777.com 组件样式层
 * 只引用 tokens.css 的变量，不写死色值。
 * 命名：语义块（.hdr .hero .firm-card .biz-row …），状态用 is-* 前缀。
 */

/* ============================================================ 1. 基础 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-2);
  color: var(--t2);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--t1); font-weight: 600; line-height: 1.35; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--s5); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================ 2. 顶栏 */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.hdr__in {
  display: flex; align-items: center; gap: var(--s5);
  height: var(--hdr-h);
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-ink));
  display: grid; place-items: center;
  color: #fff; font-size: var(--fs-sm); font-weight: 800; letter-spacing: -.5px;
  box-shadow: var(--sh-brand);
}
.brand__txt { color: #fff; font-size: var(--fs-lg); font-weight: 700; letter-spacing: .3px; }
.brand__txt em { font-style: normal; color: var(--brand-2); }
.brand__sub { display: block; font-size: var(--fs-2xs); color: var(--t-inv-3); font-weight: 400; letter-spacing: 1.2px; }

.nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 11px; border-radius: var(--r1);
  color: var(--t-inv-2); font-size: var(--fs-md); white-space: nowrap;
}
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.is-on { background: var(--brand); color: #fff; font-weight: 500; }

.hdr__sp { flex: 1; }
.hdr__search {
  display: flex; align-items: center; gap: 6px;
  background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: var(--r-round); padding: 0 4px 0 12px; height: 34px;
}
.hdr__search input {
  width: 150px; border: 0; background: none; outline: none;
  color: #fff; font-size: var(--fs-sm);
}
.hdr__search input::placeholder { color: var(--t-inv-3); }
.hdr__search button {
  border: 0; background: var(--brand); color: #fff;
  height: 26px; padding: 0 12px; border-radius: var(--r-round);
  font-size: var(--fs-xs);
}

/* ============================================================ 3. Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(19,196,141,.22), transparent 62%),
    radial-gradient(700px 340px at 88% 0%, rgba(47,127,224,.18), transparent 60%),
    var(--ink);
  color: #fff;
  padding: var(--s7) 0 var(--s6);
}
.hero::after {
  /* 网格纹理，压低对比度只作质感 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}
.hero__in { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; margin-bottom: var(--s4);
  border: 1px solid rgba(19,196,141,.38); border-radius: var(--r-round);
  background: rgba(19,196,141,.10);
  color: var(--brand-2); font-size: var(--fs-xs);
}
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(19,196,141,.22); }
.hero h1 {
  color: #fff; font-size: var(--fs-4xl); font-weight: 700;
  letter-spacing: -.6px; line-height: 1.22; margin-bottom: var(--s3);
}
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero__lead { color: var(--t-inv-2); font-size: var(--fs-base); max-width: 640px; }
.hero__acts { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }

.hero__search {
  display: flex; gap: var(--s2); margin-top: var(--s5); max-width: 560px;
}
.hero__search input {
  flex: 1; height: 46px; padding: 0 var(--s4);
  border: 1px solid var(--ink-line); border-radius: var(--r2);
  background: rgba(255,255,255,.06); color: #fff;
  font-size: var(--fs-base); outline: none;
}
.hero__search input::placeholder { color: var(--t-inv-3); }
.hero__search input:focus { border-color: var(--brand-2); background: rgba(255,255,255,.09); }
.hero__search button {
  height: 46px; padding: 0 var(--s5); border: 0; border-radius: var(--r2);
  background: var(--brand); color: #fff; font-size: var(--fs-base); font-weight: 500;
  box-shadow: var(--sh-brand);
}
.hero__search button:hover { background: var(--brand-2); }

/* 热门搜索：补左栏搜索框下方的空白，也给不知道搜什么的人一个入口 */
.hero__kw {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s4); font-size: var(--fs-xs); color: var(--t-inv-3);
}
.hero__kw a { color: var(--t-inv-2); border-bottom: 1px dashed rgba(255,255,255,.24); }
.hero__kw a:hover { color: var(--brand-2); border-bottom-color: var(--brand-2); }

/* 数据条 */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--ink-line);
  border: 1px solid var(--ink-line); border-radius: var(--r3);
  overflow: hidden; margin-top: var(--s6);
}
.metric { background: rgba(255,255,255,.03); padding: var(--s4) var(--s5); }
.metric b {
  display: block; color: #fff; font-size: var(--fs-2xl); font-weight: 700;
  line-height: 1.2; letter-spacing: -.5px;
}
.metric span { font-size: var(--fs-xs); color: var(--t-inv-3); }

/* Hero 双栏：左文案 + 右焦点面板。
 * 单栏时右侧 700px 全是空的，视觉重心全压在左边。 */
.hero__grid {
  display: grid; grid-template-columns: minmax(0,1fr) 336px;
  gap: var(--s7); align-items: start;   /* start: 右侧面板高于左栏时，左栏不被垂直居中顶下去 */
}
.hero__spot {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r3);
  background: rgba(255,255,255,.04); padding: var(--s5);
  backdrop-filter: blur(2px);
}
.hero__spot h3 {
  color: #fff; font-size: var(--fs-sm); font-weight: 600;
  display: flex; align-items: center; gap: 8px; margin-bottom: var(--s3);
}
.hero__spot h3::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--brand-2);
}
.hero__spot h3 + .hero__chips { margin-bottom: var(--s5); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero__chip {
  padding: 5px 11px; border-radius: var(--r-round);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  color: var(--t-inv-2); font-size: var(--fs-xs); white-space: nowrap;
}
.hero__chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero__chip b { color: var(--t-inv-3); font-weight: 400; margin-left: 5px; }
.hero__ev {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.10);
  font-size: var(--fs-xs); color: var(--t-inv-2);
}
.hero__ev:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__ev b { color: #fff; font-weight: 600; flex-shrink: 0; font-size: var(--fs-2xs); }
.hero__ev span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* ============================================================ 4. 快讯条 */
.ticker {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--paper); border-bottom: 1px solid var(--line);
  height: 42px; overflow: hidden;
}
.ticker__tag {
  flex-shrink: 0; padding: 3px 10px; border-radius: var(--r1);
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: var(--fs-xs); font-weight: 600;
}
.ticker__list { display: flex; gap: var(--s5); overflow: hidden; }
.ticker__list a {
  font-size: var(--fs-sm); color: var(--t2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 460px;
}
.ticker__list a::before { content: "·"; margin-right: 7px; color: var(--t4); }
.ticker__list a:hover { color: var(--brand); }

/* ============================================================ 5. 布局 */
.body { padding: var(--s6) 0 var(--s8); }
.cols { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: var(--s5); }
.cols--3 { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.cols--side { grid-template-columns: minmax(0,1fr) 320px; }
.stack { display: flex; flex-direction: column; gap: var(--s5); }
.stack--sm { gap: var(--s3); }

/* ============================================================ 6. 区块标题 */
.sec {
  display: flex; align-items: baseline; gap: var(--s3);
  margin-bottom: var(--s4);
}
.sec h2 { font-size: var(--fs-xl); letter-spacing: -.2px; }
.sec h2::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 4px; height: 17px; margin-right: 10px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-ink));
}
.sec__desc { font-size: var(--fs-xs); color: var(--t3); }
.sec__more { margin-left: auto; font-size: var(--fs-sm); color: var(--t3); flex-shrink: 0; }
.sec__more:hover { color: var(--brand); }

/* ============================================================ 7. 卡片 */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); box-shadow: var(--sh1);
}
.card--pad { padding: var(--s5); }
.card__hd {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-2);
  font-weight: 600; color: var(--t1); font-size: var(--fs-base);
}
.card__hd .sec__more { font-weight: 400; }
.card__bd { padding: var(--s3) var(--s5); }
.card__bd--flush { padding: 0; }

/* ============================================================ 8. 资讯行 */
.news-row {
  display: flex; gap: var(--s4); padding: var(--s4) 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;   /* 无摘要时标题跟缩略图居中对齐，不留半行空白 */
}
.news-row:last-child { border-bottom: 0; }
.news-row__body { flex: 1; min-width: 0; }
.news-row__title {
  font-size: var(--fs-base); font-weight: 500; color: var(--t1);
  line-height: 1.55; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row:hover .news-row__title { color: var(--brand); }
.news-row__sum {
  font-size: var(--fs-sm); color: var(--t3); line-height: 1.7;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row__meta {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--t3);
}
.news-row__thumb {
  width: 132px; height: 84px; flex-shrink: 0; border-radius: var(--r2);
  object-fit: cover; background: var(--paper-3);
}

/* 头条大卡 */
.lead-news { display: block; margin-bottom: var(--s4); }
.lead-news__img {
  /* height:auto 不能省。img 上写了 height="492" 属性，HTML 表现层会把它映射成
     height:492px，优先级低于作者样式表但高于 aspect-ratio 推导值 —— 少了这条，
     390px 视口下 308px 宽的图被拉成 308×492，横向裁掉 64%。 */
  width: 100%; height: auto; aspect-ratio: 16/8.2; object-fit: cover;
  border-radius: var(--r2); background: var(--paper-3); display: block;
}
.lead-news__title {
  font-size: var(--fs-lg); font-weight: 600; color: var(--t1);
  margin-top: var(--s3); line-height: 1.45;
}
.lead-news:hover .lead-news__title { color: var(--brand); }
.lead-news__sum {
  font-size: var(--fs-sm); color: var(--t3); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================ 9. 商讯行 */
.biz-row {
  display: block; padding: var(--s4) 0; border-bottom: 1px solid var(--line-2);
}
.biz-row:last-child { border-bottom: 0; }
.biz-row__top { display: flex; align-items: center; gap: var(--s2); margin-bottom: 6px; }
.biz-row__title {
  font-size: var(--fs-md); font-weight: 500; color: var(--t1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.biz-row:hover .biz-row__title { color: var(--brand); }
.biz-row__sum {
  font-size: var(--fs-xs); color: var(--t3); line-height: 1.65; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.biz-row__meta {
  display: flex; gap: var(--s3); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--t3); margin-top: 6px;
}

/* ============================================================ 10. 企业卡 */
.firm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: var(--s3);
}
.firm-card {
  display: block; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s4); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.firm-card:hover {
  border-color: rgba(15,157,118,.45); box-shadow: var(--sh2); transform: translateY(-1px);
}
.firm-card__top { display: flex; gap: var(--s3); align-items: flex-start; }
.firm-card__logo {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--r2);
  object-fit: contain; background: var(--paper-3); padding: 5px;
}
.firm-card__name {
  font-size: var(--fs-md); font-weight: 600; color: var(--t1);
  display: flex; align-items: center; gap: 5px; line-height: 1.4;
}
.firm-card__sub { font-size: var(--fs-xs); color: var(--t3); margin-top: 3px; }
.firm-card__sum {
  font-size: var(--fs-xs); color: var(--t3); line-height: 1.6; margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.firm-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }

.vbadge {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 9px;
  flex-shrink: 0;
}

/* ============================================================ 11. 人脉卡 */
.person-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3);
}
.person-card {
  display: flex; gap: var(--s3); align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s3) var(--s4);
}
.person-card:hover { border-color: rgba(15,157,118,.45); box-shadow: var(--sh2); }
.person-card__ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: var(--paper-3);
}
.person-card__name { font-size: var(--fs-md); font-weight: 600; color: var(--t1); }
.person-card__role {
  font-size: var(--fs-xs); color: var(--t3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================ 12. 代理卡 */
.agent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3);
}
.agent-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s5);
  display: flex; flex-direction: column;
}
.agent-card__top { display: flex; gap: var(--s3); align-items: center; }
.agent-card__logo {
  width: 52px; height: 52px; border-radius: var(--r2); flex-shrink: 0;
  object-fit: contain; background: var(--paper-3); padding: 5px;
}
.agent-card__name { font-size: var(--fs-lg); font-weight: 700; color: var(--t1); }
.agent-card__region { font-size: var(--fs-xs); color: var(--t3); margin-top: 2px; }
.agent-card__score {
  margin-left: auto; text-align: right; flex-shrink: 0;
}
.agent-card__score b {
  font-size: var(--fs-2xl); font-weight: 700; color: var(--gold);
  line-height: 1; letter-spacing: -.5px;
}
.agent-card__score span { display: block; font-size: var(--fs-2xs); color: var(--t3); margin-top: 2px; }

.bars { margin: var(--s4) 0; display: flex; flex-direction: column; gap: 7px; }
.bar { display: grid; grid-template-columns: 52px 1fr 26px; align-items: center; gap: var(--s2); }
.bar__k { font-size: var(--fs-2xs); color: var(--t3); }
.bar__t { height: 5px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.bar__f { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar__v { font-size: var(--fs-2xs); color: var(--t2); text-align: right; }

.ratio { display: flex; gap: 1px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.ratio i { display: block; height: 100%; }
.ratio-legend { display: flex; gap: var(--s3); font-size: var(--fs-2xs); color: var(--t3); }
.ratio-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; }

.agent-card__policy {
  font-size: var(--fs-xs); color: var(--t3); line-height: 1.7; margin-top: var(--s3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

/* ============================================================ 13. 游戏厂商 */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: var(--s3);
}
.game-chip {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r2); padding: var(--s3);
}
.game-chip:hover { border-color: rgba(15,157,118,.45); box-shadow: var(--sh2); }
/* 厂商 logo 多为白色 / 浅色描边（原站是深色底），放在浅灰底上等于隐形。
 * 用深色圆角砖承接，浅色 logo 反而清晰，彩色的也照常能看。 */
.game-chip__logo {
  width: 36px; height: 36px; border-radius: var(--r1); flex-shrink: 0;
  object-fit: contain; background: #232f45; padding: 4px;
}
/* 厂商名多为英文长词（Pragmaticplay、SpadeGaming），nowrap + ellipsis 会截成
 * "Pragmaticpl…"。改成允许换行、最多两行，配 min-width:0 让 flex 子项能收缩。 */
.game-chip__name {
  font-size: var(--fs-xs); font-weight: 500; color: var(--t1); line-height: 1.4;
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-chip__cnt { font-size: var(--fs-2xs); color: var(--t3); }

/* ============================================================ 14. 活动 */
.event-row {
  display: flex; gap: var(--s4); padding: var(--s4) 0;
  border-bottom: 1px solid var(--line-2);
}
.event-row:last-child { border-bottom: 0; }
.event-date {
  width: 56px; flex-shrink: 0; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r2);
  padding: 6px 0; background: var(--paper-2);
}
.event-date b { display: block; font-size: var(--fs-lg); color: var(--t1); line-height: 1.15; }
.event-date span { font-size: var(--fs-2xs); color: var(--t3); }
/* 英文展会名 + 长地址会把单行撑到三行（AFFPAPA CONFERENCE / Barceló Bávaro Beach, Punta Cana），
   每行高度不齐、列表失去节奏。标题与地点都压到最多两行。 */
.event-row__title {
  font-size: var(--fs-md); font-weight: 500; color: var(--t1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-row__meta {
  font-size: var(--fs-xs); color: var(--t3); margin-top: 4px;
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-row__poster {
  width: 104px; height: 58px; flex-shrink: 0; object-fit: cover;
  border-radius: var(--r1); background: var(--paper-3);
}

/* ============================================================ 15. 包网卡 */
.net-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s3); align-items: start;   /* start: 短卡片不被同行拉成等高空盒 */
}
.net-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s5);
}
.net-card__name { font-size: var(--fs-lg); font-weight: 600; color: var(--t1); }
.net-card__ex {
  font-size: var(--fs-sm); color: var(--t3); line-height: 1.8; margin-top: var(--s3);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================ 16. 分类矩阵 */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2);
}
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 11px var(--s4); border-radius: var(--r2);
  background: var(--paper); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--t1);
}
.cat:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.cat b { font-weight: 600; font-size: var(--fs-xs); color: var(--t3); }
.cat:hover b { color: var(--brand-ink); }

/* ============================================================ 17. 筛选栏 */
.filters {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r3); padding: var(--s4) var(--s5); margin-bottom: var(--s5);
}
.filter-row {
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 7px 0; border-bottom: 1px dashed var(--line-2);
}
.filter-row:last-child { border-bottom: 0; }
.filter-row__k {
  flex-shrink: 0; width: 56px; padding-top: 4px;
  font-size: var(--fs-xs); color: var(--t3);
}
.filter-row__v { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 11px; border-radius: var(--r-round);
  font-size: var(--fs-xs); color: var(--t2);
  border: 1px solid transparent; background: var(--paper-2);
}
.chip:hover { background: var(--brand-soft); color: var(--brand-ink); }
.chip.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip b { font-weight: 400; opacity: .65; margin-left: 4px; }

.filter-bar {
  display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap;
}
.filter-bar__cnt { font-size: var(--fs-sm); color: var(--t3); }
.filter-bar__cnt b { color: var(--t1); }
.sorts { display: flex; gap: 2px; margin-left: auto; }
.sorts a { padding: 4px 10px; border-radius: var(--r1); font-size: var(--fs-xs); color: var(--t3); }
.sorts a:hover { background: var(--paper); color: var(--t1); }
.sorts a.is-on { background: var(--paper); color: var(--brand-ink); font-weight: 500; box-shadow: var(--sh1); }

/* ============================================================ 18. 标签 / 按钮 */
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: var(--r1);
  font-size: var(--fs-2xs); line-height: 1.7; white-space: nowrap;
  background: var(--paper-3); color: var(--t2);
}
.tag--brand  { background: var(--brand-soft);  color: var(--brand-ink); }
.tag--blue   { background: var(--blue-soft);   color: var(--blue); }
.tag--gold   { background: var(--gold-soft);   color: var(--gold); }
.tag--red    { background: var(--red-soft);    color: var(--red); }
.tag--violet { background: var(--violet-soft); color: var(--violet); }
.tag--line   { background: none; border: 1px solid var(--line); color: var(--t3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 var(--s5); border-radius: var(--r2);
  font-size: var(--fs-md); font-weight: 500; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--t2); background: var(--paper); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--onink { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--onink:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { height: 32px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

/* ============================================================ 19. 分页 */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: var(--s6); flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-grid; place-items: center; border-radius: var(--r1);
  font-size: var(--fs-sm); color: var(--t2); background: var(--paper);
  border: 1px solid var(--line);
}
.pager a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pager a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager span { border: 0; background: none; color: var(--t4); }
.pager__info { font-size: var(--fs-xs); color: var(--t3); margin: 0 var(--s3); }

/* ============================================================ 20. 面包屑 */
.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--t3); padding: var(--s4) 0 0;
}
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-style: normal; color: var(--t4); }
/* 当前页标题可能很长（资讯/商讯标题切 24 字仍超宽），
   强制单行 + 省略，避免折行后断在半截词上 */
.crumbs__cur {
  min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================ 21. 详情页 */
.detail {
  display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s5);
  align-items: start;
}
.dhead { display: flex; gap: var(--s5); align-items: flex-start; }
.dhead__logo {
  width: 84px; height: 84px; border-radius: var(--r3); flex-shrink: 0;
  object-fit: contain; background: var(--paper-3); padding: 10px;
}
.dhead h1 { font-size: var(--fs-2xl); letter-spacing: -.3px; }
.dhead__sub { font-size: var(--fs-sm); color: var(--t3); margin-top: 6px; }
.dhead__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s3); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border-radius: var(--r2); overflow: hidden; }
.kv__i { background: var(--paper); padding: 11px var(--s4); }
.kv__k { font-size: var(--fs-2xs); color: var(--t3); }
.kv__v { font-size: var(--fs-sm); color: var(--t1); margin-top: 2px; word-break: break-word; }

.prose { font-size: var(--fs-base); line-height: 1.95; color: var(--t2); word-break: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--s4); }
/* 兜底：源站正文里 <p></p> 空行很多，即使净化层漏了也不该占一整行高 */
.prose p:empty { display: none; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: var(--s5) 0 var(--s3); font-size: var(--fs-lg); }
.prose h1 { font-size: var(--fs-xl); }
/* height:auto 是防御：正文 HTML 来自源站，将来若带上 height="..." 属性，
   在 max-width:100% 下会被压扁变形。加了 auto 让属性只贡献比例。 */
.prose img { border-radius: var(--r2); margin: var(--s3) 0; display: block; height: auto; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: var(--s4) 0; padding: var(--s3) var(--s4);
  border-left: 3px solid var(--brand); background: var(--paper-2);
  border-radius: 0 var(--r2) var(--r2) 0; color: var(--t2);
}
.prose table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--paper-2); }
.prose code { background: var(--paper-3); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

/* 侧栏 */
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.side-card + .side-card { margin-top: var(--s4); }
.side-card__hd {
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--t1);
}
.side-list { padding: var(--s2) var(--s4); }
.side-list a {
  display: flex; gap: var(--s2); align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-sm); color: var(--t2);
}
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--brand); }
.side-list__idx {
  width: 17px; height: 17px; flex-shrink: 0; border-radius: 4px;
  display: grid; place-items: center; font-size: var(--fs-2xs);
  background: var(--paper-3); color: var(--t3);
}
.side-list a:nth-child(1) .side-list__idx { background: var(--red); color: #fff; }
.side-list a:nth-child(2) .side-list__idx { background: var(--gold); color: #fff; }
.side-list a:nth-child(3) .side-list__idx { background: var(--brand); color: #fff; }

/* ============================================================ 22. 页脚 */
.ftr {
  background: var(--ink); color: var(--t-inv-2);
  padding: var(--s7) 0 var(--s5); margin-top: var(--s8);
  font-size: var(--fs-sm);
}
.ftr__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); }
.ftr__brand { display: flex; align-items: center; gap: 9px; margin-bottom: var(--s3); }
.ftr h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--s3); font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ftr a { color: var(--t-inv-2); }
.ftr a:hover { color: var(--brand-2); }
.ftr__desc { color: var(--t-inv-3); font-size: var(--fs-xs); line-height: 1.8; max-width: 330px; }
.ftr__bot {
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--ink-line);
  display: flex; gap: var(--s4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--t-inv-3);
}
.ftr__bot span { margin-right: auto; }

/* ============================================================ 23. 空态 */
.empty {
  padding: var(--s8) var(--s5); text-align: center; color: var(--t3);
}
.empty__icon { font-size: 30px; margin-bottom: var(--s3); opacity: .55; }
.empty__txt { font-size: var(--fs-sm); }

/* ============================================================ 24. 响应式 */
@media (max-width: 1080px) {
  /* 单列时也必须写 minmax(0,1fr)：裸 1fr 的最小轨道尺寸取 min-content，
   资讯正文里一个长英文串就能把整列撑到 400px 以上，手机端直接横向溢出 */
  .cols, .cols--3, .detail, .cols--side { grid-template-columns: minmax(0, 1fr); }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: var(--fs-3xl); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hero__spot { display: none; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 var(--s4); }
  .hdr__search { display: none; }
  /* 390px 下头部三项（logo/导航/搜索）互相抢位，逐项腾空间：
     1) 搜索框隐藏；2) logo 副标题「亚太菠菜产业指引者」占约 120px，
        收起后导航可用宽度从 161px 提到 226px；3) 头部项间距 24→12；
     4) 弹性占位 .hdr__sp 在窄屏没有存在意义，hidden 后再省一份 gap；
     5) 导航项左右 padding 11→9，单项省 4px，5 项共省 20px。 */
  .hdr__in { gap: var(--s3); }
  .hdr__sp { display: none; }
  .brand__sub { display: none; }
  .brand { gap: 7px; }
  .brand__mark { width: 30px; height: 30px; font-size: var(--fs-sm); }
  .brand__txt { font-size: var(--fs-md); }
  .nav a { padding: 7px 9px; }
  /* 导航横向滚动但没有任何可见提示，右侧渐隐提示还能右滑 */
  .nav {
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  }
  .metrics { grid-template-columns: 1fr 1fr; }
  .hero { padding: var(--s6) 0 var(--s5); }
  .hero h1 { font-size: var(--fs-2xl); }
  .firm-grid, .person-grid, .agent-grid { grid-template-columns: minmax(0, 1fr); }
  /* 详情页头图：改单列会让 logo 独占一行、上方留一大块白，
     改成缩小的 logo + 标题并排，省掉约 70px 竖向空白 */
  .dhead { gap: var(--s4); }
  .dhead__logo { width: 56px; height: 56px; padding: 6px; border-radius: var(--r2); }
  .dhead h1 { font-size: var(--fs-xl); }
  .news-row__thumb { width: 104px; height: 68px; }
  .ticker__list a:not(:first-child) { display: none; }
}
@media (max-width: 560px) {
  .ftr__cols { grid-template-columns: 1fr; }
  .hero__search { flex-direction: column; }
  .hero__search button { width: 100%; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .filter-row { flex-direction: column; gap: 6px; }
  .filter-row__k { width: auto; padding-top: 0; }
  /* 详情页标题在面包屑里和 H1 重复，窄屏省掉这一行 */
  .crumbs--3 .crumbs__cur, .crumbs--3 i:nth-last-child(2) { display: none; }
  /* 活动行：窄屏上海报和日期块让出宽度，标题与地点才有地方放 */
  .event-date { width: 48px; }
  .event-row__poster { width: 76px; height: 48px; }
}
