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

:root {
    --metal-dark: #121212;
    --metal-gray: #1e1e1e;
    --metal-light: #2c2c2c;
    --glow-blue: #0088ff;
    --glow-cyan: #00e5ff;
    --text-primary: #e0e0e0;
    --text-secondary: #9aa0a6;
}

body {
    background-color: var(--metal-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* 打孔金属网板特效：利用背景渐变绘制细密圆点 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(#000000 3px, transparent 3px);
    background-size: 10px 10px;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* 底层透出的蓝光 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(0, 136, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* 顶部导航 */
.metal-nav {
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(18, 18, 18, 0.95));
    border-bottom: 1px solid rgba(0, 136, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 136, 255, 0.15);
}

/* 金属卡片 */
.metal-card {
    background: linear-gradient(145deg, #242424, #1a1a1a);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.5);
    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;
    position: relative;
    overflow: hidden;
}

/* 卡片内部的漏光设计 */
.metal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 136, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metal-card:hover {
    border-color: var(--glow-blue);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 20px rgba(0, 136, 255, 0.3);
    transform: translateY(-4px);
}

.metal-card:hover::before {
    opacity: 1;
}

/* 按钮 - 机械蓝光 */
.glow-btn {
    background: linear-gradient(135deg, #0055ff, #00aaff);
    color: #fff;
    border: 1px solid #00e5ff;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.4);
    will-change: transform, box-shadow, border-color;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

.glow-btn:hover {
    background: linear-gradient(135deg, #00aaff, #00e5ff);
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: scale(1.02);
}

.glow-btn-outline {
    background: transparent;
    color: var(--glow-cyan);
    border: 1px solid var(--glow-cyan);
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1), inset 0 0 5px rgba(0, 229, 255, 0.1);
    will-change: transform, box-shadow, border-color;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

.glow-btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2);
    color: #fff;
}

/* 文字发光 */
.text-glow {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-blue), 0 0 20px var(--glow-cyan);
}

/* 博客/白板区需要适配金属暗黑风，所以不设为全白，而是深灰金属色 */
.blog-section {
    background: #151515;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

img {
    border-radius: 8px;
    border: 1px solid #333;
}