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

:root {
    /* 颜色变量 */
    --primary-color: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-hover: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* 过渡 */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* 深色主题 */
[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --border-color: #475569;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

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

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 主要内容 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

/* 介绍部分 */
.intro-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.intro-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    justify-content: center;
    max-width: 500px;
}

.tag {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 暗色模式下的标签颜色 */
[data-theme="dark"] .tag {
    color: white;
}

.tag::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 var(--transition-normal);
}

.tag:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.tag:hover::before {
    left: 100%;
}

.tag:nth-child(odd) {
    animation: tagFloat 3s ease-in-out infinite;
}

.tag:nth-child(even) {
    animation: tagFloat 3s ease-in-out infinite reverse;
}

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

.intro-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.intro-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 头像部分 */
.intro-avatar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.avatar-image:hover .avatar-img {
    transform: rotate(360deg);
}

.avatar-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

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

/* 网站分享部分 */
.websites-section {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.websites-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    will-change: transform, box-shadow, background;
    backface-visibility: hidden;
}

.filter-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;
}

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

.filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    animation: activeButtonPulse 2s infinite;
}

@keyframes activeButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(59, 130, 246, 0.6);
    }
}

.websites-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    min-height: 200px;
    width: 100%;
}

.website-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    min-height: 150px;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-xl);
}

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

.website-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(59, 130, 246, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.website-card:hover .website-icon {
    transform: scale(1.1) rotateY(10deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.website-card:hover .website-icon-img {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.website-card:hover .website-title {
    color: var(--primary-color);
}

.card-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.website-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.website-icon-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.website-info {
    flex: 1;
}

.website-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

.website-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.website-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.visit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

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

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

.visit-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--accent-color));
}

/* 页脚 */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    margin-bottom: var(--spacing-sm);
}

.footer p:last-child {
    margin-bottom: 0;
}

.icp-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.icp-info a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.icp-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 网站分享区域3D翻转效果 */
.websites-section {
    perspective: 1200px;
    perspective-origin: center center;
}

.websites-grid {
    transform-style: preserve-3d;
    transform-origin: center center;
}

/* 筛选按钮点击动画 */
.filter-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* 3D翻转动画关键帧 */
@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg) scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: rotateY(-45deg) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

@keyframes cardFlipOut {
    0% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: rotateY(45deg) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
}

