body {
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  margin: 0;
  background: #f7f7f8;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 16px;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.small {
  color: #666;
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  vertical-align: top;
}

th {
  text-align: left;
  color: #333;
  font-weight: 600;
  background: #fafafa;
  position: sticky;
  top: 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 12px;
}

.badge.up {
  background: #ffecec;
}

.badge.down {
  background: #ecf7ff;
}

.hl {
  background: #fff6d6; /* 今日持仓和昨日不同 */
}

.num {
  font-variant-numeric: tabular-nums;
}

.right {
  text-align: right;
}

footer {
  margin-top: 10px;
  color: #999;
  font-size: 12px;
}

a {
  color: #1677ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

input, select, textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  width: 520px;
  min-height: 70px;
}

button {
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #444;
}

button.danger {
  background: #d4380d;
}

.msg {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #135200;
  margin-bottom: 12px;
}

.err {
  background: #fff2f0;
  border-color: #ffccc7;
  color: #a8071a;
}

/* 板块分区行：移动端/微信浏览器可能会覆盖颜色，使用更强选择器 */
.sector-row td {
  background: #f0f5ff;
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
  font-weight: 700;
  border-bottom: 1px solid #d6e4ff;
}

.sector-row td * {
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
}

.sector-row td .meta {
  font-weight: 400;
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
  margin-left: 10px;
}

.sector-row td .meta.small {
  font-size: 12px;
}

.sector-name {
  color: #10239e !important;
  -webkit-text-fill-color: #10239e !important;
}

/* 标题上方的圆形头像 */
.avatar-top {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #ddd;
  background-image: url("/assets/avatar.png"); /* 你的头像路径 */
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
  margin-bottom: 10px;
}

/* 顶部图片 */
.hero {
  width: 100%;
  margin-bottom: 12px;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* 联系方式按钮 */
.contact-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #ddd;
  font-weight: 700;
}

.btn-link:hover {
  opacity: 0.9;
}

/* 汇总区放大 */
.stats-row .badge-big {
  padding: 12px 14px;
}

.stats-row .badge-big .num {
  font-size: 28px; /* 放大总持仓/总涨跌/加权涨跌 */
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* 表格：基金分涨跌（实时涨跌、当日预估盈亏）放大+加粗+红涨绿跌 */
td.chg {
  font-size: 18px;   /* 放大 */
  font-weight: 800;  /* 加粗 */
}

td.chg.chg-up{
  color:#d40000 !important;
  -webkit-text-fill-color:#d40000 !important;
  font-weight:800;
  font-size:18px;
}
td.chg.chg-down{
  color:#0a8a0a !important;
  -webkit-text-fill-color:#0a8a0a !important;
  font-weight:800;
  font-size:18px;
}

.up {
  color: #d40000;
}

.down {
  color: #0a8a0a;
}

/* 顶部：左图右信息（替代原 hero 全宽） */
.hero-split{
  display:flex;
  gap:14px;
  align-items:stretch;
}

/* 左侧图片容器 */
/* 顶部左侧图片：缩小版 */
.hero-left{
  flex: 0 0 160px;     /* 原来 260 → 改成 160 */
  max-width: 180px;
}

.hero-left img{
  width:100%;
  height:100px;        /* 原来 160 → 改成 100 */
  object-fit:cover;
  display:block;
  border-radius:10px;
}


/* 右侧信息区域 */
.hero-right{
  flex:1;
  min-width: 50px;
}

/* 移动端：改成上下排 */
/* 手机端：上下显示（图在上，信息在下） */
/* 手机端：不分左右，上下排列 */
@media (max-width: 768px){
  .hero-split{
    flex-direction: column;
    gap: 10px;
  }

  /* 左右两块都当成“整行” */
  .hero-left,
  .hero-right{
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .hero-left img{
    width: 100%;
    height: 200px;        /* 想更小就 90 / 80 */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .hero-right{
    min-width: 0;
  }
}
