/* DevCode 程序员风格 · 浅色主题 · 用户中心模板 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --xy-primary: #0969da;
    --xy-primary-hover: #0550ae;
    --xy-primary-light: #ddf4ff;
    --xy-accent: #1a7f37;
    --xy-accent-light: #dafbe1;
    --xy-purple: #8250df;
    --xy-orange: #bc4c00;
    --xy-bg: #f6f8fa;
    --xy-bg-gradient: linear-gradient(180deg, #eef2f6 0%, #f6f8fa 35%, #f6f8fa 100%);
    --xy-grid: radial-gradient(circle, rgba(208, 215, 222, 0.55) 1px, transparent 1px);
    --xy-card: #ffffff;
    --xy-text: #1f2328;
    --xy-text-secondary: #656d76;
    --xy-border: #d0d7de;
    --xy-border-light: #eaeef2;
    --xy-success: #1a7f37;
    --xy-danger: #cf222e;
    --xy-warning: #9a6700;
    --xy-shadow: 0 1px 0 rgba(31, 35, 40, 0.04), 0 6px 20px rgba(140, 149, 159, 0.1);
    --xy-shadow-lg: 0 12px 40px rgba(140, 149, 159, 0.16);
    --xy-radius: 10px;
    --xy-radius-lg: 14px;
    --xy-nav-height: 60px;
    --xy-sidebar-width: 248px;
    --xy-bottom-nav-height: 0px;
    --xy-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Consolas, monospace;
    --xy-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --xy-dur: 0.32s;
}

* { box-sizing: border-box; }

@keyframes xyFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes xySlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes xyLoaderSpin { to { transform: rotate(360deg); } }

@keyframes xyCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

body.xy-body {
    margin: 0;
    font-family: var(--xy-mono);
    background-color: var(--xy-bg);
    background-image: var(--xy-grid);
    background-size: 22px 22px;
    color: var(--xy-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

body.xy-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 45% at 10% 0%, rgba(9, 105, 218, 0.07), transparent 50%),
        radial-gradient(ellipse 55% 35% at 90% 8%, rgba(26, 127, 55, 0.05), transparent 45%);
    animation: xyMeshDrift 20s ease-in-out infinite alternate;
}

@keyframes xyMeshDrift {
    0% { opacity: 0.8; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(-10px); }
}

/* ========== 顶部导航 ========== */
.xy-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--xy-nav-height);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--xy-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    animation: xySlideDown 0.45s var(--xy-ease);
}

.xy-navbar-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.xy-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--xy-text);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 1;
    min-width: 0;
    letter-spacing: -0.02em;
    transition: opacity var(--xy-dur) var(--xy-ease);
}

.xy-brand:hover { opacity: 0.85; color: var(--xy-text); }

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

.xy-brand-text::before {
    content: '~/user/ ';
    color: var(--xy-accent);
    font-weight: 500;
}

.xy-brand-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--xy-text);
    border: 1px solid var(--xy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: var(--xy-shadow);
}

.xy-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.xy-nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--xy-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--xy-dur) var(--xy-ease);
    border: 1px solid transparent;
}

.xy-nav-link:hover,
.xy-nav-link.active {
    color: var(--xy-primary);
    background: var(--xy-primary-light);
    border-color: rgba(9, 105, 218, 0.2);
}

.xy-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.xy-user-dropdown { position: relative; }

.xy-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--xy-border);
    border-radius: 999px;
    background: var(--xy-card);
    cursor: pointer;
    font-size: 13px;
    color: var(--xy-text);
    font-family: var(--xy-mono);
    transition: all var(--xy-dur) var(--xy-ease);
}

.xy-user-btn:hover { border-color: var(--xy-primary); box-shadow: var(--xy-shadow); }

.xy-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xy-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--xy-text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.xy-avatar-lg {
    width: 50px; height: 50px;
    font-size: 20px;
    box-shadow: var(--xy-shadow);
}

