/* ============================================================
   QInEX 配置面板 — Apple iOS / Liquid Glass 设计
   纯换肤:仅样式,DOM 结构 / ID / class / 业务逻辑均不变。
   token + 组件来自 preview-ios.html。
   ============================================================ */

/* ── 思源黑体 SC(Source Han Sans CN, 本地打包 WOFF2)──
   字重范围声明:浏览器据 font-weight 自动选面,500/600 走 Medium,700+ 走 Bold */
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/SourceHanSansCN-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal; font-weight: 500 600; font-display: swap;
    src: url('fonts/SourceHanSansCN-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Han Sans SC';
    font-style: normal; font-weight: 700 900; font-display: swap;
    src: url('fonts/SourceHanSansCN-Bold.woff2') format('woff2');
}

:root{
  /* 玻璃材质 */
  --glass:          rgba(248,249,252,0.62);
  --glass-tint:     rgba(236,242,254,0.60);   /* 属性面板淡蓝玻璃 */
  --glass-hairline: rgba(255,255,255,0.65);
  --glass-edge:     rgba(255,255,255,0.9);
  --glass-shadow:   0 16px 50px -12px rgba(20,24,40,0.42), 0 2px 8px rgba(20,24,40,0.10);
  --sep:            rgba(60,60,67,0.12);
  /* 文本灰阶 */
  --ink:   #1c1c1e;
  --ink-2: rgba(60,60,67,0.62);
  --ink-3: rgba(60,60,67,0.34);
  /* 强调色 — iOS system */
  --blue:      #0a84ff;  --blue-press:#0060df;
  --blue-soft: rgba(10,132,255,0.12);
  --green:  #30d158;
  --orange: #ff9f0a;
  --red:    #ff453a;
  --fill:   rgba(118,118,128,0.12);
  --fill-2: rgba(118,118,128,0.20);
  --radius-lg: 22px;
  --radius:    13px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.32,.72,0,1);
  --font: "Source Han Sans SC", -apple-system, "SF Pro Text", "SF Pro Display",
          system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--font);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    width: 100vw; height: 100vh;
    overflow: hidden;
    background:
      radial-gradient(100% 80% at 15% 0%, rgba(120,150,220,0.18), transparent 50%),
      radial-gradient(90% 90% at 100% 100%, rgba(150,130,210,0.16), transparent 55%),
      linear-gradient(165deg, #20222c 0%, #191b23 60%, #141519 100%);
}
/* 背景噪点纹理层 */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ============ 全屏画布 ============ */
#canvas-container {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    position: absolute; top: 0; left: 0; z-index: 1;
}
#canvas {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 90px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
#canvas.pending { cursor: crosshair; }

/* ============ Liquid Glass 玻璃面板(共享) ============ */
.floating-panel,
.floating-sub-panel,
#propPanel {
    background: var(--glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--glass-hairline);
    box-shadow: var(--glass-shadow);
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* 顶部高光"光边" */
.floating-panel::before,
.floating-sub-panel::before,
#propPanel::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, var(--glass-edge), transparent 22%);
    opacity: .5; mix-blend-mode: screen;
}

/* 悬浮主工具栏 */
.floating-panel {
    top: 22px; left: 22px; width: 300px;
    max-height: calc(100vh - 44px);
    z-index: 100;
    transition: width 0.3s var(--ease);
    animation: rise 0.5s var(--ease) both;
}

/* 子面板(级联浮动) */
.floating-sub-panel {
    top: 22px; left: 338px; width: 320px;
    max-height: calc(100vh - 44px);
    z-index: 101;
    animation: pop 0.42s var(--ease) both;
}
#subPanel2 { left: 670px; }

@keyframes rise { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: translateY(8px) scale(.97); }  to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============ 面板头部 ============ */
.panel-header,
.sub-header,
#propPanel .prop-header {
    position: relative;
    padding: 13px 16px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.02em;
    user-select: none;
}
.panel-header,
.sub-header,
#propPanel .prop-header { cursor: move; }
#propPanel .prop-header { font-size: 14px; }
.sub-header > span:first-child,
#propPanel .prop-header > span:first-child { flex: 1; }

