/* 全局样式 */
/* JIAOMC我的世界服务器网站 - 完整样式文件 */
/* 设计理念：现代、简洁、流畅的用户体验，响应式设计适配各种设备 */

/* ====== CSS 变量定义 ====== */
:root {
    /* 主色调 */
    --primary-color: #1976d2;     /* 蓝色主色调 */
    --secondary-color: #42a5f5;   /* 浅蓝辅助色 */
    --accent-color: #03a9f4;      /* 强调色（亮蓝） */
    
    /* 中性色 */
    --light-color: #e3f2fd;       /* 浅蓝背景 */
    --dark-color: #212121;        /* 深色背景 */
    --text-color: #333;           /* 文本颜色 */
    --bg-color: #fff;             /* 页面背景色 */
    
    /* 组件样式 */
    --card-bg: rgba(255, 255, 255, 0.7); /* 透明卡片背景 */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 扁平化阴影 */
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12); /* 扁平化悬停阴影 */
    
    /* 尺寸 */
    --border-radius: 8px;         /* 扁平化圆角 */
    --border-radius-small: 4px;   /* 扁平化小圆角 */
    --border-radius-btn: 4px;     /* 扁平化按钮圆角 */
    
    /* 间距 */
    --spacing-xs: 8px;            /* 极小间距 */
    --spacing-sm: 15px;           /* 小间距 */
    --spacing-md: 20px;           /* 中等间距 */
    --spacing-lg: 30px;           /* 大间距 */
    --spacing-xl: 50px;           /* 超大间距 */
    --spacing-section: 100px;     /* 区块间距 */
    
    /* 字体 */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* 过渡动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

/* ====== 全局样式 ====== */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
        linear-gradient(rgba(200, 220, 250, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 220, 250, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    overflow-x: hidden;
    padding-top: 90px; /* 为固定的header留出足够空间，防止内容被遮挡 */
}

/* 页面加载动画 - 显示页面 */
body.loaded {
    opacity: 1 !important;
}

/* 文本颜色类 */
.text-green-500 { color: #4caf50; }
.text-indigo-500 { color: #3f51b5; }
.text-red-500 { color: #f44336; }
.text-yellow-500 { color: #ffeb3b; }
.text-blue-500 { color: #2196f3; }
.text-pink-500 { color: #e91e63; }
.text-center { text-align: center; }
 .text-muted { color: #9e9e9e; }
 .underline { text-decoration: underline; }
 
 /* 间距类 */
 .mb-4 { margin-bottom: var(--spacing-md); }

/* 移动设备加载动画 */
@media (max-width: 767px) {
    body.loading {
        background-color: #fff;
    }
    
    body.loading::before {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        z-index: 9999;
    }
    
    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate3d(0, 0, 1, 0deg) scale(1) skew(0deg); opacity: 1; filter: brightness(1) saturate(1); box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7); }
        25% { transform: translate(-50%, -50%) rotate3d(0, 1, 1, 90deg) scale(1.05) skew(-5deg); opacity: 0.95; filter: brightness(1.1) saturate(1.2); box-shadow: 0 0 0 10px rgba(25, 118, 210, 0); }
        50% { transform: translate(-50%, -50%) rotate3d(0, 1, 0, 180deg) scale(0.95) skew(0deg); opacity: 0.9; filter: brightness(0.9) saturate(0.8); box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
        75% { transform: translate(-50%, -50%) rotate3d(1, 1, 0, 270deg) scale(1.05) skew(5deg); opacity: 0.95; filter: brightness(1.1) saturate(1.2); box-shadow: 0 0 0 10px rgba(25, 118, 210, 0); }
        100% { transform: translate(-50%, -50%) rotate3d(0, 0, 1, 360deg) scale(1) skew(0deg); opacity: 1; filter: brightness(1) saturate(1); box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7); }
    }
}

/* ====== 容器 ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ====== 链接样式 ====== */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

/* ====== 图标样式 ====== */
.fa, .fas, .far, .fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-weight: 900;
}

/* ====== 文本颜色辅助类 ====== */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-dark { color: var(--dark-color); }
.text-light { color: var(--light-color); }
.text-center { text-align: center; }

/* ====== 头部导航 ====== */
.header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
}

/* 滚动时的导航栏效果 */
.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-hover);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* 品牌标志 */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0;
}

.logo i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====== 导航菜单 ====== */
.nav {
    display: flex;
    align-items: center;
}

/* 桌面端导航样式 */
.desktop-nav {
    display: flex;
}

/* 移动端导航样式 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-md);
}

.mobile-nav.active {
    right: 0;
    display: flex;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin-top: -8px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all var(--transition-normal);
}

.nav a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ====== 英雄区域 ====== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 180px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 500px;
    z-index: 1;
    margin-top: -240px; /* 电脑端向上移很多 */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

/* ====== 按钮样式 ====== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 28px;
    min-width: 120px;
    min-height: 44px;
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.6);
}

/* 触摸设备上的按钮点击反馈 */
.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.7);
    opacity: 0.9;
    transition: all var(--transition-fast);
}

