:root {
  color-scheme: light;
  --bg: #f4f1e9;
  --ink: #22201c;
  --muted: #706a60;
  --panel: #fffdf8;
  --line: #ded6c7;
  --gold: #c89a2f;
  --gold-dark: #8d6620;
  --green: #167a4a;
  --red: #b74035;
  --blue: #285d7d;
  --shadow: 0 18px 50px rgba(66, 51, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(244, 241, 233, 0.96)),
    url("https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?auto=format&fit=crop&w=1800&q=80");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.topbar {
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 12px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 9vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: #4c463d;
  font-size: 15px;
  line-height: 1.65;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.actions button,
.import-btn {
  min-width: 96px;
  border: 1px solid rgba(34, 32, 28, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

.actions button:hover,
.import-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.import-btn input {
  display: none;
}

.status-strip,
.price-grid,
.content-grid {
  display: grid;
  gap: 14px;
}

.status-strip {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.status-strip article,
.price-card,
.panel {
  border: 1px solid rgba(222, 214, 199, 0.88);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.status-strip article {
  padding: 16px 18px;
}

.status-strip span,
.price-card span,
.panel-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.price-grid {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.price-card {
  min-height: 126px;
  padding: 18px;
}

.price-card.secondary {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 6px;
  align-items: start;
  min-height: 148px;
  padding: 20px 18px;
}

.price-card.primary {
  background: linear-gradient(135deg, rgba(38, 32, 21, 0.94), rgba(137, 99, 28, 0.92));
  color: #fff9ea;
}

.price-card.primary span,
.price-card.primary small {
  color: rgba(255, 249, 234, 0.8);
}

.price-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1;
}

.price-card.secondary span {
  grid-column: 1 / -1;
}

.price-card.secondary strong {
  margin: 6px 0 0;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.08;
}

.price-card small {
  color: var(--muted);
  font-size: 14px;
}

.price-card.secondary small {
  align-self: start;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.content-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.panel {
  overflow: hidden;
}

.brand-panel {
  grid-row: span 2;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid rgba(222, 214, 199, 0.7);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

td strong {
  font-size: 18px;
}

.change-up {
  color: var(--red);
  font-weight: 800;
}

.change-down {
  color: var(--green);
  font-weight: 800;
}

.change-flat {
  color: var(--muted);
  font-weight: 800;
}

.news-list,
.signal-list,
.source-list {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.news-item,
.signal-item,
.source-item {
  border: 1px solid rgba(222, 214, 199, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  padding: 14px;
}

.news-item a,
.source-item a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.news-item a:hover,
.source-item a:hover {
  text-decoration: underline;
}

.news-item p,
.signal-item p {
  margin: 8px 0 0;
  color: #514b42;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(200, 154, 47, 0.16);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
}

.empty {
  color: var(--muted);
  padding: 16px 18px;
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: min(100% - 16px, 680px);
    padding-top: 10px;
  }

  .topbar {
    gap: 14px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .summary {
    font-size: 14px;
  }

  .status-strip article,
  .price-card,
  .panel {
    border-radius: 14px;
  }

  .panel-head {
    padding: 14px 16px;
  }

  .panel-head h2 {
    font-size: 17px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  tr {
    border: 1px solid rgba(222, 214, 199, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
    padding: 14px;
  }

  td {
    border: 0;
    padding: 0;
  }

  td + td {
    margin-top: 8px;
  }

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  td strong {
    font-size: 17px;
  }

  .news-list,
  .signal-list,
  .source-list {
    padding: 14px;
  }

  .news-item,
  .signal-item,
  .source-item {
    padding: 13px;
  }
}

@media (min-width: 681px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-height: 190px;
    gap: 28px;
    padding: 34px 0 24px;
  }

  .summary {
    font-size: 18px;
    line-height: 1.7;
  }

  .actions {
    justify-content: flex-end;
  }

  .status-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-grid {
    grid-template-columns: 1.15fr 1.12fr 1.12fr;
  }

  .price-card {
    min-height: 132px;
    padding: 20px;
  }

  .price-card.secondary {
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
    column-gap: 18px;
    row-gap: 8px;
    align-items: end;
    min-height: 156px;
    padding: 24px 22px;
  }

  .price-card.secondary small {
    align-self: center;
    font-size: 15px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  }

  .brand-panel {
    grid-row: span 2;
  }
}
