/* ============================================================
   NFT 数藏控制台 — Web3 × Apple 高端视觉系统
   ============================================================ */

/* ── 0. 背景系统：空间光场 ───────────────────────────── */
body,
.fi-body {
    background:
        radial-gradient(circle at 50% 0%, rgba(56,189,248,0.28), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,0.18), transparent 45%),
        linear-gradient(180deg, #0b1120 0%, #020617 100%);
    background-attachment: fixed;
    color: #b8c5d6;
}

.fi-main {
    background:
        radial-gradient(circle at 50% -10%, rgba(56,189,248,0.35), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,0.20), transparent 45%),
        linear-gradient(180deg, #0b1120 0%, #020617 100%);
    background-attachment: fixed;
    color: #94a3b8;
}

/* ── 1. 侧边栏：能量控制面板 ────────────────────────── */
.fi-sidebar {
    background: linear-gradient(
        180deg,
        #020617 0%,
        #020617 60%,
        #020617 100%
    );
    border-right: 1px solid rgba(56,189,248,0.15);
    position: relative;
}

/* 左侧能量主线 — 呼吸动画 */
@keyframes glowLine {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.fi-sidebar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    width: 3px;
    height: 70%;
    background: linear-gradient(
        180deg,
        transparent,
        #38bdf8,
        #22d3ee,
        transparent
    );
    box-shadow: 0 0 20px #38bdf8;
    z-index: 50;
    pointer-events: none;
    animation: glowLine 2.5s ease-in-out infinite;
}

.fi-sidebar-nav {
    padding: 0.75rem 0.5rem;
}

/* 分组标题：控制台模块标签 */
.fi-sidebar-group-label {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    margin: 6px 12px 4px;
    padding: 0 0 0 10px;
    font-weight: 700;
    position: relative;
    text-shadow: 0 0 12px rgba(56,189,248,0.15);
}

/* 分组标题左侧装饰线 */
.fi-sidebar-group-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #38bdf8, #22d3ee);
    box-shadow: 0 0 8px rgba(56,189,248,0.4);
}

/* 分组容器：模块块 */
.fi-sidebar-group {
    margin-bottom: 0;
    padding: 4px 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 分组 hover */
.fi-sidebar-group:hover {
    background: rgba(56,189,248,0.05);
}

/* 当前分组高亮 */
.fi-sidebar-group:has(.fi-sidebar-item-active) {
    background: rgba(56,189,248,0.1);
    border-color: rgba(56,189,248,0.15);
    box-shadow: 0 0 24px rgba(56,189,248,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* 分组间距：节奏感 + 渐变分隔线 */
.fi-sidebar-group + .fi-sidebar-group {
    margin-top: 8px;
    position: relative;
}

.fi-sidebar-group + .fi-sidebar-group::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,0.2), transparent);
}

/* 菜单项优化 */
.fi-sidebar-nav a {
    border-radius: 10px;
    margin: 2px 8px;
    padding-left: 10px;
    transition: all 0.25s ease;
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

/* Hover */
.fi-sidebar-nav a:hover {
    background: rgba(56,189,248,0.15);
    transform: translateX(8px);
    box-shadow:
        0 0 20px rgba(56,189,248,0.3),
        inset 0 0 10px rgba(56,189,248,0.15);
    color: #e2e8f0;
}

/* 层级缩进 */
.fi-sidebar-group-items {
    padding-left: 6px;
    transition: all 0.3s ease;
}

/* 激活态 */
.fi-sidebar-item-active > a,
.fi-sidebar-item-active a {
    background: linear-gradient(
        90deg,
        rgba(56,189,248,0.25),
        rgba(56,189,248,0.05)
    );
    border-left: 3px solid #38bdf8;
    box-shadow:
        0 0 25px rgba(56,189,248,0.5),
        inset 0 0 15px rgba(56,189,248,0.2);
    color: #e2e8f0;
    transform: translateX(8px);
}

/* 图标强化 */
.fi-sidebar-nav a svg {
    transition: all 0.25s ease;
}
.fi-sidebar-nav a:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px #38bdf8);
}
.fi-sidebar-item-active > a svg {
    filter: drop-shadow(0 0 12px #38bdf8);
}

/* 文字强化 */
.fi-sidebar-nav a span {
    transition: all 0.25s ease;
}
.fi-sidebar-nav a:hover span {
    color: #67e8f9;
}
.fi-sidebar-item-active > a span {
    color: #38bdf8;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #38bdf8;
}

.fi-sidebar-item-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.8;
}

