/* ============================================================================
   洛杉矶 · 基座
   重置 / 排版 / 跨端共用的原子组件 / 关键帧。
   PC 与手机两套外壳都建立在这一层之上。
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* hidden 属性必须真的隐藏。
   浏览器默认样式表里的 [hidden]{display:none} 是 UA 样式，优先级低于**任何**
   作者写的 .foo{display:flex}。于是所有"靠 hidden 控制显隐"的元素都会失效：
   巨型菜单在首页一加载就是展开的、把整个首屏盖住，就是这么来的。
   平台的共享控制器（工单列表/详情等）也大量用 hidden，这条一并兜住。 */
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* 主题切换时整页平滑过渡，但不要让每个元素都参与（会掉帧） */
    transition: background-color var(--la-d3) var(--la-e-smooth);
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--la-font);
    font-size: var(--la-t-base);
    line-height: var(--la-lh);
    color: var(--la-ink);
    background: var(--la-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { line-height: var(--la-lh-tight); font-weight: 700; letter-spacing: -.01em; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--la-c1); }

button, input, select, textarea {
    font: inherit;
    color: inherit;
    margin: 0;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }
[disabled] { cursor: not-allowed; }

hr { border: 0; border-top: 1px solid var(--la-line); margin: 0; }

::selection { background: rgba(var(--la-c1-rgb), .22); color: var(--la-ink); }

:focus { outline: none; }

/* 键盘导航的焦点环：只给按钮、链接这类元素。 */
:focus-visible {
    outline: none;
    box-shadow: var(--la-focus);
    border-radius: var(--la-r-xs);
}

/* 文本输入类控件**豁免**这条全局环。
   Chrome 对 input/textarea 的任何聚焦都算 :focus-visible，而它们几乎都嵌在
   搜索胶囊、筛选框这类复合控件里 —— 聚焦态由外层的 :focus-within 负责，
   再在 input 自己身上画一圈 3px 光晕 + 3px 圆角，就是那个"框里还有一个淡色小框"。
   独立的 .la-input 有自己的 :focus 规则（写在后面，同特异性靠顺序覆盖回来）。
   这里**只**收掉 box-shadow，不碰 border-radius：写成 inherit 会让独立输入框
   在聚焦时继承父级的 0 圆角，一点就变直角。 */
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: none; }

/* 滚动条：细、暖、悬停才显形 */
* { scrollbar-width: thin; scrollbar-color: var(--la-ink-4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--la-line-2);
    border: 3px solid transparent;
    border-radius: var(--la-r-pill);
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--la-ink-4); background-clip: content-box; }

/* ---------------------------------------------------------------- 图标 */

.la-i {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.18em;
    display: inline-block;
}

.la-i--lg { width: 1.5em; height: 1.5em; }
.la-i--xl { width: 2em; height: 2em; }

/* ---------------------------------------------------------------- 品牌标记
   一轮落日压在海平线上，纯 CSS 画出来 —— 两端都要用，所以放在基座层，
   不能留在 Pc.css（手机端根本不加载那个文件，会渲染成一个空 span）。 */

/* 落日标记：一轮太阳压在三道海平线上，纯 CSS，无图片 */
.la-logo { display: flex; align-items: center; gap: 10px; flex: none; }

.la-logo__mark {
    position: relative;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 11px;
    background: var(--la-sunset);
    box-shadow: var(--la-sh-brand);
    transition: transform var(--la-d4) var(--la-e-spring);
}

.la-logo:hover .la-logo__mark { transform: rotate(-8deg) scale(1.06); }

.la-logo__mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
}

.la-logo__mark::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 -5px 0 rgba(255, 255, 255, .5);
}

/* 站点 LOGO。后台上传过 LOGO 的站，核心会把它拷成 /favicon.ico，$favicon 就是它
   （分站是商家头像）。有图时把上面那套纯 CSS 图形整个收起来 —— 圆角框留着做统一形状，
   底色去掉，站长的透明 PNG 才不会被垫一块渐变。图片加载失败时 Kit.js 会摘掉 has-img，
   自动退回 CSS 标记，页头永远不会出现一个破图标。 */
.la-logo__mark.has-img { background: var(--la-surface-2); box-shadow: none; overflow: hidden; }
.la-logo__mark.has-img::before, .la-logo__mark.has-img::after { display: none; }
.la-logo__img { display: block; width: 100%; height: 100%; object-fit: contain; }

.la-logo__text { font-weight: 800; letter-spacing: -.02em; color: var(--la-ink); }


/* ---------------------------------------------------------------- 排版工具 */

.la-num {
    font-family: var(--la-font-num);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: -.02em;
}

.la-muted { color: var(--la-ink-2); }
.la-faint { color: var(--la-ink-3); }

.la-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.la-clamp-1, .la-clamp-2, .la-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.la-clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.la-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.la-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* 只给读屏器 */
.la-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 无刷新跳转（Pjax.js）：换页容器不生成盒子，版面跟没有这层时一样；换页后焦点移到正文开头，不画焦点环 */
.la-pjax { display: contents; }
.la-pjax main:focus,
.la-pjax main:focus-visible { outline: none; box-shadow: none; }

/* 换页进度条：超过 150ms 才出现，品牌渐变细线往前爬，到站补满再淡出 */
.la-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--la-z-toast);
    height: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms var(--la-e-out);
}
.la--app .la-progress { top: var(--la-safe-t); }
.la-progress.is-on { opacity: 1; }
.la-progress > i {
    display: block;
    height: 100%;
    border-radius: 0 2px 2px 0;
    background: var(--la-sunset);
    box-shadow: 0 0 8px rgba(var(--la-c1-rgb), .45);
    transform: scaleX(var(--la-progress, 0));
    transform-origin: 0 50%;
    transition: transform 240ms var(--la-e-out);
}

/* 电脑端换页的整页交叉淡化（Pjax.js 写 html[data-la-vt]）：只改时长。
   别自己写 ::view-transition-old/new 的 animation —— 那会连 UA 用来混色的 plus-lighter 一起拿掉，淡切中途整页发白 */
html[data-la-vt="page"]::view-transition-group(root) { animation-duration: 180ms; }

@media (prefers-reduced-motion: reduce) {
    .la-progress > i { transition: none; }
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation-duration: 1ms !important; }
}

