/*
 * APBMA Membership form styles.
 * Everything is scoped under #apbma-membership (via native CSS nesting) so the
 * form's generic class names (.card, .form-group, …) can't collide with the
 * Blocksy theme, and the form's reset can't leak onto the rest of the page.
 */

@keyframes apbmaFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes apbmaSpin { to { transform: rotate(360deg); } }
/* 从下方权益卡「选择此类别」跳上来时，给③区对应的卡打一圈脉冲 */
@keyframes apbmaPick {
  0%   { box-shadow: 0 0 0 0 rgba(26,58,92,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(26,58,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,58,92,0); }
}

#apbma-membership {
  --navy: #1a3a5c;
  --navy-dark: #0f2540;
  --navy-mid: #2a5080;
  --teal: #1a7a6e;
  --teal-light: #e8f5f3;
  --gold: #c8902a;
  --gold-light: #fdf3e3;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --gray-100: #f1f3f7;
  --gray-200: #e2e6ed;
  --gray-300: #cbd2dc;
  --gray-400: #9aa3b0;
  --gray-600: #5a6474;
  --gray-800: #2d3748;
  --red: #c0392b;
  --green: #27ae60;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;

  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background: var(--off-white);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.6;

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── HEADER ── */
  .site-header {
    background-color: var(--navy-dark);
    background-image: linear-gradient(135deg, rgba(10,20,40,0.92) 0%, rgba(26,58,92,0.82) 50%, rgba(42,80,128,0.75) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .header-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
  }
  .header-logo {
    width: 92px; height: 92px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: white;
    padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .header-logo img { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; display: block; }
  .header-text { flex: 1; }
  .header-en { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.2rem; }
  .header-zh { font-family: 'Noto Sans SC', sans-serif; font-size: 1.35rem; font-weight: 500; letter-spacing: 0.05em; color: #fff; margin: 0; }
  .header-sub { font-size: 0.75rem; opacity: 0.6; margin-top: 0.2rem; }

  /* ── NOTICE BAR ── */
  .notice-bar {
    background: var(--teal-light); border-left: 4px solid var(--teal);
    max-width: 880px; margin: 1.5rem auto 0; padding: 0.8rem 1.2rem;
    border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.78rem; color: var(--teal); line-height: 1.6;
  }

  /* ── MAIN ── */
  .apbma-main { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 2rem; animation: apbmaFadeIn 0.3s ease; }

  /* ── CARD ── */
  .card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 1.25rem; overflow: hidden; }
  .card-header { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; padding: 0.9rem 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
  .card-header-icon { width: 22px; height: 22px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
  .card-header h2 { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; margin: 0; }
  .card-header .zh { font-family: 'Noto Sans SC'; font-size: 0.82rem; opacity: 0.8; margin-left: 0.5rem; }
  .card-body { padding: 1.5rem; }

  /* ── FORM GRID ── */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-group { display: flex; flex-direction: column; gap: 0.35rem; }
  .form-group label { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); letter-spacing: 0.02em; }
  .form-group label .zh { color: var(--gray-400); font-size: 0.7rem; margin-left: 4px; }
  .form-group label .req { color: var(--red); margin-left: 2px; }
  /* :not(radio/checkbox) 很重要 —— 否则 appearance:none 会把性别单选框的
     原生圆圈整个抹掉，看起来就像「选不中」。 */
  .form-group input:not([type="radio"]):not([type="checkbox"]), .form-group select, .form-group textarea {
    width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
    font-family: inherit; font-size: 0.85rem; color: var(--gray-800); background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none; appearance: none;
  }
  .form-group input:not([type="radio"]):not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(42,80,128,0.1); }
  .form-group input::placeholder { color: var(--gray-400); }
  .form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem; }
  .form-group textarea { resize: vertical; min-height: 80px; }

  .gender-row { display: flex; gap: 0.6rem; align-items: stretch; }
  .gender-option { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.85rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 0.82rem; line-height: 1.4; transition: all 0.15s; user-select: none; }
  .gender-option:hover { border-color: var(--navy-mid); }
  /* 选中态双保险：.checked 由 form.js 打，:has() 走纯 CSS。
     两条必须分开写 —— 写成一个选择器列表的话，不支持 :has() 的浏览器会
     判定整条规则非法而整体丢弃，连 .checked 兜底也一起失效。 */
  .gender-option.checked { border-color: var(--navy); background: #f0f5ff; color: var(--navy); font-weight: 500; }
  .gender-option:has(input:checked) { border-color: var(--navy); background: #f0f5ff; color: var(--navy); font-weight: 500; }
  /* 显式复位，防止将来又有通用 .form-group input 规则把原生圆圈吃掉 */
  .gender-option input[type="radio"] {
    appearance: auto; -webkit-appearance: radio;
    accent-color: var(--navy); width: 15px; height: 15px; min-width: 15px;
    padding: 0; border: none; background: none; border-radius: 0; cursor: pointer;
  }

  /* ── MEMBERSHIP CARDS ── */
  .plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .plan-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.1rem 1.1rem 1rem; cursor: pointer; transition: all 0.2s; position: relative; background: white; }
  .plan-card:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .plan-card.selected { border-color: var(--navy); background: #f0f5ff; box-shadow: 0 0 0 4px rgba(26,58,92,0.08); }
  .plan-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
  .plan-check { position: absolute; top: 0.7rem; right: 0.7rem; width: 20px; height: 20px; border: 2px solid var(--gray-300); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
  .plan-card.selected .plan-check { background: var(--navy); border-color: var(--navy); }
  .plan-check::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: white; opacity: 0; transition: opacity 0.2s; }
  .plan-card.selected .plan-check::after { opacity: 1; }
  .plan-name { font-weight: 600; font-size: 0.88rem; color: var(--navy); margin-bottom: 0.15rem; }
  .plan-name-zh { font-family: 'Noto Sans SC'; font-size: 0.78rem; color: var(--gray-600); margin-bottom: 0.5rem; }
  .plan-price { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
  .plan-price span { font-size: 0.72rem; font-weight: 400; color: var(--gray-400); }

  /* 地区小标题（🇦🇺 / 🇨🇳） */
  .region-label { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 0.75rem; }
  .region-label--spaced { margin-top: 1.5rem; }
  .region-label-zh { font-family: 'Noto Sans SC'; color: var(--gray-600); font-weight: 400; margin-left: 0.3rem; }
  .plans-foot { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.85rem; }

  /* ── 会员行业类别（PDF 第一页的 13 项） ── */
  .industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .biz-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.7rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; font-size: 0.76rem; line-height: 1.4; transition: all 0.15s; user-select: none; }
  .biz-option:hover { border-color: var(--navy-mid); }
  .biz-option input { accent-color: var(--navy); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
  .biz-option.checked { border-color: var(--navy); background: #f0f5ff; color: var(--navy); font-weight: 500; }

  /* ── SUMMARY ── */
  .summary-box { background: var(--navy-dark); color: white; border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
  .summary-title { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.6; margin-bottom: 1rem; }
  .summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.83rem; }
  .summary-row:last-of-type { border-bottom: none; }
  .summary-row .label { opacity: 0.7; }
  .summary-row .value { font-weight: 500; }
  .summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); }
  .summary-total .label { font-size: 0.9rem; font-weight: 500; }
  .summary-total .amount { font-size: 1.5rem; font-weight: 700; color: #7fe0d6; }
  .summary-empty { text-align: center; opacity: 0.4; padding: 1rem 0; font-size: 0.82rem; }

  /* ── 提交按钮 ── */
  .submit-btn { width: 100%; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: white; border: none; border-radius: var(--radius-lg); padding: 1rem; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.6rem; transition: all 0.2s; letter-spacing: 0.02em; box-shadow: 0 4px 12px rgba(26,58,92,0.3); }
  .submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,58,92,0.4); }
  .submit-btn:active:not(:disabled) { transform: none; }
  .submit-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
  .submit-note { text-align: center; margin-top: 0.75rem; font-size: 0.72rem; color: var(--gray-400); line-height: 1.7; }

  /* ── DECLARATION ── */
  .declaration-box { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.78rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; }
  .declaration-box p { margin-bottom: 0.5rem; }
  .declaration-box p:last-child { margin-bottom: 0; }
  .agree-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; cursor: pointer; }
  .agree-row input { accent-color: var(--navy); margin-top: 3px; flex-shrink: 0; }

  /* ── BANK ── */
  .bank-box { background: var(--gold-light); border: 1px solid #f0d090; border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.82rem; }
  .bank-box .bank-title { font-weight: 600; color: var(--gold); margin-bottom: 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .bank-box p { margin-bottom: 0.2rem; }
  .bank-box strong { font-weight: 600; }

  /* ── VALIDATION ── */
  .field-error { color: var(--red); font-size: 0.7rem; margin-top: 0.2rem; display: none; }
  .form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: var(--red); }
  .form-group.invalid .field-error { display: block; }

  /* ── 提交成功面板 ── */
  .apbma-success { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 3rem 2rem; text-align: center; animation: apbmaFadeIn 0.35s ease; }
  .apbma-success-icon { width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
  .apbma-success h2 { font-size: 1.35rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
  .apbma-success-zh { font-family: 'Noto Sans SC'; font-size: 1rem; color: var(--gray-600); margin-bottom: 1.5rem; }
  .apbma-success p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.8; max-width: 34rem; margin: 0 auto 0.6rem; }
  .apbma-success-zh-body { font-family: 'Noto Sans SC'; }
  .apbma-success-note { margin-top: 1.5rem !important; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); font-size: 0.78rem !important; color: var(--gray-400) !important; }

  /* ══ PDF 第二页：会员类别及权益 + 付款信息 ══ */
  .benefits-section { max-width: 880px; margin: 0 auto; padding: 0 1rem 3rem; }

  .benefits-header {
    position: relative; overflow: hidden;
    background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-mid) 100%);
    color: white; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
  }
  /* 右侧一道斜向高光，避免纯色条太平 */
  .benefits-header::after {
    content: ''; position: absolute; top: -60%; right: -10%; width: 220px; height: 220%;
    background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
    transform: skewX(-18deg); pointer-events: none;
  }
  .benefits-header--payment { margin-top: 3rem; }
  .benefits-header-eyebrow {
    display: inline-block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: #7fe0d6; margin-bottom: 0.4rem;
  }
  .benefits-header h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.03em; color: #fff; margin: 0; line-height: 1.3; }
  .benefits-header-zh { font-family: 'Noto Sans SC'; font-size: 0.85rem; opacity: 0.72; margin: 0.2rem 0 0; }

  .benefits-intro {
    font-family: 'Noto Sans SC'; font-size: 0.76rem; color: var(--gray-600); line-height: 1.8;
    margin-bottom: 1.75rem; padding-left: 0.9rem; border-left: 3px solid var(--teal-light);
  }

  .benefits-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .benefits-col { display: flex; flex-direction: column; gap: 1.1rem; }

  /* 两列的「普通 / 理事」卡横向对齐（AU 8 条、CN 10 条权益，高度本来不一样）。
     只作用于权益那组 .benefits-cols —— 付款那组每列只有 1 个 .bank-box，行数对不上。 */
  @supports (grid-template-rows: subgrid) {
    .benefits-cols:has(.benefit-card) { grid-template-rows: auto auto auto; align-items: stretch; }
    .benefits-cols:has(.benefit-card) > .benefits-col { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  }

  .benefits-region {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin: 0;
    font-size: 0.9rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em;
    padding-bottom: 0.7rem; border-bottom: 2px solid var(--gray-200); position: relative;
  }
  /* 下划线左侧一小段主色，做视觉锚点 */
  .benefits-region::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--navy-mid));
  }
  .benefits-region-flag { font-size: 1.05rem; line-height: 1; }
  .benefits-region-zh { font-family: 'Noto Sans SC'; font-size: 0.78rem; font-weight: 400; color: var(--gray-400); }

  /* ── 权益卡 ── */
  .benefit-card {
    position: relative; display: flex; flex-direction: column;
    background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 1.4rem 1.35rem 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy-mid); }

  .benefit-card--council { border-color: #eed8a8; }
  /* 顶部金色描边，标识理事档 */
  .benefit-card--council::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--gold), #e8c26a);
  }
  .benefit-card--council:hover { border-color: var(--gold); }

  .benefit-card-ribbon {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--gold); color: #fff; font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.08em; padding: 0.28rem 0.6rem; border-radius: 40px;
    box-shadow: 0 2px 8px rgba(200,144,42,0.35); white-space: nowrap;
  }

  .benefit-card-head { margin-bottom: 1rem; }
  .benefit-card-name { font-size: 1rem; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; }
  .benefit-card-name-zh { font-family: 'Noto Sans SC'; font-size: 0.8rem; color: var(--gray-400); margin-top: 0.1rem; }

  .benefit-card-price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: 0.85rem; }
  .benefit-card-price .cur {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold);
    background: var(--gold-light); border-radius: 4px; padding: 0.2rem 0.4rem;
  }
  .benefit-card-price .num { font-size: 2rem; font-weight: 700; color: var(--navy-dark); line-height: 1; letter-spacing: -0.02em; }
  .benefit-card-term {
    display: inline-block; margin-top: 0.55rem; font-size: 0.68rem; color: var(--gray-600);
    background: var(--gray-100); border-radius: 40px; padding: 0.22rem 0.65rem; letter-spacing: 0.03em;
  }

  .benefit-card-inherit {
    display: flex; align-items: flex-start; gap: 0.4rem;
    font-family: 'Noto Sans SC'; font-size: 0.72rem; line-height: 1.6; color: var(--teal);
    background: var(--teal-light); border-radius: var(--radius);
    padding: 0.55rem 0.7rem; margin-bottom: 0.85rem;
  }
  .benefit-card-inherit::before { content: '↑'; font-weight: 700; line-height: 1.6; }

  .benefit-card-label {
    font-family: 'Noto Sans SC'; font-size: 0.72rem; font-weight: 600; color: var(--gray-400);
    letter-spacing: 0.04em; margin-bottom: 0.6rem;
  }

  .benefit-card-list { margin: 0 0 1.25rem; padding: 0; flex: 1; }
  .benefit-card-list li {
    list-style: none; position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem;
    font-family: 'Noto Sans SC'; font-size: 0.78rem; color: var(--gray-600); line-height: 1.7;
  }
  .benefit-card-list li:last-child { margin-bottom: 0; }
  /* 内联 SVG 对勾，不依赖任何图标字体 */
  .benefit-card-list li::before {
    content: ''; position: absolute; left: 0; top: 0.32rem; width: 15px; height: 15px;
    background: no-repeat center/15px 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23e8f5f3'/%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.6' stroke='%231a7a6e' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .benefit-card--council .benefit-card-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23fdf3e3'/%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.6' stroke='%23c8902a' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .benefit-card-cta {
    margin-top: auto; width: 100%; cursor: pointer;
    font-family: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--navy); background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 0.65rem 0.8rem;
    transition: all 0.18s ease;
  }
  .benefit-card-cta:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
  .benefit-card--council .benefit-card-cta { border-color: #eed8a8; color: var(--gold); }
  .benefit-card--council .benefit-card-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

  /* 从权益卡跳到上方③区时的短暂高亮 */
  .plan-card.just-picked { animation: apbmaPick 1.2s ease; }

  /* ── 付款信息 ── */
  .bank-title .bank-flag { font-size: 0.95rem; margin-right: 0.35rem; text-transform: none; letter-spacing: 0; }
  .bank-list { margin: 0; }
  .bank-list dt {
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray-400); margin-top: 0.7rem;
  }
  .bank-list dt:first-child { margin-top: 0; }
  .bank-list dd { font-size: 0.82rem; color: var(--gray-800); margin-top: 0.1rem; line-height: 1.5; }
  .bank-list dd.bank-num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em; }
  .bank-box--pending { background: var(--gray-100); border-color: var(--gray-200); }
  .bank-box--pending .bank-title { color: var(--gray-600); }
  .bank-pending { font-family: 'Noto Sans SC'; font-size: 0.8rem; color: var(--gray-800); line-height: 1.7; }
  .bank-note { color: var(--gray-400); font-size: 0.72rem; margin-top: 0.4rem; line-height: 1.6; }

  /* 13 项行业标签较长，中等宽度下 3 列会挤，先降到 2 列 */
  @media (max-width: 860px) {
    .industry-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 640px) {
    .header-inner { padding: 1.5rem 1rem 1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: 1; }
    .plans-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr 1fr; }
    .card-body { padding: 1.1rem; }
    .apbma-main { padding: 1rem 0.75rem 2rem; }
    .benefits-section { padding: 0 0.75rem 2.5rem; }
    .apbma-success { padding: 2.25rem 1.25rem; }

    /* 单列堆叠：subgrid 对齐失去意义，退回普通流 */
    .benefits-cols { grid-template-columns: 1fr; gap: 2rem; }
    .benefits-cols:has(.benefit-card) { grid-template-rows: none; }
    .benefits-cols:has(.benefit-card) > .benefits-col { display: flex; grid-row: auto; }

    .benefits-header { padding: 1.1rem 1.15rem; }
    .benefits-header h2 { font-size: 1rem; }
    .benefit-card { padding: 1.25rem 1.1rem 1.15rem; }
    /* 丝带让位给标题，改到卡片上方居左 */
    .benefit-card-ribbon { position: static; display: inline-block; margin-bottom: 0.6rem; }
    .benefit-card-price .num { font-size: 1.75rem; }
  }
}

/* Loading overlay is appended to <body> and covers the viewport. */
.apbma-loading-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.85); z-index: 99999; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; }
.apbma-loading-overlay.show { display: flex; }
.apbma-loading-overlay .spinner { width: 36px; height: 36px; border: 3px solid #e2e6ed; border-top-color: #1a3a5c; border-radius: 50%; animation: apbmaSpin 0.7s linear infinite; }
.apbma-loading-overlay .loading-text { font-size: 0.85rem; color: #5a6474; font-family: 'Inter','Noto Sans SC',sans-serif; }
