:root {
      --uc-primary: #2563eb;
      --uc-bg: #f8fbff;
      --uc-card: #ffffff;
      --uc-text: #0f172a;
      --uc-muted: #64748b;
      --uc-border: #dbe5f3;
      --uc-success: #16a34a;
      --uc-danger: #dc2626;
      /* WebTools 用户中心背景；抽成变量供 html/body 共用，避免仅 body 着色时 html 露白 */
      --uc-page-bg:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #f3f8ff 0%, #eef5ff 35%, #f8fbff 100%);
    }
    html {
      min-height: 100%;
      background-color: var(--uc-bg);
      background-image: var(--uc-page-bg);
    }
    body {
      margin: 0;
      min-height: 100%;
      min-height: 100dvh;
      font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
      background: transparent;
      color: var(--uc-text);
    }
    /* 主内容区不铺第二层底色，与顶栏/页脚之间整页同一渐变 */
    .account-page {
      max-width: 1240px;
      margin: 0 auto;
      padding: 32px 20px 64px;
      background: transparent;
    }
    .account-shell, .hero-main, .summary-card, .summary-copy { display: grid; }
    .account-shell { gap: 28px; background: transparent; }
    .hero {
      background: transparent;
      border: none;
      border-radius: 12px;
      padding: 8px 0 0;
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 32px;
      box-shadow: none;
    }
    .hero-main { gap: 14px; align-content: start; }
    .hero-head { display: flex; align-items: center; gap: 20px; }
    .hero-avatar, .summary-icon, .section-icon { display: inline-flex; align-items: center; justify-content: center; }
    .hero-avatar {
      width: 68px; height: 68px; border-radius: 999px; color: #fff; font-size: 30px;
      background: linear-gradient(180deg, #3284ff 0%, #1768f2 100%);
      box-shadow: 0 16px 32px rgba(37,99,235,.18);
      flex: 0 0 auto;
    }
    .hero-title-wrap { min-width: 0; display: grid; gap: 6px; align-content: start; }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: 999px;
      background: rgba(255,255,255,.82); border: 1px solid rgba(37,99,235,.14); color: var(--uc-primary);
      font-size: 12px; font-weight: 700; margin-bottom: 0; justify-self: start; box-shadow: 0 4px 12px rgba(37,99,235,.08);
    }
    .hero-title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: 0; }
    .hero-subtitle {
      margin: 0;
      color: var(--uc-muted);
      font-size: 14px;
      line-height: 1.7;
      letter-spacing: 0;
      word-spacing: normal;
      white-space: normal;
      text-wrap: pretty;
      max-width: 560px;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: none;
      box-shadow: none;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; padding-left: 0; }
    .hero-btn {
      height: 56px; padding: 0 24px; border-radius: 8px; border: 1px solid var(--uc-border);
      background: rgba(255,255,255,.95); color: #1b63f0; font-size: 15px; font-weight: 700; cursor: pointer;
      transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    }
    .hero-btn.primary {
      background: var(--uc-primary);
      border-color: var(--uc-primary);
      color: #fff;
    }
    .hero-btn.primary:hover {
      background: #1d4ed8;
      border-color: #1d4ed8;
      box-shadow: 0 8px 18px rgba(37,99,235,.20);
      transform: translateY(-1px);
    }
    .hero-btn:not(.primary) {
      background: rgba(255,255,255,.95);
    }
    .hero-btn:not(.primary):hover {
      background: #f8fafc;
      border-color: #cbd5e1;
      box-shadow: 0 6px 14px rgba(15,23,42,.08);
      transform: translateY(-1px);
    }
    .hero-btn:disabled {
      cursor: wait;
      opacity: .78;
      transform: none;
      box-shadow: none;
    }
    /* 刷新中：文案「刷新中...」+ 图标旋转，并用 #refreshBtn 盖过主站 Tailwind */
    @keyframes webtools-uc-refresh-spin {
      to {
        transform: rotate(360deg);
      }
    }
    /* 刷新中：仅 disabled + 文案 + 图标旋转，不改按钮为玻璃/渐变底 */
    #refreshBtn.hero-btn.is-loading [data-refresh-icon] {
      display: inline-block !important;
      line-height: 1;
      animation: webtools-uc-refresh-spin 0.85s linear infinite !important;
    }
    .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
    .summary-card {
      background: rgba(255,255,255,.96);
      border: 1px solid var(--uc-border);
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      min-height: 176px;
      gap: 16px;
      align-content: start;
    }
    .summary-label { color: var(--uc-muted); font-size: 14px; font-weight: 700; }
    .summary-body { display: flex; align-items: center; gap: 16px; min-height: 88px; }
    .summary-icon {
      width: 60px; height: 60px; border-radius: 999px; background: #edf4ff; color: var(--uc-primary); font-size: 28px;
    }
    .summary-value { font-size: 28px; font-weight: 800; line-height: 1.15; color: #1b63f0; }
    .summary-subvalue { color: var(--uc-muted); font-size: 14px; }
    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .card {
      background: var(--uc-card);
      border: 1px solid var(--uc-border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .card-head { padding: 24px 24px 16px; border-bottom: 1px solid #edf2f8; }
    .section-head { display: inline-flex; align-items: center; gap: 12px; position: relative; padding-bottom: 12px; }
    .section-head::after {
      content: ""; position: absolute; left: 56px; bottom: 0; width: 96px; height: 4px; border-radius: 999px;
      background: linear-gradient(90deg, #8cb7ff 0%, #d6e5ff 100%);
    }
    .section-icon {
      width: 42px; height: 42px; border-radius: 999px; color: #fff; font-size: 20px;
      background: linear-gradient(180deg, #3284ff 0%, #1768f2 100%);
      box-shadow: 0 10px 22px rgba(37,99,235,.14);
    }
    .section-title { margin: 0; font-size: 20px; font-weight: 800; }
    .card-body { padding: 24px; }
    .info-list {
      display: grid;
      border: 1px solid #eaf1fb;
      border-radius: 14px;
      overflow: hidden;
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    }
    .info-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
      gap: 14px; border-bottom: 1px solid #edf2f8; padding: 18px 20px;
    }
    .info-row:last-child { border-bottom: none; }
    .info-label { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
    .row-icon {
      width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
      background: #eef4ff; color: #1b63f0; font-size: 20px; flex: 0 0 auto;
    }
    .info-key { color: var(--uc-muted); font-size: 14px; font-weight: 700; }
    .info-value { font-size: 15px; font-weight: 600; justify-self: start; }
    .status-chip {
      display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 14px;
      border-radius: 999px; font-size: 13px; font-weight: 700;
    }
    .status-active { background: #ecfdf3; color: var(--uc-success); }
    .status-trial { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
    .status-expired { background: #fef2f2; color: var(--uc-danger); }
    .record-table-wrap { overflow-x: hidden; overflow-y: auto; border: 1px solid #e8f0fb; border-radius: 14px; }
    .record-table { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; }
    .record-table th, .record-table td {
      padding: 16px 18px; border-bottom: 1px solid #edf2f8; font-size: 14px; text-align: left; white-space: nowrap;
    }
    .record-table th { color: var(--uc-muted); font-weight: 700; background: #fbfdff; }
    .record-table th:first-child,
    .record-table td:first-child { width: 34%; }
    .record-table th:nth-child(2),
    .record-table td:nth-child(2) { width: 14%; }
    .record-table th:nth-child(3),
    .record-table td:nth-child(3) { width: 14%; }
    .record-table th:nth-child(4),
    .record-table td:nth-child(4) { width: 22%; }
    .record-table th:nth-child(5),
    .record-table td:nth-child(5) { width: 10%; }
    .record-table th:nth-child(6),
    .record-table td:nth-child(6) { width: 10%; }
    .record-table th:nth-child(2),
    .record-table td:nth-child(2),
    .record-table th:nth-child(3),
    .record-table td:nth-child(3),
    .record-table th:nth-child(4),
    .record-table td:nth-child(4),
    .record-table th:nth-child(5),
    .record-table td:nth-child(5),
    .record-table th:nth-child(6),
    .record-table td:nth-child(6) {
      text-align: center;
    }
    .record-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
    .record-name > span:last-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .record-file-icon {
      width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
      background: #eef4ff; color: #1b63f0; font-size: 18px; flex: 0 0 auto;
    }
    .record-status {
      display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    }
    .record-status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
    .record-status.success { color: #16a34a; background: #ecfdf3; }
    .record-status.failed { color: #ef4444; background: #fef2f2; }
    .record-status.processing { color: #2563eb; background: #eff6ff; }
    .record-actions {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    .record-action-btn {
      width: 32px; height: 32px; border-radius: 10px; border: 1px solid #dbe5f3; background: #f8fbff; color: #2563eb;
      display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
      box-shadow: 0 2px 8px rgba(15,23,42,.05);
      transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .record-action-btn svg {
      width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9;
      stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
    }
    .record-action-btn::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 10px);
      transform: translateX(-50%) translateY(4px);
      padding: 6px 10px;
      border-radius: 8px;
      background: rgba(15,23,42,.92);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      box-shadow: 0 8px 18px rgba(15,23,42,.16);
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      z-index: 3;
    }
    .record-action-btn::before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: calc(100% + 4px);
      width: 8px;
      height: 8px;
      background: rgba(15,23,42,.92);
      transform: translateX(-50%) rotate(45deg);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .18s ease, visibility .18s ease;
      z-index: 2;
    }
    .record-action-btn[data-record-action="download"].is-available { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
    .record-action-btn[data-record-action="download"].is-unavailable {
      color: #94a3b8;
      background: #f1f5f9;
      border-color: #e2e8f0;
      cursor: not-allowed;
      opacity: 0.88;
      box-shadow: none;
    }
    .record-action-btn[data-record-action="delete"] { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
    .record-action-btn:hover:not(.is-unavailable) { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,23,42,.10); }
    .record-action-btn:hover::after,
    .record-action-btn:hover::before {
      opacity: 1;
      visibility: visible;
    }
    .record-action-btn:hover::after {
      transform: translateX(-50%) translateY(0);
    }
    .record-action-btn[data-record-action="download"].is-available:hover { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
    .record-action-btn[data-record-action="download"].is-unavailable:hover {
      transform: none;
      box-shadow: none;
      background: #f1f5f9;
      border-color: #e2e8f0;
      color: #94a3b8;
    }
    .record-action-btn[data-record-action="delete"]:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
    .record-action-btn:active { transform: translateY(0); }
    .helper { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--uc-border); color: var(--uc-muted); font-size: 14px; }
    .helper.error { background: #fef2f2; color: var(--uc-danger); }
    .records-pagination {
      margin-top: 16px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .records-pagination.hidden { display: none; }
    .records-pagination-info {
      color: var(--uc-muted);
      font-size: 14px;
      font-weight: 600;
    }
    .records-pagination-btn {
      min-width: 88px;
      height: 36px;
      padding: 0 14px;
      border-radius: 8px;
      border: 1px solid var(--uc-border);
      background: #fff;
      color: #1d4ed8;
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
    }
    .records-pagination-btn:disabled {
      cursor: not-allowed;
      opacity: .55;
    }
    .empty { padding: 28px 0 10px; color: var(--uc-muted); text-align: center; }
    @media (max-width: 980px) {
      .hero, .grid, .hero-side { grid-template-columns: 1fr; }
      .account-page { padding-left: 14px; padding-right: 14px; }
    }
    .kq-qr-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.55);
      z-index: 200000;
      cursor: pointer;
    }
    .kq-qr-overlay.kq-qr-open {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }
    .kq-qr-box {
      position: relative;
      background: #fff;
      border-radius: 18px;
      padding: 18px 18px 14px;
      width: min(90vw, 340px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
      text-align: center;
      cursor: default;
    }
    .kq-qr-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 999px;
      background: #f3f4f6;
      color: #111827;
      font-size: 18px;
      cursor: pointer;
    }
    .kq-qr-box img {
      width: min(72vw, 260px);
      height: min(72vw, 260px);
      object-fit: contain;
      display: block;
      margin: 18px auto 12px;
      border-radius: 12px;
      background: #fff;
    }
    .kq-qr-box p {
      margin: 0;
      color: #374151;
      font-size: 15px;
      font-weight: 600;
    }