/* 折叠 / 关闭圆钮 */
.toggle-btn,
.close-btn {
    width: 26px; height: 26px; flex: 0 0 auto;
    border-radius: 50%;
    background: var(--fill);
    color: var(--ink-2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 15px; line-height: 1;
    padding: 0;
    transition: background .2s, color .2s;
}
.toggle-btn:hover { background: var(--fill-2); color: var(--ink); }
.close-btn:hover  { background: rgba(255,69,58,.16); color: var(--red); }

/* ============ 内容区 ============ */
.panel-content {
    position: relative;
    overflow-y: auto;
    padding: 4px 12px 12px;
    flex: 1;
}
.sub-content {
    position: relative;
    padding: 2px 14px 16px;
    overflow-y: auto; overflow-x: hidden;
    max-height: calc(100vh - 100px);
}

/* 折叠态 */
.panel-collapsed .panel-content { display: none; }
.panel-collapsed { width: 210px; height: auto; }

/* ============ 模块列表(iOS 分组列表) ============ */
.module-list {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,0.5);
    border: 0.5px solid var(--sep);
    border-radius: var(--radius);
    overflow: hidden;
}
.module-btn {
    position: relative;
    display: flex; align-items: center;
    width: 100%;
    text-align: left;
    padding: 11px 14px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s;
}
.module-list .module-btn + .module-btn { border-top: 0.5px solid var(--sep); }
.module-btn::after {
    content: '›';
    margin-left: auto;
    padding-left: 8px;
    color: var(--ink-3);
    font-size: 16px;
    transition: color .15s;
}
.module-btn:hover { background: rgba(10,132,255,0.06); }
.module-btn:active { background: rgba(10,132,255,0.12); }
.module-btn.active {
    background: rgba(10,132,255,0.10);
    color: var(--blue);
    font-weight: 600;
}
.module-btn.active::after { color: var(--blue); }

/* 二级菜单内的级联入口行(advmap):独立圆角卡片 */
.sub-content > .module-btn.full-btn,
#source-advmap > .module-btn {
    background: rgba(255,255,255,0.55);
    border: 0.5px solid var(--sep);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
#source-advmap > .module-btn:hover { background: rgba(10,132,255,0.08); }

/* 三级工具栏(分组展开,若启用) */
.module-btn.module-group { justify-content: space-between; gap: 6px; }
.module-btn.module-group::after { content: none; }
.module-group .grp-arrow { font-size: 11px; opacity: .55; flex: 0 0 auto; }
.module-subgroup {
    display: none; flex-direction: column;
    margin: 6px 0 4px 6px; padding-left: 10px;
    border-left: 2px solid rgba(10,132,255,0.28);
    background: rgba(255,255,255,0.4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    overflow: hidden;
}
.module-btn.sub { font-size: 13px; }

/* ============ 底部操作区 ============ */
.footer-actions {
    display: flex; gap: 10px;
    margin-top: 12px;
}
.action-btn {
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 11px;
    padding: 9px 14px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: transform .12s var(--ease), background .2s, filter .2s;
}
.action-btn:active { transform: scale(.97); }
.primary {
    background: var(--blue); color: #fff;
    box-shadow: 0 4px 14px -4px rgba(10,132,255,.6);
}
.primary:hover { background: var(--blue-press); }
.secondary { background: var(--fill); color: var(--ink); }
.secondary:hover { background: var(--fill-2); }
.action-btn.small {
    height: 30px;
    font-size: 12.5px;
    padding: 0 12px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
}
.action-btn.full-width { width: 100%; flex: none; }

/* Danger */
.danger,
.action-btn.danger {
    background: rgba(255,69,58,.14);
    color: var(--red);
    border: none;
}
.danger:hover,
.action-btn.danger:hover { background: rgba(255,69,58,.22); }

/* ============ 通用按钮 ============ */
button {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    background: var(--fill);
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s var(--ease), background .2s;
}
button:hover { background: var(--fill-2); }
button:active { transform: scale(.97); }

.full-btn { width: 100%; }
.small-btn {
    height: 30px;
    font-size: 12px;
    padding: 0 11px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
}

.btn-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 8px;
}

/* 曲线编辑器小按钮 */
.btn-small {
    padding: 5px 10px;
    background: var(--fill);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.btn-small:hover { background: var(--fill-2); }
.btn-small:active { background: var(--fill-2); }

/* ============ 表单行 ============ */
.info-row, .param-row {
    display: flex; align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 13px;
}
label {
    color: var(--ink-2);
    flex: 1;
    white-space: nowrap;
    margin-right: 4px;
}
.info-row span { white-space: nowrap; }

/* ============ 输入框 / 下拉(统一 30px 行内控件高度) ============ */
/* 注:动态卡片里的 <input class="small-input"> 没有 type 属性,默认即 text,
   故必须带上 input:not([type]),否则属性选择器漏掉它们 → 落回浏览器默认样式 */
input:not([type]),
input[type="text"],
input[type="number"],
input[type="search"],
input[type="tel"],
select {
    height: 30px;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--ink);
    background-color: var(--fill);
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    transition: box-shadow .2s, background-color .2s;
}
input:not([type]):hover,
input[type="text"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
select:hover { background-color: var(--fill-2); }
input:not([type]):focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
select:focus {
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px var(--blue-soft);
}
input::placeholder { color: var(--ink-3); }

/* 去掉数字框原生上下箭头(非 iOS) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* iOS 风下拉:自绘灰色 chevron,去系统箭头 */
select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.75 4.5 6 7.75 9.25 4.5' fill='none' stroke='%233c3c43' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
/* 待选框(WebView2 / Chromium 可控部分) */
select option {
    background: #fff;
    color: var(--ink);
    padding: 8px 10px;
    font-size: 13px;
}
select option:checked { color: var(--blue); font-weight: 600; }

/* 尺寸变体 */
.small-input { width: 64px; text-align: center; }
.mini-select { width: 72px; }
.small-select { width: 96px; }

/* ============ checkbox → iOS 拨动开关 ============ */
input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    position: relative;
    width: 40px; height: 24px;
    flex: 0 0 auto;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: var(--fill-2);
    cursor: pointer;
    vertical-align: middle;
    transition: background .25s var(--ease);
}
input[type="checkbox"]::after {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: transform .25s var(--ease);
}
input[type="checkbox"]:checked { background: var(--green); }
input[type="checkbox"]:checked::after { transform: translateX(16px); }

/* ============ file input ============ */
input[type="file"] {
    max-width: 210px;
    padding: 5px 8px;
    font-size: 11px;
    color: var(--ink-2);
    background-color: var(--fill);
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
}
input[type="file"]::file-selector-button {
    height: 24px; padding: 0 11px; margin-right: 8px;
    font-size: 11px; font-family: inherit;
    color: var(--blue);
    background: var(--blue-soft);
    border: none; border-radius: 7px;
    cursor: pointer; transition: background .2s;
}
input[type="file"]::file-selector-button:hover { background: rgba(10,132,255,.2); }

/* ============ 状态 / 提示 ============ */
#status {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--ink-2);
    text-align: center;
    min-height: 16px;
}
.help-text {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 4px;
    line-height: 1.5;
}

/* iOS 分组小标题(反作弊 / 手柄面板里的 h4) */
.sub-content h4 {
    margin: 14px 2px 8px !important;
    padding: 0 0 7px !important;
    border: none !important;
    border-bottom: 0.5px solid var(--sep) !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.02em;
}

/* ============ details / summary 折叠 ============ */
details {
    margin-bottom: 8px;
    border: 0.5px solid var(--sep);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.45);
    overflow: hidden;
}
summary {
    padding: 11px 13px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    list-style: none;
    user-select: none;
}
summary:hover { background: rgba(10,132,255,0.06); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 600; color: var(--ink-3); }
details[open] summary::after { content: '–'; }
.details-content { padding: 11px 13px; border-top: 0.5px solid var(--sep); }

/* ============ 列表容器 ============ */
.list-container {
    border: 0.5px solid var(--sep) !important;
    border-radius: var(--radius) !important;
    background: rgba(255,255,255,0.4);
    padding: 6px !important;
}
/* 动态卡片的内联样式已在 app.js 里直接写成 iOS 值(浅色玻璃卡),此处无需覆盖 */

/* ============ 组件属性面板 ============ */
#propPanel {
    bottom: 22px; right: 22px;
    width: 270px;
    max-height: calc(100vh - 44px);
    background: var(--glass-tint);
    z-index: 100;
    display: none;
}
#propPanel .prop-content {
    position: relative;
    padding: 10px 12px 12px;
    font-size: 12px;
    overflow-y: auto;
    flex: 1 1 auto;
}
#propPanel .prop-content .param-row { margin-bottom: 7px; }
#propPanel .prop-content input:not([type]),
#propPanel .prop-content input[type="text"],
#propPanel .prop-content input[type="number"],
#propPanel .prop-content select {
    height: 27px; padding: 4px 8px;
    font-size: 12px; border-radius: 7px;
}
#propPanel .prop-content select { padding-right: 26px; background-position: right 8px center; }
#propPanel .prop-content input[type="checkbox"] {
    width: 36px; height: 22px;
}
#propPanel .prop-content input[type="checkbox"]::after {
    width: 18px; height: 18px;
}
#propPanel .prop-content input[type="checkbox"]:checked::after { transform: translateX(14px); }
#propPanel .prop-content label { font-size: 12px; color: var(--ink-2); }
#propPanel .prop-content #pp_accelCurveCanvas {
    width: 100%; height: auto; aspect-ratio: 220 / 140;
}
#propPanel .prop-content .btn-small {
    padding: 4px 9px; font-size: 11px; border-radius: 7px;
}
#propPanel .prop-content .curve-hint {
    font-size: 10px; color: var(--ink-3); line-height: 1.3;
    margin-top: 2px; font-style: italic;
}