.xy-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--xy-card);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    box-shadow: var(--xy-shadow-lg);
    padding: 6px;
    display: none;
    z-index: 1001;
    animation: xySlideDown 0.22s var(--xy-ease);
}

.xy-user-dropdown.open .xy-dropdown-menu { display: block; }

.xy-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--xy-text);
    font-size: 13px;
    transition: background var(--xy-dur) var(--xy-ease);
}

.xy-dropdown-item:hover { background: var(--xy-bg); color: var(--xy-primary); }
.xy-dropdown-item.danger { color: var(--xy-danger); }
.xy-dropdown-item.danger:hover { background: #ffebe9; color: var(--xy-danger); }

/* ========== 主布局 ========== */
.xy-layout {
    display: flex;
    padding-top: var(--xy-nav-height);
    min-height: 100vh;
}

.xy-sidebar {
    width: var(--xy-sidebar-width);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.72);
    border-right: 1px solid var(--xy-border);
    padding: 18px 10px;
    position: fixed;
    top: var(--xy-nav-height);
    bottom: 0;
    overflow-y: auto;
}

.xy-sidebar-user {
    text-align: center;
    padding: 18px 12px;
    margin-bottom: 10px;
    background: var(--xy-card);
    border-radius: var(--xy-radius);
    box-shadow: var(--xy-shadow);
    border: 1px solid var(--xy-border);
    animation: xyFadeUp 0.45s var(--xy-ease) both;
}

.xy-sidebar-user .xy-avatar {
    width: 52px; height: 52px;
    font-size: 20px;
    margin: 0 auto 10px;
}

.xy-sidebar-user .name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.xy-sidebar-user .email {
    font-size: 11px;
    color: var(--xy-text-secondary);
    word-break: break-all;
}

.xy-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--xy-text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all var(--xy-dur) var(--xy-ease);
    border: 1px solid transparent;
}

.xy-menu-item i {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #f6f8fa;
    border: 1px solid var(--xy-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--xy-dur) var(--xy-ease);
}

.xy-menu-item:hover,
.xy-menu-item.active {
    color: var(--xy-primary);
    background: var(--xy-primary-light);
    border-color: rgba(9, 105, 218, 0.15);
}

.xy-menu-item:hover i,
.xy-menu-item.active i {
    background: rgba(9, 105, 218, 0.12);
    color: var(--xy-primary);
    border-color: #b6e3ff;
}

.xy-sidebar-nav { padding: 0 4px; }

/* 底部导航 */
.xy-bottom-nav {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    height: auto;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    box-shadow: var(--xy-shadow-lg);
    display: flex;
    align-items: stretch;
    z-index: 1000;
    padding: 5px 4px;
}

.xy-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--xy-text-secondary);
    font-size: 10px;
    font-weight: 600;
    padding: 5px 4px;
    border-radius: 10px;
    transition: all var(--xy-dur) var(--xy-ease);
    min-width: 0;
}

.xy-bottom-nav-icon {
    width: 38px; height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--xy-dur) var(--xy-ease);
}

.xy-bottom-nav-icon i { font-size: 20px; line-height: 1; }

.xy-bottom-nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}

.xy-bottom-nav-item.active { color: var(--xy-primary); }

.xy-bottom-nav-item.active .xy-bottom-nav-icon {
    background: var(--xy-primary-light);
    transform: translateY(-1px);
}

.xy-bottom-nav-item.xy-bottom-nav-highlight .xy-bottom-nav-icon {
    background: var(--xy-primary);
    color: #fff;
    width: 42px; height: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(9, 105, 218, 0.35);
}

.xy-bottom-nav-item.xy-bottom-nav-highlight.active .xy-bottom-nav-icon,
.xy-bottom-nav-item.xy-bottom-nav-highlight .xy-bottom-nav-icon {
    background: var(--xy-primary);
    color: #fff;
}

.xy-bottom-nav-item:active { transform: scale(0.96); }

