/* Yanflows 电脑版：左侧导航 + 宽内容区，页面分栏、列表多列。只在 <html class="pc"> 时生效（index.html 按设备识别，
   「我的 → 外观 → 版式」可以手动选）；手机版不受影响。颜色全用 app.css 的变量，浅色 / 暗色、中英文自动跟着。 */

html.pc { --sb: 232px; }
html.pc body { min-width: 900px; }
html.pc #app { max-width: none; margin: 0; padding-left: var(--sb); }
html.pc #view { max-width: 1360px; margin: 0 auto; padding: 0 16px 56px; }
html.pc body.has-navbar #view { padding-bottom: 96px; }

/* ---------- 左侧导航（就是手机版底部那一排，换个排法） ---------- */
html.pc #tabs { left: 0; top: 0; bottom: 0; transform: none; width: var(--sb); height: auto; border-radius: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 12px 16px; overflow-y: auto;
  box-shadow: none; border-right: 1px solid var(--line); scrollbar-width: thin; }
html.pc #tabs > a[data-tab] { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; height: 42px; padding: 0 12px;
  border-radius: 12px; font-size: 14px; font-weight: 500; }
html.pc #tabs > a[data-tab]:hover { background: rgba(255,255,255,.06); color: var(--nav-on); }
html.pc #tabs > a[data-tab].on { background: rgba(255,255,255,.1); }
html.pc #tabs svg { width: 20px; height: 20px; }
html.pc #tabs .sb-brand { display: flex; flex-direction: row; justify-content: flex-start; flex: none; align-items: center; gap: 10px; height: 44px; padding: 0 10px; margin-bottom: 14px; text-decoration: none;
  color: var(--nav-on); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .01em; }
html.pc #tabs .sb-brand img { width: 28px; height: 28px; }
html.pc #tabs .sb-sub:not(.on) { display: none; }
html.pc #tabs .sb-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 32px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); }
html.pc #tabs .sb-sub a { height: 32px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 0 10px; border-radius: 9px; font-size: 13px; color: var(--nav-off); text-decoration: none; }
html.pc #tabs .sb-sub a:hover { color: var(--nav-on); background: rgba(255,255,255,.06); }
html.pc #tabs .sb-sub a.on { color: var(--nav-on); background: rgba(255,255,255,.1); font-weight: 600; }
html.pc #tabs .sb-tools { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
html.pc #tabs .sb-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.07); }
html.pc #tabs .sb-seg button { flex: 1; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--nav-off); font-size: 13px; }
html.pc #tabs .sb-seg button:hover { color: var(--nav-on); }
html.pc #tabs .sb-seg button.on { background: rgba(255,255,255,.14); color: var(--nav-on); font-weight: 700; }
html.pc #tabs .sb-m { height: 30px; border: none; background: transparent; color: var(--nav-off); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
html.pc #tabs .sb-m:hover { color: var(--nav-on); }

/* ---------- 顶部标题、浮层 ---------- */
html.pc .top { padding: 28px 20px 16px; }
html.pc .top h1 { font-size: 30px; }
html.pc #toast { left: calc(50% + var(--sb) / 2); bottom: 28px; }
html.pc .new-pill { left: calc(50% + var(--sb) / 2); top: 16px; }
html.pc #sheet { align-items: center; padding: 24px; }
html.pc #sheet .panel { max-width: 580px; border-radius: 22px; max-height: 84vh; padding: 22px 24px 24px; box-shadow: var(--shadow-md); }
html.pc #sheet .coin-picks { max-height: 52vh; }
html.pc #navbar { left: calc(50% + var(--sb) / 2); bottom: 20px; width: 460px; }

/* 鼠标：可点的卡片、行有悬停效果 */
html.pc a.card:hover, html.pc .card[data-act]:hover, html.pc a.row:hover, html.pc .wrow:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
html.pc .chip:hover { border-color: var(--muted); }
html.pc .chip.on:hover { border-color: var(--ink); }
html.pc .chips.scroll { flex-wrap: wrap; overflow: visible; }

/* ---------- 分栏 ---------- */
html.pc .pc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 8px; align-items: start; }
html.pc .pc-cols.wide-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html.pc .pc-cols.side-l { grid-template-columns: 380px minmax(0, 1fr); }
html.pc .pc-b.sticky { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 12px; }
html.pc .pc-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; align-items: start; }
html.pc .pc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; align-items: start; }
html.pc .pc-span { grid-column: 1 / -1; }

