/*
 * 喵爪 · 用户端设计系统（Liquid Glass 液态玻璃风格）
 * 仅在用户前台加载；管理后台使用 app.css + admin.css。
 */

:root {
    --ux-primary: #5B7CFA;
    --ux-primary-deep: #4A63E8;
    --ux-violet: #8F7BFF;
    --ux-pink: #FF9EC4;
    --ux-mint: #3FC79A;
    --ux-orange: #FF9F5A;
    --ux-text: #2A3550;
    --ux-text-2: #7C86A0;
    --ux-text-3: #A6AEC2;
    --ux-glass: rgba(255, 255, 255, .66);
    --ux-glass-strong: rgba(255, 255, 255, .82);
    --ux-glass-soft: rgba(255, 255, 255, .45);
    --ux-border: rgba(255, 255, 255, .75);
    --ux-line: rgba(90, 110, 160, .14);
    --ux-radius-sm: 10px;
    --ux-radius-md: 16px;
    --ux-radius-lg: 22px;
    --ux-shadow-sm: 0 2px 8px rgba(80, 100, 180, .08);
    --ux-shadow-md: 0 10px 30px rgba(80, 100, 180, .12);
    --ux-shadow-lg: 0 18px 50px rgba(80, 100, 180, .16);
    --ux-danger: #E5484D;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--ux-text);
    background:
        radial-gradient(900px 520px at 8% -6%, rgba(143, 123, 255, .16), transparent 62%),
        radial-gradient(760px 460px at 96% 4%, rgba(91, 124, 250, .13), transparent 58%),
        radial-gradient(700px 500px at 50% 108%, rgba(255, 158, 196, .12), transparent 60%),
        linear-gradient(180deg, #EEF1FC 0%, #F6F7FD 46%, #F3F1FB 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ux-primary); text-decoration: none; }
a:hover { color: var(--ux-primary-deep); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font-family: inherit; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border-radius: 12px; border: 1px solid transparent;
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, #6E8DFF, #5B7CFA 55%, #7C6BF5);
    color: #fff; box-shadow: 0 8px 20px rgba(91, 124, 250, .32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(91, 124, 250, .42); }
.btn-primary:disabled { opacity: .72; cursor: not-allowed; box-shadow: none; }
.btn-soft {
    background: rgba(255, 255, 255, .78); color: var(--ux-text);
    border-color: rgba(120, 140, 200, .18); box-shadow: var(--ux-shadow-sm);
}
.btn-soft:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ux-text-2); }
.btn-ghost:hover { color: var(--ux-danger); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }

/* 提交按钮旋转指示器（登录页） */
.btn-spinner {
    display: none; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
    animation: ux-spin .65s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes ux-spin { to { transform: rotate(360deg); } }

/* ==================== 表单 ==================== */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ux-text-2); }
.field-input {
    width: 100%; height: 42px; padding: 0 14px;
    border-radius: 12px; border: 1px solid var(--ux-line);
    background: rgba(255, 255, 255, .8); color: var(--ux-text);
    font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: var(--ux-text-3); }