.xy-main {
    flex: 1;
    margin-left: var(--xy-sidebar-width);
    min-height: calc(100vh - var(--xy-nav-height));
    padding-bottom: var(--xy-bottom-nav-height);
    position: relative;
}

/* 页面加载动画 */
.xy-page-loader,
#lyear-loading {
    position: absolute;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(246, 248, 250, 0.65);
    backdrop-filter: blur(4px);
}

.xy-page-loader.active { display: flex; }

#lyear-loading {
    height: 100% !important;
    width: 100% !important;
}

.xy-iframe-wrap .mt-wrapper { position: relative; height: 100%; }

.mt-nav-bar { display: none !important; }

.mt-wrapper,
.mt-tab-content { height: 100% !important; }

.xy-loader-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.xy-loader-ring {
    position: relative;
    width: 32px; height: 32px;
}

.xy-loader-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--xy-primary-light);
    border-top-color: var(--xy-primary);
    animation: xyLoaderSpin 0.75s linear infinite;
}

.xy-loader-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--xy-text-secondary);
    letter-spacing: 0.04em;
    font-family: var(--xy-mono);
}

.xy-loader-text::after {
    content: '...';
    animation: xyCursorBlink 1.2s step-end infinite;
}

#lyear-loading .spinner-border { display: none; }

.xy-iframe-wrap {
    width: 100%;
    height: calc(100vh - var(--xy-nav-height) - var(--xy-bottom-nav-height) - env(safe-area-inset-bottom, 0px));
    border: none;
    background: transparent;
}

.xy-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ========== 内容页 ========== */
.xy-page {
    padding: 24px;
    max-width: 1200px;
    animation: xyFadeUp 0.4s var(--xy-ease) both;
}

.xy-page-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--xy-border-light);
}

.xy-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.xy-page-title::before {
    content: '$ ';
    color: var(--xy-accent);
    font-weight: 500;
}

.xy-page-desc {
    color: var(--xy-text-secondary);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

/* 卡片 */
.xy-card {
    background: var(--xy-card);
    border-radius: var(--xy-radius-lg);
    box-shadow: var(--xy-shadow);
    border: 1px solid var(--xy-border);
    margin-bottom: 18px;
    overflow: hidden;
    transition: box-shadow var(--xy-dur) var(--xy-ease), border-color var(--xy-dur) var(--xy-ease);
}

.xy-card:hover {
    box-shadow: var(--xy-shadow-lg);
    border-color: rgba(9, 105, 218, 0.2);
}

.xy-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--xy-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

.xy-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xy-card-title i { color: var(--xy-primary); font-size: 17px; }

.xy-card-body { padding: 18px; }

/* 标签 */
.xy-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--xy-mono);
    border: 1px solid transparent;
}

.xy-badge-success { background: var(--xy-accent-light); color: var(--xy-success); border-color: #aceebb; }
.xy-badge-danger { background: #ffebe9; color: var(--xy-danger); border-color: #ffcecb; }
.xy-badge-warning { background: #fff8c5; color: var(--xy-warning); border-color: #fae17d; }
.xy-badge-info { background: var(--xy-primary-light); color: var(--xy-primary); border-color: #b6e3ff; }

/* 按钮 */
.xy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--xy-mono);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--xy-dur) var(--xy-ease);
    line-height: 1.5;
}

.xy-btn-primary {
    background: var(--xy-primary);
    color: #fff;
    border-color: var(--xy-primary);
}

.xy-btn-primary:hover {
    background: var(--xy-primary-hover);
    border-color: var(--xy-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(9, 105, 218, 0.28);
}

.xy-btn-outline {
    background: var(--xy-card);
    color: var(--xy-primary);
    border-color: var(--xy-border);
}

.xy-btn-outline:hover {
    background: var(--xy-primary-light);
    border-color: rgba(9, 105, 218, 0.35);
    color: var(--xy-primary);
}

.xy-btn-danger {
    background: var(--xy-danger);
    color: #fff;
    border-color: var(--xy-danger);
}

.xy-btn-danger:hover {
    background: #a40e26;
    color: #fff;
    transform: translateY(-1px);
}

.xy-btn-sm { padding: 5px 12px; font-size: 12px; }
.xy-btn-lg { padding: 11px 22px; font-size: 14px; }
.xy-btn-block { width: 100%; }

/* 表单 */
.xy-form-group { margin-bottom: 16px; }

.xy-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--xy-text);
}

