/* 零时科技 m 站基础样式：基准 375px，正文 >=16px，按钮命中区 >=44px（AC1） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;             /* 正文下限 16px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }
.page { padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 16px); }

/* 顶部标题 */
.page-title { font-family: var(--font-serif); font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.card { background: var(--surface); border: 0.5px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 12px; }
.card-title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.card-sub { font-size: 13px; color: var(--ink-2); }

/* 行情分析三 Tab 子导航 */
.subtabs { display: flex; gap: 8px; margin-bottom: 14px; }
.subtab {
  flex: 1; height: 44px;                    /* 命中区 >=44px */
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); border: 0.5px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 15px;
  cursor: pointer; text-decoration: none;
}
.subtab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 列表行 */
.row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 0.5px solid var(--line); }
.row:last-child { border-bottom: none; }
.row-name { font-weight: 500; }
.row-meta { font-size: 13px; color: var(--ink-2); }
.up { color: var(--cinnabar); }   /* A股红涨 */
.down { color: var(--indigo); }   /* 绿跌 */

/* 主行动按钮 */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: var(--r-md);
  background: var(--cinnabar); color: #fff; font-size: 16px; font-weight: 500;
  border: none; width: 100%; cursor: pointer;
}
.btn:active { opacity: .85; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 0.5px solid var(--line); }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; background: var(--surface); border-top: 0.5px solid var(--line);
  z-index: 10;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-3); font-size: 12px;
}
.tab.active { color: var(--cinnabar); }
.tab-icon { width: 22px; height: 22px; border-radius: 6px; background: currentColor; opacity: .55; }
.tab.active .tab-icon { opacity: 1; }

/* 骨架屏 / 空态 / 兜底 */
.skeleton { background: var(--surface-2); border-radius: var(--r-md); height: 64px; margin-bottom: 12px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.empty { text-align: center; color: var(--ink-3); padding: 40px 0; font-size: 15px; }
.error-tip { background: var(--surface-2); border-radius: var(--r-md); padding: 14px; color: var(--ink-2); font-size: 14px; text-align: center; }

/* 支付二维码（W2-D7，内置 js/qrcode.js 本地渲染） */
.qr-box { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 12px 0; }
.qr-img { width: 220px; height: 220px; background: #fff; image-rendering: pixelated; }

/* 行情分析（2026-09-10 改向：行情分析+研报主推） */
.idx-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; }
.idx-chip { flex: 0 0 auto; min-width: 106px; background: var(--surface); border: 0.5px solid var(--line); border-radius: var(--r-md); padding: 8px 10px; }
.idx-name { font-size: 12px; color: var(--ink-2); }
.idx-price { font-weight: 500; }
.ov-line { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.search-box { display: flex; gap: 8px; margin-bottom: 10px; }
.search-box input { flex: 1; min-width: 0; height: 46px; border-radius: var(--r-md); border: 0.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 16px; }
.search-box .btn { flex: 0 0 auto; width: auto; padding: 0 22px; }
.quote-grid { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.q-main { font-size: 28px; font-weight: 600; }
.q-chg { font-size: 15px; }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; margin-bottom: 12px; }
.q-cell { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.kline-wrap { position: relative; background: var(--surface); border: 0.5px solid var(--line); border-radius: var(--r-lg); padding: 6px; margin-bottom: 14px; }
.kline-wrap canvas { display: block; width: 100%; }

/* 研报 */
.rp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px; margin: 10px 0; }
.rp-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.rp-table td { padding: 7px 2px; border-bottom: 0.5px solid var(--line); }
.rp-table td:nth-child(even) { text-align: right; color: var(--ink-2); }
.sig-item { padding: 7px 0; border-bottom: 0.5px dashed var(--line); font-size: 15px; }
.sig-item:last-child { border-bottom: none; }
.rp-note { font-size: 12px; color: var(--ink-3); border-top: 0.5px dashed var(--line); margin-top: 12px; padding-top: 8px; line-height: 1.7; }