/* ── 2. 顶部栏 ───────────────────────────────────────── */
.fi-topbar {
    background: rgba(2, 6, 23, 0.60);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── 3. 卡片系统：玻璃 + 彩色分层 ───────────────────── */
.fi-wi-stats-overview-stat {
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 20px rgba(56,189,248,0.08);
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}

.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.8),
        0 0 20px rgba(56,189,248,0.12);
}

/* ── 4. 颜色分组（核心：背景渐变 + 数字色 + 图标色）── */

/* Blue */
.fi-main .card-blue {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(15,23,42,0.5));
    border-color: rgba(59,130,246,0.25);
}
.fi-main .card-blue:hover {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 24px rgba(59,130,246,0.25);
}
.fi-main .card-blue .fi-wi-stats-overview-stat-value {
    color: #60a5fa;
}
.fi-main .card-blue .fi-wi-stats-overview-stat-icon {
    background: rgba(59,130,246,0.18);
    color: #60a5fa;
}

/* Green */
.fi-main .card-green {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(15,23,42,0.5));
    border-color: rgba(34,197,94,0.25);
}
.fi-main .card-green:hover {
    border-color: rgba(34,197,94,0.5);
    box-shadow: 0 0 24px rgba(34,197,94,0.25);
}
.fi-main .card-green .fi-wi-stats-overview-stat-value {
    color: #4ade80;
}
.fi-main .card-green .fi-wi-stats-overview-stat-icon {
    background: rgba(34,197,94,0.18);
    color: #4ade80;
}

/* Orange */
.fi-main .card-orange {
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(15,23,42,0.5));
    border-color: rgba(249,115,22,0.25);
}
.fi-main .card-orange:hover {
    border-color: rgba(249,115,22,0.5);
    box-shadow: 0 0 24px rgba(249,115,22,0.25);
}
.fi-main .card-orange .fi-wi-stats-overview-stat-value {
    color: #fb923c;
}
.fi-main .card-orange .fi-wi-stats-overview-stat-icon {
    background: rgba(249,115,22,0.18);
    color: #fb923c;
}

/* Cyan */
.fi-main .card-cyan {
    background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(15,23,42,0.5));
    border-color: rgba(6,182,212,0.25);
}
.fi-main .card-cyan:hover {
    border-color: rgba(6,182,212,0.5);
    box-shadow: 0 0 24px rgba(6,182,212,0.25);
}
.fi-main .card-cyan .fi-wi-stats-overview-stat-value {
    color: #22d3ee;
}
.fi-main .card-cyan .fi-wi-stats-overview-stat-icon {
    background: rgba(6,182,212,0.18);
    color: #22d3ee;
}

/* Lime */
.fi-main .card-lime {
    background: linear-gradient(135deg, rgba(132,204,22,0.15), rgba(15,23,42,0.5));
    border-color: rgba(132,204,22,0.25);
}
.fi-main .card-lime:hover {
    border-color: rgba(132,204,22,0.5);
    box-shadow: 0 0 24px rgba(132,204,22,0.25);
}
.fi-main .card-lime .fi-wi-stats-overview-stat-value {
    color: #a3e635;
}
.fi-main .card-lime .fi-wi-stats-overview-stat-icon {
    background: rgba(132,204,22,0.18);
    color: #a3e635;
}

/* Yellow */
.fi-main .card-yellow {
    background: linear-gradient(135deg, rgba(234,179,8,0.15), rgba(15,23,42,0.5));
    border-color: rgba(234,179,8,0.25);
}
.fi-main .card-yellow:hover {
    border-color: rgba(234,179,8,0.5);
    box-shadow: 0 0 24px rgba(234,179,8,0.25);
}
.fi-main .card-yellow .fi-wi-stats-overview-stat-value {
    color: #facc15;
}
.fi-main .card-yellow .fi-wi-stats-overview-stat-icon {
    background: rgba(234,179,8,0.18);
    color: #facc15;
}

/* Purple */
.fi-main .card-purple {
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(15,23,42,0.5));
    border-color: rgba(168,85,247,0.25);
}
.fi-main .card-purple:hover {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 24px rgba(168,85,247,0.25);
}
.fi-main .card-purple .fi-wi-stats-overview-stat-value {
    color: #c084fc;
}
.fi-main .card-purple .fi-wi-stats-overview-stat-icon {
    background: rgba(168,85,247,0.18);
    color: #c084fc;
}