/* 触摸反馈效果 */
.btn-primary.touch-feedback:active {
    animation: touchFeedback 0.15s ease;
}

@keyframes touchFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* 按钮点击时的脉冲动画效果 */
.btn-primary {
    animation-name: none;
}

.btn-primary.pulse-animation {
    animation: buttonPulse 0.3s ease-in-out;
}

@keyframes buttonPulse {
    0% {
        transform: scale3d(1, 1, 1) translateZ(0);
        opacity: 1;
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
        filter: brightness(1) saturate(1);
    }
    30% {
        transform: scale3d(0.95, 0.95, 1) translateZ(0);
        opacity: 0.92;
        box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
        filter: brightness(0.95) saturate(0.95);
    }
    50% {
        transform: scale3d(1.05, 1.05, 1) translateZ(0);
        opacity: 1;
        box-shadow: 0 8px 25px rgba(25, 118, 210, 0.6);
        filter: brightness(1.1) saturate(1.2);
    }
    70% {
        transform: scale3d(1.02, 1.02, 1) translateZ(0);
        opacity: 0.98;
        box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
        filter: brightness(1.05) saturate(1.1);
    }
    100% {
        transform: scale3d(1, 1, 1) translateZ(0);
        opacity: 1;
        box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
        filter: brightness(1) saturate(1);
    }
}

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

/* ====== 英雄区域动画 ====== */
.hero-animation {
    position: relative;
    width: 50%;
    height: 100%;
}

.floating-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.block {
    position: absolute;
    border-radius: 15px;
    background: linear-gradient(45deg, rgba(156, 39, 176, 0.2), rgba(233, 30, 99, 0.2));
    animation: float 8s infinite ease-in-out;
}