.xy-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--xy-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--xy-mono);
    transition: all var(--xy-dur) var(--xy-ease);
    background: var(--xy-card);
}

.xy-form-control:focus {
    outline: none;
    border-color: var(--xy-primary);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.xy-input-icon { position: relative; }

.xy-input-icon i {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--xy-text-secondary);
    font-size: 17px;
}

.xy-input-icon .xy-form-control { padding-left: 40px; }

.xy-code-group { display: flex; gap: 10px; }
.xy-code-group .xy-form-control { flex: 1; }

/* 提示 */
.xy-alert {
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    font-family: var(--xy-mono);
    animation: xyFadeUp 0.35s var(--xy-ease) both;
}

.xy-alert-danger { background: #ffebe9; color: var(--xy-danger); border: 1px solid #ffcecb; }
.xy-alert-success { background: var(--xy-accent-light); color: var(--xy-success); border: 1px solid #aceebb; }
.xy-alert-info { background: var(--xy-primary-light); color: var(--xy-primary); border: 1px solid #b6e3ff; }

/* API Key */
.xy-api-key {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
}

.xy-api-key code {
    flex: 1;
    font-family: var(--xy-mono);
    font-size: 12px;
    word-break: break-all;
    color: #3fb950;
    line-height: 1.55;
}

/* 列表 */
.xy-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--xy-border-light);
    transition: background var(--xy-dur) var(--xy-ease);
}

.xy-list-item:last-child { border-bottom: none; }

.xy-list-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.xy-list-icon.success { background: var(--xy-accent-light); color: var(--xy-success); border-color: #aceebb; }
.xy-list-icon.fail { background: #ffebe9; color: var(--xy-danger); border-color: #ffcecb; }

/* Tab */
.xy-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f6f8fa;
    border: 1px solid var(--xy-border-light);
    border-radius: var(--xy-radius);
    margin-bottom: 18px;
    width: fit-content;
}

.xy-tab {
    padding: 7px 16px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--xy-text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--xy-mono);
    cursor: pointer;
    transition: all var(--xy-dur) var(--xy-ease);
}

.xy-tab.active {
    background: var(--xy-card);
    color: var(--xy-primary);
    box-shadow: var(--xy-shadow);
    font-weight: 600;
}

.xy-tab-pane {
    display: none;
    animation: xyFadeUp 0.3s var(--xy-ease) both;
}

.xy-tab-pane.active { display: block; }

/* 信息行 */
.xy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--xy-border-light);
    font-size: 13px;
}

.xy-info-row:last-child { border-bottom: none; }
.xy-info-label { color: var(--xy-text-secondary); }
.xy-info-value { font-weight: 600; }

/* 个人主页 hero */
.xy-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--xy-card);
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius-lg);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.xy-profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xy-primary), var(--xy-accent), var(--xy-purple));
}

.xy-profile-hero .xy-avatar {
    width: 68px; height: 68px;
    font-size: 26px;
    background: var(--xy-text);
}

.xy-profile-hero h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.xy-profile-hero p { margin: 0; color: var(--xy-text-secondary); font-size: 13px; }

/* 充值方案 */
.xy-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.xy-plan-card {
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all var(--xy-dur) var(--xy-ease);
    background: var(--xy-card);
}

.xy-plan-card:hover,
.xy-plan-card.selected {
    border-color: var(--xy-primary);
    background: var(--xy-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--xy-shadow);
}

.xy-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--xy-primary);
    margin: 8px 0;
}

.xy-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--xy-border);
    border-radius: var(--xy-radius);
    cursor: pointer;
    transition: all var(--xy-dur) var(--xy-ease);
    background: var(--xy-card);
}

