/* ========== BWL Zone - 深紫+青绿主题 ========== */
:root {
    --bg-deep: #1a0d2e;
    --bg-dark: #2D1B4E;
    --bg-card: #2D1B4E;
    --bg-card-hover: #3a2560;
    --border: #4A3B7C;
    --border-hover: #00D4AA;
    --accent: #00D4AA;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --pink: #FF6B9D;
    --text: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --radius: 16px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== 导航栏 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26, 13, 46, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74, 59, 124, 0.3);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo {
    font-size: 1.5rem; font-weight: 700; text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--border));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; list-style: none; gap: 36px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

/* ========== Hero ========== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 68px; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 10%; right: 5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: 10%; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(74, 59, 124, 0.15), transparent 70%);
    border-radius: 50%;
}
.hero-content {
    display: flex; align-items: center; gap: 80px; position: relative; z-index: 1;
}
.hero-text { flex: 1; }
.badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(0, 212, 170, 0.12); color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.3); border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; margin-bottom: 20px;
}
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--border) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-size: 0.95rem; font-weight: 600; text-decoration: none;
    transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--border));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
}
.btn-outline {
    border: 2px solid var(--border); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-submit {
    width: 100%; padding: 16px; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--border));
    color: white; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}
.btn-submit:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5); }

/* ========== 头像 ========== */
.hero-avatar-wrapper { flex-shrink: 0; }
.avatar-container {
    width: 240px; height: 240px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark), var(--border));
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--border); box-shadow: 0 0 40px rgba(0, 212, 170, 0.15);
    position: relative; overflow: hidden; cursor: pointer;
    transition: all var(--transition);
}
.avatar-container:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 212, 170, 0.3);
}
.avatar-svg { width: 100px; height: 100px; }
.avatar-container img {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; position: absolute; top: 0; left: 0;
}
.avatar-hint {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; font-size: 0.8rem; color: white;
    opacity: 0; transition: opacity var(--transition);
    border-radius: 0 0 50% 50%;
}
.avatar-container:hover .avatar-hint { opacity: 1; }

/* 滚动提示 */
.scroll-hint {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.8rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== 通用区域 ========== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(0, 212, 170, 0.1); color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.2); border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; margin-bottom: 16px;
}
.section-title { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; }

/* ========== 关于我 ========== */
.about { background: rgba(45, 27, 78, 0.3); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 56px; }
.about-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px; text-align: center;
    transition: all var(--transition);
}
.about-card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.1);
}
.about-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.about-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.stats { display: flex; justify-content: center; gap: 64px; }
.stat-item { text-align: center; }
.stat-number {
    display: block; font-size: 2.5rem; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ========== 项目 ========== */
.projects { background: rgba(45, 27, 78, 0.15); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all var(--transition);
}
.project-card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.1);
}
.project-img {
    height: 180px; display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.project-body { padding: 24px; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span {
    background: rgba(0, 212, 170, 0.1); color: var(--accent);
    padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ========== 联系 ========== */
.contact { background: rgba(45, 27, 78, 0.3); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    max-width: 900px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.contact-item:hover { border-color: var(--accent); }
.contact-item svg { flex-shrink: 0; color: var(--accent); }
.contact-item div { display: flex; flex-direction: column; }
.contact-label { color: var(--text-muted); font-size: 0.85rem; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 18px;
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 0.95rem; font-family: inherit;
    transition: all var(--transition); outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: none; }

/* ========== 页脚 ========== */
.footer {
    padding: 32px 0; text-align: center;
    border-top: 1px solid rgba(74, 59, 124, 0.3);
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ========== 淡入动画 ========== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero-content { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.4rem; }
    .hero-desc { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .avatar-container { width: 180px; height: 180px; }
    .nav-links { display: none; }
    .section-title { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats { gap: 40px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .about-grid, .projects-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; gap: 24px; }
}
