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

/* ====== CSS 变量定义 ====== */
:root {
    /* 主色调 */
    --primary-color: #9c27b0;     /* 紫色主色调 */
    --secondary-color: #e91e63;   /* 粉色辅助色 */
    --accent-color: #ff4081;      /* 强调色 */
    
    /* 中性色 */
    --light-color: #fce4ec;       /* 浅色背景 */
    --dark-color: #212121;        /* 深色背景 */
    --text-color: #333;           /* 文本颜色 */
    --bg-color: #fff;             /* 页面背景色 */
    
    /* 组件样式 */
    --card-bg: rgba(255, 255, 255, 0.85); /* 卡片背景 */
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 默认阴影 */
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15); /* 悬停阴影 */
    
    /* 尺寸 */
    --border-radius: 20px;        /* 主要圆角 */
    --border-radius-small: 10px;  /* 小圆角 */
    --border-radius-btn: 30px;    /* 按钮圆角 */
    
    /* 间距 */
    --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:
        radial-gradient(circle at 10% 20%, rgba(216, 180, 254, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 60%, rgba(255, 182, 193, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 50% 90%, rgba(173, 216, 230, 0.3) 0%, transparent 20%);
    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; }

/* 间距类 */
.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%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
}

/* ====== 容器 ====== */
.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: 12px 24px;
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    user-select: none;
}

.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(156, 39, 176, 0.6);
}

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

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

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

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(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="%239c27b0" d="M50 15l-15 15 15 15 15-15z"/><circle cx="50" cy="50" r="10" fill="%23e91e63"/></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="%239c27b0"/><circle cx="50" cy="50" r="15" fill="%23e91e63"/></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="%239c27b0"/><circle cx="50" cy="50" r="15" fill="%23e91e63"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ====== 区块标题 ====== */
.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);
}

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

/* ====== 服务器区域 ====== */
.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;
}

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

.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(156, 39, 176, 0.1), rgba(233, 30, 99, 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: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.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: white;
    border-radius: var(--border-radius-small);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
}

.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(156, 39, 176, 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: white;
    border-radius: var(--border-radius-small);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 300px;
    text-align: center;
    transition: transform var(--transition-normal);
}

.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(156, 39, 176, 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);
    }
    
    .server-card {
        width: 280px;
        height: 350px;
    }
    
    /* 客户端下载卡片 */
    .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);
    }
    
    .details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .details-title h2 {
        font-size: 1.8rem;
    }
    
    /* 移动端菜单 */
    .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;
    }
    50% {
        opacity: 0.8;
    }
}

/* ====== 汉堡菜单 ====== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

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

.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: 10px;
    right: 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1003;
}

.close-menu i {
    transition: all var(--transition-normal);
}

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

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 滚动动画 */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* ====== 打印样式 ====== */
@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;
    }
}