/* 品牌渐变文字（标题的点睛处，别滥用） */
.la-grad-text {
    background: var(--la-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- 按钮 */

.la-btn {
    --btn-h: 36px;
    --btn-px: 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border-radius: var(--la-r-pill);
    font-size: var(--la-t-base);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    color: var(--la-ink);
    background: var(--la-surface-2);
    transition: transform var(--la-d1) var(--la-e-out),
    box-shadow var(--la-d2) var(--la-e-smooth),
    background-color var(--la-d2) var(--la-e-smooth),
    border-color var(--la-d2) var(--la-e-smooth),
    color var(--la-d2) var(--la-e-smooth);
}

.la-btn:hover { color: var(--la-ink); background: var(--la-surface-3); }
.la-btn:active { transform: scale(.97); }
.la-btn[disabled], .la-btn.is-disabled { opacity: .5; pointer-events: none; }

.la-btn--sm { --btn-h: 28px; --btn-px: 11px; font-size: var(--la-t-sm); gap: 4px; }
.la-btn--lg { --btn-h: 44px; --btn-px: 26px; font-size: var(--la-t-md); }
.la-btn--xl { --btn-h: 48px; --btn-px: 32px; font-size: var(--la-t-lg); }
.la-btn--block { display: flex; width: 100%; }
.la-btn--square { --btn-px: 0; width: var(--btn-h); border-radius: var(--la-r-md); }

/* 主行动：落日渐变 + 品牌辉光。全页只该有一个 */
.la-btn--brand {
    color: var(--la-on-brand);
    background: var(--la-sunset);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: var(--la-sh-brand);
    transition: transform var(--la-d1) var(--la-e-out),
    box-shadow var(--la-d3) var(--la-e-smooth),
    background-position var(--la-d4) var(--la-e-out);
}
/* .la-btn:hover 用 background 简写会把渐变清掉（悬停变成灰底白字），这里把渐变补回来 */
.la-btn--brand:hover {
    color: var(--la-on-brand);
    background-image: var(--la-sunset);
    background-size: 160% 100%;
    background-position: 100% 0;
    box-shadow: var(--la-sh-brand-lg);
    transform: translateY(-1px);
}
.la-btn--brand:active { transform: translateY(0) scale(.98); }

.la-btn--solid { color: #fff; background: var(--la-ink); }
.la-btn--solid:hover { color: #fff; background: var(--la-ink-2); }

.la-btn--soft { color: var(--la-c1); background: rgba(var(--la-c1-rgb), .10); }
.la-btn--soft:hover { color: var(--la-c1); background: rgba(var(--la-c1-rgb), .17); }

.la-btn--line { background: transparent; border-color: var(--la-line-2); }
.la-btn--line:hover { background: var(--la-hover); border-color: var(--la-c1); color: var(--la-c1); }

.la-btn--ghost { background: transparent; color: var(--la-ink-2); }
.la-btn--ghost:hover { background: var(--la-hover); color: var(--la-ink); }

.la-btn--danger { color: #fff; background: var(--la-bad); }
.la-btn--danger:hover { color: #fff; filter: brightness(1.06); }

/* ---------------------------------------------------------------- 标签 / 徽章 */

/* 站长自定义的商品标签，8 色与后台 Commodity::TAG_COLORS 一一对应。
   电商口径：矮、方角、淡底深字，像价签上印的小票，不是彩色胶囊。 */
.la-tag {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--la-r-xs);
    font-size: var(--la-t-2xs);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: var(--tag-c, var(--la-ink-2));
    background: var(--tag-bg, var(--la-surface-3));
}

.la-tag--red { --tag-c: #E22E1F; --tag-bg: #FFF0EE; }
.la-tag--orange { --tag-c: #E06B00; --tag-bg: #FFF4E6; }
.la-tag--green { --tag-c: #00915F; --tag-bg: #E9F8F2; }
.la-tag--cyan { --tag-c: #0089A7; --tag-bg: #E6F6FA; }
.la-tag--blue { --tag-c: #2354E6; --tag-bg: #EDF1FE; }
.la-tag--purple { --tag-c: #6D28D9; --tag-bg: #F3EDFD; }
.la-tag--pink { --tag-c: #D6006C; --tag-bg: #FDECF4; }
.la-tag--gray { --tag-c: var(--la-ink-2); --tag-bg: var(--la-surface-3); }

:root[data-theme="dark"] .la-tag { --tag-bg: var(--la-surface-3); }
:root[data-theme="dark"] .la-tag--red { --tag-c: #FF7A6E; }
:root[data-theme="dark"] .la-tag--orange { --tag-c: #FFAE52; }
:root[data-theme="dark"] .la-tag--green { --tag-c: #45DBA5; }
:root[data-theme="dark"] .la-tag--cyan { --tag-c: #3FCBE8; }
:root[data-theme="dark"] .la-tag--blue { --tag-c: #7FA8FF; }
:root[data-theme="dark"] .la-tag--purple { --tag-c: #B392FF; }
:root[data-theme="dark"] .la-tag--pink { --tag-c: #FF7BB4; }

/* 系统徽章：批发 / 发货方式。样式和 .la-tag 一致，只是语义不同 */
.la-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--la-r-xs);
    font-size: var(--la-t-2xs);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: var(--la-ink-2);
    background: var(--la-surface-3);
}

.la-badge .la-i { width: 11px; height: 11px; }

.la-badge--seckill { color: #fff; background: var(--la-blaze); font-weight: 700; }
.la-badge--recommend { color: var(--la-c1); background: var(--la-tint); }
.la-badge--wholesale { color: #E06B00; background: #FFF4E6; }
.la-badge--auto { color: #00915F; background: #E9F8F2; }
.la-badge--manual { color: var(--la-warn); background: var(--la-warn-bg); }
.la-badge--soldout { color: var(--la-ink-3); background: var(--la-surface-3); }

:root[data-theme="dark"] .la-badge--wholesale { color: #FFAE52; background: var(--la-surface-3); }
:root[data-theme="dark"] .la-badge--auto { color: #45DBA5; background: var(--la-surface-3); }

/* 胶囊筛选项 */
.la-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--la-r-pill);
    font-size: var(--la-t-sm);
    font-weight: 600;
    color: var(--la-ink-2);
    background: var(--la-surface-2);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--la-d2) var(--la-e-smooth),
    background-color var(--la-d2) var(--la-e-smooth),
    border-color var(--la-d2) var(--la-e-smooth),
    transform var(--la-d1) var(--la-e-out);
}
.la-chip:hover { color: var(--la-ink); background: var(--la-surface-3); }
.la-chip:active { transform: scale(.96); }
.la-chip.is-on {
    color: var(--la-on-brand);
    background: var(--la-sunset);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(var(--la-c1-rgb), .28);
}

/* ---------------------------------------------------------------- 价格

   货源站上价格是最重要的一个数。三条规则：
     · ¥ 符号缩到 0.6em —— 它只是单位，不该和数字抢地方
     · 整数部分给足字号和字重，小数部分缩到 0.62em（拼多多、淘宝都这么排）
     · 用等宽数位，翻页/刷新时价格不会左右横跳                  */

.la-price {
    display: inline-flex;
    align-items: baseline;
    color: var(--la-c1);
    font-family: var(--la-font-num);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}

.la-price__sym { font-size: .6em; font-weight: 700; margin-inline-end: 1px; }
.la-price__int { font-size: 1em; }
.la-price__dec { font-size: .62em; font-weight: 700; }

.la-price--xl { font-size: var(--la-t-4xl); }
.la-price--lg { font-size: var(--la-t-2xl); }
.la-price--md { font-size: var(--la-t-xl); }
.la-price--sm { font-size: var(--la-t-md); }

/* 划线原价 */
.la-price-was {
    font-family: var(--la-font-num);
    font-variant-numeric: tabular-nums;
    color: var(--la-ink-4);
    text-decoration: line-through;
    font-size: var(--la-t-xs);
    font-weight: 400;
}

/* ---------------------------------------------------------------- 容器 */

/* 白卡不描边、不投影 —— 灰底已经把它分出来了。
   会员中心一屏七八张卡，每张再加一圈线就是一张表格纸。 */
.la-card {
    background: var(--la-surface);
    border-radius: var(--la-r-lg);
}

.la-surface { background: var(--la-surface); border-radius: var(--la-r-lg); }

.la-divider { height: 1px; background: var(--la-line); }

/* 横向滑轨：秒杀商品、金刚区翻页都用它 */
.la-rail {
    display: flex;
    gap: var(--la-card-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.la-rail::-webkit-scrollbar { display: none; }
.la-rail > * { scroll-snap-align: start; flex: none; }

/* ---------------------------------------------------------------- 空态 / 骨架 */

.la-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--la-s2);
    padding: var(--la-s8) var(--la-s5);
    color: var(--la-ink-3);
    text-align: center;
}
.la-empty .la-i { width: 44px; height: 44px; color: var(--la-ink-4); stroke-width: 1.1; }
.la-empty__title { font-size: var(--la-t-md); font-weight: 600; color: var(--la-ink-2); }
.la-empty__desc { font-size: var(--la-t-sm); max-width: 30ch; }

.la-skeleton {
    background: var(--la-surface-2);
    background-image: var(--la-skeleton);
    background-size: 240% 100%;
    border-radius: var(--la-r-sm);
    animation: la-shimmer 1.35s linear infinite;
}

.la-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(var(--la-c1-rgb), .22);
    border-top-color: var(--la-c1);
    animation: la-spin .68s linear infinite;
}

/* ---------------------------------------------------------------- 表单原语
   widget_render() 输出的是 Bootstrap 类名（.form-label/.form-control/.form-check*），
   而本主题不加载 bootstrap.min.css —— 这几条就是它们的替代实现，
   顺手让插件注入的自定义控件长得像主题原生控件。 */

.form-label,
.la-label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--la-t-sm);
    font-weight: 600;
    color: var(--la-ink-2);
}

.form-control,
.la-input,
.la-textarea,
select.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: var(--la-t-base);
    color: var(--la-ink);
    background: var(--la-surface-2);
    border: 1px solid var(--la-line);
    border-radius: var(--la-r-md);
    appearance: none;
    transition: border-color var(--la-d2) var(--la-e-smooth),
    background-color var(--la-d2) var(--la-e-smooth),
    box-shadow var(--la-d2) var(--la-e-smooth);
}

textarea.form-control, .la-textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: var(--la-lh); resize: vertical; }

select.form-control {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.4 9.4 6.6 6.6 6.6-6.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.form-control::placeholder, .la-input::placeholder, .la-textarea::placeholder { color: var(--la-ink-4); }

.form-control:hover, .la-input:hover, .la-textarea:hover { border-color: var(--la-line-2); }

.form-control:focus,
.la-input:focus,
.la-textarea:focus,
select.form-control:focus {
    outline: none;
    background: var(--la-surface);
    border-color: var(--la-c1);
    box-shadow: var(--la-focus);
}

.form-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; margin-bottom: 6px; }
.form-check-inline { display: inline-flex; }

.form-check-input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex: none;
    margin: 0;
    border: 1.5px solid var(--la-line-strong);
    border-radius: 5px;
    background: var(--la-surface);
    cursor: pointer;
    transition: border-color var(--la-d1) var(--la-e-smooth), background-color var(--la-d1) var(--la-e-smooth);
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:checked {
    border-color: var(--la-c1);
    background: var(--la-c1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.8 12.6 4.8 4.8 9.6-10.8'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}
.form-check-input[type="radio"]:checked {
    background-image: none;
    box-shadow: inset 0 0 0 4px var(--la-surface);
}
.form-check-label { font-size: var(--la-t-base); cursor: pointer; user-select: none; }

/* 插件注入的自定义控件容器（widget type=custom） */
.acg-widget-custom:not(:empty) { margin-top: var(--la-s3); }

/* ---------------------------------------------------------------- 关键帧
   全部只动 transform / opacity / background-position —— 不触发布局与重绘。
   注意：容器上的 transform 会形成包含块，把 layer 弹层和固定定位元素
   困在局部坐标系里，所以入场动画一律只给内容元素，不给外壳。 */

@keyframes la-shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@keyframes la-spin { to { transform: rotate(360deg); } }
@keyframes la-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes la-fade-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes la-fade-down { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }
@keyframes la-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes la-slide-in { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
@keyframes la-sheet-up { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes la-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes la-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes la-sunset-drift { 0% { background-position: 0 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.la-in { animation: la-fade-up var(--la-d4) var(--la-e-out) both; }
.la-in-fade { animation: la-fade var(--la-d3) var(--la-e-smooth) both; }
.la-in-pop { animation: la-pop var(--la-d3) var(--la-e-spring) both; }

/* 楼层依次入场：只用 6 档，再多就会让页面显得拖沓 */
.la-stagger > *:nth-child(1) { animation-delay: 0ms; }
.la-stagger > *:nth-child(2) { animation-delay: 45ms; }
.la-stagger > *:nth-child(3) { animation-delay: 90ms; }
.la-stagger > *:nth-child(4) { animation-delay: 135ms; }
.la-stagger > *:nth-child(5) { animation-delay: 180ms; }
.la-stagger > *:nth-child(n+6) { animation-delay: 225ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ================================================================ 分页
   大站列表页的地基：页码 + 上下页 + 每页数量 + 跳页。
   接口没有排序参数，但有 page/limit —— 所以「翻到第 200 页」是唯一
   能真正抵达一万个商品深处的路径，这个组件必须两端都有。       */

.la-pagebar { margin-top: var(--la-s7); display: flex; flex-direction: column; align-items: center; gap: 12px; }

.la-page { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }

.la-page__step,
.la-page__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--la-line-2);
    border-radius: var(--la-r-md);
    background: var(--la-surface);
    color: var(--la-ink-2);
    font-size: var(--la-t-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: color var(--la-d2) var(--la-e-smooth),
                border-color var(--la-d2) var(--la-e-smooth),
                background-color var(--la-d2) var(--la-e-smooth),
                transform var(--la-d2) var(--la-e-spring);
}

.la-page__no { padding: 0 6px; }

.la-page__step:hover:not(:disabled),
.la-page__no:hover:not(.is-on) { color: var(--la-c1); border-color: rgba(var(--la-c1-rgb), .45); background: rgba(var(--la-c1-rgb), .06); }

.la-page__step:active:not(:disabled),
.la-page__no:active { transform: scale(.96); }

.la-page__step:disabled { opacity: .4; cursor: not-allowed; }

.la-page__no.is-on {
    color: #fff;
    border-color: transparent;
    background: var(--la-sunset);
    box-shadow: var(--la-sh-brand);
    cursor: default;
}

.la-page__gap { min-width: 26px; text-align: center; color: var(--la-ink-4); user-select: none; }
.la-page__nums { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.la-page .la-i { width: 16px; height: 16px; }

.la-page__aside {
    display: flex;
    align-items: center;
    gap: var(--la-s5);
    flex-wrap: wrap;
    justify-content: center;
    font-size: var(--la-t-sm);
    color: var(--la-ink-3);
}

.la-page__meta { font-variant-numeric: tabular-nums; }

.la-page__size,
.la-page__jump { display: inline-flex; align-items: center; gap: 6px; }

.la-page__size select,
.la-page__jump input {
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--la-line-2);
    border-radius: var(--la-r-sm);
    background: var(--la-surface);
    color: var(--la-ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.la-page__jump input { width: 62px; text-align: center; -moz-appearance: textfield; }
.la-page__jump input::-webkit-outer-spin-button,
.la-page__jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.la-page__size select:focus-visible,
.la-page__jump input:focus-visible { outline: none; border-color: var(--la-c1); box-shadow: 0 0 0 3px rgba(var(--la-c1-rgb), .16); }

.la-page__jump button {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--la-r-sm);
    background: rgba(var(--la-c1-rgb), .12);
    color: var(--la-c1);
    font-weight: 700;
    font-size: var(--la-t-sm);
    cursor: pointer;
    transition: background-color var(--la-d2) var(--la-e-smooth);
}

.la-page__jump button:hover { background: rgba(var(--la-c1-rgb), .2); }

/* 手机端：一行装不下就把辅助区收成两行，按钮加大到可点 */
.la-pagebar--app { padding: var(--la-s5) 0 var(--la-s8); }
.la-pagebar--app .la-page__step { min-width: 44px; height: 42px; }
.la-pagebar--app .la-page__no { min-width: 42px; height: 42px; }
.la-pagebar--app .la-page__aside { font-size: var(--la-t-xs); gap: 12px; }

/* 「更多」型标签：视觉上比普通标签轻，避免被误当成一个分类 */
.la-chip--more { color: var(--la-c1); border-style: dashed !important; }
.la-chip--more .la-i { width: 14px; height: 14px; }

/* ============================================================
   安全页换皮：两步验证 / 登录设备 / 安全日志
   复用平台 security/totp|device|log.js（#totp-app / #dev-app / #slog-app
   内部 DOM 与默认模板一致），这里把它们对齐洛杉矶令牌。作用域 .la-sec
   压过 JS 注入的 .totp-* / .dev-* / .slog-*(0,1,0)。**必须写在未分层文件(本文件)**，
   否则 @layer 内的声明会输给 JS 注入的未分层 <style>。
   ============================================================ */
.la-sec { --totp-muted: var(--la-ink-3); --totp-accent: var(--la-c1); }

/* la-btn 内的 material 图标尺寸（la-btn 原本只给 svg 设尺寸） */
.la-sec .la-btn .material-icons-outlined { font-size: 18px; }

/* 分区标题 */
.la-sec .totp-intro__title, .la-sec .dev-head__title, .la-sec .slog-head__title { color: var(--la-ink); }

/* 「已开启」徽章用品牌色 */
.la-sec .totp-on__badge { color: var(--la-c1); }

/* 资金二次验证开关行 + 开关 */
.la-sec .totp-on__fund { border-color: var(--la-line-2); background: var(--la-bg-2); border-radius: var(--la-r-md); }
.la-sec .totp-switch { width: 34px; height: 20px; border-radius: 10px; background: rgba(144, 144, 144, .45); }
.la-sec .totp-switch i { width: 16px; height: 16px; top: 2px; left: 2px; }
.la-sec .totp-switch.is-on { background: var(--la-c1); }
.la-sec .totp-switch.is-on i { left: 16px; }

/* 密钥 / 恢复码等宽盒子 */
.la-sec .totp-secret code, .la-sec .totp-codes__grid code { background: var(--la-bg-2); color: var(--la-ink); }

/* 设备卡片 / 日志行；当前设备用品牌色 */
.la-sec .dev-item { border-color: var(--la-line-2); border-radius: var(--la-r-md); }
.la-sec .dev-item.is-current { border-color: var(--la-c1); background: var(--la-bad-bg); }
.la-sec .dev-item__badge { color: var(--la-c1); border-color: var(--la-c1); }
.la-sec .dev-item__ico { background: var(--la-bg-2); }
.la-sec .slog-item { border-bottom-color: var(--la-line); }

/* 「只看风险」chip */
.la-sec .slog-chip { color: var(--la-ink-3); background: var(--la-bg-2); border: 1px solid var(--la-line-2); border-radius: var(--la-r-pill); }
.la-sec .slog-chip.is-on { color: var(--la-bad); background: var(--la-bad-bg); border-color: var(--la-bad); }

/* device.js/log.js 动态渲染的按钮仍带平台类（.totp-ghost），换皮成洛杉矶描边按钮 */
.la-sec .totp-ghost { border: 1px solid var(--la-line-2); background: transparent; color: var(--la-ink-2); border-radius: var(--la-r-pill); padding: 7px 16px; font-size: 13px; transition: border-color var(--la-d2), color var(--la-d2), background var(--la-d2); }
.la-sec .totp-ghost:hover { border-color: var(--la-c1); color: var(--la-c1); background: var(--la-hover); }
.la-sec-card { padding: var(--la-s6); border: 1px solid var(--la-line); border-radius: var(--la-r-lg); background: var(--la-surface); box-shadow: var(--la-sh-1); }

/* ============================================================
   通行密钥页换皮（#pk-app，平台 security/passkey.js）
   平台把基础 CSS 注入 <head> 末尾（未分层、单类为主），这里一律 .la-sec 起头压过它；
   静态按钮 / 输入框已是主题原生 .la-btn / .la-input，这里只管 JS 渲染的列表、图标钮、改名框。
   ============================================================ */
.la-sec .pk-head { gap: var(--la-s4) var(--la-s6); }
.la-sec .pk-head__text { flex: 1 1 320px; min-width: 0; }
.la-sec .pk-head__title { color: var(--la-ink); }
/* 说明文字只在标点处换行，免得把「使用通行密钥登录」这类词拆成两行；实在放不下再任意断 */
.la-sec :is(.pk-head__desc, .pk-form__desc, .pk-empty__desc, .pk-tip, .pk-notice) { word-break: keep-all; overflow-wrap: anywhere; }

/* 数量「3 / 10」：价签式小票徽章（同 .la-badge 的矮方角淡底） */
.la-sec .pk-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: var(--la-r-xs); font-family: var(--la-font-num); font-size: var(--la-t-xs); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--la-ink-2); background: var(--la-surface-3); }
.la-sec .pk-count:empty { display: none; }

/* 表单展开后「继续」才是主操作，页头按钮退成淡红底，全页只留一个落日渐变 */
.la-sec .pk-head__ops .la-btn[aria-expanded="true"] { color: var(--la-c1); background: rgba(var(--la-c1-rgb), .10); box-shadow: none; transform: none; }
.la-sec .pk-head__ops .la-btn[aria-expanded="true"]:hover { background: rgba(var(--la-c1-rgb), .16); }
/* 不可添加时（不支持 / 已满）按钮不再发光，也要能悬停看到 title 里的原因 */
.la-sec .pk-head__ops .la-btn[disabled] { pointer-events: auto; cursor: not-allowed; box-shadow: none; transform: none; background-position: 0 0; }

/* 不支持提示：沿用 .la-note--warn 的暖色底，正文用墨色保证对比度 */
.pk-app.la-sec .pk-notice { gap: 8px; padding: 11px 14px; border-radius: var(--la-r-md); font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-2); background: var(--la-warn-bg); }
.la-sec .pk-notice .material-icons-outlined { font-size: 17px; margin-top: 1px; color: var(--la-warn); }

/* 添加表单 */
.la-sec .pk-form.is-open { margin-bottom: var(--la-s5); }
.la-sec .pk-form__inner { padding: var(--la-s5); border: 1px solid var(--la-line-2); border-radius: var(--la-r-lg); }
.la-sec .pk-form__title { font-size: var(--la-t-md); font-weight: 700; color: var(--la-ink); }
.la-sec .pk-form__desc { margin-bottom: var(--la-s4); font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-3); }
.la-sec .pk-field { margin-bottom: 0; }
.la-sec .pk-field label { margin-bottom: 6px; font-size: var(--la-t-sm); font-weight: 600; color: var(--la-ink-2); }
.la-sec .pk-actions { gap: var(--la-s3); margin-top: var(--la-s5); }
.la-sec .pk-actions .la-btn[aria-busy="true"] { opacity: .85; cursor: progress; }
.la-sec .pk-actions .la-btn[aria-busy="true"] .material-icons-outlined { animation: la-pulse 1s var(--la-e-smooth) infinite; }

.la-sec .pk-status { font-size: var(--la-t-sm); color: var(--la-ink-3); }

/* 列表行：和登录设备页同一套细描边 + 8px 圆角；图标块用中性灰，红色留给主操作 */
.la-sec .pk-item { border-color: var(--la-line-2); border-radius: var(--la-r-md); }
.la-sec .pk-item:hover { border-color: var(--la-line-strong); }
.la-sec .pk-item.is-new { animation: la-pk-new 2.4s var(--la-e-out); }
@keyframes la-pk-new { 0%, 35% { border-color: var(--la-ok); background-color: var(--la-ok-bg); } }
.la-sec .pk-item__ico { width: 40px; height: 40px; border-radius: var(--la-r-md); color: var(--la-ink-2); background: var(--la-bg-2); }
.la-sec .pk-item__ico .material-icons-outlined { font-size: 21px; }
.la-sec .pk-item__name { font-size: var(--la-t-md); color: var(--la-ink); }
.la-sec .pk-item__meta { color: var(--la-ink-3); }
.la-sec .pk-seg { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.la-sec .pk-dot { opacity: 1; color: var(--la-ink-4); }

/* 行内圆形图标钮（改名 / 删除 / 保存 / 取消） */
.la-sec .pk-icon { border-radius: 50%; color: var(--la-ink-3); transition: background-color var(--la-d2) var(--la-e-smooth), color var(--la-d2) var(--la-e-smooth), transform var(--la-d1) var(--la-e-out); }
.la-sec .pk-icon:hover { color: var(--la-ink); background: var(--la-hover); }
.la-sec .pk-icon:active { transform: scale(.9); }
.la-sec .pk-icon.pk-del:hover { color: var(--la-bad); background: var(--la-bad-bg); }
.la-sec .pk-icon.pk-save:hover { color: var(--la-ok); background: var(--la-ok-bg); }
.la-sec .pk-icon:focus-visible { outline: none; border-radius: 50%; box-shadow: var(--la-focus); }
/* 改名时输入框 width:100% 会把保存 / 取消挤窄，钉住尺寸保证触控面积 */
.la-sec .pk-rename .pk-icon { flex: none; }

/* 就地改名输入框（JS 生成的 .layui-input），对齐 .la-input。
   圆角被 md-components（la-platform 层）用 !important 钉成 6px，只有更早声明的 la-first 层压得住 */
.la-sec .pk-rename .layui-input { padding: 0 10px; border: 1px solid var(--la-line-2); color: var(--la-ink); font-size: var(--la-t-base); transition: border-color var(--la-d2) var(--la-e-smooth), box-shadow var(--la-d2) var(--la-e-smooth); }
.la-sec .pk-rename .layui-input:focus { outline: none; border-color: var(--la-c1); box-shadow: var(--la-focus); }
@layer la-first {
    .la-sec .pk-rename .layui-input { border-radius: var(--la-r-md) !important; }
}

/* 空态：虚线框 + 中性图标块，和主题 .la-empty 同一个克制程度 */
.la-sec .pk-empty { padding: var(--la-s8) var(--la-s5) var(--la-s7); border-color: var(--la-line-strong); border-radius: var(--la-r-lg); }
.la-sec .pk-empty__art { width: 56px; height: 56px; margin-bottom: var(--la-s4); border-radius: var(--la-r-xl); color: var(--la-ink-3); background: var(--la-bg-2); }
.la-sec .pk-empty__art .material-icons-outlined { font-size: 28px; }
.la-sec .pk-empty__title { font-size: var(--la-t-md); font-weight: 700; color: var(--la-ink); }
.la-sec .pk-empty__desc { font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-3); }

.la-sec .pk-tip { gap: 6px; margin-top: var(--la-s5); font-size: var(--la-t-sm); color: var(--la-ink-3); }
.la-sec .pk-tip .material-icons-outlined { font-size: 16px; margin-top: 2px; color: var(--la-ok); }

/* 手机端 APP：主操作 44px 触控高度；「继续」吃掉剩余宽度，验证中换成长文案也放得下 */
.la--app .la-sec .pk-head__ops .la-btn,
.la--app .la-sec .pk-actions .la-btn { --btn-h: 44px; }
.la--app .la-sec .pk-actions .la-btn--brand { flex: 1 1 auto; }
.la--app .la-sec .pk-icon { width: 40px; height: 40px; }
.la--app .la-sec .pk-rename .layui-input { font-size: 16px; }

/* ============================================================
   对接白名单页换皮（#ipwl-app，平台 security/ipwhitelist.js 整页渲染）
   平台把基础 CSS 注入 <head> 末尾：未分层，特异性最高 (0,3,0)，暗色下还写死了琥珀 / 绿字。
   这里一律 .la-sec.ipwl 起头压过它；那几处字色不跟它比特异性，改给子元素上色
   （状态文字在 .ipwl__status-text、空态文字在 span 里），平台以后怎么调都不受影响。
   JS 写死的平台类在这里换成主题原生外观：.uc-cta 即 .la-btn--brand，.totp-ghost 即 .la-btn--line，
   .totp-mini 即小号描边钮，.layui-input 即 .la-input。
   ============================================================ */

/* 电脑端安全子导航：加了「对接白名单」后十个分页一行放不下，胶囊内距收到 12px；
   译文更长时折成两行，不再被裁掉一截（手机端照旧横滑） */
.la--pc .la-subnav { flex-wrap: wrap; row-gap: 6px; }
.la--pc .la-subnav__item { padding-inline: 12px; }

/* 标题行：标题 + 价签式数量，右侧「添加 IP」 */
.la-sec.ipwl .ipwl__head { gap: var(--la-s4); }
.la-sec.ipwl .ipwl__title { gap: var(--la-s2); font-size: var(--la-t-lg); font-weight: 600; color: var(--la-ink); }
.la-sec.ipwl .ipwl__count { display: inline-flex; flex: none; align-items: center; height: 18px; padding: 0 6px; border: 0; border-radius: var(--la-r-xs); font-family: var(--la-font-num); font-size: var(--la-t-xs); font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--la-ink-2); background: var(--la-surface-3); }
.la-sec.ipwl .ipwl__count:empty { display: none; }
.la-sec.ipwl .ipwl__desc { margin-top: var(--la-s2); font-size: var(--la-t-base); line-height: 1.8; color: var(--la-ink-3); text-wrap: pretty; }

/* 主按钮：「添加 IP」与表单里的「加入白名单」，同 .la-btn--brand */
.la-sec.ipwl .ipwl__add,
.la-sec.ipwl .ipwl__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--la-r-pill);
    font-size: var(--la-t-base);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    color: var(--la-on-brand);
    background: var(--la-sunset);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: var(--la-sh-brand);
    transition: transform var(--la-d1) var(--la-e-out),
    box-shadow var(--la-d3) var(--la-e-smooth),
    background-position var(--la-d4) var(--la-e-out),
    color var(--la-d2) var(--la-e-smooth);
}
.la-sec.ipwl .ipwl__add .material-icons-outlined,
.la-sec.ipwl .ipwl__save .material-icons-outlined { font-size: 18px; }
.la-sec.ipwl .ipwl__add:not(:disabled):hover,
.la-sec.ipwl .ipwl__save:not(:disabled):hover {
    color: var(--la-on-brand);
    border-color: transparent;
    background-image: var(--la-sunset);
    background-size: 160% 100%;
    background-position: 100% 0;
    box-shadow: var(--la-sh-brand-lg);
    transform: translateY(-1px);
}
.la-sec.ipwl .ipwl__add:not(:disabled):active,
.la-sec.ipwl .ipwl__save:not(:disabled):active { transform: translateY(0) scale(.98); }
.la-sec.ipwl :is(.ipwl__add, .ipwl__save):focus-visible { outline: none; border-radius: var(--la-r-pill); box-shadow: var(--la-focus), var(--la-sh-brand); }
/* 清单已满：不发光，仍可悬停看到 title 里的原因；保存中：等待光标 */
.la-sec.ipwl .ipwl__add:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.la-sec.ipwl .ipwl__save:disabled { opacity: .7; cursor: progress; box-shadow: none; transform: none; }
/* 表单展开后「加入白名单」才是主操作，页头按钮退成淡红底，全页只留一个落日渐变 */
.la-sec.ipwl:has(.ipwl__form.is-open) .ipwl__add { color: var(--la-c1); background: rgba(var(--la-c1-rgb), .10); box-shadow: none; transform: none; }
.la-sec.ipwl:has(.ipwl__form.is-open) .ipwl__add:not(:disabled):hover { color: var(--la-c1); background: rgba(var(--la-c1-rgb), .16); box-shadow: none; transform: none; }

/* 次按钮：「取消」，同 .la-btn--line */
.la-sec.ipwl .ipwl__cancel { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border: 1px solid var(--la-line-2); border-radius: var(--la-r-pill); font-size: var(--la-t-base); font-weight: 600; line-height: 1; color: var(--la-ink); background: transparent; }
.la-sec.ipwl .ipwl__cancel:hover { color: var(--la-c1); border-color: var(--la-c1); background: var(--la-hover); }

/* 状态行：主题提示条的口径 —— 正文用墨色保证对比度，状态色只给图标与底色 */
.la-sec.ipwl .ipwl__status { align-items: flex-start; flex-wrap: nowrap; gap: 8px; margin-top: var(--la-s5); padding: 11px 14px; border-radius: var(--la-r-md); font-size: var(--la-t-base); line-height: 1.7; background: var(--la-surface-3); }
.la-sec.ipwl .ipwl__status-text { color: var(--la-ink-2); }
.la-sec.ipwl .ipwl__status .material-icons-outlined { margin-top: 2px; font-size: 18px; color: var(--la-ink-3); }
.la-sec.ipwl .ipwl__status.is-on { background: var(--la-ok-bg); }
.la-sec.ipwl .ipwl__status.is-on .material-icons-outlined { color: var(--la-ok); }
.la-sec.ipwl .ipwl__status.is-warn { background: var(--la-warn-bg); }
.la-sec.ipwl .ipwl__status.is-warn .material-icons-outlined { color: var(--la-warn); }

/* 清单：和通行密钥 / 登录设备同一套细描边卡片；图标块中性灰，红色留给主操作 */
.la-sec.ipwl .ipwl__list { display: flex; flex-direction: column; gap: var(--la-s3); margin-top: var(--la-s5); }
.la-sec.ipwl .ipwl__item { gap: 14px; padding: 13px 12px 13px 16px; border: 1px solid var(--la-line-2); border-radius: var(--la-r-md); transition: border-color var(--la-d2) var(--la-e-smooth), opacity .18s ease, transform .18s ease; }
.la-sec.ipwl .ipwl__item:hover { border-color: var(--la-line-strong); }
.la-sec.ipwl .ipwl__item.is-new { animation: ipwl-in .36s var(--la-e-out), la-pk-new 2.4s var(--la-e-out); }
.la-sec.ipwl .ipwl__ico { width: 40px; height: 40px; border-radius: var(--la-r-md); color: var(--la-ink-2); background: var(--la-bg-2); }
.la-sec.ipwl .ipwl__ico .material-icons-outlined { font-size: 21px; }
.la-sec.ipwl .ipwl__line { gap: 3px 8px; }
.la-sec.ipwl .ipwl__ip { font-size: var(--la-t-md); font-weight: 600; letter-spacing: 0; color: var(--la-ink); word-break: normal; overflow-wrap: anywhere; }
/* 备注做成价签式小票，和数量徽章同一个形 */
.la-sec.ipwl .ipwl__note { display: block; max-width: 100%; height: 18px; padding: 0 6px; border-radius: var(--la-r-xs); font-size: var(--la-t-xs); font-weight: 500; line-height: 18px; color: var(--la-ink-2); background: var(--la-surface-3); }
/* 元信息：平台在两段之间塞的是纯文字「 · 」，收起来改用伪元素画，窄屏就能整段换行而不留半截分隔点 */
.la-sec.ipwl .ipwl__meta { margin-top: 3px; font-size: 0; line-height: 0; color: var(--la-ink-3); }
.la-sec.ipwl .ipwl__meta > span { font-size: var(--la-t-sm); line-height: 1.7; }
.la-sec.ipwl .ipwl__meta > span + span::before { content: "·"; margin: 0 6px; color: var(--la-ink-4); }
.la-sec.ipwl .ipwl__meta .is-live { color: var(--la-ok); }
.la-sec.ipwl .ipwl__del { width: 36px; height: 36px; border-radius: 50%; color: var(--la-ink-3); transition: background-color var(--la-d2) var(--la-e-smooth), color var(--la-d2) var(--la-e-smooth), transform var(--la-d1) var(--la-e-out); }
.la-sec.ipwl .ipwl__del .material-icons-outlined { font-size: 20px; }
.la-sec.ipwl .ipwl__del:hover { color: var(--la-bad); background: var(--la-bad-bg); }
.la-sec.ipwl .ipwl__del:active { transform: scale(.9); }
.la-sec.ipwl .ipwl__del:focus-visible { outline: none; border-radius: 50%; color: var(--la-bad); background: var(--la-bad-bg); box-shadow: var(--la-focus); }

/* 空态：虚线框 + 中性图标块，和通行密钥页的空态同一个克制程度（图标用 CSS 画，替代文字留空不给读屏念出来） */
.la-sec.ipwl .ipwl__empty { flex-direction: column; align-items: center; gap: var(--la-s4); margin-top: var(--la-s5); padding: var(--la-s7) var(--la-s5); border: 1px dashed var(--la-line-strong); border-radius: var(--la-r-lg); background: transparent; text-align: center; }
.la-sec.ipwl .ipwl__empty::before {
    content: "dns";
    content: "dns" / "";
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--la-r-xl);
    font-family: "Material Icons Outlined";
    font-size: 26px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    white-space: nowrap;
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    color: var(--la-ink-3);
    background: var(--la-bg-2);
}
.la-sec.ipwl .ipwl__empty > span { font-size: var(--la-t-base); line-height: 1.7; color: var(--la-ink-3); }

/* 最近被拒绝的来源：主题警示色的淡框卡，标题用墨色、只让图标带色 */
.la-sec.ipwl .ipwl__denied { margin-top: var(--la-s6); padding: 14px 16px 6px; border: 1px solid rgba(255, 136, 0, .28); border-color: color-mix(in srgb, var(--la-warn) 30%, transparent); border-radius: var(--la-r-lg); background: rgba(255, 136, 0, .05); background: color-mix(in srgb, var(--la-warn) 6%, transparent); }
.la-sec.ipwl .ipwl__denied .ipwl__denied-title { gap: 6px; font-size: var(--la-t-base); font-weight: 700; color: var(--la-ink); }
.la-sec.ipwl .ipwl__denied-title .material-icons-outlined { font-size: 18px; color: var(--la-warn); }
.la-sec.ipwl .ipwl__denied-tip { margin: 4px 0 8px; font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-3); }
.la-sec.ipwl .ipwl__denied-item { gap: var(--la-s4); padding: 9px 0; border-top: 1px dashed rgba(255, 136, 0, .22); border-top-color: color-mix(in srgb, var(--la-warn) 24%, transparent); }
.la-sec.ipwl .ipwl__denied-item code { font-size: var(--la-t-md); font-weight: 600; letter-spacing: 0; color: var(--la-ink); word-break: normal; overflow-wrap: anywhere; }
.la-sec.ipwl .ipwl__denied-item span { font-size: var(--la-t-sm); color: var(--la-ink-3); white-space: nowrap; }
/* 「加入白名单」小号描边钮：白底，在淡色警示卡上也立得住 */
.la-sec.ipwl .ipwl__denied-item .totp-mini { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border: 1px solid var(--la-line-2); border-radius: var(--la-r-pill); font-size: var(--la-t-sm); font-weight: 600; line-height: 1; white-space: nowrap; color: var(--la-ink); background: var(--la-surface); transition: color var(--la-d2) var(--la-e-smooth), border-color var(--la-d2) var(--la-e-smooth), transform var(--la-d1) var(--la-e-out); }
.la-sec.ipwl .ipwl__denied-item .totp-mini:not(:disabled):hover { color: var(--la-c1); border-color: var(--la-c1); }
.la-sec.ipwl .ipwl__denied-item .totp-mini:not(:disabled):active { transform: scale(.97); }
.la-sec.ipwl :is(.ipwl__cancel, .totp-mini):focus-visible { outline: none; border-radius: var(--la-r-pill); box-shadow: var(--la-focus); }

/* 说明三卡：中性浅灰块（暗色下是抬起一档的灰，不用近黑的 bg-2，免得三个黑洞压住页面） */
.la-sec.ipwl .ipwl__help { gap: var(--la-s3); margin-top: var(--la-s6); }
.la-sec.ipwl .ipwl__tip { gap: 10px; padding: 12px 14px; border: 0; border-radius: var(--la-r-md); background: var(--la-surface-3); }
.la-sec.ipwl .ipwl__tip > .material-icons-outlined { margin-top: 1px; font-size: 18px; color: var(--la-ink-3); }
.la-sec.ipwl .ipwl__tip-title { margin-bottom: 2px; font-size: var(--la-t-base); font-weight: 600; color: var(--la-ink); }
.la-sec.ipwl .ipwl__tip-text { font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-3); }

/* 添加表单：展开成一张白卡（灰底白卡），去掉平台的虚线分隔；输入框同 .la-input */
.la-sec.ipwl .ipwl__form { padding-top: 0; border-top: 0; }
.la-sec.ipwl .ipwl__form.is-open { margin-top: var(--la-s5); padding-top: 0; border-top: 0; }
.la-sec.ipwl .ipwl__form .totp-confirm__inner { max-width: 440px; padding: var(--la-s5); border: 1px solid var(--la-line-2); border-radius: var(--la-r-lg); background: var(--la-surface); }
.la-sec.ipwl .totp-confirm__title { margin-bottom: var(--la-s4); font-size: var(--la-t-md); font-weight: 700; color: var(--la-ink); }
.la-sec.ipwl .totp-field { margin-bottom: var(--la-s4); }
.la-sec.ipwl .totp-field label { margin-bottom: 6px; font-size: var(--la-t-sm); font-weight: 600; color: var(--la-ink-2); }
.la-sec.ipwl .totp-field .layui-input { height: 40px; padding: 0 12px; line-height: normal; font-size: var(--la-t-base); color: var(--la-ink); transition: border-color var(--la-d2) var(--la-e-smooth), background-color var(--la-d2) var(--la-e-smooth), box-shadow var(--la-d2) var(--la-e-smooth); }
.la-sec.ipwl .totp-field .layui-input::placeholder { color: var(--la-ink-4); }
.la-sec.ipwl .totp-field .layui-input:focus { outline: none; box-shadow: var(--la-focus); }
.la-sec.ipwl .ipwl__hint { margin-top: 6px; font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-3); }
.la-sec.ipwl .totp-actions { gap: var(--la-s3); margin-top: var(--la-s5); }
/* 底色 / 描边 / 圆角被 md-components（la-platform 层）用 !important 钉住，只有更早声明的 la-first 层压得住 */
@layer la-first {
    .la-sec.ipwl .totp-field .layui-input { border: 1px solid var(--la-line) !important; border-radius: var(--la-r-md) !important; background: var(--la-surface-2) !important; }
    .la-sec.ipwl .totp-field .layui-input:hover { border-color: var(--la-line-2) !important; }
    .la-sec.ipwl .totp-field .layui-input:focus { border-color: var(--la-c1) !important; background: var(--la-surface) !important; }
    .la--app .la-sec.ipwl .totp-field .layui-input { height: 44px !important; }
}

/* 两步验证页资金开关下方的提示条（#totp-ipwl-link）：外框沿用 .totp-on__fund 的皮，警示态换主题警示色 */
.la-sec .totp-ipwl-link > .material-icons-outlined { font-size: 18px; color: var(--la-ok); }
.la-sec .totp-ipwl-link__text { font-size: var(--la-t-sm); line-height: 1.7; color: var(--la-ink-2); }
.la-sec .totp-ipwl-link__go { font-size: var(--la-t-sm); color: var(--la-c1); }
.la-sec .totp-ipwl-link__go:hover { color: var(--la-c2); }
.la-sec .totp-ipwl-link.is-warn { border-color: rgba(255, 136, 0, .3); border-color: color-mix(in srgb, var(--la-warn) 30%, transparent); background: var(--la-warn-bg); }
.la-sec .totp-ipwl-link.is-warn > .material-icons-outlined { color: var(--la-warn); }
/* 窄屏：平台把跳转链接折到文字下方；图标改为对齐第一行文字，链接用内距撑出 40px 触控高度、再用负外边距抵掉，不改版面 */
@media (max-width: 560px) {
    .la-sec .totp-ipwl-link { align-items: flex-start; }
    .la-sec .totp-ipwl-link > .material-icons-outlined { margin-top: 1px; }
    .la-sec .totp-ipwl-link__go { margin-block: -10px; padding-block: 10px; }
}

/* 手机端 APP：触控目标 ≥ 40px，表单主操作 44px 且吃掉剩余宽度；输入框 16px 防 iOS 放大；元信息分两行 */
.la--app .la-sec.ipwl .ipwl__add { height: 40px; }
.la--app .la-sec.ipwl :is(.ipwl__save, .ipwl__cancel) { height: 44px; }
.la--app .la-sec.ipwl .ipwl__save { flex: 1 1 auto; }
.la--app .la-sec.ipwl .ipwl__form .totp-confirm__inner { max-width: none; }
.la--app .la-sec.ipwl .totp-field .layui-input { font-size: 16px; }
.la--app .la-sec.ipwl .ipwl__del { width: 40px; height: 40px; }
.la--app .la-sec.ipwl .ipwl__denied { padding-inline: 14px; }
.la--app .la-sec.ipwl .ipwl__denied-item .totp-mini { height: 40px; padding: 0 14px; font-size: var(--la-t-base); }
/* 被拒来源一行放不下 IP + 时间 + 按钮时，IP 会被挤到从中间断开；手机上改成「IP / 时间」两行、按钮靠右，和清单行同一个结构 */
.la--app .la-sec.ipwl .ipwl__denied-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ip act" "time act"; align-items: center; gap: 0 var(--la-s4); }
.la--app .la-sec.ipwl .ipwl__denied-item code { grid-area: ip; }
.la--app .la-sec.ipwl .ipwl__denied-item span { grid-area: time; line-height: 1.7; }
.la--app .la-sec.ipwl .ipwl__denied-item .totp-mini { grid-area: act; }
.la--app .la-sec.ipwl .ipwl__meta > span { display: block; }
.la--app .la-sec.ipwl .ipwl__meta > span + span::before { content: none; }

@media (prefers-reduced-motion: reduce) {
    .la-sec.ipwl .ipwl__item,
    .la-sec.ipwl .ipwl__item.is-new { animation: none; transition: none; }
}

/* ============================================================
   登录页 · 通行密钥按钮（#passkey-login，两端共用）
   次要操作：沿用 .la-btn--line 的细框透明底、字重比主按钮轻一档；
   左侧落日渐变圆片放白色通行密钥图标，悬停才转成品牌色。
   默认 hidden（本文件顶部 [hidden] 规则兜底），平台 login.js 检测到支持才显示。
   ============================================================ */
.la-auth__submit { display: flex; flex-direction: column; gap: 10px; }
.la-passkey { gap: 10px; font-weight: 500; color: var(--la-ink); }
.la-passkey__badge { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; color: var(--la-on-brand); background: var(--la-sunset); box-shadow: 0 2px 6px rgba(var(--la-c1-rgb), .26); transition: box-shadow var(--la-d2) var(--la-e-smooth); }
.la-passkey__badge .la-i { width: 15px; height: 15px; }
.la-passkey:hover .la-passkey__badge { box-shadow: var(--la-sh-brand); }
.la-passkey.is-busy { opacity: 1; cursor: progress; pointer-events: auto; }
.la-passkey.is-busy .la-passkey__badge { animation: la-pulse 1s var(--la-e-smooth) infinite; }