/* 列表多列（g2 / g3）：卡片按行排；「更多」、空提示、分隔占满一行 */
html.pc .list.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
html.pc .list.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
html.pc .list.g2 > .empty, html.pc .list.g3 > .empty, html.pc .list.g2 > .cst-more, html.pc .list.g3 > .cst-more,
html.pc .list.g2 > .opens-h, html.pc .list.g2 > .small, html.pc .list.g3 > .small, html.pc .list.g2 > .box, html.pc .list.g2 > .ad { grid-column: 1 / -1; }
html.pc .list.g2 > .card.empty { grid-column: 1 / -1; }

/* 侧栏小卡片 */
html.pc .side-card { margin: 0 20px 14px; }
html.pc .side-card .sig { padding: 10px 12px; }
html.pc .side-card .sig .tile { width: 36px; height: 36px; font-size: 12px; border-radius: 12px; }
html.pc .side-list { display: flex; flex-direction: column; gap: 8px; }
html.pc .side-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
html.pc .side-sub a { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--soft); color: var(--ink); text-decoration: none; }
html.pc .side-sub a:hover { background: var(--mint); color: var(--mint-ink); }

/* ---------- 发现 ---------- */
html.pc .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.pc .tiles a { min-height: 112px; padding: 18px; }
html.pc .tiles a b { font-size: 16px; }
html.pc .tiles a:hover { filter: brightness(.97); }
html.pc[data-theme="dark"] .tiles a:hover { filter: brightness(1.12); }
html.pc .search { max-width: 640px; }

/* ---------- 钱包详情 ---------- */
html.pc .wd-head .alias { font-size: 36px; }
html.pc .curve svg { height: 150px; }
html.pc .xd .chart svg.c { height: 170px; }
html.pc .xd .chart svg.b { height: 84px; }
html.pc .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.pc .acc { margin: 0 20px; }
html.pc .basis-tabs { max-width: 520px; }

/* ---------- 品种最佳 → 钱包（K 线大一些） ---------- */
html.pc .kvs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.pc .pc-b .kvs { grid-template-columns: 1fr 1fr; }
html.pc .tbox { padding: 12px 10px 14px; }

/* ---------- 持仓共识：展开后多头 / 空头左右并排 ---------- */
html.pc .det[data-coin]:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px !important; }
html.pc .det[data-coin]:not([hidden]) > .small:only-child { grid-column: 1 / -1; }
html.pc .cons-row { min-height: 50px; }
html.pc .cons-row .c { width: 96px; }
html.pc .cons-row .t { width: 76px; }

/* ---------- 关注：自选品种三列 ---------- */
html.pc #wlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.pc #wlist > .empty { grid-column: 1 / -1; }
html.pc .wspark { width: 96px; flex-basis: 96px; height: 34px; }
html.pc .follow-tabs, html.pc .pc-narrow { max-width: 520px; }

/* ---------- 登录 / 注册：居中一块 ---------- */
html.pc .auth-wrap { max-width: 480px; margin: 32px auto 0; }

/* ---------- 共振提醒：卡片两列 ---------- */
html.pc #res-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
html.pc #res-list > .empty { grid-column: 1 / -1; }

/* 宽屏：信号侧栏、详情右栏再宽一点 */
@media (min-width: 1500px) {
  html.pc .pc-cols { grid-template-columns: minmax(0, 1fr) 440px; }
  html.pc #res-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.pc .list.g2.g3w { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 共振提醒：电脑版点开是居中的大弹窗（左 K 线，右持仓共识 + 参与的钱包） ---------- */
html.pc #sheet .panel.res-modal { max-width: min(1180px, calc(100vw - var(--sb) - 48px)); width: 100%; max-height: 90vh; padding: 22px 26px 26px; gap: 10px; margin-left: var(--sb); }
html.pc .res-modal .rm-head { display: flex; align-items: flex-start; gap: 16px; }
html.pc .res-modal .rm-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
html.pc .res-modal .rm-sum > div:nth-child(2) > span:first-child { font-size: 30px !important; }
html.pc .res-modal .rm-perf > * { padding: 0 !important; }
html.pc .res-modal .rm-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
html.pc .res-modal .rm-side { max-height: calc(90vh - 210px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
html.pc .res-modal .rm-side .row:hover { background: var(--soft); border-radius: 10px; }
html.pc .res-modal .akl-pts { max-height: 200px; overflow-y: auto; }
html.pc .res-modal .tchart .ax { font-size: 11px; }
html.pc .res-modal .icon-btn { flex: none; }
html.pc #res-list .card > button[data-act="toggle"]:hover { background: var(--soft); border-radius: 18px 18px 0 0; }

html.pc .subnav { display: none; }   /* PC：侧栏里有子页面，页面顶上的切换条不显示 */
html.pc #tabs .sb-lang { height: 34px; border: none; border-radius: 11px; padding: 0 10px; background: rgba(255,255,255,.07); color: var(--nav-on); font-size: 13px; }
html.pc #tabs .sb-lang option { color: #111; }
