/* ========================================
   全局变量 & 重置 — 公司官网高端版
   ======================================== */
:root {
    /* 主色调 — 克制专业深色系 */
    --c-primary: #6366f1;          /* Indigo 500 */
    --c-primary-dark: #4f46e5;
    --c-primary-light: #818cf8;
    --c-accent: #06b6d4;            /* Cyan 500 */
    --c-accent-light: #22d3ee;

    /* 兼容旧色 */
    --c-purple: #6366f1;
    --c-purple-dark: #4f46e5;
    --c-pink: #ec4899;
    --c-pink-dark: #db2777;
    --c-blue: #3b82f6;
    --c-cyan: #06b6d4;
    --c-green: #10b981;
    --c-teal: #14b8a6;
    --c-orange: #f97316;
    --c-yellow: #eab308;
    --c-lavender: #a78bfa;

    /* 背景 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-deep: #0b1020;             /* Hero/footer 深色背景 */
    --bg-deep-2: #131a36;

    /* 文字 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f8fafc;

    /* 渐变 */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --grad-hero: linear-gradient(135deg, #0b1020 0%, #131a36 50%, #1e1b4b 100%);
    --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-fresh: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --grad-sunset: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --grad-rainbow: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4, #10b981);
    --grad-text: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.35);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 容器 */
    --container-max: 1240px;
    --nav-height: 56px;
}

/* ========================================
   暗黑模式
   ======================================== */
[data-theme="dark"] {
    --bg-primary: #0b1020;
    --bg-secondary: #131a36;
    --bg-tertiary: #1e1b4b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #050816 0%, #0b1020 50%, #1e1b4b 100%);
}

[data-theme="dark"] .navbar {
    background: rgba(11, 16, 32, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(11, 16, 32, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-menu {
    background: rgba(11, 16, 32, 0.98);
    border-left-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hobby-card,
[data-theme="dark"] .portfolio-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .friend-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-form {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--c-primary);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .filter-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #050816 0%, #0b1020 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .portfolio-tech span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .avatar-placeholder {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .badge-floating {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .video-modal-close {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .timeline-section,
[data-theme="dark"] .about {
    background: var(--bg-secondary);
}

[data-theme="dark"] .section-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--c-primary-light);
}

[data-theme="dark"] .nav-link {
    color: rgba(241, 245, 249, 0.85);
}

[data-theme="dark"] .navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .section {
    background: var(--bg-primary);
}

[data-theme="dark"] .lang-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Poppins', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--c-primary);
    color: #fff;
}

/* ========================================
   通用容器 & 工具类
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   按钮 — 公司官网风格（圆角方块）
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 1.5px solid var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-full {
    width: 100%;
}

/* ========================================
   导航栏 — 公司官网高端版
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* 始终有深色半透明背景，避免内容穿透 */
    background: rgba(11, 16, 32, 0.75);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 16, 32, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    height: 52px;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
}
.nav-container > * { min-width: 0; }
.nav-menu {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}
.nav-menu .nav-link {
    padding: 4px 8px;
    font-size: 13px;
    white-space: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar.scrolled .nav-logo {
    color: #ffffff;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--grad-primary);
    border-radius: 7px;
    font-size: 14px;
    color: #fff;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* 公司官网风格：下划线动效 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 28px);
    height: 2px;
    background: var(--c-primary-light);
    border-radius: 2px;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: #fff;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Hero 区域 — 彩虹渐变官网风格
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, #0b1020 0%, #131a36 40%, #1e1b4b 70%, #0f1a3e 100%);
    padding-top: var(--nav-height);
    padding-bottom: 100px;   /* 为底部滚动指示器预留空间，避免与按钮重叠 */
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* ====== Hero 视频背景 ====== */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(11, 16, 32, 0.7) 0%,
            rgba(11, 16, 32, 0.5) 40%,
            rgba(11, 16, 32, 0.75) 80%,
            rgba(11, 16, 32, 0.9) 100%
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.hero-video-overlay.active {
    opacity: 1;
}

/* 有视频背景时，减弱 blob 效果 */
.hero.has-video .blob {
    opacity: 0.3;
}

.hero.has-video .hero-bg::after {
    opacity: 0.4;
}

/* 彩虹极光层 */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(99, 102, 241, 0.25), transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 20%, rgba(236, 72, 153, 0.18), transparent 60%),
        radial-gradient(ellipse 55% 40% at 70% 70%, rgba(6, 182, 212, 0.18), transparent 60%),
        radial-gradient(ellipse 45% 30% at 30% 80%, rgba(16, 185, 129, 0.15), transparent 60%),
        radial-gradient(ellipse 40% 25% at 90% 50%, rgba(245, 158, 11, 0.12), transparent 60%);
    animation: aurora-shift 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora-shift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50%  { transform: translate(30px, -20px) scale(1.05); opacity: 1; }
    100% { transform: translate(-20px, 15px) scale(0.98); opacity: 0.85; }
}

