body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue";
  background: #f4f6f9;
  color: #333;
}

#container {
  display: flex;
  flex-direction: column;
  padding-bottom: 56px;
}

.header {
  padding: 20px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
}

.header h1 {
  margin: 0;
  font-size: 22px;
}

.header p {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.8;
}

.stock-list {
  padding: 12px;
}

/* 股票卡片 */
.stock-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  transition: transform .15s ease;
}

.stock-card:active {
  transform: scale(0.97);
}

/* 左侧 */
.left .name {
  font-size: 16px;
  font-weight: 600;
}

.left .code {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* 中间市场标签 */
.center {
  flex: 1;
  text-align: center;
}

.market {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.market.us { background: #e3f2fd; color: #1976d2; }
.market.hk { background: #fce4ec; color: #c2185b; }
.market.jp { background: #e8f5e9; color: #2e7d32; }
.market.uk { background: #ede7f6; color: #5e35b1; }
.market.de { background: #fff3e0; color: #ef6c00; }

/* 右侧行情 */
.right {
  text-align: right;
  min-width: 80px;
}

.price {
  font-size: 16px;
  font-weight: 600;
}

.change {
  font-size: 13px;
  margin-top: 4px;
}

.up {
  color: #e53935;
}

.down {
  color: #2ecc71;
}

/* 详情页头部 */
.detail-header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 20px;
  border-radius: 0 0 16px 16px;
}

.detail-header .title h2 {
  margin: 0;
  font-size: 22px;
}

.detail-header .title span {
  font-size: 13px;
  opacity: 0.8;
}

.price-box {
  margin-top: 12px;
}

.price {
  font-size: 28px;
  font-weight: 700;
}

.change {
  font-size: 14px;
  margin-top: 4px;
}

.change.up { color: #ff5252; }
.change.down { color: #4caf50; }

/* 内容区块 */
.section {
  background: #fff;
  margin: 14px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.section h3 {
  margin-top: 0;
  font-size: 16px;
}

.info p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
/* 底部固定导航栏 - TradingView 风格 */
.tv-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #0b0f19;
  border-top: 1px solid #1f2a38;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
}

/* 单个导航项 */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #bbb;
  cursor: pointer;
}

.nav-item span {
  margin-top: 4px;
  font-size: 11px;
}

.nav-item:active {
  color: #26a69a;
}

/* 禁用（占位） */
.nav-item.disabled {
  opacity: 0.4;
  cursor: default;
}

/* 给页面内容留出底部空间，防止被挡 */
body.dark {
  padding-bottom: 70px;
}