.field-input:focus { border-color: var(--ux-primary); box-shadow: 0 0 0 3px rgba(91, 124, 250, .16); background: #fff; }

/* ==================== KOI 进场遮罩（登录页） ==================== */
.koi-loader {
    --koi-out-y: calc(50vh - 150px + 28px);
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .2);
    overflow: hidden; will-change: clip-path;
}
.koi-loader.is-leaving { animation: koi-circle-out 1.9s cubic-bezier(.25, 1, .3, 1) both; pointer-events: none; }
.koi-loader.is-gone { display: none; }
.koi-loader-svg { width: 0; height: 0; }
.koi-loader-gooey { position: relative; width: 300px; height: 300px; filter: url('#koi-gooey'); }
.koi-loader-gooey span {
    position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
    animation: koi-spin 3s ease-in-out infinite;
    animation-delay: calc(.2s * var(--i));
}
.koi-loader-gooey span::before {
    content: ''; position: absolute; top: 0; left: calc(50% - 28px);
    width: 56px; height: 56px; border-radius: 50%;
    background-image: linear-gradient(to right, #92fe9d 0%, #00c9ff 100%);
    box-shadow: 0 0 30px #00c9ff;
}
@keyframes koi-spin { 0% { transform: rotate(0deg); } 50%, 100% { transform: rotate(360deg); } }
@keyframes koi-circle-out {
    0% { clip-path: circle(125% at 50% var(--koi-out-y)); }
    100% { clip-path: circle(0% at 50% var(--koi-out-y)); }
}
@media (max-width: 768px) {
    .koi-loader { --koi-out-y: calc(50vh - 120px + 28px); }
    .koi-loader-gooey { width: 240px; height: 240px; }
}

/* ==================== 应用外壳 ==================== */
.ux-shell { display: flex; min-height: 100vh; align-items: stretch; }

.ux-sidebar {
    width: 226px; flex: none; padding: 18px 14px;
    transition: width .22s ease, padding .22s ease;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
    background: var(--ux-glass);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border-right: 1px solid var(--ux-border);
    user-select: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ux-sidebar { background: rgba(255, 255, 255, .94); }
}

.ux-logo { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.ux-logo-mark {
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(135deg, #7C9BFF, #5B7CFA 60%, #8F7BFF);
    color: #fff; font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(91, 124, 250, .35);
}
.ux-logo-name { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.ux-logo-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--ux-text-3); letter-spacing: 0; }

.ux-nav { display: flex; flex-direction: column; gap: 3px; }
.ux-nav a {
    display: flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 12px; border-radius: 12px;
    font-size: 13.5px; font-weight: 500; color: var(--ux-text-2);
    transition: background .18s, color .18s;
}
.ux-nav a svg { width: 17px; height: 17px; flex: none; }
.ux-nav a:hover { background: rgba(255, 255, 255, .75); color: var(--ux-text); }
.ux-nav a.is-active {
    background: linear-gradient(120deg, rgba(110, 141, 255, .16), rgba(143, 123, 255, .13));
    color: var(--ux-primary-deep); font-weight: 700;
}
.ux-side-foot { margin-top: auto; padding: 12px 8px 2px; font-size: 10.5px; color: var(--ux-text-3); }

.ux-body { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 226px; transition: margin-left .22s ease; }

.ux-topbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 26px;
    background: rgba(246, 247, 253, .72);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ux-border);
}
button.ux-search-btn { display: none; }
.ux-crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; margin-right: 6px; }
.ux-crumb-root { font-size: 13px; font-weight: 600; color: var(--ux-text-3); }
.ux-crumb-sep { font-size: 12px; color: var(--ux-text-3); opacity: .55; }
.ux-crumb-cur {
    font-size: 15px; font-weight: 800; color: var(--ux-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ux-search {
    flex: 0 1 420px; margin-left: auto; position: relative; display: flex; align-items: center;
}
.ux-search svg { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--ux-text-3); pointer-events: none; }
.ux-search input {
    width: 100%; height: 38px; padding: 0 14px 0 34px;
    border-radius: 12px; border: 1px solid var(--ux-line);
    background: rgba(255, 255, 255, .8); font-size: 13px; color: var(--ux-text); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ux-search input::placeholder { color: var(--ux-text-3); }
.ux-search input:focus { border-color: var(--ux-primary); box-shadow: 0 0 0 3px rgba(91, 124, 250, .14); }
.ux-topbar-right { margin-left: 0; display: flex; align-items: center; gap: 10px; }
.ux-icon-btn {
    width: 36px; height: 36px; border-radius: 11px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .78); color: var(--ux-text-2);
    box-shadow: var(--ux-shadow-sm); transition: background .2s, color .2s;
}
.ux-icon-btn:hover { background: #fff; color: var(--ux-primary); }
.ux-icon-btn svg { width: 17px; height: 17px; }
.ux-icon-btn.is-unread { position: relative; }
.ux-icon-btn.is-unread::after {
    content: ''; position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #FF5A6E; border: 1.5px solid #fff;
}

.ux-user { position: relative; }
.ux-user-btn {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid transparent;
    background: rgba(255, 255, 255, .78); box-shadow: var(--ux-shadow-sm);
}
.ux-user-btn:hover { border-color: rgba(120, 140, 200, .2); }
/* 头像图片：上传后显示真实图片（未上传仍是首字母） */
.ux-avatar img, .profile-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: inherit;
}
.profile-avatar { cursor: pointer; overflow: hidden; }

/* 站点 Logo：后台上传后替换侧栏标记 */
.ux-logo-mark img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: inherit;
}

