/* W10 店铺套餐：/plans（对比页）和 /seller/plan（我的套餐、升级）。只在这两页加载。
   ---------------------------------------------------------------------------
   这一页唯一的装饰是摊位遮阳棚（.awning）：条纹 + 下沿一排半圆，每一档一种布 ——
   免费摊位是本色帆布、标准店是青色、AI 智能店是姜黄色。其余全部用站点原有的变量，保持安静。
   CSP 是 style-src 'self'：没有 style=""，所有状态都是 class。 */

.plan-tone--free { --awn-a: #ddd3c3; --awn-b: #faf6ef; --tone-ink: var(--ink-800); --tone-bg: var(--surface-2); --tone-line: var(--line-strong); }
.plan-tone--standard { --awn-a: var(--teal-600); --awn-b: #e3f2f4; --tone-ink: var(--teal-800); --tone-bg: var(--teal-50); --tone-line: var(--teal-100); }
.plan-tone--ai { --awn-a: var(--saffron-500); --awn-b: var(--saffron-50); --tone-ink: #6b4300; --tone-bg: var(--saffron-50); --tone-line: var(--saffron-100); }

/* 遮阳棚：14px 一条纹，下沿每条纹挂一个半圆（mask 剪出来，所以跟着条纹颜色走）。 */
.awning {
  display: block; height: 30px;
  background: repeating-linear-gradient(90deg, var(--awn-a, var(--teal-600)) 0 14px, var(--awn-b, #fff) 14px 28px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    radial-gradient(circle 7px at 50% 0, #000 98%, transparent 100%) bottom left / 14px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    radial-gradient(circle 7px at 50% 0, #000 98%, transparent 100%) bottom left / 14px 7px repeat-x;
}

/* ── /plans ──────────────────────────────────────────────────────────────── */
.plans-page { display: grid; gap: 18px; padding-bottom: 8px; }
.plans-page > * { min-width: 0; }
.plans-hero { display: grid; gap: 8px; margin-top: 4px; max-width: 46em; }
.plans-hero__title { font-size: clamp(26px, 5vw, 36px); font-weight: 850; letter-spacing: -.02em; }
.lang-my .plans-hero__title { letter-spacing: 0; }
.plans-hero__lede { font-size: 16.5px; color: var(--ink-700); }

.plans-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.plans-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.plans-table__corner { width: 34%; }
.plans-table thead th { vertical-align: top; padding: 0 0 14px; text-align: center; font-weight: 400; }
.plan-head { background: var(--tone-bg); border-left: 1px solid var(--tone-line); color: var(--tone-ink); }
.plan-head .awning { margin-bottom: 10px; }
.plan-head__name { display: block; padding: 0 8px; font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.plan-head__price { display: block; padding: 2px 8px 0; font-size: 13.5px; font-weight: 650; opacity: .9; }
.lang-my .plan-head__name { line-height: 1.7; font-size: 16px; }
.plan-head--free { --awn-a: #ddd3c3; --awn-b: #faf6ef; --tone-ink: var(--ink-800); --tone-bg: var(--surface-2); --tone-line: var(--line); }
.plan-head--standard { --awn-a: var(--teal-600); --awn-b: #e3f2f4; --tone-ink: var(--teal-800); --tone-bg: var(--teal-50); --tone-line: var(--teal-100); }
.plan-head--ai { --awn-a: var(--saffron-500); --awn-b: var(--saffron-50); --tone-ink: #6b4300; --tone-bg: var(--saffron-50); --tone-line: var(--saffron-100); }

.plans-table tbody th, .plans-table tbody td { padding: 13px 12px; border-top: 1px solid var(--line); }
.plans-table tbody th { text-align: left; font-weight: 650; color: var(--ink-800); }
.plans-table tbody td {
  text-align: center; font-family: var(--font-num); font-weight: 750; font-size: 15.5px; color: var(--ink-950);
  border-left: 1px solid var(--line); overflow-wrap: anywhere;
}
.lang-my .plans-table tbody td, .lang-zh .plans-table tbody td { font-family: inherit; }
.plans-table tbody tr:nth-child(even) > * { background: var(--surface-2); }
.plans-table__bool .i { display: inline-block; width: 22px; height: 22px; color: var(--ink-300); vertical-align: middle; }
.plans-table__bool.is-on .i { color: var(--green-600); stroke-width: 2.6; }

.plans-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-600); font-size: 14px; }
.plans-note .i { flex: none; width: 18px; height: 18px; margin-top: .2em; color: var(--saffron-600); }

.plans-prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plans-prices__plan { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: var(--radius); background: var(--tone-bg); border: 1px solid var(--tone-line); }
.plans-prices__name { font-size: 16px; font-weight: 800; color: var(--tone-ink); }
.plans-prices__tba { font-weight: 650; color: var(--ink-700); }
.plans-prices__list { display: grid; gap: 4px; }
.plans-prices__list > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--tone-line); }
.plans-prices__list > div:last-child { border-bottom: 0; }
.plans-prices__list dd { font-family: var(--font-num); font-weight: 750; text-align: right; }
.lang-my .plans-prices__list dd { font-family: inherit; }

.plans-steps { display: grid; gap: 10px; counter-reset: step; }
.plans-steps > li { position: relative; padding-left: 40px; counter-increment: step; }
.plans-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-600); color: #fff; font-weight: 800; font-size: 14px;
}
.plans-how__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* 窄屏：每一行折成「标题一整行 + 三个值一行」。表格语义靠 role=* 保住。 */
@media (max-width: 640px) {
  .plans-table, .plans-table thead, .plans-table tbody, .plans-table tr { display: block; }
  .plans-table tr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .plans-table--n2 tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-table--n3 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans-table tbody tr { grid-auto-flow: row; }
  .plans-table__corner { display: none !important; }
  .plans-table thead th { padding-bottom: 10px; }
  .plan-head__name { font-size: 15px; }
  .lang-my .plan-head__name { font-size: 14.5px; }
  .plan-head__price { font-size: 12.5px; }
  .plans-table tbody th { grid-column: 1 / -1; padding: 10px 12px 2px; font-size: 13.5px; color: var(--ink-600); }
  .plans-table tbody td { padding: 4px 6px 12px; border-top: 0; font-size: 15px; }
  .plans-table tbody tr { border-top: 1px solid var(--line); }
  .plans-table tbody td:first-of-type { border-left: 0; }
  .plans-how__actions .btn { width: 100%; }
}

/* ── /seller/plan ────────────────────────────────────────────────────────── */
.plan-current { padding: 0 0 18px; overflow: hidden; background: var(--tone-bg, var(--surface)); border-color: var(--tone-line, var(--line)); }
.plan-current .awning { margin-bottom: 14px; }
.plan-current__body { display: grid; gap: 10px; padding: 0 20px; }
.plan-current__eyebrow { font-size: 13px; font-weight: 700; color: var(--ink-600); }
.plan-current__name { font-size: 24px; font-weight: 850; color: var(--tone-ink, var(--ink-950)); }
.lang-my .plan-current__name { font-size: 21px; line-height: 1.6; }
.plan-current__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.plan-usage__item { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan-usage__label { font-size: 13px; font-weight: 650; color: var(--ink-600); }
.plan-usage__value { font-family: var(--font-num); font-size: 18px; font-weight: 800; color: var(--ink-950); }
.lang-my .plan-usage__value { font-family: inherit; font-size: 16px; }
.plan-meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.plan-meter__bar { display: block; height: 100%; width: 0; background: var(--teal-500); border-radius: 3px; }
.plan-meter__bar.is-full { background: var(--deal-600); }

.plan-steps { display: grid; gap: 18px; counter-reset: pstep; }
.plan-step { display: grid; gap: 10px; counter-increment: pstep; }
.plan-step__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.plan-step__title::before {
  content: counter(pstep); display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-600); color: #fff; font-size: 14px;
}
.plan-step[aria-disabled="true"] { opacity: .55; }

.plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-option__box {
  display: grid; gap: 2px; min-height: 52px; padding: 10px 14px; align-content: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.plan-option__main { font-weight: 750; color: var(--ink-900); }
.plan-option__sub { font-size: 13px; color: var(--ink-600); font-family: var(--font-num); }
.lang-my .plan-option__sub { font-family: inherit; }
.plan-option input:checked + .plan-option__box { border-color: var(--teal-600); background: var(--teal-50); box-shadow: 0 0 0 1px var(--teal-600) inset; }
.plan-option input:focus-visible + .plan-option__box { box-shadow: var(--ring); }
.plan-option input:disabled + .plan-option__box { opacity: .5; cursor: not-allowed; }

.plan-amount { font-size: 15px; font-weight: 650; }
.plan-amount strong { font-family: var(--font-num); font-size: 22px; color: var(--deal-700); }

.payee { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-strong); }
.payee__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.payee__label { min-width: 7em; font-size: 13px; font-weight: 650; color: var(--ink-600); }
.payee__number { font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: .02em; color: var(--ink-950); overflow-wrap: anywhere; }
.payee__name { font-weight: 750; overflow-wrap: anywhere; }
.payee .btn { min-height: 44px; }

.plan-form { display: grid; gap: 12px; max-width: 32em; }
.plan-form .btn--lg { justify-self: start; }

.plan-requests { display: grid; gap: 10px; }
.plan-request { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-request__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.plan-request__title { font-weight: 800; }
.plan-request__meta { font-size: 13.5px; color: var(--ink-600); overflow-wrap: anywhere; }
.plan-request__reason { font-size: 14px; color: var(--deal-700); }
.plan-request .btn { justify-self: start; min-height: 44px; }

@media (max-width: 600px) {
  .plan-current__body { padding: 0 16px; }
  .plan-form .btn--lg { width: 100%; justify-self: stretch; }
}
