* { box-sizing: border-box; }
:root {
  --bg: #f5f7fa;
  --surface: #fff;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ec;
  --green: #11724e;
  --green-2: #0d573d;
  --red: #c2413a;
  --blue: #255fa8;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
.header {
  background: #152235;
  color: #fff;
  border-bottom: 6px solid var(--green);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 178px;
  padding: 32px 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}
.eyebrow { color: #bdeed8; font-weight: 700; margin-bottom: 8px; }
h1 { margin: 0; font-size: 38px; line-height: 1.1; letter-spacing: 0; }
.header p { margin: 14px 0 0; color: #c7d2df; max-width: 760px; line-height: 1.7; }
.header-meta { display: grid; gap: 8px; text-align: right; color: #d9e3ef; white-space: nowrap; }
.layout { max-width: 1240px; margin: 0 auto; padding: 18px 22px 36px; }
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search, .select, .btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}
.search { flex: 1; min-width: 260px; }
.select { width: 150px; }
.btn { cursor: pointer; font-weight: 700; color: var(--ink); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 6px; font-size: 26px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-head {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
h2 { margin: 0; font-size: 15px; }
.panel-head span, .panel-head a { color: var(--muted); text-decoration: none; font-size: 12px; }
.table-wrap { overflow: auto; max-height: 820px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th { position: sticky; top: 0; background: #f8fafc; color: var(--muted); font-size: 12px; z-index: 1; }
td.model { font-weight: 800; }
td.price { color: var(--green); font-weight: 900; font-size: 17px; }
td.muted { color: var(--muted); }
td.note {
  color: var(--muted);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side { display: grid; gap: 14px; }
.quote-image {
  width: 100%;
  display: block;
  background: #f8fafc;
}
.trend-list { display: grid; gap: 8px; padding: 14px; }
.trend-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}
.trend-item strong { font-size: 13px; }
.trend-item span { color: var(--muted); }
.up { color: var(--green); font-weight: 800; }
.down { color: var(--red); font-weight: 800; }
.notice {
  border-left: 4px solid var(--green);
  background: #eef8f3;
  padding: 14px 16px;
  border-radius: 7px;
  line-height: 1.7;
}
.notice p { margin: 7px 0 0; color: #345044; }
@media (max-width: 960px) {
  .header-inner { display: block; min-height: 0; }
  .header-meta { text-align: left; margin-top: 16px; }
  .content-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .header { border-bottom-width: 4px; }
  .header-inner {
    padding: 22px 16px 18px;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 7px;
  }
  h1 {
    font-size: 26px;
    word-break: keep-all;
  }
  .header p {
    margin-top: 10px;
    line-height: 1.55;
    font-size: 13px;
  }
  .header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .header-meta span {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255,255,255,.06);
  }
  .layout {
    padding: 12px 10px 28px;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .search {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
  .select,
  .btn {
    width: 100%;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }
  .stat {
    min-width: 0;
    padding: 10px 7px;
    text-align: center;
  }
  .stat span {
    font-size: 11px;
    white-space: nowrap;
  }
  .stat strong {
    font-size: 20px;
    margin-top: 4px;
  }
  .content-grid,
  .side {
    gap: 10px;
  }
  .panel {
    border-radius: 7px;
  }
  .panel-head {
    height: 46px;
    padding: 0 12px;
  }
  .table-wrap {
    max-height: none;
    overflow: visible;
    background: #f5f7fa;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }
  td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 11px;
    border-bottom: 1px solid #edf1f6;
    white-space: normal;
    line-height: 1.45;
  }
  td:last-child {
    border-bottom: 0;
  }
  td::before {
    content: attr(data-label);
    flex: 0 0 64px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  td.model {
    display: block;
    padding: 11px 12px;
    background: #f8fafc;
    font-size: 15px;
  }
  td.model::before {
    display: none;
  }
  td.price {
    font-size: 20px;
  }
  td.note {
    max-width: none;
    overflow: visible;
    text-overflow: initial;
    word-break: break-word;
  }
  .quote-image {
    max-height: 520px;
    object-fit: contain;
  }
  .trend-list {
    padding: 10px;
    gap: 7px;
  }
  .trend-item {
    padding: 9px;
  }
  .notice {
    padding: 12px;
  }
}

@media (max-width: 390px) {
  h1 { font-size: 24px; }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
}
