/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --blue: #3b82f6;
    --blue-light: #93c5fd;
    --blue-dark: #1d4ed8;
    --green: #10b981;
    --green-light: #a7f3d0;
    --purple: #8b5cf6;
    --purple-light: #c7d2fe;
    --orange: #f59e0b;
    --orange-light: #fde68a;
    --red: #ef4444;
    --red-light: #fecaca;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    --border-radius: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 3px 5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.07);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 20px;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: var(--font-md);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Overlay gradient */
.overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    z-index: -1;
}

/* Pixel Background */
.pixel-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.08) 1px, transparent 1px);
    z-index: -2;
    opacity: 0.7;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(16, 185, 129, 0.05) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(37, 99, 235, 0.05);
    animation: float-around 18s ease-in-out infinite;
    z-index: -1;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; left: 80%; animation-delay: -3s; }
.floating-icon:nth-child(3) { top: 80%; left: 15%; animation-delay: -6s; }
.floating-icon:nth-child(4) { top: 40%; left: 90%; animation-delay: -9s; }
.floating-icon:nth-child(5) { top: 70%; left: 75%; animation-delay: -12s; }
.floating-icon:nth-child(6) { top: 30%; left: 30%; animation-delay: -15s; }
.floating-icon:nth-child(7) { top: 85%; left: 50%; animation-delay: -18s; }
.floating-icon:nth-child(8) { top: 15%; left: 60%; animation-delay: -21s; }

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(20px, 15px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translate(0, 30px) rotate(0deg) scale(1);
    }
    75% {
        transform: translate(-20px, 15px) rotate(-5deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Header */
header {
    margin-bottom: 40px;
    text-align: center;
}

.logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: inline-block;
}

/* 闪烁文字效果 */
.glitch-container {
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--dark);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 3px 0 var(--accent);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(30% 0 36% 0);
    }
    20% {
        clip-path: inset(84% 0 2% 0);
    }
    40% {
        clip-path: inset(36% 0 41% 0);
    }
    60% {
        clip-path: inset(74% 0 23% 0);
    }
    80% {
        clip-path: inset(9% 0 76% 0);
    }
    100% {
        clip-path: inset(46% 0 39% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(56% 0 30% 0);
    }
    20% {
        clip-path: inset(6% 0 82% 0);
    }
    40% {
        clip-path: inset(78% 0 9% 0);
    }
    60% {
        clip-path: inset(15% 0 65% 0);
    }
    80% {
        clip-path: inset(89% 0 2% 0);
    }
    100% {
        clip-path: inset(24% 0 62% 0);
    }
}