/* 皮肤封面：真实图片时铺满（无图仍是渐变） */
.skin-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.ux-avatar {
    width: 30px; height: 30px; border-radius: 10px;
    background: linear-gradient(135deg, #FFB8D2, #FF9EC4 55%, #C9A6FF);
    color: #fff; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.ux-user-name { font-size: 13px; font-weight: 600; color: var(--ux-text); }
.ux-user-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--ux-border); border-radius: 14px; box-shadow: var(--ux-shadow-md);
    padding: 6px; display: none; z-index: 200;
}
.ux-user-menu.is-open { display: block; }
.ux-user-menu a, .ux-user-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%;
    height: 36px; padding: 0 10px; border-radius: 9px; border: none;
    background: none; font-size: 13px; color: var(--ux-text); cursor: pointer; text-align: left;
    white-space: nowrap;
}
.ux-user-menu svg { width: 15px; height: 15px; flex: none; }
.ux-user-menu a:hover, .ux-user-menu button:hover { background: rgba(110, 141, 255, .1); color: var(--ux-primary-deep); }
.ux-user-menu .is-danger:hover { background: rgba(229, 72, 77, .1); color: var(--ux-danger); }

.ux-main { flex: 1; padding: 22px 26px 90px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* 移动端底部导航 */
.ux-tabbar { display: none; }

/* ==================== 搜索浮层 ==================== */
.ux-search-layer {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 24px 14px 0;
    background: rgba(30, 38, 60, .35);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility .25s;
}
.ux-search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ux-search-layer-card {
    width: 100%; max-width: 480px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(243, 245, 252, .92));
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(30, 40, 90, .22), inset 0 1px 0 #fff;
    padding: 10px 10px 8px;
}
.ux-search-layer-row { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.ux-search-layer-row > svg { width: 16px; height: 16px; color: var(--ux-text-3); flex: none; }
.ux-search-layer-row input {
    flex: 1; min-width: 0; height: 42px;
    border: none; outline: none; background: transparent;
    font-size: 14px; color: var(--ux-text);
}
.ux-search-layer-row input::placeholder { color: var(--ux-text-3); }
.ux-search-layer-close {
    width: 32px; height: 32px; flex: none;
    border-radius: 50%; border: none; cursor: pointer;
    background: rgba(110, 141, 255, .10); color: var(--ux-text-2);
    display: inline-flex; align-items: center; justify-content: center;
}
.ux-search-layer-tip { margin: 4px 8px 2px; font-size: 11.5px; color: var(--ux-text-3); }

/* ==================== 通用组件 ==================== */
.ux-panel {
    background: var(--ux-glass);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-lg); box-shadow: var(--ux-shadow-sm);
    padding: 20px 22px;
}
.ux-panel-title { font-size: 16px; font-weight: 700; }
.ux-panel-sub { margin-top: 3px; font-size: 12.5px; color: var(--ux-text-2); }
.ux-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ux-more { font-size: 12.5px; color: var(--ux-text-2); display: inline-flex; align-items: center; gap: 3px; }
.ux-more:hover { color: var(--ux-primary); }

.ux-empty { text-align: center; padding: 46px 16px; color: var(--ux-text-3); }
.ux-empty-icon {
    width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 20px;
    background: rgba(110, 141, 255, .12); color: var(--ux-primary);
    display: flex; align-items: center; justify-content: center;
}
.ux-empty-icon svg { width: 26px; height: 26px; }
.ux-empty p { font-size: 13px; }

/* 页脚：跟在页面内容底部，居中显示（备案号） */
.ux-footer {
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--ux-line);
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px;
    font-size: 12px; color: var(--ux-text-3);
    text-align: center;
}
.ux-footer-sep { opacity: .55; }

.ux-toast {
    position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
    background: rgba(30, 38, 60, .92); color: #fff;
    font-size: 13px; padding: 10px 18px; border-radius: 12px;
    box-shadow: var(--ux-shadow-md); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; z-index: 500; max-width: 86vw;
}
.ux-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.ux-mock-tag {
    display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
    border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .5px;
    white-space: nowrap; flex: none;
    background: rgba(255, 159, 90, .16); color: #C97A2B;
}

/* ==================== 首页 ==================== */
.hero {
    position: relative; overflow: hidden;
    border-radius: var(--ux-radius-lg);
    background: linear-gradient(108deg, #8FB0FF 0%, #6E8DFA 42%, #8F7BFF 100%);
    box-shadow: 0 18px 44px rgba(91, 124, 250, .35);
    padding: 34px 34px 30px; color: #fff;
    display: flex; align-items: center; gap: 24px; margin-bottom: 18px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
    width: 300px; height: 300px; right: 220px; top: -110px;
    background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 66%);
}
.hero::after {
    width: 200px; height: 200px; right: -60px; bottom: -90px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%);
}
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-title { font-size: 27px; font-weight: 800; letter-spacing: 1px; }
.hero-sub { margin-top: 9px; font-size: 13.5px; opacity: .92; letter-spacing: .5px; }
.hero-cta {
    margin-top: 20px; display: inline-flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 22px; border-radius: 999px; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--ux-primary-deep);
    font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 22px rgba(30, 40, 90, .25);
    transition: transform .18s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 40, 90, .32); }
