/* 购买须知：首页提示条 + 首次打开的须知弹窗 + 下单框里的一行提醒（2026-12-04） */
:root { --rl-red: #C9363C; --rl-red-soft: rgba(201, 54, 60, .08); --rl-red-line: rgba(201, 54, 60, .28); }
html.dark { --rl-red: #FF7A75; --rl-red-soft: rgba(255, 92, 87, .09); --rl-red-line: rgba(255, 92, 87, .32); }

/* 首页提示条 */
.rules-strip { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--rl-red-line); border-radius: var(--mk-r-lg); background: var(--rl-red-soft); }
.rules-strip-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rules-strip-head h2 { flex: 1 1 220px; margin: 0; font-size: 17px; line-height: 1.45; color: var(--mk-text); }
.rules-badge { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rl-red); color: #fff; font-weight: 800; font-size: 14px; }
.rules-strip-head .mk-btn { flex: none; }
.rules-strip ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.rules-strip li { padding-left: 12px; border-left: 2px solid var(--rl-red-line); font-size: 13.5px; line-height: 1.65; color: var(--mk-text-2); }
.rules-strip li b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--rl-red); }
@media (max-width: 760px) { .rules-strip { padding: 16px; } .rules-strip ul { grid-template-columns: minmax(0, 1fr); } .rules-strip-head h2 { font-size: 16px; } }

/* 下单框里的一行提醒 */
.rules-mini { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--mk-r-md); background: var(--rl-red-soft); color: var(--mk-text); font-size: 13px; line-height: 1.6; }
.rules-mini b { color: var(--rl-red); }
.rules-mini a { color: var(--rl-red); white-space: nowrap; }

/* 须知弹窗 */
.rules-dlg { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--mk-border); border-radius: var(--mk-r-xl); background: var(--mk-surface); color: var(--mk-text); box-shadow: var(--mk-shadow-2); overflow: hidden; }
.rules-dlg[open] { display: flex; flex-direction: column; }
.rules-dlg::backdrop { background: rgba(4, 5, 8, .66); backdrop-filter: blur(4px); }
.rules-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; padding: 36px 40px 28px; overflow: auto; overscroll-behavior: contain; }
.rules-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; color: var(--mk-muted); }
.rules-k::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.rules-dlg h2 { margin: 0 0 24px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.rules-card { margin: 0 0 14px; padding: 20px 22px; border: 1px solid var(--mk-border); border-radius: var(--mk-r-lg); background: var(--mk-surface-2); }
.rules-card--red { border-color: var(--rl-red-line); background: var(--rl-red-soft); }
.rules-card .tag { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--mk-muted); }
.rules-card--red .tag { color: var(--rl-red); font-weight: 600; }
.rules-card .tag svg { width: 18px; height: 18px; }
.rules-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.rules-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--mk-text-2); }
.rules-card .hard { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rl-red-line); color: var(--mk-text); font-weight: 600; }
.rules-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mk-border); }
.rules-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; border-bottom: 1px solid var(--mk-border); }
.rules-list .n { font-family: var(--mk-mono); font-size: 13px; color: var(--mk-muted); padding-top: 4px; }
.rules-list h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.rules-list h3 em { font-style: normal; color: var(--rl-red); }
.rules-list p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--mk-text-2); }
.rules-chan { display: flex; align-items: center; gap: 12px; max-width: 340px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--mk-border); border-radius: var(--mk-r-md); background: var(--mk-surface-2); color: var(--mk-text); text-decoration: none; }
.rules-chan:hover { border-color: var(--mk-border-strong); }
.rules-chan a { min-width: 0; color: inherit; text-decoration: none; }
.rules-chan a::after { content: ""; position: absolute; inset: 0; }
.rules-chan { position: relative; }
.rules-chan .cp { position: relative; z-index: 1; }
.rules-chan .ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #37AEE2, #1E96C8); color: #fff; }
.rules-chan .ic svg { width: 18px; height: 18px; }
.rules-chan b { display: block; font-size: 14px; }
.rules-chan span { display: block; font-size: 13px; color: var(--mk-info); }
.rules-chan .cp { margin-left: auto; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--mk-muted); cursor: pointer; }
.rules-chan .cp:hover { background: var(--mk-surface-3); color: var(--mk-text); }
.rules-chan .cp svg { width: 16px; height: 16px; }
.rules-foot { display: flex; align-items: center; gap: 16px; padding: 16px 40px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--mk-border); background: var(--mk-surface); }
.rules-foot p { flex: 1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--mk-muted); }
.rules-foot .mk-btn { flex: none; min-width: 200px; justify-content: center; }
@media (max-width: 860px) {
  .rules-dlg { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: var(--mk-r-xl) var(--mk-r-xl) 0 0; border-bottom: 0; }
  .rules-body { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 18px 12px; }
  .rules-dlg h2 { margin-bottom: 18px; }
  .rules-foot { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .rules-foot .mk-btn { min-width: 0; }
}
