/* 偏好设置页 /my/settings（scripts/my-settings.mjs 生成；分段按钮 .hx-seg 的样式在 shell.css） */
.op-body{background:var(--bg2)}
html[data-theme=dark] .op-body{background:#0b1016}
.st{--st-card:var(--bg);display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;max-width:1240px;margin:0 auto;font-family:var(--hx-font);color:var(--fg)}
.st-solo{max-width:880px}
.st-side{flex:1 1 220px;max-width:240px;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--st-card);display:flex;flex-direction:column}
.st-side[hidden]{display:none}
.st-side h6{margin:14px 12px 6px;font-size:12px;font-weight:500;color:var(--fg3)}
.st-side h6:first-child{margin-top:6px}
.st-side a,.st-side button{display:flex;align-items:center;min-height:40px;padding:0 12px;border:0;border-radius:9px;background:none;color:var(--fg2);font:inherit;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.st-side a:hover,.st-side button:hover{background:var(--bg2);color:var(--fg)}
.st-side a.on{background:var(--accent-bg);color:var(--accent);font-weight:600}
.st-main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.st-main h1{margin:4px 0 0;font-size:22px;font-weight:700}
.st-card{background:var(--st-card);border:1px solid var(--line);border-radius:16px;padding:6px 24px}
.st-card[hidden]{display:none}
.st-card h2{margin:16px 0 4px;font-size:16px;font-weight:700}
.st-it{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:10px 0;border-top:1px solid var(--line);box-sizing:border-box}
.st-card h2+.st-it,.st-card h2+.st-off[hidden]+.st-it{border-top:0}
.st-it[hidden]{display:none}
.st-row{cursor:pointer;-webkit-tap-highlight-color:transparent}.st-row.st-off{cursor:not-allowed}
.st-tx{flex:1 1 240px;min-width:0}
.st-lb{display:block;font-size:14.5px}
.st-ds{display:block;margin-top:3px;font-size:12.5px;color:var(--fg2);line-height:1.5}
.st .hx-seg{padding:3px;border-radius:9px}
.st .hx-seg>button,.st .hx-seg>a,.st .hx-seg>span{height:34px;padding:0 14px;font-size:13.5px;border-radius:7px}
.st-smp{display:inline-flex;gap:6px;margin-left:6px;font-variant-numeric:tabular-nums;font-size:12.5px}
.st-smp i{font-style:normal}.st-smp .r{color:#d92d20}.st-smp .g{color:#0f8a47}
html[data-theme=dark] .st-smp .r{color:#f0565a}html[data-theme=dark] .st-smp .g{color:#2fc088}
/* 涨跌颜色三选一（按市场 / 全部红涨绿跌 / 全部绿涨红跌，Settings.dc.html）：三张一样大的卡片，名称、示例数字、「默认」标签；选中的描一圈主色 */
.st-ud{padding-bottom:16px}
.st .st-ud .hx-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;box-sizing:border-box;padding:0;background:none}
.st .st-ud .hx-seg>button{height:auto;min-height:96px;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;padding:14px;border-radius:14px;background:var(--st-card);box-shadow:0 0 0 1px var(--line);color:var(--fg);white-space:normal;text-align:left;line-height:1.4;font-size:13px}
.st .st-ud .hx-seg>button:hover{box-shadow:0 0 0 1px var(--accent)}
.st .st-ud .hx-seg>button[aria-pressed=true]{background:var(--st-card);box-shadow:0 0 0 2px var(--accent);font-weight:400}
html[data-theme=dark] .st .st-ud .hx-seg>button[aria-pressed=true]{background:var(--st-card);box-shadow:0 0 0 2px var(--accent)}
.st-ud .hx-seg>button b{font-size:14px;font-weight:700}
.st-ud .st-smp{margin-left:0;gap:10px;font-size:13px}
.st-def{font-size:12px;color:var(--accent);font-weight:500}
/* 开关：checkbox（role=switch）和 AI 输入条的按钮（aria-pressed）同一个样子 */
.st-sw{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:44px;height:26px;margin:0;padding:0;border:0;border-radius:13px;background:var(--line);cursor:pointer;transition:background .15s;font-size:0;color:transparent}
html[data-theme=dark] .st-sw{background:#2d3848}
.st-sw:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.st-sw:checked,.st-swb[aria-pressed=true]{background:var(--accent)}
.st-sw:checked:after,.st-swb[aria-pressed=true]:after{left:21px}
.st-sw:focus-visible,.st-btn:focus-visible,.st-side :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* 触屏上开关的可点范围不小于 44px */
.st-sw:before{content:"";position:absolute;inset:-9px -4px}   /* 可点范围 44px 高，外观仍是 26px 的开关 */
.st-btns{display:inline-flex;gap:8px;flex-wrap:wrap}.st-btn[hidden]{display:none}
.st-btn{height:36px;padding:0 16px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--fg);font:inherit;font-size:13.5px;cursor:pointer}
.st-btn:hover{border-color:var(--accent);color:var(--accent)}
.st-btn:disabled{opacity:.5;cursor:default}
.st kbd{font:500 13px var(--hx-font);font-variant-numeric:tabular-nums;padding:4px 10px;border-radius:7px;background:var(--bg2);color:var(--fg2);border:1px solid var(--line)}
.st-note{margin:0 4px;font-size:12.5px;color:var(--fg3)}
@media(max-width:760px){
  .st{gap:12px}
  .st-side{max-width:none;flex-basis:100%;flex-direction:row;flex-wrap:wrap;gap:4px;padding:8px}
  .st-side h6{display:none}
  .st-side a,.st-side button{min-height:44px;font-size:13.5px}
  .st-card{padding:4px 16px}
  .st-main h1{font-size:20px}
  .st-kb{display:none}
  .st .hx-seg>button,.st .hx-seg>a,.st .hx-seg>span{height:40px;padding:0 12px}
  /* 涨跌颜色：手机上一张卡一行 */
  .st .st-ud .hx-seg{grid-template-columns:1fr}
  .st .st-ud .hx-seg>button{min-height:64px;padding:12px 14px}
  .st-smp{margin-left:0}
}
.st-it.st-off .st-lb{color:var(--fg3)}.st-it.st-off input{opacity:.45;cursor:not-allowed}
html[data-theme=dark] .st-sw:checked,html[data-theme=dark] .st-swb[aria-pressed=true]{background:var(--accent)}
.st-off{margin:8px 0 0;padding:12px 16px;border-radius:12px;background:var(--bg2);color:var(--fg2);font-size:13px}
.st-off[hidden]{display:none}
/* 套进个人中心：卡片和 /my 其他页面同一套圆角、边框、内边距 */
.my .st-card{padding:20px 24px;border-color:var(--my-line);border-radius:18px}
.my .st-card h2{margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.4}
.my .st-it:last-child{padding-bottom:0;min-height:54px}
@media(max-width:760px){.my .st-card{padding:16px}}
/* 头像、FXH 号、注册 ID 在个人资料 /my/profile（样式在 my.css 的 .pf-*） */