.xy-payment-card:hover,
.xy-payment-card.selected {
    border-color: var(--xy-primary);
    background: var(--xy-primary-light);
    transform: translateY(-1px);
}

.xy-payment-card img { width: 34px; height: 34px; object-fit: contain; }

/* ========== 认证页 ========== */
.xy-auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--xy-bg);
    background-image: var(--xy-grid);
    background-size: 22px 22px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.xy-auth-body::before {
    content: '';
    position: absolute;
    top: -180px; right: -180px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(9, 105, 218, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.xy-auth-body::after {
    content: '';
    position: absolute;
    bottom: -140px; left: -140px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(26, 127, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.xy-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--xy-card);
    border-radius: var(--xy-radius-lg);
    box-shadow: var(--xy-shadow-lg);
    border: 1px solid var(--xy-border);
    padding: 36px 32px;
    position: relative;
    z-index: 1;
    animation: xyFadeUp 0.5s var(--xy-ease) both;
}

.xy-auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--xy-primary), var(--xy-accent));
    border-radius: var(--xy-radius-lg) var(--xy-radius-lg) 0 0;
}

.xy-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.xy-auth-logo .xy-brand-icon {
    width: 46px; height: 46px;
    font-size: 22px;
    margin: 0 auto 12px;
}

.xy-auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.xy-auth-subtitle {
    text-align: center;
    color: var(--xy-text-secondary);
    font-size: 13px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.xy-auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--xy-text-secondary);
}

.xy-auth-footer a {
    color: var(--xy-primary);
    text-decoration: none;
    font-weight: 600;
}

.xy-auth-footer a:hover { text-decoration: underline; }

/* 网格 */
.xy-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Bootstrap 兼容覆盖 */
.xy-page .form-select,
.xy-auth-card .form-select {
    border-radius: 8px;
    border-color: var(--xy-border);
    padding: 10px 14px;
    font-family: var(--xy-mono);
    font-size: 13px;
}

.xy-page textarea.form-control,
.xy-auth-card textarea.form-control {
    border-radius: 8px;
    border-color: var(--xy-border);
    font-family: var(--xy-mono);
}

.xy-selectable.selected { border-color: var(--xy-primary) !important; }