@keyframes gridFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(5deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

@keyframes flipGlow {
    0% {
        box-shadow: 0 0 0 rgba(var(--primary-rgb), 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }
    100% {
        box-shadow: 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 筛选按钮波纹效果增强 */
.filter-btn {
    background-size: 200% 200%;
    background-position: 0% 50%;
}

.filter-btn:hover {
    background-position: 100% 50%;
    animation: buttonShimmer 1.5s ease-in-out infinite;
}

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

/* 访问按钮点击效果 */
.visit-btn:active {
    transform: scale(1.02) translateY(-1px);
    transition: all 0.1s ease;
}

/* 网站图标旋转动画 */
@keyframes iconSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* 3D翻转动画效果 */
@keyframes icon3DFlip {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        filter: brightness(1);
    }
    25% {
        transform: perspective(1000px) rotateY(90deg) rotateX(15deg) scale(1.1);
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
        filter: brightness(1.1);
    }
    50% {
        transform: perspective(1000px) rotateY(180deg) rotateX(0deg) scale(1.2);
        box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
        filter: brightness(1.2);
    }
    75% {
        transform: perspective(1000px) rotateY(270deg) rotateX(-15deg) scale(1.1);
        box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
        filter: brightness(1.1);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(0deg) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        filter: brightness(1);
    }
}

/* 弹跳翻转动画 */
@keyframes iconBounceFlip {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        filter: brightness(1) saturate(1);
    }
    20% {
        transform: perspective(1000px) rotateY(72deg) scale(1.1);
        box-shadow: 0 6px 12px rgba(168, 85, 247, 0.25);
        filter: brightness(1.05) saturate(1.1);
    }
    40% {
        transform: perspective(1000px) rotateY(144deg) scale(1.2);
        box-shadow: 0 10px 20px rgba(168, 85, 247, 0.4);
        filter: brightness(1.15) saturate(1.2);
    }
    60% {
        transform: perspective(1000px) rotateY(216deg) scale(1.1);
        box-shadow: 0 8px 16px rgba(168, 85, 247, 0.3);
        filter: brightness(1.1) saturate(1.15);
    }
    80% {
        transform: perspective(1000px) rotateY(288deg) scale(1.05);
        box-shadow: 0 6px 12px rgba(168, 85, 247, 0.2);
        filter: brightness(1.05) saturate(1.05);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        filter: brightness(1) saturate(1);
    }
}

.website-card:hover .website-icon {
    animation: icon3DFlip 0.5s ease-in-out;
}

/* 为logo图片添加翻转动画效果 */
.website-card:hover .website-icon-img {
    animation: icon3DFlip 0.5s ease-in-out;
}

/* 特殊分类的动画效果 */
.website-card[data-category="personal"]:hover .website-icon,
.website-card[data-category="personal"]:hover .website-icon-img {
    animation: iconBounceFlip 0.6s ease-in-out;
}

.website-card[data-category="tech"]:hover .website-icon,
.website-card[data-category="tech"]:hover .website-icon-img {
    animation: icon3DFlip 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.website-card[data-category="development"]:hover .website-icon,
.website-card[data-category="development"]:hover .website-icon-img {
    animation: iconSpin 0.4s ease-in-out;
}

.website-card[data-category="design"]:hover .website-icon,
.website-card[data-category="design"]:hover .website-icon-img {
    animation: iconBounceFlip 0.5s ease-out;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-stats {
        justify-content: center;
    }
    
    .intro-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .avatar-container {
        width: 200px;
        height: 200px;
    }
    
    .avatar-image {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .websites-filter {
        gap: var(--spacing-sm);
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .intro-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .intro-tags {
        justify-content: center;
    }
    
    .tag {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* 动画效果 */
.website-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 选择文本样式 */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* ==================== 自定义警告弹窗样式 ==================== */
.warning-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 71, 87, 0.15), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1), transparent 50%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(15px) saturate(1.2);
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.warning-modal-content {
    position: relative;
    background: 
        linear-gradient(145deg, #ff4757 0%, #ff3838 35%, #ff6b6b 70%, #ff5722 100%);
    margin: 8% auto;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    box-shadow: 
        0 30px 100px rgba(255, 71, 87, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(255, 71, 87, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    animation: 
        slideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
        floatUp 4s ease-in-out infinite,
        borderGlow 3s ease-in-out infinite;
    overflow: hidden;
    transform-style: preserve-3d;
}

.warning-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.9) 20%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.9) 80%, 
        transparent);
    animation: shimmer 3s infinite;
    border-radius: 28px 28px 0 0;
}



.warning-modal-header {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.12)),
        linear-gradient(45deg, rgba(255, 71, 87, 0.15), rgba(255, 107, 107, 0.08)),
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1), transparent 60%);
    padding: 40px 32px 32px;
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.warning-modal-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(255, 255, 255, 0.1) 30%, 
            rgba(255, 71, 87, 0.05) 60%, 
            transparent 100%);
    border-radius: 50%;
    animation: pulse 3.5s ease-in-out infinite;
    filter: blur(1px);
}

.warning-modal-header::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: 
        conic-gradient(from 0deg, 
            transparent 0deg, 
            rgba(255, 255, 255, 0.15) 45deg, 
            transparent 90deg, 
            rgba(255, 255, 255, 0.08) 135deg, 
            transparent 180deg,
            rgba(255, 71, 87, 0.1) 225deg,
            transparent 270deg,
            rgba(255, 255, 255, 0.12) 315deg,
            transparent 360deg);
    animation: rotate 10s linear infinite;
    opacity: 0.7;
    filter: blur(0.5px);
}

.warning-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 50px rgba(255, 71, 87, 0.3),
        0 0 70px rgba(255, 107, 107, 0.2);
    letter-spacing: 1.2px;
    position: relative;
    z-index: 3;
    animation: glow 3.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.warning-modal-header h3::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -30px;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.warning-modal-header h3::after {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.1rem;
    animation: sparkle 2s ease-in-out infinite 0.5s;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.warning-modal-body {
    padding: 40px 32px;
    text-align: center;
    position: relative;
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05), transparent 70%);
}