/* Typing effect */
.typing-text {
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.profile-image {
    margin-right: 40px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

/* Floating animation */
.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background-color: var(--bg-light);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.badge.primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

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

.social-link {
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Card styles */
.skills-card, .projects-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Test Capabilities */
.test-capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    position: relative;
    perspective: 1000px;
}

.test-capabilities::before {
    content: '测试能力';
    position: absolute;
    top: -40px;
    left: 20px;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Test Cards Container */
.test-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* Test Card */
.test-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Card悬浮效果 */
.test-card:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(4deg);
    box-shadow: 
        0 15px 30px rgba(var(--card-color), 0.15),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Card点击效果 */
.test-card:active {
    transform: scale(0.98);
}

/* Card发光效果 */
.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(var(--card-color), 0.1) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.test-card:hover::before {
    opacity: 1;
}

/* Test Card Content */
.test-content {
    flex: 1;
}

.test-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Test Tools */
.test-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(var(--card-color), 0.1);
    color: rgba(var(--card-color), 1);
    transition: all 0.3s;
    transform-origin: center;
    animation: toolsAppear 0.3s backwards;
}

.test-card:hover .tool {
    animation: toolPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Test Types */
.test-card.functional { --card-color: 59, 130, 246; }
.test-card.api { --card-color: 16, 185, 129; }
.test-card.performance { --card-color: 245, 158, 11; }
.test-card.stress { --card-color: 139, 92, 246; }
.test-card.chaos { --card-color: 239, 68, 68; }

/* Test Icon */
.test-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.test-icon-animation {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(var(--card-color), 0.1);
}

.test-card:hover .test-icon-animation {
    transform: scale(1.1) rotate(10deg);
}

.test-icon-animation i {
    transition: all 0.3s;
}

.test-card:hover .test-icon-animation i {
    animation: iconPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 测试类型特定样式 */
.functional .test-icon-animation {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
}

.api .test-icon-animation {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.performance .test-icon-animation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.stress .test-icon-animation {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.1));
}

.chaos .test-icon-animation {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

/* 动画关键帧 */
@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

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

/* 为每个工具标签添加延迟动画 */
.tool:nth-child(1) { animation-delay: 0.1s; }
.tool:nth-child(2) { animation-delay: 0.2s; }
.tool:nth-child(3) { animation-delay: 0.3s; }

/* 添加鼠标跟随效果 */
.test-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        gap: 30px;
    }

    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .test-capabilities {
        gap: 20px;
        padding: 15px;
    }

    .test-card:hover {
        transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    }

    .test-card {
        padding: 20px;
    }
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.02);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.footer-logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.copyright {
    font-size: 14px;
    margin-top: 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 16px;
    color: var(--dark);
}

/* Dark Mode */
body.dark-mode {
    /* 保持原有的颜色变量 */
    --primary: #60a5fa;
    --primary-dark: #93c5fd;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #f1f5f9;
    --dark-light: #e2e8f0;
    --gray: #94a3b8;
    --light: #0f172a;
    --card: #1e293b;
    
    /* 调整文本颜色 */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    /* 调整卡片和背景 */
    --bg-card: rgba(30, 41, 59, 0.95);
    --bg-hover: rgba(51, 65, 85, 0.9);
}

body.dark-mode .pixel-background {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    opacity: 0.4;
}

body.dark-mode .overlay-gradient {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 100%);
}

body.dark-mode .floating-icon {
    color: rgba(59, 130, 246, 0.1);
}

body.dark-mode .capability-icon,
body.dark-mode .tool,
body.dark-mode .project-tech span {
    background: #1e293b;
}

body.dark-mode .theme-toggle {
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle i {
    color: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .profile-image {
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .badges {
        justify-content: center;
    }
    
    h2 {
        display: block;
        text-align: center;
    }
    
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .test-capabilities {
        justify-content: center;
    }
    
    .capability-item {
        width: calc(50% - 10px);
        max-width: 150px;
    }
    
    .progress-metrics {
        flex-direction: column;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .motto {
        text-align: center;
    }
    
    .skills-card, .projects-card {
        padding: 25px 15px;
    }
    
    .capability-details {
        padding: 20px 15px;
    }
    
    .capability-item {
        width: 100%;
        max-width: none;
    }
    
    .floating-icon {
        display: none;
    }
}

/* Animation for skill levels */
@keyframes skillFill {
    from { width: 0; }
}

/* 优化背景动画和布局 */

/* 1. 恢复并优化背景效果 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(16, 185, 129, 0.05) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
}

/* 2. 优化头像上传样式 */
.profile-avatar {
    margin-right: 40px;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

/* 3. 优化个人信息卡片布局 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* 优化头像样式 */
.profile-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 3px solid white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.avatar-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.4)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.avatar-overlay i {
    color: white;
    font-size: 20px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar:hover .avatar-overlay i {
    transform: translateY(0);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 优化信息区域样式 */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 重新设计"可接项目"标签 */
.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-badge::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: 0.5s;
}

.profile-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.profile-badge:hover::before {
    left: 100%;
}

.profile-badge i {
    margin-right: 8px;
    font-size: 16px;
}

/* 添加图标到可接项目标签 */
.profile-badge::after {
    content: '→';
    margin-left: 8px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.profile-badge:hover::after {
    transform: translateX(4px);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .profile-card {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .profile-name {
        color: #ffffff;
    }

    .profile-badge {
        background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    }
}

/* 联系方式卡片 */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-title {
    font-size: var(--font-lg);
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.contact-link.gmail {
    color: #EA4335;
}

.contact-link.qq {
    color: #12B7F5;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.8);
}

/* 增加更多Bug和测试元素 */
.bug-element {
    /* 增加更多Bug元素 */
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.15;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

/* 添加更多Bug元素位置 */
.bug-element:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.bug-element:nth-child(2) { top: 75%; left: 85%; animation-delay: -5s; }
.bug-element:nth-child(3) { top: 45%; left: 25%; animation-delay: -10s; }
.bug-element:nth-child(4) { top: 35%; left: 70%; animation-delay: -3s; }
.bug-element:nth-child(5) { top: 85%; left: 40%; animation-delay: -7s; }
.bug-element:nth-child(6) { top: 25%; left: 55%; animation-delay: -12s; }
.bug-element:nth-child(7) { top: 65%; left: 30%; animation-delay: -15s; }
.bug-element:nth-child(8) { top: 55%; left: 80%; animation-delay: -9s; }

/* 添加测试用例图标 */
.test-case-element {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238b5cf6' d='M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22,16.12,6.55,15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06,12.49,5,12,5C11.51,5,11.04,5.06,10.59,5.17L8.41,3L7,4.41l1.62 1.63C7.88,6.55,7.26,7.22,6.81,8H4V10H6.09C6.04,10.33,6,10.66,6,11V12H4V14H6V15C6,15.34,6.04,15.67,6.09,16H4V18H6.81C7.85,19.79,9.78,21,12,21C14.22,21,16.15,19.79,17.19,18H20V16H17.91C17.96,15.67,18,15.34,18,15V14H20V12H18V11C18,10.66,17.96,10.33,17.91,10H20V8Z'/%3E%3C/svg%3E");
    animation: test-case-float 25s linear infinite;
}

/* 测试用例元素位置 */
.test-case-element:nth-child(1) { top: 25%; left: 35%; animation-delay: 0s; }
.test-case-element:nth-child(2) { top: 65%; left: 75%; animation-delay: -5s; }
.test-case-element:nth-child(3) { top: 45%; left: 15%; animation-delay: -10s; }
.test-case-element:nth-child(4) { top: 85%; left: 45%; animation-delay: -15s; }

@keyframes test-case-float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    }
    50% {
        transform: translate(30px, -30px) rotate(180deg) scale(1.2);
        filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    }
}

/* 添加网格背景 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    animation: grid-pulse 10s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.5;
        background-size: 30px 30px;
    }
    50% {
        opacity: 0.8;
        background-size: 32px 32px;
    }
}

/* 增强测试元素动画 */
.bug-element, .code-element, .check-element {
    opacity: 0.12;  /* 增加透明度 */
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));  /* 添加发光效果 */
    transform-origin: center;
    width: 32px;  /* 增大图标尺寸 */
    height: 32px;
}

/* Bug动画增强 */
@keyframes bug-float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(40px, 40px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(-30px, 60px) rotate(240deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* 代码动画增强 */
@keyframes code-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(50px, -40px) scale(1.3) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

/* 检查标记动画增强 */
@keyframes check-float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    50% {
        transform: translate(-40px, 50px) rotate(180deg) scale(1.4);
        opacity: 0.18;
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        opacity: 0.12;
    }
}

/* 添加光晕效果 */
.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.glow-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: glow-pulse 8s infinite alternate;
}

.glow-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: glow-pulse 12s infinite alternate-reverse;
}

@keyframes glow-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* 增加动态线条效果 */
.network-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.2),
        rgba(59, 130, 246, 0.2),
        transparent
    );
    height: 1px;
    width: 100%;
    animation: line-flow 8s linear infinite;
}

.line:nth-child(1) { top: 20%; animation-delay: 0s; }
.line:nth-child(2) { top: 40%; animation-delay: -2s; }
.line:nth-child(3) { top: 60%; animation-delay: -4s; }
.line:nth-child(4) { top: 80%; animation-delay: -6s; }

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

/* 保持原有的动画元素样式 */
.test-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bug-element {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0.15;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ef4444' d='M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22,16.12,6.55,15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06,12.49,5,12,5C11.51,5,11.04,5.06,10.59,5.17L8.41,3L7,4.41l1.62 1.63C7.88,6.55,7.26,7.22,6.81,8H4V10H6.09C6.04,10.33,6,10.66,6,11V12H4V14H6V15C6,15.34,6.04,15.67,6.09,16H4V18H6.81C7.85,19.79,9.78,21,12,21C14.22,21,16.15,19.79,17.19,18H20V16H17.91C17.96,15.67,18,15.34,18,15V14H20V12H18V11C18,10.66,17.96,10.33,17.91,10H20V8Z'/%3E%3C/svg%3E");
    animation: bug-float 20s linear infinite;
}

/* 增加更多Bug元素位置 */
.bug-element:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.bug-element:nth-child(2) { top: 75%; left: 85%; animation-delay: -5s; }
.bug-element:nth-child(3) { top: 45%; left: 25%; animation-delay: -10s; }
.bug-element:nth-child(4) { top: 35%; left: 70%; animation-delay: -3s; }
.bug-element:nth-child(5) { top: 85%; left: 40%; animation-delay: -7s; }
.bug-element:nth-child(6) { top: 25%; left: 55%; animation-delay: -12s; }
.bug-element:nth-child(7) { top: 65%; left: 30%; animation-delay: -15s; }
.bug-element:nth-child(8) { top: 55%; left: 80%; animation-delay: -9s; }

@keyframes bug-float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }
    33% {
        transform: translate(40px, 40px) rotate(120deg) scale(1.2);
        filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.6));
    }
    66% {
        transform: translate(-30px, 60px) rotate(240deg) scale(0.8);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
    }
}