/* 彩虹光带 */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    height: 6px;
    background: linear-gradient(90deg,
        #ef4444, #f97316, #eab308, #10b981,
        #06b6d4, #6366f1, #a78bfa, #ec4899, #ef4444
    );
    background-size: 200% 100%;
    animation: rainbow-flow 8s linear infinite;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    z-index: 3;
}

@keyframes rainbow-flow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 装饰网格背景 */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* 彩虹色 Blob */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;       /* Indigo */
    top: -100px;
    left: -100px;
    opacity: 0.35;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;       /* Pink */
    bottom: -50px;
    right: 8%;
    animation-delay: -5s;
    opacity: 0.25;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: #06b6d4;       /* Cyan */
    top: 25%;
    right: -120px;
    animation-delay: -10s;
    opacity: 0.22;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: #10b981;       /* Green */
    bottom: 15%;
    left: -80px;
    animation-delay: -7s;
    opacity: 0.18;
}

.blob-5 {
    width: 300px;
    height: 300px;
    background: #f59e0b;       /* Amber */
    top: 50%;
    left: 35%;
    animation-delay: -14s;
    opacity: 0.15;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(129, 140, 248, 0.6);
    border-radius: 50%;
    animation: particle-rise linear infinite;
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}

@keyframes particle-rise {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 60px 24px 24px;
    animation: hero-fade-in 1.2s ease;
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: auto 0;   /* 上下撑开，确保与底部 scroll-indicator 有间距 */
}

/* Hero顶部状态标签 — 官网常见 */
@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-emoji {
    font-size: 64px;
    margin-bottom: 24px;
    animation: bounce 2s ease infinite;
    display: inline-block;
    width: 96px;
    height: 96px;
    line-height: 96px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.hero-emoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    display: block;
    font-size: 0.55em;
    font-weight: 600;
    margin-bottom: 12px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0;
}

.hero-name {
    display: block;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(99, 102, 241, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;   /* 与下方 scroll-indicator 拉开距离 */
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    z-index: 2;
    pointer-events: none;   /* 不拦截点击，让用户可以点击按钮 */
    transition: opacity 0.3s ease;
}

.scroll-indicator .mouse {
    display: inline-block;
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    animation: wheel-scroll 1.5s ease infinite;
}

@keyframes wheel-scroll {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

.scroll-indicator p {
    font-size: 11px;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* ========================================
   Section 通用头部 — 公司官网风格
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 72px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-line {
    display: none;  /* 公司官网通常用 spacing 代替装饰线 */
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ========================================
   特色亮点 Highlights
   ======================================== */
.highlights {
    background: var(--bg-primary);
    position: relative;
}

.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(11, 16, 32, 0.03), transparent);
    pointer-events: none;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.highlight-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hl-grad);
    border-radius: 16px 16px 0 0;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
    border-color: transparent;
}

.highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--hl-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(-5deg);
}

.highlight-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   关于我
   ======================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.about-avatar {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-ring {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad-primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    border: 4px solid var(--bg-secondary);
}

.avatar-badges {
    position: absolute;
    inset: 0;
}

.badge-floating {
    position: absolute;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    animation: badge-float 3s ease infinite;
    animation-delay: var(--delay);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.badge-floating:nth-child(1) { top: 5%; right: 0; }
.badge-floating:nth-child(2) { bottom: 15%; right: -5%; }
.badge-floating:nth-child(3) { top: 10%; left: -5%; }
.badge-floating:nth-child(4) { bottom: 5%; left: 5%; }

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
}

.skill-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: var(--c);
    color: #fff;
    border-color: var(--c);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--bg-tertiary);
}

.stat {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   爱好展示
   ======================================== */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hobby-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
}

.hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hobby-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.hobby-card:hover::before {
    transform: scaleX(1);
}

