    :root {
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --primary-light: #eff6ff;
      --bg-page: #f8fafc;
      --bg-card: #ffffff;
      --border-color: #e2e8f0;
      --border-dark: #cbd5e1;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --text-sub: #475569;
      --danger: #ef4444;
      --success: #10b981;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      overflow: hidden; /* 防止整页滚动，固定住顶部控制栏和列表 */
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--bg-page);
      color: var(--text-main);
      line-height: 1.5;
      padding: 16px 20px;
    }

    .container {
      max-width: 1200px;
      height: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    /* 顶部控制栏 (无底框、紧凑横排) */
    .top-bar {
      background: transparent;
      padding: 2px 0;
      border: none;
      box-shadow: none;
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      overflow-x: auto;
      flex-shrink: 0;
    }

    .top-bar-left {
      display: contents;
    }

    .top-bar-right { display: contents; }

    .app-title {
      font-size: 18px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
    }

    .date-selector-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .date-label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-sub);
    }

    select.date-select {
      appearance: none;
      background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
      background-size: 14px;
      padding: 7px 32px 7px 12px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-main);
      border: 1px solid var(--border-dark);
      border-radius: 8px;
      outline: none;
      cursor: pointer;
      transition: all 0.2s;
    }

    select.date-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    }

    /* 过滤项组件通用样式 */
    .filter-group {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--bg-card);
      padding: 3px 6px;
      height: 32px;
      box-sizing: border-box;
      border-radius: 6px;
      border: 1px solid var(--border-color);
      white-space: nowrap;
    }

    .filter-label {
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-sub);
      display: inline-flex;
      align-items: center;
      gap: 2px;
      white-space: nowrap;
    }

    select.filter-select {
      appearance: none;
      background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 5px center;
      background-size: 10px;
      padding: 2px 16px 2px 6px;
      height: 24px;
      box-sizing: border-box;
      font-size: 12.5px;
      font-weight: 500;
      color: var(--text-main);
      border: 1px solid var(--border-dark);
      border-radius: 4px;
      outline: none;
      cursor: pointer;
      transition: all 0.2s;
    }

    select.filter-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
    }

    select.filter-select.op-select {
      font-size: 13px;
      font-weight: 700;
      width: 44px;
      text-align: center;
      padding-right: 14px;
    }

    select.filter-select.val-select {
      width: 62px;
    }

    select.filter-select.district-select {
      min-width: 76px;
    }

    select.filter-select.date-select {
      width: 90px;
    }

    select.filter-select.date-select.has-selection { width: 215px; }
    select.filter-select.source-select { width: 64px; padding-left: 2px; }

    .search-box {
      position: relative;
      display: flex;
      align-items: center;
      flex: 1 1 150px;
      min-width: min(150px, 100%);
      max-width: 200px;
    }

    .search-input {
      padding: 4px 8px 4px 26px;
      height: 32px;
      box-sizing: border-box;
      font-size: 12.5px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      width: 100%;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    }

    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 13px;
      pointer-events: none;
    }

    .badge-count {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* 上部列表面板 */
    .panel {
      background: var(--bg-card);
      border-radius: 12px;
      border: 1px solid var(--border-color);
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .panel-header {
      padding: 12px 18px;
      background: #f1f5f9;
      border-bottom: 1px solid var(--border-color);
      font-size: 14px;
      font-weight: 600;
      color: var(--text-sub);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* 6行高度滚动表格容器 (表头42px + 6行*42px = 294px) */
    .table-scroll-container {
      height: 294px;
      overflow-y: auto;
      position: relative;
    }

    table.data-table {
      width: 100%;
      table-layout: fixed; /* 固定列宽排版，防止自动拉伸导致过大间隔 */
      border-collapse: collapse;
      text-align: left;
      font-size: 13.5px;
    }

    table.data-table thead {
      position: sticky;
      top: 0;
      background: #f8fafc;
      z-index: 10;
      box-shadow: 0 1px 0 var(--border-color);
    }

    table.data-table th {
      padding: 8px 12px;
      height: 42px;
      box-sizing: border-box;
      font-weight: 600;
      color: var(--text-sub);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      border-bottom: 1px solid var(--border-color);
    }

    table.data-table tbody tr {
      cursor: pointer;
      transition: background 0.15s ease;
      border-bottom: 1px solid var(--border-color);
      height: 42px;
      box-sizing: border-box;
    }

    table.data-table tbody tr:hover {
      background-color: #f1f5f9;
    }

    table.data-table tbody tr.active-row {
      background-color: var(--primary-light) !important;
      font-weight: 500;
      border-left: 4px solid var(--primary);
    }

    table.data-table td {
      padding: 6px 12px;
      height: 42px;
      box-sizing: border-box;
      vertical-align: middle;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .td-title {
      font-weight: 600;
      color: var(--text-main);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .source-tag {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      padding: 1px 5px;
      border-radius: 4px;
      margin-right: 4px;
      vertical-align: middle;
      line-height: 1.2;
    }
    .source-xc8866 {
      background: #eff6ff;
      color: #2563eb;
      border: 1px solid #bfdbfe;
    }
    .source-qmpcf1 {
      background: #fdf2f8;
      color: #db2777;
      border: 1px solid #fbcfe8;
    }
    .source-shenzhenls {
      background: #f0fdf4;
      color: #16a34a;
      border: 1px solid #bbf7d0;
    }
    .source-qm3699 {
      background: #fffbeb;
      color: #d97706;
      border: 1px solid #fde68a;
    }

    .td-price {
      font-weight: 500;
      color: var(--text-main);
    }

    .td-time {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      color: var(--text-sub);
      font-size: 13px;
    }

    .td-region {
      white-space: nowrap;
      color: var(--text-sub);
    }

    .td-service, .td-summary {
      max-width: 220px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--text-sub);
    }

    .td-contact {
      max-width: 180px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 12.5px;
    }

    .link-btn {
      color: var(--primary);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .link-btn:hover {
      text-decoration: underline;
    }

    @import "./detail.css";

    /* 滚动条优化 */
    .table-scroll-container::-webkit-scrollbar, .detail-container::-webkit-scrollbar { width: 6px; height: 6px; }
    .table-scroll-container::-webkit-scrollbar-thumb, .detail-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    .table-scroll-container::-webkit-scrollbar-thumb:hover, .detail-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
