:root {
  --meituan-yellow: #ffd100;
  --ink: #202124;
  --muted: #73777f;
  --line: #e8e9ec;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --blue: #1668dc;
  --blue-soft: #eaf2ff;
  --green: #1f9d55;
  --red: #f04438;
  --shadow: 0 10px 30px rgba(31, 35, 41, 0.06);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto; height: 68px; display: flex; align-items: center; padding: 0 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid #f0f0f0; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px 9px 9px 3px; background: var(--meituan-yellow); font-size: 10px; font-weight: 800; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.help-button { border: 0; background: transparent; color: #484b51; }
.help-button span { display: inline-grid; width: 22px; height: 22px; margin-right: 5px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; }
.account-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--meituan-yellow); font-weight: 800; }
.account-name { color: #45484e; }
.sidebar { position: fixed; z-index: 30; left: 0; top: 68px; bottom: 0; width: 236px; overflow-y: auto; background: var(--surface); border-right: 1px solid #efeff1; padding: 14px 0 24px; }
.nav-group { margin-bottom: 8px; }
.nav-heading { width: 100%; height: 44px; padding: 0 24px 0 34px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; color: #32353a; }
.nav-heading i { margin-left: auto; font-style: normal; }
.nav-group a { display: flex; align-items: center; height: 40px; padding-left: 68px; color: #266fe8; text-decoration: none; transition: .2s ease; }
.nav-group a:hover { background: #f7f9fc; }
.nav-group a.active { background: var(--blue-soft); color: #075fd8; font-weight: 650; border-right: 3px solid var(--blue); }
.bottom-nav { margin-top: 18px; }
.main-content { min-width: 0; padding: 92px 22px 60px 258px; }
.page-tab { display: inline-flex; align-items: center; gap: 8px; min-width: 118px; padding: 10px 16px; background: white; border: 1px solid var(--line); border-bottom-color: white; border-radius: 8px 8px 0 0; color: var(--blue); font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.sync-banner { margin-bottom: 14px; min-height: 78px; padding: 16px 18px; display: flex; align-items: center; gap: 20px; border-radius: 10px; color: #352f16; background: linear-gradient(110deg, #fff9d9, #fffdf3 55%, #fff); border: 1px solid #f1e4a5; box-shadow: 0 8px 26px rgba(98,82,9,.05); }
.sync-copy { display: flex; align-items: center; gap: 13px; }
.sync-copy strong { font-size: 15px; }
.sync-copy p { margin: 5px 0 0; color: #777052; font-size: 12px; }
.sync-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--meituan-yellow); font-size: 21px; font-weight: 800; }
.sync-actions { margin-left: auto; display: flex; gap: 8px; }
.filter-panel, .data-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filter-panel { padding: 14px 16px; border-radius: 10px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.second-row { padding-top: 12px; margin-top: 12px; border-top: 1px dashed #e5e7eb; }
.filter-label { color: #303238; font-weight: 650; }
.segment-control { display: flex; overflow: hidden; border: 1px solid #dfe1e5; border-radius: 6px; }
.segment-control button { min-width: 34px; padding: 6px 9px; border: 0; border-right: 1px solid #e4e5e8; background: white; color: #5d6168; }
.segment-control button:last-child { border-right: 0; }
.segment-control button.selected { color: var(--blue); background: #edf4ff; }
.date-field, .search-field, .select-label { height: 34px; display: flex; align-items: center; border: 1px solid #dfe1e5; border-radius: 6px; background: white; color: #777b82; }
.date-field input { width: 130px; padding: 0 8px; border: 0; outline: 0; color: #44484e; }
.select-label { padding-left: 10px; gap: 8px; font-size: 12px; }
.select-label select { min-width: 140px; height: 100%; border: 0; outline: 0; color: #4d5157; background: transparent; }
.search-field { width: min(320px, 100%); padding: 0 10px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; }
.check-field { display: flex; align-items: center; gap: 5px; color: #555960; white-space: nowrap; }
.check-field input { width: 16px; height: 16px; accent-color: var(--blue); }
.filter-spacer { flex: 1; }
.button { height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.button:active { transform: translateY(1px); }
.button.primary { color: white; background: var(--blue); border-color: var(--blue); }
.button.dark { color: white; background: #282b30; }
.button.secondary { color: #322d12; background: var(--meituan-yellow); }
.button.ghost { color: #555960; background: white; border-color: #dfe1e5; }
.data-card { margin-top: 14px; overflow: hidden; border-radius: 10px; }
.data-toolbar { min-height: 72px; padding: 14px 16px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.data-toolbar h1 { margin: 0; font-size: 16px; }
.data-toolbar p { margin: 5px 0 0; color: #8a8e95; font-size: 12px; }
.channel-tabs { margin-left: auto; padding: 3px; display: flex; border-radius: 7px; background: #f2f3f5; }
.channel-tabs button { padding: 7px 14px; border: 0; border-radius: 5px; background: transparent; color: #6c7077; }
.channel-tabs button.selected { color: var(--blue); background: white; box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1280px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-right: 1px solid #eceef0; border-bottom: 1px solid #eceef0; text-align: left; vertical-align: middle; }
th { background: #f8f8f9; color: #41444a; font-size: 12px; font-weight: 650; white-space: nowrap; }
td { color: #4f535a; font-size: 12px; line-height: 1.55; }
tbody tr:hover td { background: #fbfdff; }
.metric-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.trend.up { color: var(--red); }.trend.down { color: var(--green); }.trend.flat { color: #84888f; }
.pagination { min-height: 58px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: #71757c; }
.page-buttons { display: flex; align-items: center; gap: 8px; }
.page-buttons button { width: 30px; height: 30px; border: 1px solid #dfe1e5; border-radius: 6px; background: white; }
.pagination select { height: 30px; border: 1px solid #dfe1e5; border-radius: 6px; }
.mobile-cards { display: none; }
.empty-state { padding: 70px 20px; text-align: center; color: #878b92; }
.empty-state span { display: block; font-size: 36px; }.empty-state strong { display: block; margin-top: 8px; color: #3f4247; }.empty-state p { margin: 8px 0; }
.icon-button { border: 0; background: transparent; font-size: 22px; }.mobile-only { display: none; }
.sidebar-scrim { display: none; }
dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 90px rgba(20,24,31,.25); }
dialog::backdrop { background: rgba(21,25,32,.45); backdrop-filter: blur(2px); }
dialog form { padding: 22px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-header h2 { margin: 0; font-size: 19px; }.dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.dialog-header > button { border: 0; background: transparent; color: #888; font-size: 25px; }
.column-options { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.column-options label { padding: 11px; border: 1px solid var(--line); border-radius: 7px; }.column-options input { accent-color: var(--blue); }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }
.sync-steps { margin: 22px 0 0; padding: 0; list-style: none; }
.sync-steps li { display: flex; gap: 12px; margin: 15px 0; }.sync-steps li > span { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--meituan-yellow); font-weight: 800; }.sync-steps p { margin: 4px 0 0; color: #6f737a; font-size: 13px; line-height: 1.6; }
.security-note { margin-top: 18px; padding: 12px; border-radius: 8px; background: #f7f8fa; color: #656970; font-size: 12px; line-height: 1.65; }
.sync-login-form { padding: 22px; }
.login-status { margin-top: 20px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border-radius: 8px; background: #f4f7fb; color: #59606a; }
.login-status span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #9aa0a8; }.login-status p { margin: 0; font-size: 13px; }
.login-status.working span { background: var(--meituan-yellow); box-shadow: 0 0 0 5px rgba(255,209,0,.18); }.login-status.success span { background: var(--green); }.login-status.error span { background: var(--red); }
.login-field { display: block; margin-top: 17px; }.login-field > span { display: block; margin-bottom: 7px; color: #4b4f55; font-size: 13px; font-weight: 650; }
.login-field > div { height: 42px; display: flex; align-items: center; overflow: hidden; border: 1px solid #dfe1e5; border-radius: 7px; }.login-field b { padding: 0 12px; border-right: 1px solid var(--line); font-weight: 500; }.login-field input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; }.login-field > div:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,220,.1); }
.send-code { align-self: stretch; padding: 0 13px; border: 0; border-left: 1px solid var(--line); color: var(--blue); background: white; white-space: nowrap; }.send-code:disabled { color: #aaa; cursor: not-allowed; }
.agreement-field { margin-top: 14px; display: flex; align-items: flex-start; gap: 7px; color: #6d7178; font-size: 12px; line-height: 1.5; }.agreement-field input { margin-top: 2px; accent-color: var(--blue); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 11px 18px; transform: translate(-50%, 20px); border-radius: 8px; color: white; background: #25282d; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: 0 10px 35px rgba(0,0,0,.2); }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .mobile-only { display: inline-block; }
  .topbar { height: 60px; padding: 0 14px; gap: 8px; }.brand-name { font-size: 17px; }.brand-mark { width: 30px; height: 30px; }.help-button, .account-name { display: none; }
  .sidebar { top: 60px; width: 248px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 15px 0 45px rgba(0,0,0,.12); }.sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 20; inset: 60px 0 0; background: rgba(20,25,33,.28); }.sidebar-scrim.open { display: block; }
  .main-content { padding: 76px 12px 36px; }
  .sync-banner { align-items: flex-start; }.sync-actions { flex-direction: column; }.sync-copy p { line-height: 1.5; }
  .filter-row { align-items: stretch; }.filter-label { width: 100%; }.filter-spacer { display: none; }.date-field { width: 100%; justify-content: center; }.date-field input { flex: 1; min-width: 0; }.select-label, .search-field { width: 100%; }.select-label select { flex: 1; }
  .table-scroll { display: none; }.mobile-cards { display: grid; padding: 12px; gap: 10px; background: #f7f8fa; }
  .mobile-data-card { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
  .mobile-card-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #eff0f2; }.mobile-card-head strong { display: block; }.mobile-card-head span { color: #8a8e95; font-size: 12px; }.mobile-channel { padding: 3px 7px; height: fit-content; border-radius: 4px; color: var(--blue) !important; background: var(--blue-soft); }
  .mobile-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 10px; padding: 13px 0; }.mobile-metrics label { display: block; color: #8a8e95; font-size: 11px; }.mobile-metrics b { display: block; margin-top: 4px; color: #33363b; font-size: 14px; }
  .mobile-meta { display: flex; justify-content: space-between; gap: 8px; color: #858990; font-size: 11px; overflow-wrap: anywhere; }.mobile-meta span:last-child { text-align: right; }
  .pagination { justify-content: space-between; }.pagination > span { display: none; }
}

@media (max-width: 520px) {
  .sync-banner { display: block; }.sync-actions { margin: 13px 0 0; flex-direction: row; }.sync-actions .button { flex: 1; }
  .check-field { flex: 1 0 28%; }.filter-panel { padding: 13px; }.channel-tabs button { padding-inline: 10px; }
  .column-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