.hobby-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--card-color), var(--card-color2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.hobby-card:hover .hobby-icon {
    transform: scale(1.05);
}

.hobby-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hobby-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.hobby-tags span {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: color-mix(in srgb, var(--card-color) 10%, transparent);
    color: var(--card-color);
}

.hobby-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ========================================
   作品集
   ======================================== */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid var(--bg-tertiary);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.filter-btn.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-cover {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-emoji {
    font-size: 56px;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-emoji {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: #fff;
    font-weight: 500;
    padding: 9px 24px;
    border: 1px solid #fff;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 14px;
}

.portfolio-link:hover {
    background: #fff;
    color: var(--text-primary);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tech span {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ========================================
   博客
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.blog-cover {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-emoji {
    font-size: 48px;
}

.blog-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.blog-read {
    font-size: 13px;
    color: var(--text-muted);
}

.blog-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-primary);
}

.blog-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    transition: var(--transition);
}

.blog-more:hover {
    color: var(--c-primary-dark);
}

.blog-more-btn {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   联系/留言
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.contact-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-primary);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-tertiary);
}

/* ========================================
   视频展示
   ======================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.video-cover {
    aspect-ratio: 16/9;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-cover:hover { transform: scale(1.02); }

.video-emoji { font-size: 56px; }

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--c-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    padding-left: 4px;
}

.video-cover:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-info { padding: 24px; }
.video-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.video-info p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* 视频弹窗 */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show { opacity: 1; }

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content { transform: scale(1); }

.video-modal-content iframe,
.video-modal-content video {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-content h3 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.video-modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* 图片占位 */
.portfolio-cover-link,
.blog-cover-link {
    display: block;
    position: relative;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-success {
    display: none;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}

.form-success.show {
    display: block;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   友情链接
   ======================================== */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.friend-card.article-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.friend-card.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--fc) 40%, transparent);
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: color-mix(in srgb, var(--fc) 8%, var(--bg-tertiary));
    position: relative;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.friend-card.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.4;
}

.article-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    margin-top: 8px;
    transition: gap 0.2s ease;
}

.friend-card.article-card:hover .article-read-more {
    color: color-mix(in srgb, var(--fc) 80%, var(--c-primary));
}

