/* 站内图文广告（DL 斗地主），版式 A「金色横幅」：照 DL 斗地主产品页首屏那条金色纸面横幅。
   一份样式两处用：网站（web/src/components/AdCampaign.tsx import 本文件）和牌局结算（/doudizhu/ad-campaign.css）。
   - 字全部 HTML 现排，图只放人物（透明底，从 DL 页首屏横幅抠出的农民 + 地主）。
   - 卡片：金色纸面渐变（#fff5dd → #e9ce96 → #d7b87a）、奶白内描边；品牌做成红色小标签，标题深棕、金句红字，按钮红色胶囊。
   - 人物探出卡片上沿：卡片顶上留出探头的空间（--adc-pop），人物贴卡片底边、超出上沿。
   - 默认是手机竖排（人物 → 字 → 按钮），盒子宽 ≥ 560 才换成通栏横排（容器查询）；不支持容器查询的老 WebView 一直竖排。
   - 红字不加描边（描边会发虚），用一道奶白投影把字从金底上托起来。「广告」角标在左上角，不压人物。 */
.adc-box { width: 100%; container-type: inline-size; }
.adc-card {
  --adc-pop: 34px;
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  margin: var(--adc-pop) auto 0;
  border-radius: 14px;
  border: 1px solid #c9a472;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 250, 236, .75), transparent 55%),
    linear-gradient(100deg, #fff5dd 0%, #f3dfb2 24%, #e9ce96 58%, #d7b87a 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 228, .7), 0 10px 24px rgba(0, 0, 0, .32);
  color: #3c281d;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.adc-card, .adc-card:link, .adc-card:visited, .adc-card:hover, .adc-card:active { color: #3c281d; text-decoration: none; }
.adc-card *, .adc-card *::before, .adc-card *::after { box-sizing: border-box; }
.adc-card:focus-visible { outline: 3px solid #f0d69e; outline-offset: 3px; }
.adc-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.adc-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.adc-copy :is(span, strong, b) { overflow-wrap: anywhere; }
.adc-brand { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: 2px 11px 2px 3px; border-radius: 999px; background: linear-gradient(180deg, #c8402f, #a42f24); box-shadow: inset 0 1px 0 rgba(255, 220, 190, .45); color: #fff3da; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.adc-logo { flex: none; width: 20px; height: 20px; padding: 1px; border-radius: 50%; background: #fff5dd; object-fit: contain; }
.adc-title { display: block; margin: 2px 0 0; font-weight: 900; line-height: 1.2; }
.adc-line { display: block; font-size: 22px; color: #3c281d; }
.adc-line + .adc-line { margin-top: 2px; }
.adc-accent { color: #c8372a; font-weight: 900; text-shadow: 0 1px 0 #fff8e6, 0 2px 3px rgba(130, 40, 20, .22); }
.adc-subtitle { display: block; color: #5a3b22; font-size: 14.5px; font-weight: 800; }
.adc-body { display: block; color: #6b5038; font-size: 12.5px; line-height: 1.55; }
.adc-cells { display: flex; gap: 6px; }
.adc-cell { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; padding: 5px 7px; border-radius: 6px; border: 1px solid rgba(164, 47, 36, .3); background: rgba(255, 248, 228, .5); font-size: 12px; }
.adc-cell b { color: #a42f24; font-size: 13px; }
.adc-cell > span { color: #6b5038; }
/* 人物：手机竖排时在最上面一行、靠右，探出卡片上沿 --adc-pop，按图片原比例留高、不裁 */
.adc-scene { display: block; position: relative; align-self: flex-end; width: 74%; aspect-ratio: 573 / 366; margin-top: calc(-1 * var(--adc-pop)); margin-bottom: -8px; pointer-events: none; }
.adc-artwork { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 4px 6px rgba(90, 55, 20, .28)); }
.adc-kv-d { display: none; }
.adc-content > .adc-scene { order: -1; }
.adc-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.adc-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cc4232 0%, #a42f24 100%);
  color: #fff3da;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 210, 180, .5), inset 0 -2px 0 rgba(80, 15, 8, .3), 0 4px 10px rgba(120, 40, 20, .3);
}
.adc-cta::after { content: ''; position: absolute; inset: -20% auto -20% 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); transform: translateX(-140%) skewX(-18deg); animation: adc-shine 5s ease-in-out 1s infinite; }
.adc-arrow { flex: none; }
.adc-foot { display: flex; flex-wrap: wrap; gap: 2px 10px; color: #6b5038; font-size: 12px; }
.adc-foot > span:first-child { color: #3c281d; font-weight: 800; }
.adc-label { position: absolute; z-index: 3; left: 0; top: 0; padding: 4px 9px; border-radius: 13px 0 8px 0; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; line-height: 1; letter-spacing: .04em; }
@keyframes adc-shine { 0%, 70% { transform: translateX(-140%) skewX(-18deg); } 85%, 100% { transform: translateX(320%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .adc-cta::after { animation: none; display: none; } }

/* 右栏方块（rectangle-campaign）：桌面 300 宽、最低 600 高，竖排，人物占中段 */
.adc-tower { max-width: 300px; min-height: 600px; }
.adc-tower .adc-content { min-height: 600px; }
.adc-tower .adc-scene { flex: 1 0 auto; display: flex; align-items: flex-end; aspect-ratio: auto; min-height: 160px; }
.adc-tower .adc-artwork { height: auto; }
.adc-tower .adc-cta { width: 100%; justify-content: center; }

/* 通栏横排：盒子 ≥ 560 宽。最宽 970；字在左、人物贴右下角并探出上沿，人物不进字的区域。 */
@container (min-width: 560px) {
  .adc-card:not(.adc-tower) { --adc-pop: 44px; max-width: 970px; }
  .adc-card:not(.adc-tower) .adc-content { min-height: 186px; padding: 30px 26px 20px; gap: 6px; }
  .adc-card:not(.adc-tower) .adc-copy, .adc-card:not(.adc-tower) .adc-bottom { width: 55%; }
  .adc-card:not(.adc-tower) .adc-bottom { margin-top: auto; padding-top: 6px; }
  .adc-card:not(.adc-tower) .adc-scene { position: absolute; z-index: 0; top: calc(-1 * var(--adc-pop)); bottom: 0; right: 12px; width: auto; max-width: 41%; margin: 0; }
  .adc-card:not(.adc-tower) .adc-kv-m { display: none; }
  .adc-card:not(.adc-tower) .adc-kv-d { display: block; }
  .adc-card:not(.adc-tower) .adc-line { font-size: 23px; }
}
@container (min-width: 760px) {
  .adc-card:not(.adc-tower) .adc-content { padding: 30px 30px 22px; }
  .adc-card:not(.adc-tower) .adc-line { font-size: 28px; }
  .adc-card:not(.adc-tower) .adc-subtitle { font-size: 16px; }
  .adc-card:not(.adc-tower) .adc-body { font-size: 13px; }
}
