.page {
  min-height: 100vh;
  padding-bottom: 5px;
}

/* ---------- 头部 ---------- */
.hero {
  padding: 8px 14px 10px;
}
.hero-top {
  align-items: flex-start;
}
.h-name {
  font-size: 18px;
  font-weight: 700;
  max-width: 210px;
}
.h-code {
  font-size: 12px;
  color: #8b96a8;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.h-status {
  margin-top: 5px;
  font-size: 11px;
  color: #8b96a8;
}
.h-status .dot {
  background: #5c6675;
  width: 5px;
  height: 5px;
}
.h-status .dot.live {
  background: #0fbf7f;
  box-shadow: 0 0 0 2px rgba(15, 191, 127, 0.18);
}
.h-time {
  margin-left: 6px;
  color: #4a5462;
}

.star {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #5c6675;
}
.star.on {
  color: #ffb020;
  background: rgba(255, 176, 32, 0.12);
}

.price-row {
  display: flex;
  align-items: flex-end;
  margin-top: 7px;
}
.big {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}
.chg-wrap {
  margin-left: 10px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
}
.chg {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.pos-strip {
  margin-top: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(76, 141, 255, 0.08);
  border: 0.5px solid rgba(76, 141, 255, 0.14);
}
.ps-1 {
  font-size: 11.5px;
  color: #9aa6b8;
  margin-right: 8px;
}
.ps-2 {
  font-size: 11.5px;
  font-weight: 600;
}
.t-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 176, 32, 0.12);
}
.t-tag.up { color: #ff4d4f; }
.t-tag.down { color: #0fbf7f; }

/* ---------- 图表 ---------- */
.chart-card {
  margin: 2px 8px 10px;
  background: #111722;
  border-radius: 11px;
  padding: 7px 4px 5px;
  border: 0.5px solid rgba(255, 255, 255, 0.04);
}
.chart-head {
  padding: 0 7px 4px;
}
.seg-mini {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px;
}
.seg-mini-item {
  padding: 4px 11px;
  font-size: 11.5px;
  color: #8b96a8;
  border-radius: 4.5px;
}
.seg-mini-item.on {
  background: #29323f;
  color: #fff;
  font-weight: 600;
}
.mk-toggle {
  display: flex;
  align-items: center;
  font-size: 10.5px;
  color: #5c6675;
  padding: 3px 7px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}
.mk-toggle .mk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3d4653;
  margin-right: 4px;
}
.mk-toggle.on {
  color: #6ea3ff;
  border-color: rgba(76, 141, 255, 0.3);
}
.mk-toggle.on .mk-dot {
  background: #4c8dff;
  box-shadow: 0 0 0 2px rgba(76, 141, 255, 0.16);
}

.chart-box {
  width: 100%;
}
.legend {
  padding: 3px 7px 2px;
  flex-wrap: wrap;
}
.lg {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #8b96a8;
  margin-right: 9px;
}
.lg .sq {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  margin-right: 4px;
}
.lg.muted {
  color: #4a5462;
  margin-left: auto;
}

/* ---------- 数据网格 ---------- */
.card-head {
  margin-bottom: 8px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
}
.grid {
  display: flex;
  flex-wrap: wrap;
}
.g-item {
  width: 33.33%;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.g-k {
  font-size: 10.5px;
  color: #5c6675;
}
.g-v {
  font-size: 13.5px;
  margin-top: 3px;
  color: #e3e9f2;
}

/* ---------- 财报 ---------- */
.fin-scroll {
  white-space: nowrap;
}
.fin-row {
  display: inline-flex;
  padding-bottom: 2px;
}
.fin-item {
  width: 165px;
  margin-right: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #101620;
  border: 0.5px solid rgba(255, 255, 255, 0.04);
  white-space: normal;
}
.fin-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cfd8e3;
  margin-bottom: 7px;
}
.fin-line {
  margin-top: 6px;
}
.fin-k {
  font-size: 10.5px;
  color: #5c6675;
}
.fin-v {
  font-size: 13.5px;
  color: #e3e9f2;
  font-weight: 600;
}
.fin-y {
  font-size: 10.5px;
}
.fin-line2 {
  margin-top: 4px;
}
.fin-v2 {
  font-size: 11.5px;
  color: #c9d3e0;
}

/* ---------- 新闻 ---------- */
.news-item {
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}
.news-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.news-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: #dfe6f0;
}
.news-meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: #5c6675;
}
.dot-s {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3d4653;
  margin: 0 5px;
}

/* ---------- 底部操作条 ---------- */
.bar-space {
  height: 75px;
}
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(11, 14, 20, 0.97);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.act-star {
  width: 75px;
  height: 42px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #8b96a8;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.act-star.on {
  color: #ffb020;
  background: rgba(255, 176, 32, 0.12);
}
.action-bar .btn + .btn {
  margin-left: 8px;
}
.act-lev {
  width: 59px;
  height: 42px;
  border-radius: 9px;
  margin-left: 8px;
  background: rgba(76, 141, 255, 0.14);
  color: #6ea3ff;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.act-lev:active { background: rgba(76, 141, 255, 0.24); }

/* ---------- 下单面板 ---------- */
.mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 990;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #161d28;
  border-radius: 14px 14px 0 0;
  padding: 15px 14px calc(12px + 0px);
  animation: up 0.22s ease-out;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
@keyframes up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-head {
  margin-bottom: 10px;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
}
.sheet-close {
  color: #5c6675;
  font-size: 15px;
  padding: 0 5px;
}
.sheet-row {
  padding: 6px 0;
}
.qty-box {
  margin: 7px 0 3px;
  padding: 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.05);
}
.sub2 {
  font-size: 11px;
  color: #5c6675;
}
.stepper {
  display: flex;
  align-items: center;
  margin-top: 7px;
}
.step {
  width: 44px;
  height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfd8e3;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step:active {
  background: rgba(255, 255, 255, 0.12);
}
.qty-input {
  flex: 1;
  height: 38px;
  margin: 0 7px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 7px;
}
.chips {
  display: flex;
  margin-top: 8px;
}
.chip {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  margin-right: 5px;
  border-radius: 6px;
  font-size: 11px;
  color: #9aa6b8;
  background: rgba(255, 255, 255, 0.05);
}
.chip:last-child {
  margin-right: 0;
}
.chip:active {
  background: rgba(76, 141, 255, 0.2);
  color: #fff;
}
.sum {
  margin-top: 4px;
  padding: 3px 2px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.sheet-tip {
  font-size: 10.5px;
  color: #5c6675;
  padding: 6px 2px 10px;
  line-height: 1.6;
}
