/* assets/css/style.css */

/* 基础字体 */
body { font-family: 'Nunito', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* 漂浮动画 */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}
@keyframes float-delayed {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -30px); }
}
.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 10s ease-in-out infinite; }

/* 糖果卡片样式 */
.candy-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border-width: 1px;
    transition: transform 0.2s;
}
.candy-card:hover {
    transform: translateY(-2px);
}
.candy-card .label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}
.candy-card .value {
    font-size: 1rem;
    font-weight: 700;
}

/* 视图切换按钮 */
.view-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s;
    color: #94a3b8;
}
.view-btn:hover {
    color: #475569;
    background: #f1f5f9;
}
.view-btn.active {
    background: #fff1f2;
    color: #ec4899;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 详情表格斑马纹 */
#detailsTableBody tr:nth-child(even) {
    background-color: #f8fafc;
}
#detailsTableBody td {
    padding: 1rem;
    color: #475569;
}
#detailsTableBody td:first-child {
    font-weight: 700;
    color: #64748b;
    width: 35%;
}
#detailsTableBody td:last-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* 加载动画 (糖果色) */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-left-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }