/* ===== 活动详情内容样式（activities.html 抽屉 与 activity-detail.html 共用）=====
   配套 _act-content.js；两个页面的活动介绍/要求/常见问题渲染完全一致。 */
:root {
  --mk-primary: var(--edy-blue);
  --mk-primary-hover: #2E47B5;
  --mk-text: #171A20;
  --mk-text-strong: #1A1D26;
  --mk-text-secondary: #4b5563;
  --mk-text-muted: #9CA3AF;
  --mk-border: #EEEEEE;
  --mk-border-soft: #F3F4F6;
  --mk-border-input: #E0E4EA;
  --mk-bg-soft: #F9FAFB;
  --mk-bg-page: #FAFBFC;
  --mk-success: #15803D;
  --mk-success-dot: #22C55E;
  --mk-error: #B91C1C;
  --mk-error-bg: #FEF2F2;
}
.ad-banner { display: flex; gap: 12px; background: var(--mk-bg-soft); border: 1px solid var(--mk-border-soft); border-radius: 8px; padding: 14px 16px; }
.ad-banner .logo { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.ad-banner .tx { font-size: 12px; color: var(--mk-text-secondary); line-height: 1.6; }
.ad-banner .tx b { color: var(--mk-text); font-size: 14px; margin-right: 8px; }
.ad-banner .tx a { color: var(--mk-primary); cursor: pointer; }
.ad-title { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--mk-text); }
.ad-status { font-size: 12px; font-weight: 500; color: #16A34A; background: #F0FDF4; border-radius: 4px; padding: 2px 8px; flex-shrink: 0; }
.ad-sub { font-size: 12px; color: var(--mk-text-muted); margin-top: 8px; }
.ad-meta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ad-meta-row { font-size:12px; color: var(--mk-text-secondary); display: flex; gap: 12px; }
.ad-meta-row .k { color: var(--mk-text-muted); width: 72px; flex-shrink: 0; }
.ad-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--mk-border); margin-top: 20px; }
.ad-tabs button { padding: 0 0 12px; background: none; border: none; font-size: 14px; color: var(--mk-text-secondary); cursor: pointer; font-family: inherit; position: relative; }
.ad-tabs button.active { color: var(--mk-primary); font-weight: 600; }
.ad-tabs button.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--mk-primary); }
.ad-content { padding: 18px 0; font-size:12px; color: var(--mk-text); line-height: 1.9; }
.ad-content h4 { font-size: 14px; font-weight: 700; margin: 20px 0 8px; color: var(--mk-text); }
.ad-content h4:first-child { margin-top: 0; }
.ad-content .em { color: var(--mk-error); font-weight: 600; }
.ad-content .em.em-black { color: var(--mk-text); }
.ad-content .ad-b { display: block; font-weight: 700; color: var(--mk-text); margin: 16px 0 2px; }
.ad-content p { margin: 8px 0 0; }
.ad-content .ad-hl { display: block; background: #FFF200; color: var(--mk-error); font-weight: 700; padding: 7px 10px; margin: 12px 0 0; line-height: 1.7; }
.ad-content .ad-link { color: var(--mk-primary); word-break: break-all; }
.ad-intro-title { display: block; margin: 2px auto 14px; padding: 6px 20px; max-width: 460px; text-align: center; font-size: 16px; font-weight: 700; color: var(--mk-text); letter-spacing: .5px; }
.ad-pane { display: none; }
.ad-pane.active { display: block; }
.ad-sec { position: relative; font-size: 14px; font-weight: 600; color: var(--mk-text); margin: 22px 0 10px; padding-left: 12px; }
.ad-sec::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 16px; background: var(--mk-primary); border-radius: 2px; }
.ad-pane .ad-content { padding-top: 16px; }
.ad-pane .ad-content .ad-sec:first-child { margin-top: 0; }
.ad-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.ad-table th, .ad-table td { border: 1px solid var(--mk-border); padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.7; color: var(--mk-text-secondary); word-break: break-word; }
.ad-table thead th { background: var(--mk-bg-soft); color: var(--mk-text-muted); font-weight: 500; }
.ad-table th:first-child, .ad-table td:first-child { width: 190px; color: var(--mk-text); }
.ad-table th:last-child, .ad-table td:last-child { width: 104px; }
.ad-table td.ok { color: var(--mk-success); }
.ad-table td.muted { color: var(--mk-text-muted); }
.ad-cell.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-more { display: block; text-align: right; margin-top: 6px; color: var(--mk-primary); cursor: pointer; }
/* 9块9 资源位示意图（EDY APP 首页 mock） */
.admock { position: relative; width: 320px; max-width: 100%; margin: 14px 0 10px; padding: 12px 12px 14px; background: #fff; border: 1px solid var(--mk-border-soft); border-radius: 14px; box-shadow: 0 4px 16px rgba(17,24,39,.07); }
.admock-search { display: flex; align-items: center; justify-content: space-between; background: #F1F2F4; border-radius: 16px; padding: 7px 14px; font-size: 12px; color: var(--mk-text-muted); }
.admock-search .cam { color: var(--mk-text-muted); }
.admock-cats { display: flex; gap: 16px; font-size: 12px; color: var(--mk-text-secondary); padding: 12px 2px 6px; }
.admock-cats b { position: relative; color: var(--mk-error); font-weight: 600; }
.admock-cats b::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 16px; height: 2px; background: var(--mk-error); border-radius: 2px; }
.admock-pxq { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--mk-border-soft); }
.admock-pxq .pl { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#A855F7,#6366F1); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.admock-pxq .pt { font-size: 12px; color: var(--mk-text); font-weight: 600; }
.admock-pxq .pd { margin-left: auto; font-size: 12px; color: var(--mk-text-muted); }
.admock-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px 2px; padding-top: 14px; }
.admock-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; color: var(--mk-text-secondary); text-align: center; line-height: 1.2; }
.admock-cell .ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #F5F6F8; }
.admock-cell.hot .ic { background: linear-gradient(135deg,#FB7185,#F43F5E); color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mk-error); }
.admock-cell.hot { color: var(--mk-error); font-weight: 600; }
.admock-cell.hot.team-hot .ic { background: linear-gradient(135deg,#F472B6,#DB2777); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #DB2777; }
.admock-cell.hot.team-hot { color: #DB2777; }
.admock-arrow { position: absolute; right: 30px; top: 70px; width: 46px; height: 46px; color: var(--mk-error); pointer-events: none; }
.admock-mall { margin-top: 14px; padding: 7px 10px; border-radius: 8px 8px 0 0; background: linear-gradient(135deg,#FB923C,#F97316); color: #fff; font-size: 12px; font-weight: 600; }
.admock-prods { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 8px; background: #F7F8FA; border-radius: 0 0 8px 8px; }
.admock-prods .pc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.admock-prods .pc .im { width: 100%; aspect-ratio: 1/1; border-radius: 8px; background: #EAF3EA; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.admock-prods .pc .pp { font-size: 12px; color: var(--mk-error); font-weight: 700; }
/* 查看资源位示例 悬浮卡 */
.ad-eg-wrap { position: relative; display: inline-block; margin-left: 4px; }
.ad-eg-link { color: var(--mk-primary); cursor: pointer; }
.ad-eg-pop { position: absolute; top: 100%; left: 0; margin-top: 8px; width: 332px; background: #fff; border: 1px solid var(--mk-border-soft); border-radius: 12px; box-shadow: 0 14px 44px rgba(17,24,39,.20); padding: 16px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s ease, transform .15s ease; }
.ad-eg-wrap:hover .ad-eg-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.ad-eg-pop .eg-h { font-size:14px; font-weight: 700; color: var(--mk-text); }
.ad-eg-pop .eg-tags { display: flex; gap: 6px; margin: 10px 0; }
.ad-eg-pop .eg-tags span { font-size: 12px; color: var(--mk-error); background: #FEF2F2; border: 1px solid #FECACA; border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.ad-eg-pop .eg-desc { font-size: 12px; color: var(--mk-text-secondary); line-height: 1.6; }
.ad-eg-pop .admock { width: auto; margin: 12px 0 0; box-shadow: none; }
/* 资源位示例：悬浮指向「9块9特卖」红格的箭头 */
.ad-eg-pop .admock-arrow.eg-arrow { top: 70px; right: 16px; width: 50px; height: 50px; }
/* 资源位示例：限时秒杀红框高亮格 + 角标 */
.admock-cell { position: relative; }
.admock-cell.pick { border: 1.4px solid var(--mk-error); border-radius: 10px; padding: 7px 0 5px; color: var(--mk-error); font-weight: 600; }
.admock-cell.pick .ic { background: linear-gradient(135deg,#FB7185,#F43F5E); color: #fff; font-weight: 700; box-shadow: none; }
.admock-cell .bdg { position: absolute; top: -7px; left: calc(50% + 2px); background: var(--mk-error); color: #fff; font-size: 9px; line-height: 14px; height: 14px; padding: 0 5px; border-radius: 8px 8px 8px 1px; white-space: nowrap; }
/* ===== 限时秒杀 活动介绍 富内容 ===== */
.ad-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.ad-guide .gitem { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #FECDAA; background: #FFF6ED; color: #EA580C; font-weight: 600; border-radius: 20px; padding: 9px 16px; font-size: 12px; user-select: none; }
.ad-guide .gitem .go { font-size: 12px; color: #EA580C; font-weight: 500; }
.ad-content .ad-warn { color: var(--mk-text); font-weight: 700; margin: 12px 0 0; line-height: 1.8; }
.ad-flow { margin: 12px 0 4px; padding: 18px 16px; border: 1px dashed #BFDBFE; border-radius: 8px; background: #F8FAFF; display: flex; flex-direction: column; align-items: center; }
.ad-flow .node { font-size: 12px; font-weight: 600; color: #fff; border-radius: 6px; padding: 8px 22px; text-align: center; }
.ad-flow .node.start, .ad-flow .node.audit { background: #335FDC; }
.ad-flow .node.diamond { background: #1D4ED8; border-radius: 8px; }
.ad-flow .node.ok { background: #16A34A; }
.ad-flow .arrow { width: 1px; height: 16px; background: #93B4F5; position: relative; margin: 3px 0; }
.ad-flow .arrow::after { content: '▼'; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%); color: #93B4F5; font-size: 8px; }
.ad-flow .flow-note { font-size: 12px; color: var(--mk-text-secondary); margin-top: 14px; line-height: 1.7; text-align: center; }
.ad-flow-svg { width: 100%; max-width: 520px; height: auto; display: block; }
.ad-content .ad-note-def { display: inline-block; margin-top: 8px; color: var(--mk-text-muted); }
.ad-bad-img { margin: 12px 0 6px; }
.ad-bad-img img { width: 100%; max-width: 560px; height: auto; display: block; border: 1px solid var(--mk-border-soft); border-radius: 8px; }
.ad-bad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 4px; }
.ad-bad { border: 1px solid #FECACA; border-radius: 8px; padding: 12px 14px 28px; background: #FEF2F2; position: relative; }
.ad-bad .t { color: var(--mk-error); font-weight: 700; font-size: 12px; line-height: 1.7; }
.ad-bad .x { position: absolute; right: 12px; bottom: 6px; color: #EF4444; font-size: 30px; font-weight: 800; opacity: .5; line-height: 1; }
.ad-case { display: flex; align-items: center; gap: 14px; border: 1px solid var(--mk-border); border-radius: 8px; padding: 12px 14px; margin: 10px 0 4px; }
.ad-case .pic { width: 64px; height: 64px; border-radius: 8px; background: linear-gradient(135deg,#E8ECF0,#F0F2F5); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; }
.ad-case .cinfo { flex: 1; min-width: 0; }
.ad-case .cinfo .cn { font-size: 12px; color: var(--mk-text); font-weight: 500; }
.ad-case .cinfo .cp { color: var(--mk-error); font-weight: 700; font-size: 16px; margin-top: 6px; }
.ad-case .cinfo .cp .lab { font-size: 12px; font-weight: 500; margin-right: 4px; }
.ad-case .grab { flex-shrink: 0; background: linear-gradient(135deg,#F43F5E,#E11D48); color: #fff; border-radius: 16px; padding: 7px 16px; font-size: 12px; font-weight: 600; }
.ad-case .cbar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ad-case .cbar-track { position: relative; flex: 1; height: 14px; background: #FCE2E2; border-radius: 7px; overflow: hidden; }
.ad-case .cbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg,#F43F5E,#E11D48); border-radius: 7px; }
.ad-case .cbar-pct { position: absolute; left: 8px; top: 0; line-height: 14px; font-size: 10px; color: #fff; font-weight: 700; }
.ad-case .cbar-sold { flex-shrink: 0; font-size: 12px; color: #9AA0A6; white-space: nowrap; }
.ad-faq .q { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; color: var(--mk-text); margin: 18px 0 6px; line-height: 1.6; }
.ad-faq .q:first-child { margin-top: 0; }
.ad-faq .q .no { flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 3px; box-sizing: border-box; background: #335FDC; color: #fff; border-radius: 3px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ad-faq .a { color: var(--mk-text-secondary); line-height: 1.9; padding-left: 26px; margin-bottom: 2px; }
.ad-faq .a .ad-link { color: var(--mk-primary); word-break: break-all; }
.ad-faq .faq-foot { padding-left: 26px; margin-top: 18px; color: var(--mk-text-secondary); }

/* 多人成团图标尺寸 */
.team-ic { display: block; }
.ac-card .badge .ic .team-ic { width: 15px; height: 15px; }
.ad-banner .logo .team-ic { width: 26px; height: 26px; }
.admock-cell .ic .team-ic { width: 20px; height: 20px; }

/* ===== 活动头像（卡片角标 / 侧栏 / 报名详情共用）===== */
.act-ava { width: 40px; height: 40px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; color: #fff; font-size: 8px; font-weight: 600; line-height: 1.1; text-align: center; }
.act-ava .ic { font-size: 10px; display: flex; align-items: center; justify-content: center; }
.act-ava .team-ic { width: 15px; height: 15px; }
.act-ava.bigsale, .act-ava.promo { background: linear-gradient(135deg, #1D4ED8, #335FDC); }
.act-ava.subsidy, .act-ava.rec { background: linear-gradient(135deg, #FB7185, #F43F5E); }
.act-ava.flash { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.act-ava.brand { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.act-ava.xstore { background: linear-gradient(135deg, #34D399, #10B981); }
.act-ava.newyear { background: linear-gradient(135deg, #DC2626, #F97316); }
.act-ava.team { background: linear-gradient(135deg, #F472B6, #DB2777); }
