/* ══════════════════════════════════════════════════════════
   PC Web 版布局（≥1024px）
   手机端保持 app.css 中的 H5 布局，两套界面共用同一份数据与逻辑
   ══════════════════════════════════════════════════════════ */

.desk-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}
.sidenav {
  display: none;
}

@media (min-width: 1024px) {
  body {
    display: block;
    padding: 0;
    background: #f3f5f9;
    overflow: hidden;
  }

  .app-frame {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .app-frame.desktop {
    flex-direction: row;
  }

  /* ── 侧边导航 ─────────────────────────────────────────── */

  .sidenav {
    display: flex;
    flex-direction: column;
    width: 236px;
    flex: 0 0 236px;
    padding: 20px 14px 14px;
    background: #fff;
    border-right: 1px solid #e9ecf1;
    overflow-y: auto;
  }
  .side-brand-wrap { position: relative; margin-bottom: 10px; }
  .side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 2px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    transition: background 0.14s;
  }
  .side-brand:hover { background: #f6f7f9; }
  .side-brand[aria-expanded="true"] { background: #fff6f2; }
  .side-brand-caret {
    margin-left: auto;
    color: #aeb5c1;
    line-height: 0;
    transition: transform 0.16s;
  }
  .side-brand-caret .i { width: 13px; height: 13px; transform: rotate(90deg); }
  .side-brand[aria-expanded="true"] .side-brand-caret .i { transform: rotate(-90deg); }
  .side-brand-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 4px);
    left: 6px;
    right: 6px;
    display: grid;
    gap: 3px;
    padding: 6px;
    border: 1px solid #e7eaf0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 38px -22px rgba(20, 24, 35, 0.42);
  }
  .side-brand-menu[hidden] { display: none; }
  .side-brand-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
  }
  .side-brand-item:hover { background: #f7f8fa; }
  .side-brand-item.active { background: var(--brand-soft); }
  .side-brand-item-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f4f6f9;
    color: var(--ink-2);
  }
  .side-brand-item.active .side-brand-item-icon { background: #fff; color: var(--brand); }
  .side-brand-item-icon .i { width: 15px; height: 15px; }
  .side-brand-item b { display: block; font-size: 11px; font-weight: 650; }
  .side-brand-item small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 8.5px; }
  .side-brand-item.active b { color: var(--brand-deep); }
  .side-brand-item-sub {
    margin-top: -2px;
    padding-left: 22px;
  }
  .side-brand-item-sub .side-brand-item-icon {
    width: 24px;
    height: 24px;
    background: transparent;
  }
  .side-brand-item-sub .side-brand-item-icon .i { width: 13px; height: 13px; }
  .side-brand-item-sub b { font-size: 10.5px; }
  .side-brand-text {
    min-width: 0;
  }
  .side-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 10px 18px -10px rgba(255, 61, 46, 0.85);
  }
  .side-brand-text b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }
  .side-brand-text span {
    display: block;
    margin-top: 1px;
    font-size: 10.5px;
    color: var(--ink-3);
    letter-spacing: 0.2px;
  }
  .side-section {
    padding: 10px 10px 6px;
    font-size: 10px;
    color: #a9b0bc;
    letter-spacing: 0.6px;
    font-weight: 500;
  }
  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    transition: background 0.14s, color 0.14s;
  }
  .side-link .i {
    width: 18px;
    height: 18px;
  }
  .side-link:hover {
    background: #f6f7f9;
    color: var(--ink);
  }
  .side-link.active {
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 600;
  }
  .side-link.active .i {
    color: var(--brand);
  }
  .side-spacer {
    flex: 1 1 auto;
    min-height: 24px;
  }
  .side-account {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
    text-align: left;
    transition: background 0.14s, border-color 0.14s;
  }
  .side-account:hover {
    background: #fff;
    border-color: #dfe3ea;
  }
  .side-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8a3d, #ff2b4e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }
  .side-account-text {
    flex: 1;
    min-width: 0;
  }
  .side-account-text b {
    display: block;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .side-account-text span {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
  }
  .side-mode {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 9px;
    font-weight: 600;
  }
  .side-mode.demo {
    background: var(--brand-soft);
    color: var(--brand-deep);
  }
  .side-links {
    display: flex;
    gap: 4px;
    margin-top: 8px;
  }
  .side-mini {
    flex: 1;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-3);
    font-size: 10.5px;
  }
  .side-mini .i {
    width: 13px;
    height: 13px;
  }
  .side-mini:hover {
    background: #f5f6f8;
    color: var(--ink-2);
  }
  .side-version {
    padding: 10px 4px 0;
    font-size: 9px;
    color: #bcc2cc;
    text-align: center;
    line-height: 1.5;
  }

  /* ── 页面骨架 ─────────────────────────────────────────── */

  .app-frame.desktop .view {
    background: #f3f5f9;
  }
  .app-frame.desktop .page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px 44px;
  }
  .app-frame.desktop .topbar {
    margin: 0 -30px;
    padding: 20px 30px 14px;
    background: rgba(243, 245, 249, 0.9);
    gap: 12px;
  }
  .app-frame.desktop .topbar-title {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .app-frame.desktop .topbar-sub {
    margin-top: 4px;
    font-size: 12px;
  }
  .app-frame.desktop .icon-btn,
  .app-frame.desktop .back-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .app-frame.desktop .card {
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 24, 35, 0.03), 0 14px 28px -26px rgba(20, 24, 35, 0.35);
  }
  .app-frame.desktop .card-title {
    font-size: 15.5px;
  }
  .app-frame.desktop .card-sub {
    font-size: 11.5px;
  }
  .app-frame.desktop .version {
    margin-top: 22px;
  }

  /* ── 概览 ─────────────────────────────────────────────── */

  .dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 2px;
  }
  .dash-col-main > .hero {
    margin-top: 0;
  }
  .dash-grid .hero {
    padding: 22px 24px 18px;
    border-radius: 20px;
  }
  .dash-grid .hero-value {
    font-size: 42px;
    letter-spacing: -1.6px;
  }
  .dash-grid .hero-foot {
    margin-top: 18px;
    padding-top: 14px;
  }
  .dash-grid .hero-foot-item b {
    font-size: 15px;
  }
  .dash-grid .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  .dash-grid .kpi {
    padding: 14px 15px;
  }
  .dash-grid .kpi-value {
    font-size: 21px;
  }
  .dash-grid .card {
    margin-top: 14px;
  }
  .dash-col-side .card:first-child {
    margin-top: 0;
  }
  .dash-col-side .rank-item {
    padding: 11px 0;
  }

  /* ── 计划页：数据表格 ─────────────────────────────────── */

  .filter-card {
    margin-top: 2px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 24, 35, 0.03);
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  .filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .desk-tabs {
    display: inline-flex;
    gap: 2px;
    margin: 0;
    padding: 3px;
    border-radius: 11px;
    background: #f2f4f7;
  }
  .desk-tabs button {
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: 0.16s;
  }
  .desk-tabs button:hover {
    color: var(--ink);
  }
  .desk-tabs button.active {
    background: #fff;
    color: var(--ink);
    font-weight: 650;
    box-shadow: 0 1px 4px rgba(20, 24, 35, 0.1);
  }
  .desk-tabs .count {
    margin-left: 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ink-3);
  }
  .filter-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .search-box {
    position: relative;
    width: 250px;
  }
  .search-box .i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ink-3);
    pointer-events: none;
  }
  .search-box input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: #fafbfc;
    font-size: 12.5px;
    outline: none;
    transition: 0.16s;
  }
  .search-box input::placeholder {
    color: #b3b9c4;
  }
  .search-box input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 77, 31, 0.08);
  }
  .desk-select {
    height: 36px;
    padding: 0 30px 0 11px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-size: 12px;
    color: var(--ink-2);
    appearance: none;
    outline: none;
    cursor: pointer;
  }
  .desk-select:focus {
    border-color: var(--brand);
  }
  .filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
    color: var(--ink-3);
    flex-wrap: wrap;
  }
  .filter-meta-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .filter-meta b {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .desk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
    font-weight: 550;
    color: var(--ink-2);
    transition: 0.14s;
  }
  .desk-btn .i {
    width: 15px;
    height: 15px;
  }
  .desk-btn:hover {
    border-color: #d6dbe3;
    background: #fafbfc;
    color: var(--ink);
  }
  .desk-btn.primary {
    border-color: transparent;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 16px -10px rgba(255, 61, 46, 0.8);
  }
  .desk-btn.active {
    border-color: rgba(255, 77, 31, 0.3);
    background: var(--brand-soft);
    color: var(--brand-deep);
  }

  .batch-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #171a20;
    color: #fff;
    box-shadow: 0 14px 28px -18px rgba(10, 14, 24, 0.6);
    animation: rise 0.2s ease both;
  }
  .batch-inline[hidden] {
    display: none !important;
  }
  .batch-inline .batch-count {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
  }
  .batch-inline .batch-count b {
    color: #fff;
    font-size: 13px;
  }
  .batch-inline button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 11.5px;
    font-weight: 550;
  }
  .batch-inline button:hover {
    background: rgba(255, 255, 255, 0.16);
  }
  .batch-inline button.primary {
    border-color: transparent;
    background: var(--grad);
    font-weight: 600;
  }
  .batch-inline button.ghost {
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
  }
  .batch-inline button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .table-card {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 24, 35, 0.03);
    overflow: hidden;
  }
  .table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: auto;
  }
  .data-table th {
    padding: 11px 14px;
    background: #fafbfc;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    color: #8b93a3;
    text-align: left;
    white-space: nowrap;
  }
  .data-table th.sortable {
    cursor: pointer;
    user-select: none;
  }
  .data-table th.sortable:hover {
    color: var(--ink);
  }
  .data-table th .sort-mark {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    margin-left: 3px;
    vertical-align: middle;
    color: #c8cdd6;
  }
  .data-table th .sort-mark i {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
  }
  .data-table th .sort-mark i.up {
    border-bottom: 4px solid currentColor;
  }
  .data-table th .sort-mark i.down {
    border-top: 4px solid currentColor;
  }
  .data-table th.sorted .sort-mark {
    color: #d5d9e1;
  }
  .data-table th.sorted .sort-mark i.down {
    color: var(--brand);
  }
  .data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f6;
    font-size: 12.5px;
    color: var(--ink-2);
    vertical-align: middle;
  }
  .data-table tbody tr:last-child td {
    border-bottom: 0;
  }
  .data-table tbody tr.row {
    cursor: pointer;
    transition: background 0.12s;
  }
  .data-table tbody tr.row:hover {
    background: #fafbfd;
  }
  .data-table tbody tr.row.selected {
    background: #fff4ef;
  }
  .data-table tbody tr.row.selected:hover {
    background: #ffede5;
  }
  .data-table .col-check {
    width: 42px;
    padding-right: 0;
  }
  .data-table .cell-name {
    min-width: 220px;
    max-width: 340px;
  }
  .cell-name b {
    display: block;
    font-size: 12.8px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cell-name span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
  }
  .cell-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
  }
  .cell-num small {
    display: block;
    margin-top: 2px;
    font-size: 9.5px;
    font-weight: 400;
    color: var(--ink-3);
  }
  .cell-budget {
    min-width: 132px;
  }
  .cell-budget b {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .cell-budget .bar {
    display: block;
    width: 74px;
    height: 3px;
    margin-top: 4px;
    border-radius: 99px;
    background: #eef0f4;
    overflow: hidden;
  }
  .cell-budget .bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
  }
  .cell-budget small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: var(--ink-3);
  }
  .row-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }
  .row-btn {
    height: 28px;
    padding: 0 9px;
    border: 1px solid var(--line-2);
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    color: var(--ink-2);
    transition: 0.12s;
  }
  .row-btn:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-deep);
  }
  .row-btn.pause:hover {
    border-color: rgba(226, 61, 61, 0.4);
    background: var(--red-soft);
    color: var(--red);
  }
  .row-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  .table-empty {
    padding: 46px 20px;
  }
  .table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--ink-3);
  }
  .table-foot b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .pager {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .pager button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: #fff;
    font-size: 11.5px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
  }
  .pager button:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand-deep);
  }
  .pager button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
  }
  .pager button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  .pager.compact {
    gap: 2px;
    padding-left: 4px;
    border-left: 1px solid var(--line);
  }
  .pager.compact button {
    min-width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
  }
  .pager.compact .pager-info {
    min-width: 42px;
    text-align: center;
    font-size: 10.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
  }

  /* ── 计划详情 ─────────────────────────────────────────── */

  .detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(330px, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 2px;
  }
  .detail-grid .detail-hero {
    margin-top: 0;
    padding: 20px 22px;
  }
  .detail-grid .detail-name {
    font-size: 21px;
  }
  .detail-grid-v2 {
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.88fr);
  }
  .detail-command {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: stretch;
    padding: 24px 26px;
  }
  .detail-command-name {
    font-size: 24px;
    letter-spacing: -0.7px;
  }
  .detail-command-meta {
    gap: 6px 16px;
    font-size: 10.5px;
  }
  .detail-verdict {
    max-width: 720px;
    padding: 11px 13px;
  }
  .detail-verdict b {
    font-size: 12.5px;
  }
  .detail-verdict p {
    font-size: 10.5px;
  }
  .detail-north {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 17px 18px;
  }
  .detail-north-value {
    margin-top: 7px;
    font-size: 34px;
  }
  .detail-north-grid > div {
    padding: 9px 10px;
  }
  .detail-north-grid b {
    font-size: 13px;
  }
  .detail-kpi-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 16px;
  }
  .detail-kpi {
    padding: 14px 15px;
  }
  .detail-kpi b {
    font-size: 19px;
  }
  .detail-kpi small {
    font-size: 9px;
  }
  .detail-chart-wrap {
    min-height: 250px;
  }
  .detail-trend-foot {
    gap: 6px 20px;
    font-size: 9.5px;
  }
  .detail-grid-v2 .detail-side .card:first-child {
    margin-top: 0;
  }
  .detail-grid-v2 .detail-side .card {
    margin-top: 14px;
  }
  .detail-audit-card .timeline {
    max-height: 460px;
  }
  .detail-grid .action-tile {
    flex-direction: row;
    gap: 8px;
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .detail-grid .action-tile .i {
    width: 17px;
    height: 17px;
  }
  .detail-grid .metric-cell {
    padding: 14px 16px;
  }
  .detail-grid .metric-cell b {
    font-size: 16px;
  }
  .detail-main .card {
    margin-top: 14px;
  }
  .detail-side .card:first-child {
    margin-top: 0;
  }
  .detail-side .card {
    margin-top: 14px;
  }
  .detail-side .timeline {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
  }

  /* ── 报表 ─────────────────────────────────────────────── */

  .app-frame.desktop .range-row {
    max-width: 600px;
  }
  .app-frame.desktop #range-tabs {
    max-width: 600px;
    margin-top: 14px;
  }
  .app-frame.desktop .date-input {
    height: 40px;
    font-size: 12.5px;
  }
  .app-frame.desktop .summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 16px;
  }
  .app-frame.desktop .sum-cell {
    padding: 15px 18px;
  }
  .app-frame.desktop .sum-cell b {
    font-size: 19px;
  }
  .app-frame.desktop .chart-wrap {
    height: 260px;
  }
  .app-frame.desktop .rt-head,
  .app-frame.desktop .rt-row {
    padding-left: 4px;
    padding-right: 4px;
  }
  .app-frame.desktop .rt-row {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .app-frame.desktop .rt-name b {
    font-size: 12.5px;
  }
  .app-frame.desktop .rt-num {
    width: 92px;
    font-size: 12.5px;
  }

  /* ── 我的 ─────────────────────────────────────────────── */

  .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 2px;
  }
  .profile-grid .profile-card {
    margin-top: 0;
  }
  .profile-main .card {
    margin-top: 14px;
  }
  .profile-side .card:first-child {
    margin-top: 0;
  }
  .profile-grid .audit-item {
    padding: 11px 0;
  }
  .app-frame.desktop #logout-btn {
    width: auto;
    min-width: 150px;
    height: 40px;
    margin-top: 16px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* ── 登录 ─────────────────────────────────────────────── */

  .login {
    flex-direction: row;
    min-height: 100%;
    background: #fff;
  }
  .login::before {
    width: 480px;
    height: 480px;
    right: auto;
    left: 26%;
    top: -220px;
    background: rgba(255, 255, 255, 0.12);
  }
  .login::after {
    width: 420px;
    height: 420px;
    left: -160px;
    top: auto;
    bottom: -200px;
    background: rgba(255, 255, 255, 0.08);
  }
  .login-top {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px max(48px, 7vw);
    background: linear-gradient(158deg, #ff8a3d 0%, #ff4d1f 46%, #f5204b 100%);
  }
  .login-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 30px;
  }
  .login-title {
    margin-top: 26px;
    font-size: 34px;
    line-height: 1.22;
    letter-spacing: -1px;
  }
  .login-tagline {
    margin-top: 14px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.85;
  }
  .login-hero-stats {
    gap: 34px;
    margin-top: 38px;
  }
  .login-hero-stats div b {
    font-size: 16px;
  }
  .login-sheet {
    flex: 1;
    max-width: 620px;
    min-height: 100%;
    margin: 0 auto;
    padding: 64px max(48px, 6vw);
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
  }
  .login-heading {
    font-size: 22px;
  }
  .login-desc {
    font-size: 12.5px;
  }
  .login-actions {
    margin-top: 24px;
  }
  .login-actions .btn {
    height: 50px;
    font-size: 15px;
  }
  .features {
    margin-top: 28px;
    padding-top: 20px;
  }
  .feature {
    padding: 8px 0;
  }
  .feature b {
    font-size: 12.5px;
  }
  .feature p {
    font-size: 11px;
  }
  .login-foot {
    margin-top: 30px;
    padding-top: 0;
  }

  /* ── 接入指引 ─────────────────────────────────────────── */

  .setup-page {
    max-width: 980px;
    margin: 0 auto;
  }
  .app-frame.desktop .setup-page {
    max-width: 980px;
  }
  .setup-page .topbar {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .setup-page .setup-hero {
    padding: 22px 24px;
  }
  .setup-page .setup-hero h2 {
    font-size: 20px;
  }
  .setup-page .setup-hero p {
    font-size: 12px;
  }
  .setup-page .code-block {
    font-size: 11.5px;
  }

  /* ── 弹层（PC 用居中对话框） ─────────────────────────── */

  .app-frame.desktop .sheet-mask {
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 0;
  }
  .app-frame.desktop .sheet-panel {
    width: 100%;
    max-width: 480px;
    max-height: 84vh;
    padding: 20px 22px;
    border-radius: 20px;
    animation: popIn 0.2s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .app-frame.desktop .sheet-mask.closing .sheet-panel {
    animation: fadeOut 0.16s ease both;
  }
  .app-frame.desktop .sheet-handle {
    display: none;
  }
  .app-frame.desktop .sheet-foot {
    margin-top: 20px;
  }
  .app-frame.desktop .confirm {
    padding: 24px 22px 20px;
  }

  .app-frame.desktop .ptr,
  .app-frame.desktop .batch-bar {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .sidenav {
    width: 248px;
    flex-basis: 248px;
  }
  .app-frame.desktop .page {
    padding-left: 36px;
    padding-right: 36px;
  }
  .app-frame.desktop .topbar {
    margin: 0 -36px;
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .col-optional {
    display: none;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-col-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
  .dash-col-side .card {
    margin-top: 0;
  }
  .detail-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-side,
  .profile-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
  .detail-side .card,
  .profile-side .card {
    margin-top: 0;
  }
}
