/* ===== 主题变量 ===== */
:root {
    --primary: #66ccff;
    --primary-dark: #3ab8f5;
    --primary-light: #99ddff;
    --primary-glow: rgba(102, 204, 255, 0.25);
    --bg: #f5faff;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #5a5a7a;
    --border: #dceef8;
    --shadow: 0 12px 40px rgba(102, 204, 255, 0.12);
    --radius: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --bg: #0d1117;
    --card-bg: #161b22;
    --text: #e6edf3;
    --text-light: #8b949e;
    --border: #21262d;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 80px;
    transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 1; transition: opacity 0.4s;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-box {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 48px 40px 40px; max-width: 420px; width: 90%;
    text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}
.modal-icon { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.modal-box h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.modal-box p { color: var(--text-light); margin-bottom: 24px; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(102,204,255,0.1);
    z-index: 1000; padding: 16px 0; transition: var(--transition);
}
body.dark .navbar { background: rgba(13,17,23,0.88); border-bottom-color: rgba(255,255,255,0.06); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-light);
    transition: var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
    background: var(--primary); color: #fff !important;
    padding: 8px 20px; border-radius: 40px; font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.theme-toggle, .menu-toggle {
    background: none; border: none; cursor: pointer; color: var(--text-light);
    font-size: 1.2rem; padding: 4px 8px; border-radius: 40px; transition: var(--transition);
}
.theme-toggle:hover { color: var(--primary); transform: rotate(20deg); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span {
    display: block; width: 26px; height: 2.5px;
    background: var(--text); border-radius: 4px; transition: var(--transition);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px;
    margin-bottom: 12px; text-align: center;
}
.section-title .highlight { color: var(--primary); }
.section-subtitle {
    text-align: center; color: var(--text-light);
    font-size: 1.05rem; max-width: 600px; margin: 0 auto 48px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 40px; font-weight: 600;
    font-size: 1rem; transition: var(--transition);
    border: none; cursor: pointer; background: var(--card-bg);
    color: var(--text); border: 1px solid var(--border);
}
.btn-primary {
    background: var(--primary); color: #fff;
    border: none; box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-dark); transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(102,204,255,0.4);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

/* ===== Hero（首页） ===== */
.hero { padding: 40px 0 60px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.hero-content h1 .highlight { color: var(--primary); }
.hero-content .tagline { font-size: 1.2rem; color: var(--text-light); margin: 16px 0 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.badge {
    background: var(--card-bg); border: 1px solid var(--border);
    padding: 6px 18px; border-radius: 40px; font-size: 0.85rem;
    font-weight: 500; color: var(--text-light);
}
.badge i { color: var(--primary); margin-right: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.avatar-wrapper {
    position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1;
    border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 6px; box-shadow: 0 20px 60px rgba(102,204,255,0.25);
}
.avatar-wrapper .avatar {
    width: 100%; height: 100%; border-radius: 50%;
    background: #eaf7ff; display: flex; align-items: center; justify-content: center;
    font-size: 8rem; color: var(--primary); overflow: hidden;
}
body.dark .avatar-wrapper .avatar { background: #1a2332; color: var(--primary-light); }
.avatar-wrapper .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.floating-icon {
    position: absolute; background: var(--card-bg); border-radius: 16px;
    padding: 12px 14px; box-shadow: var(--shadow); font-size: 1.2rem;
    color: var(--primary); animation: float 4s ease-in-out infinite;
}
.floating-icon:nth-child(2) { top: 8%; right: 2%; animation-delay: 0.5s; }
.floating-icon:nth-child(3) { bottom: 12%; left: 0%; animation-delay: 1.2s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 0%; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== 关于我 ===== */
.about { padding: 80px 0; background: var(--card-bg); transition: background 0.3s; }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.stat { background: var(--bg); padding: 20px 16px; border-radius: 16px; text-align: center; }
.stat .number { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat .label { font-size: 0.85rem; color: var(--text-light); }

/* ===== 技能卡片 ===== */
.skills { padding: 80px 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.skill-card {
    background: var(--card-bg); padding: 28px 20px; border-radius: var(--radius);
    text-align: center; transition: var(--transition); border: 1px solid transparent;
}
.skill-card:hover {
    transform: translateY(-6px); border-color: var(--primary-light);
    box-shadow: 0 12px 32px var(--primary-glow);
}
.skill-card .icon { font-size: 2.4rem; color: var(--primary); margin-bottom: 12px; }
.skill-card h4 { font-weight: 600; margin-bottom: 4px; }
.skill-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== 项目/记录卡片 ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); transition: var(--transition);
    border: 1px solid var(--border);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.project-cover {
    height: 200px; background: linear-gradient(135deg, #e0f4ff, #b8e6ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary);
}
.project-cover.cover-2 { background: linear-gradient(135deg, #ffe4e4, #ffcece); color: #e06060; }
.project-cover.cover-3 { background: linear-gradient(135deg, #e4ffe8, #ceffd8); color: #40b060; }
.project-body { padding: 24px 28px 28px; }
.project-body h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.project-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.project-tags span {
    background: var(--bg); padding: 4px 14px; border-radius: 40px;
    font-size: 0.75rem; font-weight: 500; color: var(--text-light);
}
.project-link {
    font-weight: 600; color: var(--primary); display: inline-flex;
    align-items: center; gap: 6px; transition: var(--transition);
}
.project-link:hover { gap: 12px; color: var(--primary-dark); }

/* ===== 荣誉墙 ===== */
.honors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.honor-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.honor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.honor-img {
    width: 100%; height: 200px; object-fit: cover; background: #eaf7ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary);
}
.honor-img img { width: 100%; height: 100%; object-fit: cover; }
.honor-body { padding: 20px 24px 24px; }
.honor-badge {
    display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 14px;
    border-radius: 40px; margin-bottom: 10px;
}
.honor-body h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.honor-body p { font-size: 0.9rem; color: var(--text-light); }
.honor-date { font-size: 0.8rem; color: var(--primary); font-weight: 500; margin-top: 8px; }

/* ===== PPT滑动展示 ===== */
.ppt-section { padding: 60px 0 80px; }
.ppt-viewer {
    position: relative; max-width: 960px; margin: 0 auto;
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.ppt-slides {
    display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ppt-slide {
    min-width: 100%; aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); position: relative; overflow: hidden;
}
.ppt-slide img { width: 100%; height: 100%; object-fit: contain; }
.ppt-slide .slide-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--text-light); gap: 12px;
    font-size: 1rem; text-align: center; padding: 40px;
}
.ppt-slide .slide-placeholder i { font-size: 3rem; color: var(--primary-light); }

.ppt-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; padding: 20px; background: var(--card-bg);
    border-top: 1px solid var(--border);
}
.ppt-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.ppt-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ppt-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ppt-counter { font-size: 0.95rem; font-weight: 600; color: var(--text-light); min-width: 60px; text-align: center; }
.ppt-dots { display: flex; gap: 8px; justify-content: center; padding: 0 0 20px; }
.ppt-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); cursor: pointer; transition: var(--transition);
}
.ppt-dot.active { background: var(--primary); transform: scale(1.3); }

/* ===== 视频容器 ===== */
.video-container {
    position: relative; width: 100%; max-width: 800px;
    margin: 0 auto; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); background: #000;
}
.video-container video, .video-container iframe {
    width: 100%; aspect-ratio: 16/9; display: block; border: none;
}
.video-placeholder {
    width: 100%; aspect-ratio: 16/9; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg); color: var(--text-light); gap: 12px;
}
.video-placeholder i { font-size: 3rem; color: var(--primary-light); }

/* ===== 联系 ===== */
.contact { padding: 80px 0; }
.contact-wrapper {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 48px 56px; box-shadow: var(--shadow);
    border: 1px solid var(--border); text-align: center;
    max-width: 700px; margin: 0 auto;
}
.contact-info h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { color: var(--text-light); margin-bottom: 28px; }
.contact-item {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-bottom: 18px;
}
.contact-item .icon {
    width: 44px; height: 44px; background: var(--bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-item .info { font-weight: 500; text-align: left; }
.contact-item .info small { display: block; font-weight: 400; color: var(--text-light); font-size: 0.85rem; }
.social-links { display: flex; gap: 14px; margin-top: 24px; justify-content: center; }
.social-links a {
    width: 46px; height: 46px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 1.2rem; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-4px); }

/* ===== 页脚 ===== */
.footer {
    background: var(--text); color: rgba(255,255,255,0.7);
    padding: 40px 0 28px; margin-top: 40px; transition: background 0.3s;
}
body.dark .footer { background: #0a0e14; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .logo { color: #fff; }
.footer .logo span { color: rgba(255,255,255,0.6); }
.footer p { font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }

/* ===== 页面标题 ===== */
.page-header {
    padding: 60px 0 40px; text-align: center;
}
.page-header h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 12px; }
.page-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero .container { gap: 40px; }
    .hero-content h1 { font-size: 2.6rem; }
}
@media (max-width: 900px) {
    .hero .container, .about .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .avatar-wrapper { max-width: 280px; margin: 0 auto; }
    .hero-content h1 { font-size: 2.4rem; text-align: center; }
    .hero-content .tagline, .hero-badges, .hero-actions { justify-content: center; text-align: center; }
    .about-text h2, .about-text p { text-align: center; }
    .contact-wrapper { padding: 32px 24px; }
    .section-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 72px; left: 0; width: 100%;
        background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
        flex-direction: column; padding: 32px 24px; gap: 20px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.06);
        transform: translateY(-120%); transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }
    body.dark .nav-links { background: rgba(13,17,23,0.96); }
    .nav-links.open { transform: translateY(0); }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
    .projects-grid, .honors-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .footer .container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .ppt-viewer { margin: 0 16px; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .avatar-wrapper { max-width: 200px; }
    .avatar-wrapper .avatar { font-size: 5rem; }
    .floating-icon { display: none; }
    .about-stats { grid-template-columns: 1fr; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .page-header h1 { font-size: 1.8rem; }
}