.hero-cta svg { width: 15px; height: 15px; }
.hero-bubbles { position: absolute; left: 44%; top: 18%; display: flex; gap: 14px; opacity: .8; }
.hero-bubbles i {
    width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25));
    animation: hero-float 4.6s ease-in-out infinite;
}
.hero-bubbles i:nth-child(2) { width: 10px; height: 10px; animation-delay: 1.2s; }
.hero-bubbles i:nth-child(3) { width: 7px; height: 7px; animation-delay: 2.1s; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }


.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.quick-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--ux-glass); border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-md); padding: 15px 16px;
    box-shadow: var(--ux-shadow-sm); color: var(--ux-text);
    transition: transform .18s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-md); color: var(--ux-text); }
.quick-icon {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.quick-icon svg { width: 20px; height: 20px; }
.qi-blue { background: linear-gradient(135deg, #7C9BFF, #5B7CFA); }
.qi-orange { background: linear-gradient(135deg, #FFB36B, #FF8E4D); }
.qi-violet { background: linear-gradient(135deg, #A88FFF, #8F7BFF); }
.qi-cyan { background: linear-gradient(135deg, #55C8F2, #38A8E8); }
.quick-name { font-size: 13.5px; font-weight: 700; }
.quick-sub { margin-top: 2px; font-size: 11.5px; color: var(--ux-text-2); }

.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tool-card {
    position: relative; background: var(--ux-glass); border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-md); padding: 18px 16px 15px;
    box-shadow: var(--ux-shadow-sm); color: var(--ux-text);
    transition: transform .18s, box-shadow .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-md); color: var(--ux-text); }
.tool-arrow {
    position: absolute; top: 12px; right: 12px; width: 14px; height: 14px;
    color: var(--ux-text-3); opacity: 0; transition: opacity .18s, color .18s, transform .18s;
}
.tool-card:hover .tool-arrow { opacity: 1; color: var(--ux-primary); transform: translate(2px, -2px); }
.tool-icon {
    width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.tool-icon svg { width: 21px; height: 21px; }
.tool-name { font-size: 13.5px; font-weight: 700; }
.tool-sub { margin-top: 3px; font-size: 11.5px; color: var(--ux-text-2); }

.skin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.skin-card {
    background: var(--ux-glass); border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-md); overflow: hidden; box-shadow: var(--ux-shadow-sm);
    transition: transform .18s, box-shadow .2s; display: block; color: var(--ux-text);
}
.skin-card:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-md); color: var(--ux-text); }
.skin-cover { display: block; height: 108px; position: relative; }
.skin-cover::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120px 60px at 78% 18%, rgba(255, 255, 255, .5), transparent 70%);
}
.skin-body { padding: 11px 13px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skin-name { font-size: 13px; font-weight: 700; }
.skin-price { font-size: 12.5px; font-weight: 800; color: var(--ux-orange); }
.skin-price small { font-size: 10px; font-weight: 600; margin-right: 1px; }

.ux-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .6); border: 1px solid var(--ux-line);
    border-radius: 12px; padding: 9px 12px;
}
.mini-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.mini-icon svg { width: 15px; height: 15px; }
.mini-name { font-size: 12.5px; font-weight: 600; }
.mini-sub { margin-top: 1px; font-size: 11px; color: var(--ux-text-2); }
.mini-time { margin-left: auto; font-size: 11px; color: var(--ux-text-3); flex: none; }

/* ==================== 登录 / 注册页 ==================== */
.login-split {
    min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 520px) 1fr;
}
.login-pane {
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px clamp(28px, 6vw, 84px);
    background: rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.login-pane-inner { width: 100%; max-width: 360px; margin: 0 auto; }
.login-brand-mark {
    width: 44px; height: 44px; border-radius: 14px; margin-bottom: 20px;
    background: linear-gradient(135deg, #7C9BFF, #5B7CFA 60%, #8F7BFF);
    color: #fff; font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(91, 124, 250, .35);
}
.login-title { font-size: 24px; font-weight: 800; }
.login-sub { margin: 6px 0 26px; font-size: 13px; color: var(--ux-text-2); }

.auth-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: rgba(120, 140, 200, .1); border-radius: 12px; padding: 4px;
}
.auth-tab {
    flex: 1; height: 36px; border: none; border-radius: 9px; cursor: pointer;
    background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ux-text-2);
    transition: background .2s, color .2s, box-shadow .2s;
}
.auth-tab.is-active { background: #fff; color: var(--ux-text); box-shadow: var(--ux-shadow-sm); }

.auth-alert {
    margin-bottom: 14px; padding: 10px 13px; border-radius: 11px;
    font-size: 12.5px; animation: ux-fade-in .2s ease;
}
.auth-alert.is-error { background: rgba(229, 72, 77, .1); color: #B3383C; border: 1px solid rgba(229, 72, 77, .22); }
.auth-alert.is-warn { background: rgba(217, 119, 6, .1); color: #9A5B08; border: 1px solid rgba(217, 119, 6, .22); }
@keyframes ux-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; font-size: 12.5px; }
.auth-check { display: flex; align-items: center; gap: 6px; color: var(--ux-text-2); cursor: pointer; }
.auth-check input { accent-color: var(--ux-primary); }
.auth-row a { color: var(--ux-text-2); }
.auth-row a:hover { color: var(--ux-primary); }
.auth-btn-block { width: 100%; height: 44px; font-size: 14.5px; border-radius: 13px; }
.auth-tip { margin-top: 22px; font-size: 11.5px; color: var(--ux-text-3); line-height: 1.7; }

.login-brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background:
        radial-gradient(560px 340px at 78% 12%, rgba(255, 255, 255, .5), transparent 66%),
        linear-gradient(150deg, #93B2FF 0%, #6E8DFA 46%, #9A82FF 100%);
}
.login-brand::before {
    content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
    left: 14%; bottom: -34%;
    background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 64%);
    animation: ux-drift 9s ease-in-out infinite;
}
.login-brand::after {
    content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
    right: 8%; top: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 62%);
    animation: ux-drift 7s ease-in-out infinite reverse;
}
@keyframes ux-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-22px, -14px); } }
.login-brand-card {
    position: relative; z-index: 1; text-align: center; color: #fff;
    padding: 40px 46px; border-radius: 26px;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 22px 60px rgba(40, 50, 110, .3);
}
.login-brand-paw { width: 64px; height: 64px; margin: 0 auto 16px; display: block; opacity: .95; }
.login-brand-title { font-size: 23px; font-weight: 800; letter-spacing: 2px; }
.login-brand-sub { margin-top: 10px; font-size: 12.5px; opacity: .9; letter-spacing: 1px; }

