/* ================================================== */
/* 文件 2: css/style.css (核心样式)                    */
/* ================================================== */
:root {
    --primary: #00ffff;
    --secondary: #ff00ff;
    --bg-dark: #0a0f1e;
    --bg-card: rgba(16, 22, 40, 0.8);
    --text-light: #e0e0e0;
    --text-dim: #a0b0d0;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, #13203a, #030614);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 导航栏 */
.navbar {
    background: rgba(8, 15, 30, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(var(--primary), 0.2);
    padding: 0.9rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, #a0f0ff, #ff70ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2rem;
}

.nav-links a i { color: var(--primary); }
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover::before { width: 100%; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 8px var(--primary); }
.nav-links a:hover i { color: var(--secondary); }

.cta-button {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.5);
}

/* 按钮更多 */
.btn-more {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary);
    font-size: 1.3rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.btn-more:hover { color: var(--secondary); border-bottom-color: var(--secondary); }

/* 标题通用 */
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.section-title p { color: var(--text-dim); font-size: 1.3rem; }

/* 关于我卡片 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 60px;
    background: rgba(20, 30, 50, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    padding: 50px;
    border: 1px solid rgba(0,255,255,0.15);
}
.avatar-frame {
    width: 300px; height: 300px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    padding: 5px;
    box-shadow: 0 0 50px rgba(0,255,255,0.6);
}
.avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: white;
}
.about-text p { font-size: 1.3rem; margin-bottom: 25px; color: #c0d0f0; }
.about-text p span { color: var(--primary); font-weight: 600; }

/* 项目卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 35px;
    padding: 35px;
    transition: all 0.3s cubic-bezier(0.2,0.9,0.3,1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(145deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 37px;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -2;
}
.feature-card:hover::before { opacity: 0.3; }
.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0,255,255,0.3);
}
.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--bg-dark);
}
.tech-tags span {
    background: rgba(0,255,255,0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 40px;
    margin-right: 8px;
    display: inline-block;
    font-size: 0.9rem;
}

/* 技能条 */
.skill-card {
    background: rgba(20,25,45,0.8);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    border: 1px solid rgba(0,255,255,0.2);
    overflow: hidden;
}
.skill-header {
    background: rgba(0,255,255,0.15);
    border-bottom: 1px solid var(--primary);
    padding: 25px 20px;
    text-align: center;
}
.skill-header h3 { color: var(--primary); }
.score-item { display: flex; align-items: center; margin-bottom: 20px; }
.score-label { width: 100px; color: #b0c0e0; }
.score-bar { flex: 1; height: 10px; background: #1e2a3a; border-radius: 10px; margin: 0 12px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 10px; }

/* 快速联系区域 */
.quick-contact {
    text-align: center;
    padding: 80px 0;
}
.contact-cta h2 { font-size: 3rem; color: #fff; }
.contact-cta p { font-size: 1.4rem; color: var(--primary); margin: 20px 0; }

/* 工具类 */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }