/* ============================================
   钱多多 · 个人主页样式
   风格 A · 清冷蓝（暗色版 · 配 Lightfall 背景）
   主色：#7BB8FF（亮蓝，暗背景下更清晰）
   ============================================ */

:root {
    --primary: #7BB8FF;
    --primary-dark: #1e88e5;
    --primary-light: rgba(123, 184, 255, 0.15);
    --primary-lighter: rgba(123, 184, 255, 0.08);
    --bg: #0a1929;             /* 深蓝背景（让 Lightfall 隧道突出） */
    --text: #f1f5f9;           /* 主文字：近白 */
    --text-light: #cbd5e1;     /* 次文字：浅灰 */
    --text-muted: #94a3b8;     /* 弱化文字 */
    --card-bg: rgba(255, 255, 255, 0.06);  /* 半透卡片 */
    --card-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    position: relative;
    z-index: 1;  /* 确保内容在 Lightfall 之上 */
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #7BB8FF 0%, #1e88e5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(123, 184, 255, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(123, 184, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Card Grid - 4 卡片响应式布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 桌面：4 列一行 */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 卡片入场动画 */
.border-glow-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.border-glow-card:nth-child(1) { animation-delay: 0.1s; }
.border-glow-card:nth-child(2) { animation-delay: 0.2s; }
.border-glow-card:nth-child(3) { animation-delay: 0.3s; }
.border-glow-card:nth-child(4) { animation-delay: 0.4s; }

/* 老 .card 样式已废弃（由 BorderGlow 卡片替代） */

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer .heart {
    color: #f43f5e;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Responsive */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);  /* 平板：2x2 */
    }
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem 1rem;
    }
    .hero {
        padding: 1rem 0 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .card-grid {
        grid-template-columns: 1fr;  /* 手机：1 列 */
    }
}