/* ==================== 个人中心 ==================== */
.profile-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--ux-glass); border: 1px solid var(--ux-border);
    border-radius: var(--ux-radius-lg); box-shadow: var(--ux-shadow-sm);
    padding: 22px 24px; margin-bottom: 16px;
}
.profile-avatar {
    width: 64px; height: 64px; border-radius: 20px; flex: none;
    background: linear-gradient(135deg, #FFB8D2, #FF9EC4 55%, #C9A6FF);
    color: #fff; font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(255, 158, 196, .4);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-meta { margin-top: 4px; font-size: 12px; color: var(--ux-text-2); display: flex; gap: 14px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 22px; }
.profile-stat { text-align: center; }
.profile-stat b { display: block; font-size: 18px; font-weight: 800; }
.profile-stat span { font-size: 11px; color: var(--ux-text-2); }

.seg-tabs {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 14px;
    background: rgba(120, 140, 200, .1); border-radius: 13px; overflow-x: auto;
}
.seg-tab {
    flex: none; height: 36px; padding: 0 16px; border: none; border-radius: 10px; cursor: pointer;
    background: transparent; font-size: 13px; font-weight: 600; color: var(--ux-text-2);
    transition: background .2s, color .2s, box-shadow .2s;
}
.seg-tab.is-active { background: #fff; color: var(--ux-text); box-shadow: var(--ux-shadow-sm); }

.account-notice {
    padding: 11px 14px; margin-bottom: 14px; border-radius: 12px;
    font-size: 12.5px; color: #4A63E8;
    background: rgba(91, 124, 250, .09); border: 1px solid rgba(91, 124, 250, .18);
}
.account-notice a { font-weight: 700; }

.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.device-card {
    display: flex; gap: 13px;
    background: rgba(255, 255, 255, .66); border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius-md); padding: 15px 16px;
}
.device-card.is-current { border-color: rgba(91, 124, 250, .4); background: rgba(110, 141, 255, .08); }
.device-icon {
    width: 44px; height: 44px; border-radius: 13px; flex: none;
    background: linear-gradient(135deg, rgba(110, 141, 255, .16), rgba(143, 123, 255, .13));
    color: var(--ux-primary-deep); display: flex; align-items: center; justify-content: center;
}
.device-main { flex: 1; min-width: 0; }
.device-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.device-name { font-size: 13.5px; font-weight: 700; }
.device-current { font-size: 11px; font-weight: 700; color: var(--ux-primary-deep); }
.device-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.device-chip {
    display: inline-flex; align-items: center; height: 19px; padding: 0 8px;
    border-radius: 6px; font-size: 10.5px; font-weight: 600;
    background: rgba(120, 140, 200, .12); color: var(--ux-text-2);
}
.chip-danger { background: rgba(229, 72, 77, .12); color: var(--ux-danger); }
.device-kv { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 11.5px; }
.device-kv-key { color: var(--ux-text-3); flex: none; }
.device-kv-val { color: var(--ux-text); font-weight: 600; text-align: right; word-break: break-all; }
.btn-device-exit {
    flex: none; height: 26px; padding: 0 10px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(91, 124, 250, .35); background: #fff; color: var(--ux-primary-deep);
    font-size: 11.5px; font-weight: 600; transition: background .15s;
}
.btn-device-exit:hover { background: rgba(91, 124, 250, .1); }

.log-day { margin: 14px 0 8px; font-size: 13px; color: var(--ux-text-2); }
.account-list { display: flex; flex-direction: column; gap: 8px; }
.account-row {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255, 255, 255, .66); border: 1px solid var(--ux-line);
    border-radius: 12px; padding: 11px 14px;
}
.account-row-main { flex: 1; min-width: 0; }
.account-row-main strong { display: block; font-size: 13px; font-weight: 700; }
.account-row-main small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ux-text-2); }
.account-form { max-width: 420px; }
.account-check { display: flex; align-items: center; gap: 7px; margin: 4px 0 16px; font-size: 12.5px; color: var(--ux-text-2); cursor: pointer; }
.account-check input { accent-color: var(--ux-primary); }
.muted { color: var(--ux-text-3); font-size: 12.5px; }