/* Red */
.fi-main .card-red {
    background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(15,23,42,0.5));
    border-color: rgba(239,68,68,0.35);
}
.fi-main .card-red:hover {
    border-color: rgba(239,68,68,0.6);
    box-shadow: 0 0 24px rgba(239,68,68,0.30);
}
.fi-main .card-red .fi-wi-stats-overview-stat-value {
    color: #f87171;
}
.fi-main .card-red .fi-wi-stats-overview-stat-icon {
    background: rgba(239,68,68,0.18);
    color: #f87171;
}

/* 通用标签 */
.fi-main .fi-wi-stats-overview-stat-label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.fi-main .fi-wi-stats-overview-stat-icon {
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

/* ── 5. 图表容器：浮起感 ─────────────────────────────── */
.fi-wi-chart {
    background: rgba(15,23,42,0.50);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    padding: 24px;
    min-height: 420px;
}

.fi-wi-chart:hover {
    box-shadow: 0 25px 70px rgba(0,0,0,0.7);
}

.fi-wi-chart .fi-section {
    background: transparent;
    border: none;
    box-shadow: none;
}

.fi-wi-chart canvas {
    min-height: 350px;
}

/* ── 6. 通用容器玻璃 ─────────────────────────────────── */
.fi-section,
.fi-ta-content,
.fi-fo-component-ctn,
.fi-resource-form,
.fi-modal-content {
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── 7. 表格 ─────────────────────────────────────────── */
.fi-ta-header-cell {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fi-ta-record {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s ease;
}

.fi-ta-record:hover {
    background: rgba(255,255,255,0.04);
}

/* ── 8. 表单输入 ─────────────────────────────────────── */
.fi-input,
.fi-select-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(2,6,23,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    color: #94a3b8;
    transition: all 0.2s ease;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em 1em;
    padding-right: 2.5rem;
}

.fi-input:focus,
.fi-select-input:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(2,6,23,0.55);
    border-color: rgba(56,189,248,0.35);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
    outline: none;
}

.fi-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #475569;
}

/* ── 9. 按钮 ────────────────────────────────────────── */
.fi-btn {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-primary {
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
    box-shadow: 0 4px 18px rgba(14,165,233,0.32);
    border: none;
    color: #020617;
}

.fi-btn-primary:hover {
    box-shadow: 0 6px 24px rgba(14,165,233,0.45);
}

.fi-btn-danger {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 4px 18px rgba(225,29,72,0.28);
    border: none;
    color: #fff;
}

.fi-btn-danger:hover {
    box-shadow: 0 6px 24px rgba(225,29,72,0.40);
}

/* ── 10. Tab / 分页 ──────────────────────────────────── */
.fi-pagination-item,
.fi-tabs-item {
    border-radius: 10px;
    transition: background 0.15s ease;
}

.fi-tabs-item-active {
    background: rgba(56,189,248,0.12);
    color: #38bdf8;
}

/* ── 11. 文字层级 ────────────────────────────────────── */
.fi-header-heading,
.fi-ta-header-cell,
h1, h2, h3 {
    color: #e2e8f0;
}

.fi-ta-cell,
.fi-body,
.fi-main {
    color: #94a3b8;
}

.fi-ta-empty-state-description,
.fi-ta-empty-state-heading,
.fi-empty-state-description {
    color: #475569;
}

/* ── 12. 滚动条 ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100,116,139,0.30);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100,116,139,0.50);
    background-clip: padding-box;
}

/* ── 13. 选中高亮 ───────────────────────────────────── */
::selection {
    background: rgba(56,189,248,0.22);
    color: #ffffff;
}


/* ── 公告富文本编辑器高度 ───────────────────────────── */
.announcement-editor .fi-fo-rich-editor {
    min-height: 420px;
}

.announcement-editor .fi-fo-rich-editor .tiptap.ProseMirror {
    min-height: 380px;
}
/* ── Textarea 在 grid 中自动拉伸，与同行元素等高 ── */
.fi-textarea-stretch {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fi-textarea-stretch .fi-fo-field-wrapper-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fi-textarea-stretch .fi-fo-field-wrapper-field > * {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fi-textarea-stretch textarea {
    flex: 1;
    height: auto !important;
    min-height: 120px;
    resize: none;
}