.friends-cta {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

.friends-cta a {
    color: var(--c-primary);
    font-weight: 600;
}

.friends-cta a:hover {
    text-decoration: underline;
}

/* ========================================
   页脚 — 公司官网风格
   ======================================== */
.footer {
    background: var(--bg-deep);
    padding: 80px 0 32px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-text {
    font-size: 0.95rem;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    color: #fff;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-beian {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-beian-divider {
    margin: 0 6px;
    opacity: 0.5;
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    font-weight: 700;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* ========================================
   滚动动画
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   页面加载动画
   ======================================== */
.timeline-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .timeline-section {
    background: var(--bg-secondary);
}

/* ========================================
   浅蓝白科技主题 — light-blue
   灵感来源：站酷 ZEDD 张东冬 个人网站
   清爽、科幻、轻盈、未来感
   ======================================== */
[data-theme="light-blue"] {
    /* 主色调 — 冰蓝科技 */
    --c-primary: #2E7BFF;
    --c-primary-dark: #1E66E0;
    --c-primary-light: #6CB8FF;
    --c-accent: #00B4D8;
    --c-accent-light: #48CAE4;

    /* 背景 — 浅蓝白层次 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F0F6FF;
    --bg-tertiary: #E1ECFE;
    --bg-deep: #E8F1FF;
    --bg-deep-2: #D6E4FA;

    /* 文字 */
    --text-primary: #0A1628;
    --text-secondary: #3A5070;
    --text-muted: #7A8FA8;
    --text-inverse: #FFFFFF;

    /* 渐变 */
    --grad-primary: linear-gradient(135deg, #2E7BFF 0%, #00B4D8 100%);
    --grad-hero: linear-gradient(135deg, #E8F1FF 0%, #FFFFFF 40%, #C8DDF5 100%);
    --grad-text: linear-gradient(135deg, #2E7BFF 0%, #00B4D8 100%);

    /* 阴影 — 带蓝调的氛围光 */
    --shadow-sm: 0 2px 8px rgba(46, 123, 255, 0.06);
    --shadow-md: 0 8px 24px rgba(46, 123, 255, 0.10);
    --shadow-lg: 0 16px 48px rgba(46, 123, 255, 0.14);
    --shadow-xl: 0 32px 80px rgba(46, 123, 255, 0.18);
    --shadow-glow: 0 0 40px rgba(46, 123, 255, 0.25);
}

/* ====== 导航栏 — 浅色磨砂玻璃 ====== */
[data-theme="light-blue"] .navbar {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(46, 123, 255, 0.08);
}

[data-theme="light-blue"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(46, 123, 255, 0.10);
    box-shadow: 0 4px 24px rgba(46, 123, 255, 0.08);
}

[data-theme="light-blue"] .nav-logo {
    color: #0A1628;
}

[data-theme="light-blue"] .nav-link {
    color: rgba(10, 22, 40, 0.70);
}

[data-theme="light-blue"] .nav-link:hover,
[data-theme="light-blue"] .nav-link.active {
    background: rgba(46, 123, 255, 0.10);
    color: #2E7BFF;
}

[data-theme="light-blue"] .nav-link::after {
    background: var(--c-primary);
}

[data-theme="light-blue"] .nav-toggle {
    background: rgba(46, 123, 255, 0.08);
    border-color: rgba(46, 123, 255, 0.10);
}

[data-theme="light-blue"] .nav-toggle span {
    background: #0A1628;
}

[data-theme="light-blue"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(46, 123, 255, 0.08);
}

[data-theme="light-blue"] .lang-toggle {
    border-color: rgba(46, 123, 255, 0.15);
    color: #0A1628;
    background: rgba(46, 123, 255, 0.05);
}

[data-theme="light-blue"] .theme-toggle {
    border-color: rgba(46, 123, 255, 0.15);
    color: #0A1628;
    background: rgba(46, 123, 255, 0.05);
}

/* ====== Hero 区域 — 浅蓝白渐变 + 3D悬浮 ====== */
[data-theme="light-blue"] .hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(46, 123, 255, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #E8F1FF 0%, #FFFFFF 35%, #D6E4FA 70%, #C8DDF5 100%);
}

/* Hero 文字颜色 → 深色 */
[data-theme="light-blue"] .hero-title {
    color: #0A1628;
}

[data-theme="light-blue"] .hero-name {
    color: #0A1628;
    text-shadow: 0 4px 30px rgba(46, 123, 255, 0.20);
}

[data-theme="light-blue"] .hero-subtitle {
    color: rgba(10, 22, 40, 0.65);
}

[data-theme="light-blue"] .hero-desc {
    color: rgba(10, 22, 40, 0.50);
}

[data-theme="light-blue"] .hero-emoji {
    background: linear-gradient(135deg, rgba(46, 123, 255, 0.12), rgba(0, 180, 216, 0.12));
    border: 1px solid rgba(46, 123, 255, 0.15);
}

[data-theme="light-blue"] .scroll-indicator {
    color: rgba(10, 22, 40, 0.45);
}

[data-theme="light-blue"] .scroll-indicator .mouse {
    border-color: rgba(10, 22, 40, 0.30);
}

[data-theme="light-blue"] .scroll-indicator .wheel {
    background: #2E7BFF;
}

/* Hero 按钮 */
[data-theme="light-blue"] .btn-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: #0A1628;
    border: 1px solid rgba(46, 123, 255, 0.20);
    backdrop-filter: blur(10px);
}

[data-theme="light-blue"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(46, 123, 255, 0.35);
}

/* Hero 装饰 — 极光层变浅 */
[data-theme="light-blue"] .hero-bg::after {
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(46, 123, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 20%, rgba(108, 184, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 55% 40% at 70% 70%, rgba(0, 180, 216, 0.08), transparent 60%),
        radial-gradient(ellipse 45% 30% at 30% 80%, rgba(72, 202, 228, 0.06), transparent 60%);
}

/* 网格线 → 浅蓝 */
[data-theme="light-blue"] .hero::before {
    background-image:
        linear-gradient(rgba(46, 123, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 123, 255, 0.05) 1px, transparent 1px);
}

/* 彩虹光带 → 浅蓝渐变 */
[data-theme="light-blue"] .hero-bg::before {
    background: linear-gradient(90deg, #2E7BFF, #6CB8FF, #00B4D8, #48CAE4, #2E7BFF);
    background-size: 200% 100%;
    box-shadow: 0 0 30px rgba(46, 123, 255, 0.30);
}

/* Blob → 浅色低饱和 */
[data-theme="light-blue"] .blob-1 { background: #6CB8FF; opacity: 0.20; }
[data-theme="light-blue"] .blob-2 { background: #B4D9FF; opacity: 0.18; }
[data-theme="light-blue"] .blob-3 { background: #48CAE4; opacity: 0.12; }
[data-theme="light-blue"] .blob-4 { background: #8EC5FC; opacity: 0.10; }
[data-theme="light-blue"] .blob-5 { background: #A8D8FF; opacity: 0.08; }

/* 粒子 → 浅蓝 */
[data-theme="light-blue"] .particle {
    background: rgba(46, 123, 255, 0.40);
    box-shadow: 0 0 8px rgba(46, 123, 255, 0.40);
}

/* ====== 视频遮罩 → 浅色 ====== */
[data-theme="light-blue"] .hero-video-overlay {
    background:
        linear-gradient(180deg,
            rgba(232, 241, 255, 0.6) 0%,
            rgba(232, 241, 255, 0.4) 40%,
            rgba(232, 241, 255, 0.65) 80%,
            rgba(232, 241, 255, 0.8) 100%
        );
}

/* ====== 卡片 — 玻璃感白卡 ====== */
[data-theme="light-blue"] .hobby-card,
[data-theme="light-blue"] .portfolio-card,
[data-theme="light-blue"] .blog-card,
[data-theme="light-blue"] .video-card,
[data-theme="light-blue"] .contact-item,
[data-theme="light-blue"] .friend-card,
[data-theme="light-blue"] .highlight-card {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 123, 255, 0.10);
    box-shadow: 0 4px 20px rgba(46, 123, 255, 0.06);
}

[data-theme="light-blue"] .hobby-card:hover,
[data-theme="light-blue"] .portfolio-card:hover,
[data-theme="light-blue"] .blog-card:hover,
[data-theme="light-blue"] .video-card:hover,
[data-theme="light-blue"] .contact-item:hover,
[data-theme="light-blue"] .friend-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(46, 123, 255, 0.15);
    border-color: rgba(46, 123, 255, 0.20);
}

[data-theme="light-blue"] .contact-form {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 123, 255, 0.10);
}

[data-theme="light-blue"] .form-group input,
[data-theme="light-blue"] .form-group textarea {
    background: rgba(240, 246, 255, 0.60);
    border-color: rgba(46, 123, 255, 0.12);
}

[data-theme="light-blue"] .form-group input:focus,
[data-theme="light-blue"] .form-group textarea:focus {
    border-color: #2E7BFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(46, 123, 255, 0.10);
}

/* Section 标签 */
[data-theme="light-blue"] .section-tag {
    background: rgba(46, 123, 255, 0.08);
    color: #2E7BFF;
    border-color: rgba(46, 123, 255, 0.12);
}

/* 筛选按钮 */
[data-theme="light-blue"] .filter-btn {
    background: rgba(255, 255, 255, 0.80);
    color: #3A5070;
    border-color: rgba(46, 123, 255, 0.10);
}

[data-theme="light-blue"] .filter-btn:hover {
    border-color: #2E7BFF;
    color: #2E7BFF;
}

[data-theme="light-blue"] .filter-btn.active {
    background: #2E7BFF;
    color: #fff;
    border-color: #2E7BFF;
}

/* 技术标签 */
[data-theme="light-blue"] .portfolio-tech span {
    background: rgba(46, 123, 255, 0.08);
    color: #3A5070;
}

/* 关于我区域 */
[data-theme="light-blue"] .about {
    background: var(--bg-secondary);
}

[data-theme="light-blue"] .timeline-section {
    background: var(--bg-secondary);
}

[data-theme="light-blue"] .portfolio {
    background: var(--bg-secondary);
}

[data-theme="light-blue"] .contact {
    background: var(--bg-secondary);
}

/* 头像环 */
[data-theme="light-blue"] .avatar-ring {
    box-shadow: 0 20px 60px rgba(46, 123, 255, 0.20);
}

[data-theme="light-blue"] .avatar-placeholder {
    background: #fff;
    border-color: var(--bg-secondary);
}

[data-theme="light-blue"] .badge-floating {
    background: #fff;
    border: 1px solid rgba(46, 123, 255, 0.10);
    box-shadow: 0 4px 16px rgba(46, 123, 255, 0.10);
}

/* 页脚 — 浅蓝深色 */
[data-theme="light-blue"] .footer {
    background: linear-gradient(135deg, #0A1628 0%, #102845 100%);
    border-top: 1px solid rgba(46, 123, 255, 0.10);
}

/* 回到顶部按钮 */
[data-theme="light-blue"] .back-to-top {
    background: #2E7BFF;
    box-shadow: 0 4px 16px rgba(46, 123, 255, 0.35);
}

[data-theme="light-blue"] .back-to-top:hover {
    background: #1E66E0;
    box-shadow: 0 8px 24px rgba(46, 123, 255, 0.45);
}

/* 博客日期标签 */
[data-theme="light-blue"] .blog-date {
    background: rgba(255, 255, 255, 0.95);
}

/* 视频分类标签 */
[data-theme="light-blue"] .video-category {
    background: rgba(255, 255, 255, 0.95);
}

/* Portfolio 分类标签 */
[data-theme="light-blue"] .portfolio-cat {
    background: rgba(46, 123, 255, 0.08);
}

/* Highlights 顶部渐变 */
[data-theme="light-blue"] .highlights::before {
    background: linear-gradient(to bottom, rgba(46, 123, 255, 0.03), transparent);
}

/* ====== 3D 悬浮装饰元素 ====== */
.floating-3d {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.floating-card-3d {
    position: absolute;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(46, 123, 255, 0.12);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(46, 123, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2E7BFF;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float-3d 6s ease-in-out infinite;
}

.floating-card-3d .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

/* 只在浅蓝白主题下显示3D悬浮卡片 */
[data-theme="light-blue"] .floating-card-3d {
    display: flex;
}

[data-theme="dark"] .floating-card-3d,
[data-theme="light"] .floating-card-3d {
    display: none;
}

/* 3D 漂浮动画 */
@keyframes float-3d {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-15px) rotateX(3deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(-8px) rotateX(0) rotateY(3deg);
    }
    75% {
        transform: translateY(-12px) rotateX(-2deg) rotateY(0);
    }
}

/* 光环装饰 — 模拟站酷ZEDD的星球光环 */
.floating-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(46, 123, 255, 0.12);
    pointer-events: none;
    animation: ring-rotate 20s linear infinite;
}

[data-theme="dark"] .floating-ring,
[data-theme="light"] .floating-ring {
    display: none;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 光晕球体 */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orb-pulse 4s ease-in-out infinite;
}

[data-theme="dark"] .floating-orb,
[data-theme="light"] .floating-orb {
    display: none;
}

@keyframes orb-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--c-primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    letter-spacing: 1.5px;
}

/* ========================================
   滚动进度条
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--c-primary);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* ========================================
   主题切换按钮 — 紧凑方块风格
   ======================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    color: #fff;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg);
}

.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }

/* ========================================
   语言切换按钮
   ======================================== */
.lang-toggle {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    color: #fff;
    white-space: nowrap;
}

.lang-toggle .lang-icon {
    font-size: 14px;
}

.lang-toggle .lang-label {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* ========================================
   打字机效果
   ======================================== */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #fff;
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================
   技能进度条
   ======================================== */
.skill-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--bg-tertiary);
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar-percent {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary);
}

.skill-bar-track {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   时间线
   ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-tertiary);
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-primary);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 2px var(--c-primary);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--bg-secondary);
}

.timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   社交分享按钮
   ======================================== */
.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn-wechat { background: #07c160; color: #fff; }
.share-btn-weibo { background: #e6162d; color: #fff; }
.share-btn-qq { background: #12b7f5; color: #fff; }
.share-btn-twitter { background: #1da1f2; color: #fff; }
.share-btn-copy { background: var(--c-primary); color: #fff; }

/* ========================================
   响应式
   ======================================== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-avatar {
        order: -1;
    }

    .skills {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hobbies-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 8px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-primary) !important;
        font-size: 16px;
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .portfolio-grid,
    .blog-grid,
    .friends-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .hero-emoji {
        font-size: 56px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .avatar-ring {
        width: 220px;
        height: 220px;
    }

    .avatar-placeholder {
        font-size: 80px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-bars {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .hero-emoji {
        font-size: 48px;
    }

    .hobby-card,
    .contact-item {
        padding: 28px 20px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .skill-bars {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }
}
