/* ========================================
   美化版 Portfolio 样式
   更多渐变、动画、视觉层次
   ======================================== */

/* 基础样式 */
:root {
    /* 主色调 - 更丰富的渐变 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --secondary-light: #a78bfa;
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    
    /* 背景色 - 更丰富的层次 */
    --bg-primary: #0a0f1c;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    /* 文字色 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 渐变定义 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a0f1c 0%, #0f172a 50%, #1e293b 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(6, 182, 212, 0.3);
    
    /* 边框 */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(99, 102, 241, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

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

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

/* ========================================
   语言切换标签 - 美化版
   ======================================== */
.lang-tabs {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 999;
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--border-medium);
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.lang-tabs:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.3);
}

.lang-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.lang-tab:hover {
    color: var(--text-primary);
}

.lang-tab.active {
    color: white;
}

.lang-tab.active::before {
    opacity: 1;
}

/* ========================================
   导航栏 - 美化版
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* ========================================
   Hero 区域 - 美化版
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.glitch {
    font-size: 4.5rem;
    font-weight: 800;
    position: relative;
    letter-spacing: -2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { 
        text-shadow: 2px 0 #ff0066, -2px 0 #00ffcc;
        transform: translate(0);
    }
    20% { 
        text-shadow: -2px 0 #ff0066, 2px 0 #00ffcc;
        transform: translate(-2px, 2px);
    }
    40% { 
        text-shadow: 2px 0 #00ffcc, -2px 0 #ff0066;
        transform: translate(2px, -2px);
    }
    60% { 
        text-shadow: -2px 0 #00ffcc, 2px 0 #ff0066;
        transform: translate(-1px, 1px);
    }
    80% { 
        text-shadow: 2px 0 #ff0066, -2px 0 #00ffcc;
        transform: translate(1px, -1px);
    }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin: 24px 0;
    font-weight: 400;
}

.highlight {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    border-color: transparent;
}

.btn-secondary:hover::after {
    opacity: 1;
}

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

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

/* 代码窗口美化 */
.code-window {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(99, 102, 241, 0.2);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(10px);
}

.window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.2);
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-content {
    padding: 24px;
    font-family: 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.keyword { color: #c792ea; font-weight: 600; }
.variable { color: #82aaff; }
.property { color: #f78c6c; }
.string { color: #c3e88d; }
.boolean { color: #ff5370; font-weight: 600; }
.comment { color: #676e95; font-style: italic; }

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
}

.mouse {
    width: 28px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 14px;
    margin: 0 auto 12px;
    position: relative;
}

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

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 24px; }
}

/* ========================================
   通用区域样式 - 美化版
   ======================================== */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(20px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -60px;
    margin-bottom: 60px;
    font-size: 1.2rem;
}

/* ========================================
   关于我 - 美化版
   ======================================== */
.about {
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border-radius: 24px;
    opacity: 0.3;
    filter: blur(30px);
}

.placeholder-image {
    width: 320px;
    height: 320px;
    background: var(--bg-card);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   技能 - 美化版
   ======================================== */
.skills {
    background: 
        radial-gradient(ellipse at 80% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

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

.skill-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

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

.skill-card i {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.skill-level {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

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

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

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

/* ========================================
   项目 - 美化版
   ======================================== */
.projects {
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

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

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

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

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

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

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

.project-icon {
    font-size: 4rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 28px;
}

.project-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.tag {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

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

.btn-small {
    padding: 10px 18px;
    font-size: 0.85rem;
}

/* ========================================
   服务 - 美化版
   ======================================== */
.services {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

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

.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.15);
}

.service-card h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   联系 - 美化版
   ======================================== */
.contact {
    background: 
        radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.contact-item i {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.contact-item h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

/* ========================================
   页脚 - 美化版
   ======================================== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    font-size: 1.1rem;
}

.footer-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

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

.footer-bottom p {
    color: var(--text-muted);
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   语言内容显示控制
   ======================================== */
[data-lang] {
    display: none;
}

[data-lang].active {
    display: block;
}

span[data-lang].active {
    display: inline;
}

.nav-links li a[data-lang].active {
    display: inline;
}

.btn[data-lang].active {
    display: inline-flex;
}

.service-card p[data-lang].active {
    display: block;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .placeholder-image {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .lang-tabs {
        top: 80px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .skills-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card,
.project-card,
.service-card,
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* 选中文字样式 */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ========================================
   AI 基础设施服务 - 新增样式
   ======================================== */
.ai-services {
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 120px 0;
}

.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.ai-service-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ai-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-cool);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ai-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-accent);
}

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

.ai-service-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.ai-service-card.wide {
    grid-column: span 2;
}

.ai-service-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.ai-service-header i {
    font-size: 2.5rem;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.badge.new {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
}

.badge.eco {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
}

.ai-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* GPU 规格展示 */
.gpu-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.gpu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.gpu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.gpu-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.gpu-info {
    display: flex;
    flex-direction: column;
}

.gpu-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.gpu-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 数据类型标签 */
.data-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.data-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-light);
    transition: all 0.3s ease;
}

.data-tag:hover {
    background: rgba(6, 182, 212, 0.25);
    transform: translateY(-2px);
}

.data-tag i {
    font-size: 0.9rem;
}

/* AI 服务特性列表 */
.ai-service-features {
    list-style: none;
    margin-bottom: 28px;
}

.ai-service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ai-service-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* 回收分类网格 */
.recycle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.recycle-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.recycle-category h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.recycle-category h4 i {
    color: var(--accent-color);
}

.recycle-category ul {
    list-style: none;
}

.recycle-category li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 16px;
}

.recycle-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 回收流程 */
.recycle-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.process-step i {
    width: 50px;
    height: 50px;
    background: var(--gradient-cool);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.process-step span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.process-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 优势亮点 */
.ai-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

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

.advantage-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.advantage-item i {
    font-size: 2rem;
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.advantage-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

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

/* AI 服务响应式 */
@media (max-width: 968px) {
    .ai-services-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-service-card.wide {
        grid-column: span 1;
    }
    
    .recycle-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-advantages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recycle-process {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .ai-advantages {
        grid-template-columns: 1fr;
    }
    
    .ai-service-card {
        padding: 30px 24px;
    }
}