/* 紧凑两列网格:8 方向角度 / 半径 */
#propPanel .grid-2 {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px 8px; margin-bottom: 6px;
}
#propPanel .grid-2 .cell { display: flex; align-items: center; gap: 4px; }
#propPanel .grid-2 .cell label { flex: 0 0 auto; width: 28px; margin-right: 0; font-size: 11px; }
#propPanel .grid-2 .cell input.small-input { width: 100%; min-width: 0; padding: 3px 4px; }
#propPanel .section-title {
    margin-top: 6px; padding-top: 6px;
    border-top: 0.5px solid var(--sep);
    font-size: 11px; margin-bottom: 4px; color: var(--ink-2);
}

/* 折叠分组 Accordion */
#propPanel .pp-group {
    border: 0.5px solid var(--sep);
    border-radius: var(--radius-sm);
    margin-bottom: 7px;
    background: rgba(255,255,255,0.34);
    overflow: hidden;
}
#propPanel .pp-group > summary {
    list-style: none; cursor: pointer;
    padding: 9px 11px;
    font-size: 12px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 6px;
    user-select: none;
}
#propPanel .pp-group > summary:hover { background: rgba(10,132,255,0.06); }
#propPanel .pp-group > summary::-webkit-details-marker { display: none; }
#propPanel .pp-group > summary em {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-style: normal; font-weight: 400; font-size: 10px; color: var(--ink-3);
}
#propPanel .pp-group > summary::after {
    content: '▸'; flex: 0 0 auto;
    font-size: 10px; color: var(--ink-3);
    transition: transform .15s;
}
#propPanel .pp-group[open] > summary::after { transform: rotate(90deg); }
#propPanel .pp-group[open] > summary { border-bottom: 0.5px solid var(--sep); }
#propPanel .pp-dot {
    width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.15);
}
#propPanel .pp-group > :not(summary) { margin-left: 11px; margin-right: 11px; }
#propPanel .pp-group > summary + * { margin-top: 8px; }
#propPanel .pp-group > :last-child { margin-bottom: 9px; }
#propPanel .hint-line {
    font-size: 10px; color: var(--ink-3); line-height: 1.35;
    margin-bottom: 5px; font-style: italic;
}

/* ============ 画布提示条 ============ */
#canvasHint {
    position: fixed; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    background: rgba(28,28,30,0.7);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    color: #fff; font-size: 12.5px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.15);
    pointer-events: none; z-index: 200;
    white-space: nowrap;
    opacity: 0; transition: opacity .25s;
}
#canvasHint.visible { opacity: 1; }

/* ============ iOS 自定义下拉(ios-select.js) ============ */
.ios-select {
    height: 30px;
    box-sizing: border-box;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 10px;
    min-width: 64px; max-width: 180px;
    background: var(--fill);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .2s, box-shadow .2s;
}
.ios-select.mini  { min-width: 72px; }
.ios-select.small { min-width: 96px; }
.ios-select:hover { background: var(--fill-2); }
.ios-select.ios-select-open {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px var(--blue-soft);
}
.ios-select.disabled { opacity: .5; pointer-events: none; }
.ios-select-label {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ios-select-chev {
    flex: 0 0 auto; width: 12px; height: 12px;
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}

.ios-select-menu {
    position: fixed; z-index: 9999;
    min-width: 132px; max-height: 320px;
    overflow-y: auto;
    padding: 5px;
    background: rgba(252,252,254,0.86);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 0.5px solid var(--glass-hairline);
    border-radius: var(--radius);
    box-shadow: 0 16px 50px -12px rgba(20,24,40,0.45), 0 2px 8px rgba(20,24,40,0.12);
    opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center;
    transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.ios-select-menu.show { opacity: 1; transform: none; }
.ios-select-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    font-size: 13px; color: var(--ink);
    white-space: nowrap; cursor: pointer;
}
.ios-select-opt:hover { background: rgba(10,132,255,0.10); }
.ios-select-opt.sel { color: var(--blue); font-weight: 600; }
.ios-select-opt.sel::after { content: '✓'; font-size: 13px; line-height: 1; }
.ios-select-opt.disabled { color: var(--ink-3); cursor: default; }
.ios-select-opt.disabled:hover { background: transparent; }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,120,128,0.32); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,120,128,0.5); }
::-webkit-scrollbar-corner { background: transparent; }