/* ==================== 占位页（工具集 / 商城 / 会员等） ==================== */
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
    height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ux-line);
    background: rgba(255, 255, 255, .7); color: var(--ux-text-2);
    font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--ux-primary-deep); border-color: rgba(91, 124, 250, .35); }
.chip.is-active { background: linear-gradient(120deg, #6E8DFF, #7C6BF5); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(91, 124, 250, .3); }

.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vip-card {
    position: relative; border-radius: var(--ux-radius-lg); padding: 24px 22px;
    background: var(--ux-glass); border: 1px solid var(--ux-border);
    box-shadow: var(--ux-shadow-sm); transition: transform .18s, box-shadow .2s;
}
.vip-card:hover { transform: translateY(-3px); box-shadow: var(--ux-shadow-md); }
.vip-card.is-featured {
    background: linear-gradient(150deg, #7C9BFF, #5B7CFA 55%, #8F7BFF);
    color: #fff; border-color: transparent; box-shadow: 0 16px 40px rgba(91, 124, 250, .4);
}
.vip-flag {
    position: absolute; top: 14px; right: 14px; height: 20px; padding: 0 9px;
    border-radius: 999px; background: rgba(255, 255, 255, .25); font-size: 10.5px; font-weight: 700;
}
.vip-name { font-size: 15px; font-weight: 800; }
.vip-price { margin: 10px 0 4px; font-size: 27px; font-weight: 800; }
.vip-price small { font-size: 12px; font-weight: 600; opacity: .8; }
.vip-origin { font-size: 11.5px; opacity: .75; }
.vip-list { margin: 16px 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vip-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.vip-list svg { width: 14px; height: 14px; flex: none; color: var(--ux-mint); }
.vip-card.is-featured .vip-list svg { color: #B7F4D8; }
.vip-btn { width: 100%; }

.redeem-box { max-width: 460px; margin: 0 auto; text-align: center; }
.redeem-input-row { display: flex; gap: 10px; margin: 18px 0 12px; }
.redeem-input-row .field-input { flex: 1; text-align: center; letter-spacing: 2px; }

/* ==================== 桌面侧栏收缩 ==================== */
@media (min-width: 901px) {
    .ux-shell.is-collapsed .ux-sidebar { width: 68px; padding-left: 10px; padding-right: 10px; }
    .ux-shell.is-collapsed .ux-body { margin-left: 68px; }
    .ux-shell.is-collapsed .ux-logo { justify-content: center; padding-left: 0; padding-right: 0; }
    .ux-shell.is-collapsed .ux-logo > div { display: none; }
    .ux-shell.is-collapsed .ux-nav a { justify-content: center; padding: 0; gap: 0; }
    .ux-shell.is-collapsed .ux-nav a span { display: none; }
    .ux-shell.is-collapsed .ux-side-foot { display: none; }
}

/* ==================== 移动端 ==================== */
@media (max-width: 900px) {
    .ux-body { margin-left: 0; }

    .ux-sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200;
        width: 232px; height: auto; transform: translateX(-104%);
        transition: transform .26s ease; box-shadow: 0 14px 40px rgba(40, 50, 110, .22);
        background: rgba(255, 255, 255, .96);
    }
    .ux-sidebar.is-open { transform: translateX(0); }
    .ux-mask {
        position: fixed; inset: 0; z-index: 1100;
        background: rgba(30, 38, 60, .38); opacity: 0; pointer-events: none;
        transition: opacity .26s;
    }
    .ux-mask.is-show { opacity: 1; pointer-events: auto; }
    button.ux-burger { display: inline-flex; }
    .ux-main { padding: 64px 14px 96px; }  /* 顶栏悬浮后预留空间 */
    .ux-user-name { display: none; }

    /* 顶栏：容器完全透明，仅元素各自悬浮（汉堡 / 标题 / 右侧胶囊） */
    .ux-topbar {
        position: fixed; z-index: 1000;
        left: 12px; right: 12px; top: 10px;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    /* 顶栏自动收起：上滑上移隐藏、下拉回位 */
    .ux-topbar {
        transition: transform .28s ease, opacity .22s ease;
        will-change: transform;
    }
    .ux-topbar.is-hidden { transform: translateY(calc(-100% - 14px)); opacity: 0; }
    /* 页面标题：居中显示在顶栏中部 */
    .ux-crumbs {
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        max-width: 44%;
        justify-content: center;
        margin: 0; gap: 0;
    }
    .ux-crumb-root, .ux-crumb-sep { display: none; }
    .ux-crumb-cur {
        font-size: 15px; font-weight: 800;
        max-width: 100%;
    }

    /* 搜索输入框隐藏，改为浮层按钮 */
    .ux-search { display: none; }
    button.ux-search-btn { display: inline-flex; }

    /* 右侧：搜索 + 通知 + 头像 收进一枚胶囊 */
    .ux-topbar-right {
        margin-left: auto;
        gap: 2px;
        padding: 3px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(243, 245, 252, .72));
        border: 1px solid rgba(255, 255, 255, .85);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .95),
            0 3px 10px rgba(31, 45, 80, .10);
    }
    .ux-topbar-right .ux-icon-btn {
        width: 38px; height: 38px;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
        color: var(--ux-text-2);
    }
    .ux-topbar-right .ux-icon-btn:hover { background: rgba(110, 141, 255, .12); color: var(--ux-primary); }
    .ux-user-btn {
        width: 38px; height: 38px;
        padding: 2px;
        justify-content: center;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .ux-user-btn:hover { background: rgba(110, 141, 255, .10); border-color: transparent; }
    .ux-avatar { width: 32px; height: 32px; border-radius: 50%; }

    /* 双态：默认 搜索+头像；有未读 搜索+铃铛（红点） */
    .ux-topbar-right #uxBell { display: none; }
    .ux-topbar-right.has-unread #uxBell { display: inline-flex; }
    .ux-topbar-right.has-unread .ux-user { display: none; }

    /* 搜索浮层：移动端顶部贴安全区 */
    .ux-search-layer { padding: calc(12px + env(safe-area-inset-top)) 14px 0; }

    /* 汉堡：正圆白玻璃（与其他图标同款，无外圈） */
    .ux-burger {
        width: 44px; height: 44px;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 245, 252, .82));
        border: 1px solid rgba(255, 255, 255, .85);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .95),
            0 3px 10px rgba(31, 45, 80, .10);
    }
    .ux-burger:active { transform: scale(.94); }

    /* 右侧：铃铛与头像各自独立的圆形玻璃按钮 */
    .ux-topbar-right {
        margin-left: auto;
        gap: 8px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    .ux-topbar-right .ux-icon-btn {
        width: 44px; height: 44px;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 245, 252, .82));
        border: 1px solid rgba(255, 255, 255, .85);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .95),
            0 3px 10px rgba(31, 45, 80, .10);
        color: var(--ux-text-2);
    }
    .ux-topbar-right .ux-icon-btn:hover { background: #fff; color: var(--ux-primary); }
    .ux-user-btn {
        width: 44px; height: 44px;
        padding: 3px;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 245, 252, .82));
        border: 1px solid rgba(255, 255, 255, .85);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .95),
            0 3px 10px rgba(31, 45, 80, .10);
    }
    .ux-user-btn:hover { background: #fff; border-color: rgba(255, 255, 255, .85); }
    .ux-avatar { width: 36px; height: 36px; border-radius: 50%; }   /* 圆形头像 */

    /* 悬浮圆角液态胶囊 */
    .ux-tabbar {
        position: fixed; z-index: 1000;
        left: 12px; right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        display: flex; align-items: center;
        padding: 6px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .60));
        -webkit-backdrop-filter: blur(22px) saturate(180%);
        backdrop-filter: blur(22px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, .65);
        box-shadow:
            0 12px 28px rgba(31, 45, 80, .15),
            0 2px 6px rgba(31, 45, 80, .08),
            inset 0 1px 0 rgba(255, 255, 255, .9),
            inset 0 -1px 0 rgba(120, 140, 190, .10);
    }
    /* 玻璃受光的高光弧 */
    .ux-tabbar::before {
        content: ''; position: absolute; inset: 0; border-radius: inherit;
        pointer-events: none;
        background: radial-gradient(120% 90% at 50% -22%, rgba(255, 255, 255, .85), transparent 62%);
    }
    /* 顶部彩色光晕（折射感） */
    .ux-tabbar::after {
        content: ''; position: absolute; left: 10%; right: 10%; top: -4px; height: 30px;
        border-radius: 50%; filter: blur(11px); opacity: .5; pointer-events: none;
        background: linear-gradient(90deg, rgba(110, 141, 255, .55), rgba(167, 139, 250, .45), rgba(34, 211, 238, .40));
    }
    .ux-tab {
        position: relative; z-index: 2;
        flex: 1; height: 50px;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        border: none; background: none; cursor: pointer;
        font-size: 10px; font-weight: 700; color: var(--ux-text-3); text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .ux-tab svg { width: 21px; height: 21px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
    .ux-tab span { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
    .ux-tab.is-active { color: var(--ux-primary-deep); }
    .ux-tab.is-active svg { transform: translateY(-1px) scale(1.14); }
    .ux-tab:active svg { transform: scale(.88); }
    /* 液态滑块：位置由 data-active 决定，无需 JS */
    .ux-tabbar-liquid {
        position: absolute; z-index: 1;
        top: 6px; left: 6px;
        width: calc((100% - 12px) / 4);
        height: calc(100% - 12px);
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(110, 141, 255, .22), rgba(167, 139, 250, .17) 60%, rgba(34, 211, 238, .14));
        border: 1px solid rgba(255, 255, 255, .7);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 12px rgba(91, 124, 250, .18);
        transition: transform .45s cubic-bezier(.34, 1.22, .5, 1);
    }
    .ux-tabbar[data-active="1"] .ux-tabbar-liquid { transform: translateX(100%); }
    .ux-tabbar[data-active="2"] .ux-tabbar-liquid { transform: translateX(200%); }
    .ux-tabbar[data-active="3"] .ux-tabbar-liquid { transform: translateX(300%); }

    .hero { flex-direction: column; align-items: stretch; padding: 24px 20px; }
    .hero-title { font-size: 21px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .skin-grid { grid-template-columns: repeat(2, 1fr); }
    .ux-cols { grid-template-columns: 1fr; }
    .profile-card { flex-wrap: wrap; }
    .profile-stats { width: 100%; justify-content: space-around; padding-top: 6px; border-top: 1px solid var(--ux-line); }
    .device-grid { grid-template-columns: 1fr; }
    .vip-grid { grid-template-columns: 1fr; }
    .login-split { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-pane { padding: 40px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bubbles i, .login-brand::before, .login-brand::after { animation: none; }
    .koi-loader-gooey span { animation: none; }
    .koi-loader.is-leaving { animation: none; opacity: 0; transition: opacity .25s linear; }
}
