/* ==================== 全局变量 ==================== */
:root {
    /* 霁月狐主题色 - 蓝白橙配色 */
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #60a5fa;
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-blue) 0%, #6366f1 50%, var(--accent-orange) 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.brand-icon {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
    background: var(--gray-100);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==================== Hero 区域 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px 60px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #eff6ff 50%, #fff7ed 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

/* 2x2 网格布局 - 用于空间足够时 */
.hero-buttons.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
}

.hero-buttons.grid-2x2 .btn {
    justify-content: center;
    padding: 16px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.hero-buttons.grid-2x2 .btn i {
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: .95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

.btn-admin {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-docs {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-docs:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition);
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

/* 抖音 - 黑色渐变 */
.social-douyin::before {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}
.social-douyin:hover {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

/* B站 - 粉色 */
.social-bilibili::before {
    background: linear-gradient(135deg, #FB7299, #ff85a2);
}
.social-bilibili:hover {
    background: linear-gradient(135deg, #FB7299, #ff85a2);
}

/* QQ - 蓝色 */
.social-qq::before {
    background: linear-gradient(135deg, #12B7F5, #00a8e6);
}
.social-qq:hover {
    background: linear-gradient(135deg, #12B7F5, #00a8e6);
}

/* GitHub - 深灰 */
.social-github::before {
    background: linear-gradient(135deg, #24292e, #3a3f44);
}
.social-github:hover {
    background: linear-gradient(135deg, #24292e, #3a3f44);
}

/* 人设图区域 */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-left: 40px;
}

.character-container {
    position: relative;
    width: 400px;
    height: 500px;
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

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

/* 3D光环效果 */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    perspective: 1000px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border: 3px solid transparent;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-ring-1 {
    border-top-color: var(--primary-blue);
    border-right-color: rgba(59, 130, 246, 0.3);
    animation: ring-rotate-1 8s linear infinite;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.orbit-ring-2 {
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    border-bottom-color: var(--accent-orange);
    border-left-color: rgba(249, 115, 22, 0.3);
    animation: ring-rotate-2 12s linear infinite reverse;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.orbit {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), inset 0 0 10px rgba(255,255,255,0.3);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.orbit-1 {
    top: -22px;
    left: 50%;
    margin-left: -22px;
    animation: icon-float-1 8s ease-in-out infinite;
}

.orbit-2 {
    top: 50%;
    right: -22px;
    margin-top: -22px;
    animation: icon-float-2 8s ease-in-out infinite 2s;
}

.orbit-3 {
    bottom: -22px;
    left: 50%;
    margin-left: -22px;
    animation: icon-float-3 8s ease-in-out infinite 4s;
}

.orbit-4 {
    top: 50%;
    left: -22px;
    margin-top: -22px;
    animation: icon-float-4 8s ease-in-out infinite 6s;
}

@keyframes ring-rotate-1 {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes ring-rotate-2 {
    0% { transform: rotateX(45deg) rotateY(30deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(30deg) rotateZ(360deg); }
}

@keyframes icon-float-1 {
    0%, 100% { transform: translateZ(20px) scale(1); }
    50% { transform: translateZ(40px) scale(1.1); }
}

@keyframes icon-float-2 {
    0%, 100% { transform: translateZ(20px) scale(1); }
    50% { transform: translateZ(40px) scale(1.1); }
}

@keyframes icon-float-3 {
    0%, 100% { transform: translateZ(20px) scale(1); }
    50% { transform: translateZ(40px) scale(1.1); }
}

@keyframes icon-float-4 {
    0%, 100% { transform: translateZ(20px) scale(1); }
    50% { transform: translateZ(40px) scale(1.1); }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== 关于我 ==================== */
.about {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue-light);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transform: rotate(-5deg);
    transition: var(--transition);
}

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

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* ==================== 技能栈 ==================== */
.skills {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.skill-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-light);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.skill-name {
    font-weight: 600;
    color: var(--gray-800);
    min-width: 100px;
}

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

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* ==================== 功能卡片区域 ==================== */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px -5px rgba(0, 0, 0, 0.12),
        0 10px 20px -5px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* 卡片顶部彩色条 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 6px;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* 背景装饰 */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 28px 0;
    font-size: 2.2rem;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.study-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.server-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.warehouse-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-800);
    position: relative;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.75;
    position: relative;
    flex-grow: 1;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    position: relative;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 20px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-tag:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* 卡片按钮样式 */
.feature-card .btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.feature-card .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.feature-card .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.feature-card .btn-admin {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.feature-card .btn-admin:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
}

.feature-card .btn-docs {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.feature-card .btn-docs:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--gray-400);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue-light);
}

.copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        flex: 1 1 auto;
        max-width: 200px;
        min-width: 160px;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .character-container {
        width: 280px;
        height: 350px;
    }
    
    .floating-elements {
        display: none;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .hero-buttons,
    .hero-buttons.grid-2x2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* 人设图移动端优化 */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-left: 0;
        margin-bottom: 60px;
    }
    
    .character-container {
        width: 200px;
        height: 250px;
        max-width: 60vw;
    }
    
    .character-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* 关于我部分 */
    .about {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
    }
    
    /* 技能部分 */
    .skills {
        padding: 60px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .skill-item {
        padding: 18px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    /* 功能卡片区域 */
    .features-section {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .feature-card {
        padding: 40px 28px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: 22px;
    }
    
    .feature-card h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }
    
    .feature-tags {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .feature-card .btn {
        max-width: 180px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 40px 0 25px;
    }
    
    .footer-brand {
        font-size: 1.4rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
        padding: 0 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

/* 小屏手机 */
@media (max-width: 375px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .character-container {
        width: 180px;
        height: 230px;
    }
    
    .btn {
        max-width: 240px;
        padding: 10px 18px;
    }
}

/* ==================== 动画类 ==================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
