@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
    --liquid-bg: #090a0f;
    --wave-glow-1: rgba(0, 212, 255, 0.4);
    --wave-glow-2: rgba(111, 0, 255, 0.4);
    --text-glow: #00d4ff;
}

body {
    background-color: var(--liquid-bg);
    color: #e0e6ed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* 发光液体波浪背景 */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: linear-gradient(45deg, #090a0f, #131b2f, #0a0b10);
    overflow: hidden;
}

.liquid-bg::before, .liquid-bg::after {
    content: '';
    position: absolute;
    width: 200vw;
    height: 200vw;
    top: -50vh;
    left: -50vw;
    background: radial-gradient(circle, var(--wave-glow-1) 0%, transparent 50%),
                radial-gradient(circle, var(--wave-glow-2) 0%, transparent 50%);
    background-size: 50% 50%;
    background-position: 0 0, 100% 100%;
    animation: waveFlow 15s infinite linear;
    opacity: 0.5;
    mix-blend-mode: screen;
}
.liquid-bg::after {
    animation-direction: reverse;
    animation-duration: 25s;
    opacity: 0.3;
    transform: scale(1.2);
}

@keyframes waveFlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 顶部玻璃导航 */
.glass-nav {
    background: rgba(9, 10, 15, 0.6);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateZ(0);
    will-change: backdrop-filter, transform;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* 流动光波文字与倒影折射 */
.liquid-text {
    background: linear-gradient(to bottom, #ffffff 30%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(0, 212, 255, 0.6);
    position: relative;
    display: inline-block;
}

.liquid-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    transform: scaleY(-0.4);
    opacity: 0.25;
    background: linear-gradient(to top, transparent, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(2px);
    pointer-events: none;
}

/* 卡片 */
.liquid-card {
    background: rgba(20, 25, 35, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateZ(0);
    will-change: backdrop-filter, transform;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 212, 255, 0.05);
    will-change: transform, box-shadow, border-color;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* 按钮 */
.liquid-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(111, 0, 255, 0.8));
    color: white;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.liquid-btn:hover::before {
    transform: scale(1);
}

.liquid-btn:hover {
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
    color: white;
}

.liquid-btn-outline {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    border-radius: 999px;
    will-change: transform, box-shadow, border-color;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.liquid-btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* 浅色博客区 */
.blog-bg {
    background-color: #f8fafc;
    color: #1a202c;
    position: relative;
    z-index: 1;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    will-change: transform, box-shadow, border-color;
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 图片处理 */
img {
    border-radius: 12px;
}