@media (max-width: 768px) {
    :root {
        --xy-nav-height: 56px;
        --xy-bottom-nav-height: 74px;
    }

    .xy-grid-2 { grid-template-columns: 1fr; gap: 14px; }

    .xy-navbar {
        padding: 0 16px;
        box-shadow: 0 1px 0 rgba(31, 35, 40, 0.04);
    }

    .xy-navbar-inner {
        gap: 10px;
        position: relative;
        justify-content: center;
    }

    .xy-brand {
        font-size: 14px;
        gap: 10px;
        flex: 0 1 auto;
        justify-content: center;
    }

    .xy-brand-text { max-width: calc(100vw - 120px); }
    .xy-brand-icon { width: 32px; height: 32px; font-size: 15px; }
    .xy-nav-links { display: none; }

    .xy-nav-right {
        gap: 6px;
        margin-left: 0;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .xy-user-btn {
        font-size: 0;
        padding: 3px;
        gap: 0;
        border: none;
        background: transparent;
    }

    .xy-user-btn .xy-avatar {
        width: 32px; height: 32px;
        font-size: 13px;
        box-shadow: var(--xy-shadow);
    }

    .xy-user-btn .xy-user-name,
    .xy-user-btn .mdi-chevron-down { display: none; }

    .xy-main { margin-left: 0; }
    .xy-iframe-wrap { background: var(--xy-bg); }

    .xy-page {
        padding: 0 0 18px;
        max-width: none;
    }

    .xy-page-header {
        margin: 0 0 18px;
        padding: 20px 16px 22px;
        background: var(--xy-card);
        border-bottom: 1px solid var(--xy-border);
        border-radius: 0 0 var(--xy-radius-lg) var(--xy-radius-lg);
        box-shadow: var(--xy-shadow);
        position: relative;
        overflow: hidden;
    }

    .xy-page-header::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--xy-primary), var(--xy-accent));
    }

    .xy-page-title {
        font-size: 18px;
        flex-wrap: wrap;
        color: var(--xy-text);
    }

    .xy-page-desc {
        font-size: 12px;
        color: var(--xy-text-secondary);
    }

    .xy-page > .xy-alert,
    .xy-page > .xy-tabs,
    .xy-page > .xy-tab-pane,
    .xy-page > .xy-grid-2,
    .xy-page > .xy-card,
    .xy-page > .xy-profile-hero {
        margin-left: 16px;
        margin-right: 16px;
    }

    .xy-page > .xy-alert { margin-top: 14px; }

    .xy-tabs {
        width: auto;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
        background: var(--xy-card);
        border: 1px solid var(--xy-border);
        box-shadow: var(--xy-shadow);
        padding: 4px;
        border-radius: var(--xy-radius);
        margin-bottom: 14px;
    }

    .xy-tabs::-webkit-scrollbar { display: none; }

    .xy-tab {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .xy-tab.active {
        background: var(--xy-primary);
        color: #fff;
        box-shadow: 0 3px 10px rgba(9, 105, 218, 0.3);
    }

    .xy-card {
        border-radius: var(--xy-radius-lg);
        margin-bottom: 14px;
    }

    .xy-card-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 13px 15px;
        background: #fafbfc;
    }

    .xy-card-title { font-size: 14px; }
    .xy-card-body { padding: 15px; }

    .xy-api-key {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border-radius: var(--xy-radius);
    }

    .xy-api-key .xy-btn { align-self: stretch; }

    .xy-list-item {
        padding: 11px;
        margin: 0 -4px;
        border-radius: var(--xy-radius);
        border-bottom: none;
        background: #fafbfc;
        border: 1px solid var(--xy-border-light);
        margin-bottom: 8px;
    }

    .xy-list-item:last-child { margin-bottom: 0; }

    .xy-list-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }

    .xy-list-item .d-flex small { font-size: 11px; color: var(--xy-text-secondary); }
    .xy-list-icon { width: 38px; height: 38px; }

    .xy-info-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 13px 0;
    }

    .xy-info-row .xy-btn {
        align-self: auto;
        margin-top: 0;
        flex-shrink: 0;
    }

    .xy-profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        gap: 12px;
    }

    .xy-profile-hero .xy-avatar {
        width: 68px; height: 68px;
        font-size: 26px;
    }

    .xy-profile-hero h4 { font-size: 17px; }

    .xy-code-group { flex-direction: column; }
    .xy-code-group .xy-btn { width: 100%; }

    .d-flex.gap-2 { flex-wrap: wrap; }

    .xy-btn { border-radius: 8px; min-height: 40px; }

    .xy-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .xy-plan-card { padding: 14px 10px; border-radius: var(--xy-radius); }
    .xy-plan-price { font-size: 18px; }
    .xy-payment-card { border-radius: var(--xy-radius); }

    .xy-auth-body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 44px;
    }

    .xy-auth-card {
        padding: 28px 22px;
        border-radius: var(--xy-radius-lg);
    }

    .xy-alert { border-radius: 8px; font-size: 12px; }

    .xy-form-control,
    .xy-page .form-select,
    .xy-page textarea.form-control {
        font-size: 16px;
        min-height: 44px;
    }

    .xy-page textarea.form-control { min-height: 120px; }
}

@media (max-width: 480px) {
    .xy-auth-card { padding: 24px 18px; }
    .xy-plan-grid { grid-template-columns: 1fr 1fr; }
    .xy-page-header { padding: 18px 16px 20px; }

    .xy-modal-dialog,
    .modal-dialog {
        margin: 12px;
        max-width: calc(100vw - 24px);
    }

    .xy-bottom-nav {
        left: 8px; right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