/* 命令行风格的测试能力展示 */
.terminal-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-button:nth-child(2) {
    background: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background: #27c93f;
}

.terminal-header span {
    margin-left: 10px;
    color: #abb2bf;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    color: #abb2bf;
    font-family: 'Fira Code', monospace;
}

.command-group {
    margin-bottom: 25px;
}

.command-line {
    color: #98c379;
    margin-bottom: 10px;
}

.prompt {
    color: #61afef;
    margin-right: 8px;
}

.command-output {
    margin-left: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.output-title {
    color: #e5c07b;
    font-size: 16px;
    margin-bottom: 8px;
}

.output-desc {
    color: #abb2bf;
    margin-bottom: 12px;
    line-height: 1.4;
}

.output-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool {
    background: rgba(97, 175, 239, 0.1);
    color: #61afef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 底部联系方式样式 */
.site-footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: var(--font-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link.gmail {
    color: #EA4335;
}

.contact-link.qq {
    color: #12B7F5;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .terminal-body {
        padding: 15px;
    }
    
    .command-output {
        margin-left: 10px;
        padding: 12px;
    }
    
    .contact-link {
        padding: 12px;
    }
}

/* 添加故障效果 */
@keyframes glitch-anim {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 3px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(3px, -2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, 4px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, -4px);
    }
}

/* 卡片故障效果 */
.test-card {
    position: relative;
}

.test-card::after {
    content: attr(data-error);
    position: absolute;
    top: -20px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.test-card.error::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(239, 68, 68, 0.03);
    z-index: -1;
}

.test-card.error::after {
    opacity: 1;
    transform: translateY(0);
}

.test-card.error .test-icon-animation {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Bug路径动画 */
.bug-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bug-trail::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0;
}

.test-card:hover .bug-trail::before {
    animation: bugMove 2s infinite;
}

@keyframes bugMove {
    0% {
        opacity: 0;
        transform: translate(10%, 10%);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(90%, 90%);
    }
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* 错误提示动画 */
@keyframes errorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 错误弹窗样式 */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: auto;
}

.error-modal.show {
    display: flex;
}

.error-window {
    pointer-events: auto;
    background: #1e1e1e;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    animation: windowSlideUp 0.3s ease forwards;
}

.error-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-title {
    color: #abb2bf;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 500;
}

.error-content {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.error-line {
    color: #e06c75;
    margin-bottom: 16px;
    font-size: 14px;
}

.stack-trace {
    color: #abb2bf;
    margin: 16px 0;
    padding-left: 20px;
    border-left: 2px solid #3d3d3d;
}

.code-preview {
    background: #282c34;
    border-radius: 6px;
    display: flex;
    margin-top: 16px;
    border: 1px solid #3d3d3d;
}

.line-numbers {
    padding: 12px;
    color: #636d83;
    text-align: right;
    border-right: 1px solid #3d3d3d;
    user-select: none;
    background: rgba(0, 0, 0, 0.2);
}

.code-content {
    padding: 12px;
    overflow-x: auto;
    flex: 1;
}

.code-content pre {
    margin: 0;
    color: #abb2bf;
    font-size: 13px;
}

/* 优化动画效果 */
@keyframes windowSlideUp {
    from { 
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 添加卡片点击效果 */
.test-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-card:active {
    transform: scale(0.98);
}

/* 修改紧急提示样式 */
.urgent-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: #1e1e1e;
    border-left: 6px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.2);
    width: 380px;
    z-index: 1100;
    font-family: 'Monaco', 'Menlo', monospace;
    transform: translateY(-120px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.urgent-notification.show {
    transform: translateY(20px);
    animation: urgentShake 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) 0.3s;
}

.urgent-notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ef4444;
    font-size: 16px;
    font-weight: bold;
    padding-right: 32px;
}

.urgent-notification-header i {
    margin-right: 10px;
    font-size: 18px;
}

.error-alert {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.urgent-notification code {
    display: block;
    margin: 12px 0;
    padding: 12px;
    background: #2d2d2d;
    border-radius: 6px;
    color: #98c379;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header {
    color: #e5c07b;
    margin: 15px 0 10px;
    font-size: 13px;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.contact-link {
    color: #61afef;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 13px;
}

.copy-btn {
    background: none;
    border: none;
    color: #abb2bf;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    opacity: 0.7;
    transform: translateZ(0);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(171, 178, 191, 0.15);
    opacity: 1;
    transform: translateZ(0) scale(1.05);
}

.copy-btn .fa-check {
    color: #98c379;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 增强动画效果 */
@keyframes slideDown {
    from { 
        top: -100px;
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        top: 20px;
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes urgentShake {
    0%, 100% { transform: translateY(20px); }
    25% { transform: translateY(20px) translateX(-4px); }
    75% { transform: translateY(20px) translateX(4px); }
}

/* 添加爬虫入侵动画相关样式 */
.spider-invasion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spider-invasion.active {
    opacity: 1;
}

.spider-web {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg, 
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 10px
        );
    animation: webGrow 5s linear;
}

.spider {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21.29,12.71a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-2.47,2.47L16.1,13.89a3.86,3.86,0,0,0,.48-1.89,4,4,0,0,0-2-3.46l1.89-1.89a1,1,0,0,0,0-1.41,1,1,0,0,0-1.41,0l-1.89,1.89A4,4,0,0,0,10.1,6.62L8.81,5.33l2.47-2.47a1,1,0,0,0-1.42-1.41L7.39,3.92,5.92,2.45A1,1,0,0,0,4.51,3.86L6,5.33,3.51,7.8a1,1,0,0,0,0,1.41,1,1,0,0,0,1.41,0L7.39,6.74,8.68,8a4,4,0,0,0-2,3.46,3.86,3.86,0,0,0,.48,1.89L5.87,14.66,3.4,12.19a1,1,0,0,0-1.41,1.41l2.47,2.47L2.45,18.08a1,1,0,0,0,0,1.41,1,1,0,0,0,1.41,0L6,17.33l2.08,2.08a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41L7.39,15.92l1.29-1.29a4,4,0,0,0,6.64,0l1.29,1.29-2.47,2.47a1,1,0,0,0,0,1.41,1,1,0,0,0,1.41,0L18,17.33l2.08,2.08a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41L19.55,16l2.47-2.47A1,1,0,0,0,21.29,12.71Z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.2;
}

.spider:nth-child(1) { top: 20%; left: 30%; animation: spiderMove1 5s linear; }
.spider:nth-child(2) { top: 40%; right: 20%; animation: spiderMove2 5s linear; }
.spider:nth-child(3) { bottom: 30%; left: 40%; animation: spiderMove3 5s linear; }

@keyframes webGrow {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes spiderMove1 {
    0% { transform: translate(-100px, -100px) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(180deg); }
    100% { transform: translate(200px, 200px) rotate(360deg); }
}

@keyframes spiderMove2 {
    0% { transform: translate(100px, -100px) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(-180deg); }
    100% { transform: translate(-200px, 200px) rotate(-360deg); }
}

@keyframes spiderMove3 {
    0% { transform: translate(0, 100px) rotate(0deg); }
    50% { transform: translate(100px, -50px) rotate(180deg); }
    100% { transform: translate(-100px, -200px) rotate(360deg); }
}

/* 添加代码雨动画相关样式 */
.code-invasion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease; /* 减少过渡时间 */
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.code-invasion.active {
    opacity: 1;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.code-column {
    position: absolute;
    top: -20px;
    width: 20px;
    color: #0f0;
    font-family: monospace;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    text-align: center;
    transform: translateY(-50%);
    text-shadow: 0 0 5px #0f0;
    animation: codeRain 2s linear; /* 减少动画时间 */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes codeRain {
    0% {
        transform: translateY(-100%) translateZ(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateZ(0);
        opacity: 0;
    }
}

/* 修改错误信息样式 */
.error-message {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.stack-trace {
    color: #abb2bf;
    font-family: monospace;
    font-size: 12px;
    margin: 12px 0;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

/* 添加关闭按钮样式 */
.urgent-notification .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #abb2bf;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.urgent-notification .close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
}

/* 紧急通知关闭按钮样式 */
.urgent-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;  /* 增大按钮尺寸 */
    height: 32px; /* 增大按钮尺寸 */
    background: #ef4444;  /* 改为纯红色背景 */
    border: none;
    border-radius: 8px;
    color: white;  /* 改为白色图标 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);  /* 添加阴影效果 */
}

.urgent-close-btn i {
    font-size: 20px;  /* 增大图标尺寸 */
    transition: transform 0.2s ease;
}

.urgent-close-btn:hover {
    background: #dc2626;  /* 更深的红色 */
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.urgent-close-btn:hover i {
    transform: rotate(90deg);
}

.urgent-close-btn:active {
    transform: scale(0.95);
    background: #b91c1c;  /* 点击时的深红色 */
}

/* 调整通知头部的内边距，为更大的关闭按钮留出空间 */
.urgent-notification-header {
    padding-right: 50px;
}

/* 确保通知本身有正确的定位和样式 */
.urgent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    width: 380px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.urgent-notification.show {
    transform: translateY(0);
}

/* 联系信息样式优化 */
.contact-info {
    margin-top: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3b82f6;
}

.contact-header {
    color: #e5c07b;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-header::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e5c07b;
    color: #1e1e1e;
    border-radius: 50%;
    font-weight: bold;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 16px;
    color: #3b82f6;
}

.contact-link {
    color: #61afef;
    text-decoration: none;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    flex: 1;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #abb2bf;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn .fa-check {
    color: #98c379;
}

/* 添加闪烁提示动画 */
@keyframes highlight {
    0%, 100% { background: rgba(255, 255, 255, 0.05); }
    50% { background: rgba(59, 130, 246, 0.2); }
}

.contact-item {
    animation: highlight 2s ease-in-out infinite;
}

/* 移动端响应式优化 - 美化版 */
@media screen and (max-width: 768px) {
    /* 容器调整 */
    .container {
        padding: 20px 15px;
        gap: 25px;
    }

    /* 个人信息卡片移动端优化 */
    .profile-card {
        padding: 25px;
        margin: 10px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-avatar {
        margin: 0 auto;
        width: 110px;
        height: 110px;
        border-radius: 28px;
        border: 4px solid white;
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.1),
            0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .avatar-image {
        width: 110px;
        height: 110px;
        border-radius: 24px;
    }

    .profile-name {
        font-size: 20px;
        line-height: 1.4;
        font-weight: 600;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 5px;
    }

    .profile-badge {
        margin: 0 auto;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #2563eb;
        transition: all 0.3s ease;
    }

    .profile-badge:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
        transform: translateY(-2px);
    }

    /* 测试卡片移动端优化 */
    .test-capabilities {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }

    .test-card {
        padding: 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.06),
            0 2px 6px rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease;
    }

    .test-card:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 12px 28px rgba(0, 0, 0, 0.08),
            0 3px 8px rgba(0, 0, 0, 0.04);
    }

    .test-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #1e293b;
    }

    .test-content p {
        font-size: 14px;
        line-height: 1.6;
        color: #64748b;
        margin-bottom: 15px;
    }

    .test-tools {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .tool {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 12px;
        background: rgba(59, 130, 246, 0.08);
        color: #2563eb;
        font-weight: 500;
    }

    /* 错误弹窗移动端优化 */
    .error-modal .error-window {
        width: 92%;
        max-width: none;
        margin: 15px auto;
        max-height: 85vh;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .error-content {
        padding: 20px;
    }

    .code-preview {
        font-size: 13px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        margin: 15px 0;
    }

    /* 紧急通知移动端优化 */
    .urgent-notification {
        width: 92%;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-120%);
        margin: 15px auto;
        border-radius: 16px;
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.25),
            0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .urgent-notification.show {
        transform: translateX(-50%) translateY(0);
    }

    .contact-info {
        padding: 15px;
        margin-top: 25px;
        background: rgba(59, 130, 246, 0.15);
        border-radius: 12px;
        border-left: 5px solid #3b82f6;
    }

    .contact-item {
        padding: 12px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        gap: 12px;
    }

    .contact-link {
        font-size: 14px;
        letter-spacing: 0.3px;
    }

    .copy-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
    }

    /* 主题切换按钮优化 */
    .theme-toggle {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* 移动端邮箱显示优化 */
    .contact-item {
        padding: 12px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        gap: 8px;
        display: flex;
        align-items: center;
        max-width: 100%;
    }

    .contact-item i {
        width: 16px;
        font-size: 14px;
        text-align: center;
        flex-shrink: 0;
    }

    .contact-link {
        font-size: 11px;
        letter-spacing: -0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px; /* 固定宽度，与QQ邮箱长度一致 */
        display: block;
    }

    .copy-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        margin-left: auto;
    }
}

/* 超小屏幕进一步优化 */
@media screen and (max-width: 375px) {
    .container {
        padding: 15px 12px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-image {
        width: 100px;
        height: 100px;
    }

    .test-card {
        padding: 18px;
    }

    .test-content h3 {
        font-size: 16px;
    }

    .test-content p {
        font-size: 13px;
    }

    .tool {
        padding: 5px 10px;
        font-size: 11px;
    }

    .urgent-notification {
        width: 94%;
        padding: 18px;
    }

    .contact-item {
        padding: 10px;
        gap: 6px;
    }

    .contact-link {
        font-size: 10px;
        letter-spacing: -0.3px;
    }

    .copy-btn {
        width: 28px;
        height: 28px;
        margin-left: 6px;
    }

    .contact-item i {
        width: 14px;
        font-size: 12px;
    }

    .contact-link {
        font-size: 10px;
        max-width: calc(100% - 60px); /* 调整超小屏幕的最大宽度 */
    }

    .copy-btn {
        width: 28px;
        height: 28px;
    }

    .contact-link {
        font-size: 10px;
        max-width: 120px; /* 超小屏幕时稍微减小宽度 */
        letter-spacing: -0.3px;
    }

    .copy-btn {
        width: 28px;
        height: 28px;
    }
}

/* 修改暗色模式下的虫子元素样式 */
body.dark-mode .bug-element {
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff4444' d='M14,12H10V10H14M14,16H10V14H14M20,8H17.19C16.74,7.22,16.12,6.55,15.37,6.04L17,4.41L15.59,3L13.42,5.17C12.96,5.06,12.49,5,12,5C11.51,5,11.04,5.06,10.59,5.17L8.41,3L7,4.41l1.62 1.63C7.88,6.55,7.26,7.22,6.81,8H4V10H6.09C6.04,10.33,6,10.66,6,11V12H4V14H6V15C6,15.34,6.04,15.67,6.09,16H4V18H6.81C7.85,19.79,9.78,21,12,21C14.22,21,16.15,19.79,17.19,18H20V16H17.91C17.96,15.67,18,15.34,18,15V14H20V12H18V11C18,10.66,17.96,10.33,17.91,10H20V8Z'/%3E%3C/svg%3E");
}

/* 修改暗色模式下的卡片样式 */
body.dark-mode .test-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 修改暗色模式下的文本样式 */
body.dark-mode .test-content h3 {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

body.dark-mode .test-content p {
    color: var(--text-secondary);
}

/* 修改暗色模式下的工具标签 */
body.dark-mode .tool {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 修改暗色模式下的图标样式 */
body.dark-mode .test-icon-animation {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .test-icon-animation i {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 修改暗色模式下的个人信息卡片 */
body.dark-mode .profile-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .profile-name {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

/* 修改暗色模式下的可接项目按钮 */
body.dark-mode .profile-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* 修改暗色模式下的测试类型特定样式 */
body.dark-mode .functional .test-icon-animation i {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

body.dark-mode .api .test-icon-animation i {
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

body.dark-mode .performance .test-icon-animation i {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

body.dark-mode .stress .test-icon-animation i {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

body.dark-mode .chaos .test-icon-animation i {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}

/* 修改暗色模式下的悬浮效果 */
body.dark-mode .test-card:hover {
    background: var(--bg-hover);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 修改暗色模式下的动态元素 */
body.dark-mode .bug-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 优化动画性能 */
.test-card,
.bug-element,
.test-icon-animation,
.profile-badge,
.theme-toggle {
    /* 开启硬件加速 */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    /* 使用更高效的动画属性 */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化发光效果性能 */
body.dark-mode .test-icon-animation i,
body.dark-mode .tool,
body.dark-mode .profile-name,
body.dark-mode .test-content h3 {
    /* 使用更高效的text-shadow */
    text-shadow: 0 0 8px currentColor;
}

/* 优化虫子动画性能 */
body.dark-mode .bug-element {
    /* 减少不必要的filter效果 */
    filter: none;
    /* 使用box-shadow替代drop-shadow */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

/* 优化发光动画性能 */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        /* 使用matrix3d替代scale以获得更好的性能 */
        transform: translate(-50%, -50%) matrix3d(
            1.2, 0, 0, 0,
            0, 1.2, 0, 0,
            0, 0, 1, 0,
            0, 0, 0, 1
        );
    }
}

/* 优化背景渲染性能 */
body.dark-mode .test-card {
    /* 使用rgba替代多层box-shadow */
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 减少重绘区域 */
.test-capabilities {
    /* 创建新的层叠上下文 */
    transform: translateZ(0);
    contain: layout style paint;
}

/* 优化动画帧数 */
@media (prefers-reduced-motion: reduce) {
    * {
        /* 对于不需要动画的用户减少动画效果 */
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 移动端性能优化 */
@media screen and (max-width: 768px) {
    /* 减少移动端动画复杂度 */
    .bug-element,
    .assert-element,
    .code-element,
    .check-element {
        /* 移动端减少动画元素数量 */
        display: none;
    }

    /* 只显示靠近视口的几个动画元素 */
    .bug-element:nth-child(1),
    .bug-element:nth-child(2),
    .bug-element:nth-child(3) {
        display: block;
    }

    /* 简化移动端动画效果 */
    .test-card,
    .profile-badge,
    .theme-toggle {
        /* 使用更简单的变换 */
        transition: transform 0.2s ease;
        /* 移除不必要的3D变换 */
        transform: none;
        /* 移除不必要的属性 */
        will-change: auto;
    }

    /* 优化移动端阴影效果 */
    .test-card,
    .profile-card {
        /* 使用更轻量的阴影 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* 简化背景效果 */
    .overlay-gradient,
    .pixel-background,
    .grid-background {
        /* 移动端使用更简单的背景 */
        opacity: 0.5;
        background-size: 40px 40px;
        /* 减少重绘 */
        transform: none;
        will-change: auto;
    }

    /* 优化发光效果 */
    .glow-effect {
        /* 移动端禁用或简化发光效果 */
        display: none;
    }

    /* 优化网格线条 */
    .network-lines {
        /* 减少移动端线条数量 */
        opacity: 0.3;
    }
    .line {
        /* 简化动画 */
        animation-duration: 10s;
    }

    /* 优化卡片悬浮效果 */
    .test-card:hover {
        /* 移动端使用更轻量的悬浮效果 */
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    /* 优化暗色模式效果 */
    body.dark-mode .test-card,
    body.dark-mode .profile-card {
        /* 简化暗色模式阴影 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* 优化文本阴影 */
    body.dark-mode .test-content h3,
    body.dark-mode .profile-name {
        /* 简化文本发光效果 */
        text-shadow: none;
    }

    /* 优化工具标签 */
    .tool {
        /* 简化标签样式 */
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* 优化滚动性能 */
    .container {
        /* 启用平滑滚动 */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* 创建新的层叠上下文 */
        transform: translateZ(0);
    }

    /* 优化图标动画 */
    .test-icon-animation {
        /* 简化图标动画 */
        animation: none;
        transform: none;
    }

    /* 优化加载性能 */
    @media (prefers-reduced-data: reduce) {
        /* 减少数据使用的用户体验 */
        .animated-background,
        .network-lines,
        .glow-effect {
            display: none;
        }
    }

    /* 优化触摸响应 */
    .test-card,
    .profile-badge,
    .theme-toggle {
        /* 改善触摸响应 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* 优化字体渲染 */
    * {
        /* 优化移动端字体渲染 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 超小屏幕进一步优化 */
@media screen and (max-width: 375px) {
    /* 进一步简化动画 */
    .bug-element,
    .network-lines,
    .grid-background {
        display: none;
    }

    /* 减少内边距和间距 */
    .container {
        padding: 10px;
    }

    .test-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    /* 优化字体大小 */
    .test-content h3 {
        font-size: 16px;
    }

    .test-content p {
        font-size: 12px;
    }

    /* 移除不必要的效果 */
    .test-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* 针对低性能设备的优化 */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    * {
        /* 禁用所有动画 */
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    /* 移除所有装饰性效果 */
    .animated-background,
    .network-lines,
    .glow-effect,
    .bug-element {
        display: none !important;
    }
}
  