/* 浮动块样式 */
.block-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%231976d2" d="M50 15l-15 15 15 15 15-15z"/><circle cx="50" cy="50" r="10" fill="%2342a5f5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.block-2 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="25" width="50" height="50" rx="10" fill="%231976d2"/><circle cx="50" cy="50" r="15" fill="%2342a5f5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.block-3 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="%231976d2"/><circle cx="50" cy="50" r="15" fill="%2342a5f5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 浮动动画 */
@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0deg) scale3d(1, 1, 1);
        opacity: 0.85;
        filter: brightness(1) saturate(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    15% {
        transform: translate3d(-8px, -10px, 20px) rotate3d(0, 1, 0, 5deg) scale3d(1.03, 1.03, 1.03);
        opacity: 0.92;
        filter: brightness(1.05) saturate(1.1);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }
    30% {
        transform: translate3d(2px, -18px, 30px) rotate3d(1, 0, 0, 3deg) scale3d(1.02, 1.02, 1.02);
        opacity: 0.98;
        filter: brightness(1.1) saturate(1.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }
    45% {
        transform: translate3d(-5px, -25px, 25px) rotate3d(0, 1, 1, -4deg) scale3d(1.01, 1.01, 1.01);
        opacity: 1;
        filter: brightness(1.15) saturate(1.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    }
    60% {
        transform: translate3d(3px, -18px, 20px) rotate3d(1, 0, 1, 3deg) scale3d(0.99, 0.99, 0.99);
        opacity: 0.97;
        filter: brightness(1.1) saturate(1.15);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    75% {
        transform: translate3d(-2px, -12px, 15px) rotate3d(0, 1, 0, -3deg) scale3d(1.02, 1.02, 1.02);
        opacity: 0.94;
        filter: brightness(1.05) saturate(1.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }
    90% {
        transform: translate3d(4px, -8px, 10px) rotate3d(1, 0, 0, 2deg) scale3d(1, 1, 1);
        opacity: 0.9;
        filter: brightness(1) saturate(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0deg) scale3d(1, 1, 1);
        opacity: 0.85;
        filter: brightness(1) saturate(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
}

/* ====== 滚动触发动画系统 ====== */
/* 基础动画类 - 与JavaScript的Intersection Observer配合 */
.scroll-animate, .server-card, .section-title, .about p, .download-card, .btn-primary, .social-links a, .nav-links a, .contact-form input, .contact-form textarea, .features li {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity, filter; /* 提示浏览器优化渲染 */
    backface-visibility: hidden; /* 优化3D变换性能 */
    perspective: 1000px; /* 优化3D变换性能 */
}

/* 滚动动画关键帧 - 更高级的动画效果 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) translateZ(0) scale(0.95) rotateX(10deg);
        filter: brightness(0.8) saturate(0.8) blur(2px);
    }
    50% {
        transform: translateY(20px) translateZ(0) scale(1.02) rotateX(-2deg);
        filter: brightness(1.05) saturate(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0) scale(1) rotateX(0deg);
        filter: brightness(1) saturate(1) blur(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale3d(0.7, 0.7, 1) translateZ(0) rotateY(-15deg);
        filter: blur(5px) brightness(0.7) contrast(0.9);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale3d(1.08, 1.08, 1) translateZ(10px) rotateY(5deg);
        filter: blur(0) brightness(1.1) contrast(1.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 50px rgba(25, 118, 210, 0.1);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1) translateZ(0) rotateY(0deg);
        filter: blur(0) brightness(1) contrast(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* 添加更多高级动画效果 */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(60px) scale3d(0.9, 0.9, 1) rotateZ(2deg);
        filter: brightness(0.75) saturate(0.75);
    }
    50% {
        transform: translateY(20px) scale3d(1.05, 1.05, 1) rotateZ(-1deg);
        filter: brightness(1.1) saturate(1.2);
    }
    75% {
        transform: translateY(-5px) scale3d(1.02, 1.02, 1) rotateZ(0.5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale3d(1, 1, 1) rotateZ(0deg);
        filter: brightness(1) saturate(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) rotateY(30deg) scale(0.9);
        filter: brightness(0.8) saturate(0.8) blur(3px);
    }
    50% {
        transform: translateX(10px) rotateY(-10deg) scale(1.05);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
        filter: brightness(1) saturate(1) blur(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(80px) rotateY(-30deg) scale(0.9);
        filter: brightness(0.8) saturate(0.8) blur(3px);
    }
    50% {
        transform: translateX(-10px) rotateY(10deg) scale(1.05);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
        filter: brightness(1) saturate(1) blur(0);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate3d(0, 1, 0, -180deg) scale3d(0.8, 0.8, 1) translateZ(0);
        filter: brightness(0.7) saturate(0.7);
    }
    50% {
        transform: rotate3d(0, 1, 0, -90deg) scale3d(1.05, 1.05, 1) translateZ(5px);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: rotate3d(0, 1, 0, 0deg) scale3d(1, 1, 1) translateZ(0);
        filter: brightness(1) saturate(1);
    }
}

@keyframes flipInX {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(90deg) scale3d(0.8, 0.8, 1);
        filter: brightness(0.7) saturate(0.7);
    }
    50% {
        transform: perspective(1000px) rotateX(-10deg) scale3d(1.05, 1.05, 1);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) scale3d(1, 1, 1);
        filter: brightness(1) saturate(1);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 1) translateZ(-50px);
        filter: brightness(0.7) saturate(0.7) blur(5px);
    }
    50% {
        transform: scale3d(1.1, 1.1, 1) translateZ(20px);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1) translateZ(0);
        filter: brightness(1) saturate(1) blur(0);
    }
}

@keyframes rollIn {
    0% {
        opacity: 0;
        transform: translateX(-80px) rotateZ(-120deg) scale3d(0.8, 0.8, 1);
        filter: brightness(0.7) saturate(0.7) blur(3px);
    }
    50% {
        transform: translateX(10px) rotateZ(60deg) scale3d(1.05, 1.05, 1);
        filter: brightness(1.1) saturate(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateZ(0deg) scale3d(1, 1, 1);
        filter: brightness(1) saturate(1) blur(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 1);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 1) rotateY(-5deg);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1) rotateY(3deg);
    }
    80% {
        transform: scale3d(0.97, 0.97, 1) rotateY(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1) rotateY(0deg);
    }
}

/* 为不同元素添加更丰富的动画效果 */
/* 元素进入视口时触发的动画类 - 与JavaScript的.animate-in类配合 */
.animate-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* 默认动画效果 */
.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 特定元素的自定义动画 */
.server-card.animate-in {
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.1s;
}

.section-title.animate-in {
    animation: fadeInUpScale 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.about p.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.btn-primary.animate-in {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.download-card.animate-in {
    animation: zoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.social-links a.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav-links a.animate-in {
    animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.contact-form input.animate-in,
.contact-form textarea.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.features li.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 不同动画类型的元素 */
.slide-in-left.animate-in {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-in-right.animate-in {
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.rotate-in.animate-in {
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.flip-in-x.animate-in {
    animation: flipInX 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.zoom-in.animate-in {
    animation: zoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.roll-in.animate-in {
    animation: rollIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 添加交错动画效果 - 为同类型元素添加不同延迟 */
.server-card:nth-child(2).animate-in { animation-delay: 0.2s; }
.server-card:nth-child(3).animate-in { animation-delay: 0.3s; }
.server-card:nth-child(4).animate-in { animation-delay: 0.4s; }

.social-links a:nth-child(1).animate-in { animation-delay: 0.1s; }
.social-links a:nth-child(2).animate-in { animation-delay: 0.2s; }
.social-links a:nth-child(3).animate-in { animation-delay: 0.3s; }
.social-links a:nth-child(4).animate-in { animation-delay: 0.4s; }

.features li:nth-child(1).animate-in { animation-delay: 0.1s; }
.features li:nth-child(2).animate-in { animation-delay: 0.2s; }
.features li:nth-child(3).animate-in { animation-delay: 0.3s; }
.features li:nth-child(4).animate-in { animation-delay: 0.4s; }

.contact-form input:nth-child(1).animate-in { animation-delay: 0.1s; }
.contact-form input:nth-child(2).animate-in { animation-delay: 0.2s; }
.contact-form textarea.animate-in { animation-delay: 0.3s; }

/* ====== 区块标题 ======
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* 不同动画类型的元素 */
.slide-in-left.animate-in {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-in-right.animate-in {
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.rotate-in.animate-in {
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.flip-in-x.animate-in {
    animation: flipInX 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.zoom-in.animate-in {
    animation: zoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.roll-in.animate-in {
    animation: rollIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ====== 区块标题 ====== */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: var(--font-weight-bold);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 10px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.5s ease 0.5s;
}

.section-title.animate::after {
    transform: scaleX(1);
}

/* ====== 服务器区域 ====== */
.servers {
    padding: var(--spacing-section) 0;
}

.server-cards {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.server-card {
    width: 300px;
    height: 400px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: all var(--transition-normal);
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    text-align: center;
    transform-style: preserve-3d;
}

.server-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(3deg) scale3d(1.03, 1.03, 1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(25, 118, 210, 0.2);
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.server-card:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    z-index: -1;
    border-radius: var(--border-radius);
    opacity: 0.5;
    animation: cardGlow 2s ease-in-out infinite alternate;
}

@keyframes cardGlow {
    0% {
        opacity: 0.5;
        filter: brightness(1) saturate(1);
    }
    100% {
        opacity: 0.8;
        filter: brightness(1.2) saturate(1.5);
    }
}

.server-card:hover .card-icon {
    transform: scale(1.1) rotateY(360deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.5);
}

.server-card:hover h3 {
    transform: translateY(-5px) scale(1.05);
    transition: all 0.4s ease;
}

.server-card:hover p {
    transform: translateY(-3px);
    transition: all 0.4s ease 0.1s;
}

.server-card-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.server-card-disabled:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1), rgba(66, 165, 245, 0.1));
    z-index: -1;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon i {
    font-size: 2.5rem;
}

.server-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.server-card p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-hover-effect {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
}

.server-card:hover .card-hover-effect {
    bottom: 0;
}

/* ====== 关于我们区域 ====== */
.about {
    padding: var(--spacing-section) 0;
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ====== 页脚 ====== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* ====== 服务器详情页面 ====== */
.server-details {
    padding: var(--spacing-section) 0 50px;
}

.details-container {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    margin-top: -20px; /* 向上移动20px */
}

.details-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.details-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.details-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.details-title h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: var(--font-weight-bold);
}

.details-title p {
    color: var(--text-color);
    opacity: 0.8;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.info-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-small);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
    transform: translateY(-10px);
}

.info-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-semibold);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-card li i {
    color: var(--secondary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-btn);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    margin-top: var(--spacing-md);
}

.back-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

/* ====== 客户端下载页面 ====== */
.client-tutorial {
    padding: var(--spacing-section) 0 50px;
}

.tutorial-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.tutorial-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tutorial-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: var(--font-weight-bold);
}

.tutorial-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.download-section {
    margin-bottom: var(--spacing-lg);
}

.download-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--font-weight-semibold);
}

.download-cards {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.download-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-small);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    width: 300px;
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.download-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.download-card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.download-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    margin-top: var(--spacing-sm);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

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

/* 平板设备 (992px 以下) */
@media (max-width: 992px) {
    /* 调整导航栏布局 */
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
    /* 英雄区域 */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 160px 0 30px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: var(--spacing-lg);
        margin-top: 50px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-animation {
        width: 100%;
        height: 300px;
    }
    
    /* 服务器详情页 */
    .details-content {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 (768px 以下) */
@media (max-width: 768px) {
    /* 全局变量调整 */
    :root {
        --spacing-section: 70px;
        --spacing-xl: 30px;
        --spacing-lg: 20px;
    }
    
    /* 头部样式 */
    .header {
        padding: 10px 0;
    }
    
    .header-top {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin-left: 0;
    }
    
    /* 隐藏桌面端导航 */
    .desktop-nav {
        display: none;
    }
    
    /* 汉堡菜单按钮显示 */
    .menu-toggle {
        display: block;
    }
    
    /* 移动端导航菜单样式 */
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav.active {
        right: 0;
        display: flex;
    }
    
    .mobile-nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .mobile-nav a {
        padding: 12px 15px;
        border-radius: var(--border-radius-small);
        font-size: 1.1rem;
    }
    
    /* 英雄区域样式 */
    .hero {
        padding: 70px 0 20px;
    }
    
    .hero-content {
        margin-top: 150px; /* 手机端向下移很大 */
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 区块标题 */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-lg);
    }
    
    /* 服务器卡片 */
    .server-cards {
        gap: var(--spacing-md);
        padding: 0 var(--spacing-sm);
    }
    
    .server-card {
        width: 100%;
        max-width: 320px;
        height: 350px;
        margin-bottom: var(--spacing-md);
    }
    
    /* 客户端下载卡片 */
    .download-card {
        width: 100%;
        max-width: 300px;
    }
    
    /* 页脚样式 */
    .footer {
        padding: var(--spacing-md) 0;
    }
    
    .social-links a {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
}

/* 小屏幕手机 (576px 以下) */
@media (max-width: 576px) {
    /* 全局变量调整 */
    :root {
        --spacing-section: 50px;
        --spacing-lg: 15px;
    }
    
    /* 容器 */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* 头部样式 */
    .header {
        padding: 8px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* 英雄区域样式 */
    .hero {
        padding: 60px 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }
    
    .btn-primary {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
    
    .hero-animation {
        height: 200px;
    }
    
    /* 区块标题 */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* 服务器卡片 */
    .server-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .server-card {
        width: 100%;
        max-width: 300px;
        height: 320px;
        margin-bottom: var(--spacing-md);
    }
    
    /* 详情页 */
    .details-container {
        padding: var(--spacing-md);
        margin-top: -15px;
    }
    
    .details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .details-title h2 {
        font-size: 1.8rem;
    }
    
    .details-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* 移动端菜单 */
    .mobile-nav {
        width: 80%;
    }
    
    .mobile-nav a {
        font-size: 1rem;
    }
}

/* ====== 触摸设备优化 ====== */
@media (hover: none) {
    /* 禁用悬停效果，提供替代方案 */
    .server-card {
        cursor: pointer;
    }
    
    .card-hover-effect {
        bottom: 0;
        opacity: 1;
        animation: pulse 2s infinite;
    }
    
    .social-links a:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .nav a:hover {
        transform: none;
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .download-card:hover {
        transform: none;
    }
    
    .back-button:hover {
        transform: none;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
    25% {
        opacity: 0.96;
        transform: scale(1.005);
        filter: brightness(1.02) saturate(1.01);
    }
    50% {
        opacity: 0.93;
        transform: scale(1.01);
        filter: brightness(1.04) saturate(1.02);
    }
    75% {
        opacity: 0.96;
        transform: scale(1.005);
        filter: brightness(1.02) saturate(1.01);
    }
}

/* ====== 汉堡菜单 ====== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1002;
    transition: opacity var(--transition-normal);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all var(--transition-normal);
    border-radius: 1.5px;
}

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

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 关闭按钮 */
.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.close-menu:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: rotate(90deg);
}

/* 导航遮罩层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
    transition: opacity var(--transition-normal);
    opacity: 0;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    background-color: rgba(25, 118, 210, 0.05);
    color: var(--primary-color);
    border: 2px solid transparent;
}

.mobile-nav a:hover {
    background-color: rgba(25, 118, 210, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

/* 在移动设备上显示汉堡菜单 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active {
        opacity: 0;
        pointer-events: none;
    }
    
    .close-menu {
        display: flex;
    }
}

/* ====== 动画与过渡 ====== */
/* 页面加载动画 */
.loaded {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) rotateY(5deg) translateY(10px);
        filter: blur(1px) brightness(0.95);
    }
    20% {
        opacity: 0.3;
        transform: scale(0.97) rotateY(2deg) translateY(5px);
        filter: blur(0.8px) brightness(0.97);
    }
    40% {
        opacity: 0.6;
        transform: scale(0.985) rotateY(0deg) translateY(2px);
        filter: blur(0.5px) brightness(0.99);
    }
    60% {
        opacity: 0.8;
        transform: scale(0.995) rotateY(-1deg) translateY(-1px);
        filter: blur(0.2px) brightness(1.01);
    }
    80% {
        opacity: 0.95;
        transform: scale(0.998) rotateY(1deg) translateY(0px);
        filter: blur(0px) brightness(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateY(0px);
        filter: blur(0px) brightness(1);
    }
}

/* 滚动动画 */
@keyframes slideUp {
    0% {
        transform: translateY(30px) rotateX(5deg) rotateZ(0deg) scale(0.98);
        opacity: 0;
        filter: brightness(0.95) blur(1px);
    }
    15% {
        transform: translateY(24px) rotateX(3deg) rotateZ(0.5deg) scale(0.985);
        opacity: 0.2;
        filter: brightness(0.97) blur(0.8px);
    }
    30% {
        transform: translateY(18px) rotateX(2deg) rotateZ(-0.5deg) scale(0.99);
        opacity: 0.4;
        filter: brightness(0.98) blur(0.5px);
    }
    45% {
        transform: translateY(12px) rotateX(1deg) rotateZ(0.3deg) scale(0.995);
        opacity: 0.6;
        filter: brightness(0.99) blur(0.3px);
    }
    60% {
        transform: translateY(6px) rotateX(0deg) rotateZ(-0.2deg) scale(0.998);
        opacity: 0.8;
        filter: brightness(1) blur(0.1px);
    }
    75% {
        transform: translateY(3px) rotateX(-0.5deg) rotateZ(0.1deg) scale(1);
        opacity: 0.9;
        filter: brightness(1.01) blur(0px);
    }
    90% {
        transform: translateY(1px) rotateX(0deg) rotateZ(0deg) scale(1);
        opacity: 0.98;
        filter: brightness(1.02) blur(0px);
    }
    100% {
        transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(1);
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
}

@keyframes slideUpMobile {
    0% {
        transform: translateY(15px) rotateX(3deg) rotateZ(0deg) scale(0.99);
        opacity: 0;
        filter: brightness(0.95) blur(0.8px);
    }
    15% {
        transform: translateY(12px) rotateX(2deg) rotateZ(0.3deg) scale(0.992);
        opacity: 0.2;
        filter: brightness(0.97) blur(0.6px);
    }
    30% {
        transform: translateY(9px) rotateX(1deg) rotateZ(-0.3deg) scale(0.995);
        opacity: 0.4;
        filter: brightness(0.98) blur(0.4px);
    }
    45% {
        transform: translateY(6px) rotateX(0.5deg) rotateZ(0.2deg) scale(0.997);
        opacity: 0.6;
        filter: brightness(0.99) blur(0.2px);
    }
    60% {
        transform: translateY(3px) rotateX(0deg) rotateZ(-0.1deg) scale(0.999);
        opacity: 0.8;
        filter: brightness(1) blur(0.1px);
    }
    75% {
        transform: translateY(1.5px) rotateX(-0.3deg) rotateZ(0.1deg) scale(1);
        opacity: 0.9;
        filter: brightness(1.01) blur(0px);
    }
    90% {
        transform: translateY(0.5px) rotateX(0deg) rotateZ(0deg) scale(1);
        opacity: 0.98;
        filter: brightness(1.02) blur(0px);
    }
    100% {
        transform: translateY(0) rotateX(0deg) rotateZ(0deg) scale(1);
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
}

/* ====== 打印样式 ====== */
@media print {
    .header, .footer, .menu-toggle, .close-menu, .nav-overlay, .hero-animation {
        display: none !important;
    }
    
    body {
        background-image: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero {
        height: auto;
        padding: 20px 0;
    }
}

/* ====== 页面加载优化 ====== */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ====== 触摸设备特定样式 ====== */
@media (hover: none) {
    /* 触摸设备的主动状态反馈 */
    a:active, button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ====== 自定义链接样式 ====== */
.link-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
    margin: 5px 0;
}

/* ====== 教程步骤样式 ====== */
.tutorial-steps {
    counter-reset: step-counter;
    list-style: none;
}

.tutorial-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: var(--spacing-lg);
}

.tutorial-step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
}

/* 移动设备上的教程步骤样式 */
@media (max-width: 576px) {
    .tutorial-step {
        padding-left: 40px;
        margin-bottom: var(--spacing-md);
    }
    
    .tutorial-step::before {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.6);
}

/* ====== 下载弹窗样式 ====== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.close-modal:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.modal-body {
    padding: var(--spacing-md);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.download-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: var(--light-color);
    border-radius: var(--border-radius-small);
    transition: all var(--transition-normal);
}

.download-link-item:hover {
    background-color: rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.link-info {
    flex: 1;
    margin-right: var(--spacing-sm);
    min-width: 0;
    max-width: 100%;
}

.link-name {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: 2px;
}

.link-url {
    display: block;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .download-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .link-info {
        margin-right: 0;
        margin-bottom: var(--spacing-xs);
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}