/* ===== CSS变量 - 亮色主题 ===== */
:root {
    --bg-primary: #f8f9ff;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a2e;
    --text-secondary: #555577;
    --text-muted: #9999bb;
    --accent-1: #667eea;
    --accent-2: #764ba2;
    --accent-3: #f093fb;
    --accent-4: #4facfe;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-multi: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --border-color: rgba(102, 126, 234, 0.15);
    --shadow-sm: 0 2px 10px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 8px 30px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 20px 60px rgba(102, 126, 234, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --navbar-bg: rgba(255, 255, 255, 0.75);
    --card-hover: translateY(-8px);
}

/* ===== 暗色主题 ===== */
[data-theme="dark"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(30, 30, 60, 0.7);
    --text-primary: #f0f0ff;
    --text-secondary: #aaaacc;
    --text-muted: #666688;
    --border-color: rgba(102, 126, 234, 0.25);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --navbar-bg: rgba(10, 10, 26, 0.8);
}

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Poppins', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100%;
    transition: background 0.5s ease, color 0.5s ease;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== 整页滚动 ===== */
.fullpage-container {
    height: 100vh;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.fp-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fp-section .container {
    max-height: 100vh;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 40px;
}

.fp-section .container::-webkit-scrollbar {
    width: 10px;
}

.fp-section .container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 5px;
}

.fp-section .container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}

.fp-section .container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
    background-clip: padding-box;
    border: 2px solid transparent;
}

/* 转场效果：当前屏内容淡入，非当前屏淡出 */
.fp-section .section-content-inner {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== 右侧页面指示器 ===== */
.page-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 998;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot:hover {
    border-color: var(--accent-1);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--gradient-1);
    border-color: var(--accent-1);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .page-indicator {
        right: 12px;
        gap: 12px;
    }
    .indicator-dot {
        width: 8px;
        height: 8px;
    }
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: var(--gradient-multi);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== 页面加载动画 ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

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

.loader-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
}

.loader-text span {
    display: inline-block;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease infinite, bounce 1.4s ease infinite;
}

.loader-text span:nth-child(1) { animation-delay: 0s; }
.loader-text span:nth-child(2) { animation-delay: 0.1s; }
.loader-text span:nth-child(3) { animation-delay: 0.2s; }
.loader-text span:nth-child(4) { animation-delay: 0.3s; }
.loader-text span:nth-child(5) { animation-delay: 0.4s; }
.loader-text span:nth-child(6) { animation-delay: 0.5s; }
.loader-text span:nth-child(7) { animation-delay: 0.6s; }
.loader-text span:nth-child(8) { animation-delay: 0.7s; }
.loader-text span:nth-child(9) { animation-delay: 0.8s; }

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

.loader-bar {
    width: 250px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    border-radius: 2px;
    width: 0%;
    animation: gradientShift 2s ease infinite;
    transition: width 0.3s ease;
}

/* ===== 鼠标跟随特效 ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-dot.hover {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid var(--accent-1);
}

@media (max-width: 768px) {
    .cursor-glow, .cursor-dot {
        display: none;
    }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.nav-link.active {
    color: var(--accent-1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-1);
    color: white;
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-moon {
    display: none;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 通用区块 ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--border-color);
    color: var(--accent-1);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

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

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

/* ===== Hero首屏 ===== */
.hero {
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-3);
    bottom: -50px;
    left: -100px;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-4);
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

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

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero-typed {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 2rem;
}

.typed-cursor {
    animation: blink 1s infinite;
    color: var(--accent-1);
    font-weight: 300;
}

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

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover {
    background: var(--accent-1);
    color: white;
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero右侧卡片 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 320px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.card-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-placeholder svg {
    width: 45px;
    height: 45px;
}

.card-info {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.card-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    padding: 4px 10px;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    border-radius: 10px;
    font-weight: 600;
}

.card-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

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

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.floating-tag {
    position: absolute;
    padding: 8px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: tagFloat 5s ease-in-out infinite;
    z-index: 1;
}

.tag-1 { top: 5%; left: 0; animation-delay: 0s; background: var(--gradient-1); color: white; border: none; }
.tag-2 { top: 28%; right: -10px; animation-delay: 1s; background: var(--gradient-2); color: white; border: none; }
.tag-3 { bottom: 28%; left: -20px; animation-delay: 2s; background: var(--gradient-3); color: white; border: none; }
.tag-4 { bottom: 8%; right: 5%; animation-delay: 3s; background: var(--gradient-4); color: white; border: none; }

@keyframes tagFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    z-index: 1;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 1rem;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.about-tag {
    padding: 8px 18px;
    background: var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    transition: all 0.3s ease;
}

.about-tag:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: var(--card-hover);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-1);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
}

.highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== 技能 ===== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
}

.skill-category.full-width {
    grid-column: 1 / -1;
}

.category-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.3rem;
}

.skill-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
    margin-top: -12px;
}

.skill-item {
    margin-bottom: 18px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-percent {
    color: var(--accent-1);
    font-size: 0.8rem;
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    animation: gradientShift 3s ease infinite;
}

.skill-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 12px;
    font-style: italic;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tech-tag {
    padding: 8px 16px;
    background: var(--border-color);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.tech-tag:hover::before {
    transform: scaleY(1);
}

.domain-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.domain-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: var(--shadow-md);
}

.domain-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-card p {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ===== 项目 ===== */
.projects {
    background: var(--bg-secondary);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: var(--card-hover);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-1);
}

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

.project-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    cursor: pointer;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-1);
    color: white;
}

.project-card:nth-child(2) .project-placeholder { background: var(--gradient-2); }
.project-card:nth-child(3) .project-placeholder { background: var(--gradient-3); }
.project-card:nth-child(4) .project-placeholder { background: var(--gradient-4); }

.placeholder-icon {
    font-size: 2.5rem;
}

.placeholder-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.project-placeholder.coming-soon {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.overlay-zoom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.project-image:hover .overlay-zoom {
    transform: scale(1);
}

.overlay-zoom svg {
    width: 22px;
    height: 22px;
}

.project-info {
    padding: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.project-tag {
    padding: 3px 10px;
    background: var(--border-color);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-1);
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-1);
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-2);
    transform: translateX(3px);
}

.project-link svg {
    width: 15px;
    height: 15px;
}

.placeholder-card .project-image {
    cursor: default;
}

.placeholder-card .project-overlay {
    display: none;
}

/* ===== 数据成果 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.stat-card:hover {
    transform: var(--card-hover);
    box-shadow: var(--shadow-md);
}

.stat-card-pending {
    opacity: 0.7;
}

.stat-card-pending::before {
    background: var(--border-color);
    animation: none;
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-pending-text {
    font-size: 1.1rem !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-muted) !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

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

.stat-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

.stats-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-1);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
}

.contact-form h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 0.72rem;
    color: var(--accent-1);
    background: var(--bg-card);
}

.form-status {
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* ===== 页脚 ===== */
.footer {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 997;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ===== 灯箱 ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-placeholder {
    width: 600px;
    height: 400px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
}

.lightbox-placeholder span:first-child {
    font-size: 5rem;
}

.lightbox-placeholder span:last-child {
    font-size: 1.3rem;
    font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}

/* ===== 密码门 ===== */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
}

.gate-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gate-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.gate-blob-1 {
    width: 350px;
    height: 350px;
    background: var(--accent-1);
    top: -80px;
    right: -50px;
}

.gate-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    bottom: -50px;
    left: -80px;
    animation-delay: 2s;
}

.gate-blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-4);
    top: 50%;
    left: 40%;
    animation-delay: 4s;
}

.gate-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    animation: gateEnter 0.6s ease;
}

@keyframes gateEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: gatePulse 2s ease-in-out infinite;
}

@keyframes gatePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0); }
}

.gate-icon svg {
    width: 28px;
    height: 28px;
}

.gate-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-multi);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.gate-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.gate-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.gate-input-wrap input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.gate-input-wrap input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gate-btn {
    padding: 14px 20px;
    background: var(--gradient-1);
    color: white;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.gate-btn svg {
    width: 18px;
    height: 18px;
}

.gate-error {
    color: #ef4444;
    font-size: 0.85rem;
    min-height: 1.2rem;
    transition: all 0.3s ease;
}

.gate-error.show {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 480px) {
    .gate-content {
        padding: 28px 20px;
    }
    .gate-input-wrap {
        flex-direction: column;
    }
    .gate-btn {
        justify-content: center;
    }
}

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

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .domain-cards {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .fullpage-container {
        height: auto;
        transition: none;
    }

    .fp-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .fp-section .container {
        overflow: visible;
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .hero-card {
        max-width: 280px;
    }

    .floating-tag {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-typed {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .contact-form-wrap {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}
