/* ============================================
   中芳堂美业AI智能体系统 V4.0 - 全局基础样式
   设计语言: 深色蓝紫Web3科技风 + 国潮美学
   ============================================ */

/* ---------- CSS变量体系（设计Token）---------- */
:root {
    /* 主色调 */
    --primary-bg: #050a1f;
    --secondary-bg: #0a1628;
    --card-bg: rgba(10, 22, 40, 0.85);
    --panel-bg: rgba(16, 32, 56, 0.9);
    
    /* 霓虹发光 */
    --neon-cyan: #00f5ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-gold: #f59e0b;
    --neon-green: #10b981;
    
    /* 渐变 */
    --gradient-main: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, rgba(0,245,255,0.08) 0%, rgba(168,85,247,0.08) 100%);
    --gradient-btn: linear-gradient(90deg, #00f5ff 0%, #a855f7 100%);
    
    /* 文字 */
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* 边框/阴影 */
    --border-glow: 0 0 15px rgba(0, 245, 255, 0.2);
    --border-color: rgba(0, 245, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);
    
    /* 字体 */
    --font-display: 'Noto Serif SC', 'Source Han Serif SC', serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* ---- 兼容别名（子页面使用简写变量名） ---- */
    --bg: var(--primary-bg);
    --bg-card: var(--card-bg);
    --cyan: var(--neon-cyan);
    --cyan-dim: rgba(0, 245, 255, 0.3);
    --purple: var(--neon-purple);
    --gold: var(--neon-gold);
    --green: var(--neon-green);
    --pink: var(--neon-pink);
    --red: #ef4444;
    --orange: #f97316;
    --text: var(--text-primary);
    --text-dim: var(--text-secondary);
    --dim: var(--text-muted);
    --border: var(--border-color);
    --glow: var(--border-glow);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ---------- 全局重置与基础 ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---------- 毛玻璃卡片通用样式 ---------- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-card), var(--border-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.6;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 245, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 245, 255, 0.15);
}

/* ---------- 霓虹发光文字 ---------- */
.neon-text {
    color: var(--neon-cyan);
    text-shadow:
        0 0 7px rgba(0, 245, 255, 0.6),
        0 0 20px rgba(0, 245, 255, 0.3),
        0 0 42px rgba(0, 245, 255, 0.15);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow:
        0 0 7px rgba(168, 85, 247, 0.6),
        0 0 20px rgba(168, 85, 247, 0.3);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow:
        0 0 7px rgba(236, 72, 153, 0.6),
        0 0 20px rgba(236, 72, 153, 0.3);
}

/* ---------- 按钮系统 ---------- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 1.5px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover {
    background: rgba(0, 245, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.05);
    transform: translateY(-2px);
}

.btn-neon:hover::before { left: 100%; }

.btn-primary {
    background: var(--gradient-btn);
    border: none;
    color: #fff;
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

/* ---------- 网格布局 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- 动画关键帧 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 245, 255, 0.2); }
    50% { box-shadow: 0 0 35px rgba(0, 245, 255, 0.45); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-cyan), var(--neon-purple));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.w-full { width: 100%; }
.h-screen { height: 100vh; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ---------- 响应式断点 ---------- */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .show-mobile-only { display: none !important; }
}
