
/* ---------- 基础重置与全局 ---------- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
    color: #2c3e50;
}
footer {
    margin-top: auto;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.5);
}

/* ---------- 玻璃态卡片 ---------- */
.card,
.stat-card,
.chart-card,
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- 玻璃态按钮 ---------- */
.btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.3);
}
.btn-primary:hover {
    background: rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}
.btn-success {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.3);
}
.btn-success:hover {
    background: rgba(25, 135, 84, 0.25);
    border-color: #198754;
}
.btn-outline-secondary {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.3);
    color: #6c757d;
}
.btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
}
.btn-outline-primary {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: #0d6efd;
}

/* ---------- 导航栏（玻璃态） ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}
.navbar-brand,
.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
}
.nav-link:hover {
    color: #0d6efd !important;
}

/* ---------- 英雄区（浅灰渐变） ---------- */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 4rem 0;
    border-radius: 0 0 50% 50% / 20px;
    margin-bottom: 3rem;
}

/* ---------- 搜索框 ---------- */
.search-box .input-group-text {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}
.search-box input {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* ---------- 图表卡片 ---------- */
.chart-card {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
}

/* ---------- 消息气泡 ---------- */
.msg.user .bubble {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}
.msg.assistant .bubble {
    background: rgba(108, 117, 125, 0.1);
    color: #2c3e50;
}

/* ---------- 头像圆圈 ---------- */
.avatar-circle {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 卡片悬停通用 ---------- */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* ---------- 消息动画 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg {
    animation: fadeInUp 0.3s;
}

/* ---------- 樱花特效 ---------- */
.sakura-petal {
    position: absolute;
    top: -10px;
    width: 14px;
    height: 14px;
    background: rgba(255, 182, 193, 0.8);
    border-radius: 50% 0 50% 0;
    animation: fall linear infinite;
    box-shadow: 0 0 6px rgba(255, 182, 193, 0.6);
}
@keyframes fall {
    to { transform: translateY(110vh) rotate(720deg); }
}

/* ---------- 蜜罐隐藏 ---------- */
.honeypot-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
img[src*="honeypot.php"] {
    display: none !important;
}

/* ---------- 悬浮创建按钮 ---------- */
.create-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #198754;
}

/* ---------- 动态渐变背景 ---------- */
.bg-dynamic {
    background: linear-gradient(-45deg, #f0f4ff, #e8f0fe, #f5f7fa, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- 骨架屏加载动画 ---------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 底部导航栏（移动端） ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}
.bottom-nav a {
    text-align: center;
    color: #6c757d;
    text-decoration: none;
    flex: 1;
}
.bottom-nav a.active {
    color: #0d6efd;
}
.bottom-nav i {
    font-size: 1.4rem;
    display: block;
}
.bottom-nav span {
    font-size: 0.75rem;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        border-radius: 0 0 30px 30px;
    }
}