.warning-modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.4) 20%, 
            rgba(255, 255, 255, 0.6) 50%, 
            rgba(255, 255, 255, 0.4) 80%, 
            transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.warning-modal-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.warning-modal-body p {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.warning-modal-footer {
    padding: 28px 32px 36px;
    text-align: center;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)),
        linear-gradient(45deg, rgba(255, 71, 87, 0.08), transparent);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.warning-modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.warning-btn {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%),
        linear-gradient(45deg, rgba(255, 71, 87, 0.1), transparent);
    color: #ff4757;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 18px 44px;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 6px 16px rgba(255, 71, 87, 0.25),
        0 2px 8px rgba(255, 71, 87, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.8px;
    min-width: 160px;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.warning-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.6) 30%, 
            rgba(255, 255, 255, 0.8) 50%, 
            rgba(255, 255, 255, 0.6) 70%, 
            transparent);
    transition: left 0.8s ease-out;
}

.warning-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.2), transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease-out;
}

.warning-btn:hover {
    background: 
        linear-gradient(145deg, #ffffff 0%, #ffffff 100%),
        linear-gradient(45deg, rgba(255, 71, 87, 0.15), rgba(255, 107, 107, 0.1));
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(255, 71, 87, 0.35),
        0 5px 15px rgba(255, 71, 87, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 0 rgba(255, 71, 87, 0.1);
    color: #ff3838;
    border-color: rgba(255, 255, 255, 0.5);
}

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

.warning-btn:hover::after {
    width: 120%;
    height: 120%;
}

.warning-btn:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.15s ease-out;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(255, 71, 87, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

/* 高级动画效果 */
@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8) rotateX(15deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%) skewX(-15deg); 
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateX(100%) skewX(-15deg); 
        opacity: 0;
    }
}

@keyframes shimmerLine {
    0% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
    100% { opacity: 0.3; transform: scaleX(0.8); }
}

@keyframes textGlow {
    0% { 
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(255, 255, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 2px 12px rgba(0, 0, 0, 0.6),
            0 0 25px rgba(255, 255, 255, 0.4),
            0 0 35px rgba(255, 71, 87, 0.2);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes glow {
    from {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 40px rgba(255, 71, 87, 0.3);
    }
}

/* 暗色模式适配 */
[data-theme="dark"] .warning-modal {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));
}

[data-theme="dark"] .warning-modal-content {
    background: linear-gradient(145deg, #e74c3c, #c0392b, #d63031);
    box-shadow: 
        0 25px 80px rgba(231, 76, 60, 0.5),
        0 12px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .warning-modal-header,
[data-theme="dark"] .warning-modal-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .warning-btn {
    background: linear-gradient(145deg, #2d3436, #636e72);
    color: #ffffff;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .warning-btn:hover {
    background: linear-gradient(145deg, #636e72, #74b9ff);
    color: #ffffff;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(116, 185, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .warning-modal-content {
        margin: 15% auto;
        width: 95%;
        max-width: 420px;
        border-radius: 20px;
    }
    
    .warning-modal-header {
        padding: 28px 24px 20px;
    }
    
    .warning-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .warning-modal-body {
        padding: 28px 24px;
    }
    
    .warning-modal-body p {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .warning-modal-footer {
        padding: 20px 24px 28px;
    }
    
    .warning-btn {
        padding: 14px 36px;
        font-size: 1.05rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .warning-modal-content {
        margin: 20% auto;
        width: 96%;
        border-radius: 18px;
    }
    
    .warning-modal-header {
        padding: 24px 20px 18px;
    }
    
    .warning-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .warning-modal-body {
        padding: 24px 20px;
    }
    
    .warning-modal-body p {
        font-size: 1rem;
    }
    
    .warning-modal-footer {
        padding: 18px 20px 24px;
    }
    
    .warning-btn {
        padding: 12px 32px;
        font-size: 1rem;
        min-width: 110px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
    .warning-modal-content {
        max-width: 520px;
    }
    
    .warning-modal-header h3 {
        font-size: 1.7rem;
    }
    
    .warning-modal-body p {
        font-size: 1.2rem;
    }
    
    .warning-btn {
        font-size: 1.15rem;
        padding: 18px 44px;
    }
}

/* 联系方式页面 */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details p {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.contact-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.copy-btn {
    background: rgba(var(--accent-rgb), 0.1) !important;
    border-color: rgba(var(--accent-rgb), 0.2) !important;
    color: var(--accent-color) !important;
}

.copy-btn:hover {
    background: var(--accent-color) !important;
    color: white !important;
}

/* 联系表单 */
.contact-form {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    min-height: 120px;
    font-family: inherit;
}

/* 联系方式响应式 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-details {
        width: 100%;
    }
}