/* ============================================
   首页特定样式 - 军事战术深色风格
   包含：Hero区域、服务器状态卡片、状态指示灯呼吸动画
   ============================================ */

/* ========== Hero展示区样式 ========== */
/* Hero区域主容器 */
.hero {
    /* 相对定位 */
    position: relative;
    /* 最小高度为全屏高度 */
    min-height: 100vh;
    /* flex布局 */
    display: flex;
    /* 垂直居中 */
    align-items: center;
    /* 水平居中 */
    justify-content: center;
    /* 文字居中 */
    text-align: center;
    /* 溢出隐藏 */
    overflow: hidden;
}

/* Hero动态背景层 */
.hero-bg {
    /* 绝对定位 */
    position: absolute;
    /* 距离顶部为0 */
    top: 0;
    /* 距离左侧为0 */
    left: 0;
    /* 宽度100% */
    width: 100%;
    /* 高度100% */
    height: 100%;
    /* 背景渐变 */
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(74, 124, 89, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(232, 168, 56, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    /* 层级为0 */
    z-index: 0;
}

/* Hero背景网格装饰 */
.hero-bg::before {
    /* 伪元素内容为空 */
    content: '';
    /* 绝对定位 */
    position: absolute;
    /* 距离顶部为0 */
    top: 0;
    /* 距离左侧为0 */
    left: 0;
    /* 宽度100% */
    width: 100%;
    /* 高度100% */
    height: 100%;
    /* 背景网格图案 */
    background-image: 
        linear-gradient(rgba(74, 124, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 124, 89, 0.05) 1px, transparent 1px);
    /* 背景尺寸 */
    background-size: 50px 50px;
    /* 层级为1 */
    z-index: 1;
}

/* Hero内容层 */
.hero-content {
    /* 相对定位 */
    position: relative;
    /* 层级为2 */
    z-index: 2;
    /* 最大宽度 */
    max-width: 900px;
    /* 内边距 */
    padding: 0 20px;
}

/* Hero副标题 */
.hero-subtitle {
    /* 字体大小 */
    font-size: 18px;
    /* 文字颜色橙黄色 */
    color: #e8a838;
    /* 字母间距 */
    letter-spacing: 8px;
    /* 文字转换大写 */
    text-transform: uppercase;
    /* 下边距 */
    margin-bottom: 20px;
    /* 初始透明度为0 */
    opacity: 0;
    /* 初始位置下移30px */
    transform: translateY(30px);
    /* 动画：渐入上移 */
    animation: fadeInUp 1s ease forwards;
    /* 动画延迟0.2s */
    animation-delay: 0.2s;
}

/* Hero主标题 */
.hero-title {
    /* 字体大小 */
    font-size: 72px;
    /* 字体加粗 */
    font-weight: bold;
    /* 文字颜色白色 */
    color: #ffffff;
    /* 字母间距 */
    letter-spacing: 15px;
    /* 下边距 */
    margin-bottom: 25px;
    /* 相对定位 */
    position: relative;
    /* 初始透明度为0 */
    opacity: 0;
    /* 初始位置下移30px */
    transform: translateY(30px);
    /* 动画：渐入上移 */
    animation: fadeInUp 1s ease forwards;
    /* 动画延迟0.4s */
    animation-delay: 0.4s;
}

/* 主标题中的强调文字 */
.hero-title span {
    /* 颜色军绿色 */
    color: #4a7c59;
    /* 文字阴影 */
    text-shadow: 0 0 30px rgba(74, 124, 89, 0.5);
}

/* Hero宣传标语 */
.hero-slogan {
    /* 字体大小 */
    font-size: 20px;
    /* 文字颜色 */
    color: #a0a0a0;
    /* 字母间距 */
    letter-spacing: 3px;
    /* 下边距 */
    margin-bottom: 40px;
    /* 初始透明度为0 */
    opacity: 0;
    /* 初始位置下移30px */
    transform: translateY(30px);
    /* 动画：渐入上移 */
    animation: fadeInUp 1s ease forwards;
    /* 动画延迟0.6s */
    animation-delay: 0.6s;
}

/* Hero按钮组 */
.hero-buttons {
    /* flex布局 */
    display: flex;
    /* 水平居中 */
    justify-content: center;
    /* 元素间距 */
    gap: 20px;
    /* 自动换行 */
    flex-wrap: wrap;
    /* 初始透明度为0 */
    opacity: 0;
    /* 初始位置下移30px */
    transform: translateY(30px);
    /* 动画：渐入上移 */
    animation: fadeInUp 1s ease forwards;
    /* 动画延迟0.8s */
    animation-delay: 0.8s;
}

/* Hero区社交链接按钮容器 */
.hero-social {
    /* flex布局 */
    display: flex;
    /* 水平居中 */
    justify-content: center;
    /* 元素间距 */
    gap: 15px;
    /* 上边距 */
    margin-top: 25px;
    /* 初始透明度为0 */
    opacity: 0;
    /* 初始位置下移30px */
    transform: translateY(30px);
    /* 动画：渐入上移 */
    animation: fadeInUp 1s ease forwards;
    /* 动画延迟1.1s */
    animation-delay: 1.1s;
}

/* Hero社交按钮基础样式 */
.btn-social {
    /* inline-flex布局 */
    display: inline-flex;
    /* 垂直居中 */
    align-items: center;
    /* 元素间距 */
    gap: 8px;
    /* 内边距 */
    padding: 8px 22px;
    /* 边框圆角 */
    border-radius: 4px;
    /* 文字大小 */
    font-size: 14px;
    /* 去除下划线 */
    text-decoration: none;
    /* 过渡动画 */
    transition: all 0.3s ease;
    /* 边框 */
    border: 1px solid;
    /* 字体粗细 */
    font-weight: 500;
}

/* Hero QQ群按钮样式 */
.btn-qq {
    /* 背景半透明 */
    background: rgba(18, 183, 245, 0.15);
    /* 边框颜色 */
    border-color: rgba(18, 183, 245, 0.5);
    /* 文字颜色 */
    color: #12b7f5;
}

/* Hero QQ群按钮悬停 */
.btn-qq:hover {
    /* 背景加深 */
    background: rgba(18, 183, 245, 0.3);
    /* 边框变亮 */
    border-color: #12b7f5;
    /* 向上位移 */
    transform: translateY(-2px);
    /* 阴影 */
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.2);
}

/* Hero KOOK按钮样式 */
.btn-kook {
    /* 背景半透明 */
    background: rgba(93, 105, 243, 0.15);
    /* 边框颜色 */
    border-color: rgba(93, 105, 243, 0.5);
    /* 文字颜色 */
    color: #7c88f5;
}

/* Hero KOOK按钮悬停 */
.btn-kook:hover {
    /* 背景加深 */
    background: rgba(93, 105, 243, 0.3);
    /* 边框变亮 */
    border-color: #5d69f3;
    /* 向上位移 */
    transform: translateY(-2px);
    /* 阴影 */
    box-shadow: 0 4px 15px rgba(93, 105, 243, 0.2);
}

/* Hero向下滚动提示 */
.hero-scroll {
    /* 绝对定位 */
    position: absolute;
    /* 距离底部40px */
    bottom: 40px;
    /* 距离左侧50% */
    left: 50%;
    /* 水平居中 */
    transform: translateX(-50%);
    /* 层级为2 */
    z-index: 2;
    /* 文字颜色 */
    color: #666;
    /* 字体大小 */
    font-size: 13px;
    /* 字母间距 */
    letter-spacing: 2px;
    /* 初始透明度为0 */
    opacity: 0;
    /* 动画：渐入 */
    animation: fadeIn 1s ease forwards;
    /* 动画延迟1.2s */
    animation-delay: 1.2s;
}

/* 滚动箭头图标 */
.hero-scroll .arrow {
    /* 块级元素 */
    display: block;
    /* 宽度20px */
    width: 20px;
    /* 高度20px */
    height: 20px;
    /* 右边框 */
    border-right: 2px solid #4a7c59;
    /* 下边框 */
    border-bottom: 2px solid #4a7c59;
    /* 旋转45度 */
    transform: rotate(45deg);
    /* 水平居中 */
    margin: 10px auto 0;
    /* 动画：上下跳动 */
    animation: bounce 2s infinite;
}

/* ========== 服务器状态区域 ========== */
/* 服务器状态区域主容器 */
.servers-section {
    /* 内边距上下80px，左右20px */
    padding: 80px 20px;
    /* 最大宽度 */
    max-width: 1400px;
    /* 水平居中 */
    margin: 0 auto;
}

/* 服务器卡片网格 */
.servers-grid {
    /* CSS网格布局 */
    display: grid;
    /* 两列等宽 */
    grid-template-columns: repeat(2, 1fr);
    /* 卡片间距 */
    gap: 30px;
}

/* ========== 服务器状态卡片样式 ========== */
/* 服务器卡片样式 */
.server-card {
    /* 背景色稍深 */
    background: #222236;
    /* 边框 */
    border: 1px solid #2a2a40;
    /* 内边距 */
    padding: 30px;
    /* 相对定位 */
    position: relative;
    /* 过渡动画 */
    transition: all 0.3s ease;
    /* 溢出隐藏 */
    overflow: hidden;
}

/* 服务器卡片顶部装饰条 */
.server-card::before {
    /* 内容为空 */
    content: '';
    /* 绝对定位 */
    position: absolute;
    /* 距离顶部为0 */
    top: 0;
    /* 距离左侧为0 */
    left: 0;
    /* 宽度100% */
    width: 100%;
    /* 高度3px */
    height: 3px;
    /* 背景渐变 */
    background: linear-gradient(90deg, #4a7c59, #e8a838);
}

/* 服务器卡片悬停效果 */
.server-card:hover {
    /* 边框变色 */
    border-color: #4a7c59;
    /* 向上移动3px */
    transform: translateY(-3px);
    /* 添加阴影 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 服务器卡片头部 */
.server-header {
    /* flex布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 垂直居中 */
    align-items: center;
    /* 下边距 */
    margin-bottom: 20px;
    /* 底部边框 */
    border-bottom: 1px solid #2a2a40;
    /* 底部内边距 */
    padding-bottom: 15px;
}

/* 服务器名称 */
.server-name {
    /* 字体大小 */
    font-size: 20px;
    /* 字体加粗 */
    font-weight: bold;
    /* 文字颜色 */
    color: #ffffff;
    /* 字母间距 */
    letter-spacing: 1px;
}

/* 服务器状态指示器 */
.server-status {
    /* flex布局 */
    display: flex;
    /* 垂直居中 */
    align-items: center;
    /* 元素间距 */
    gap: 8px;
}

/* 状态指示灯 */
.status-dot {
    /* 宽度12px */
    width: 12px;
    /* 高度12px */
    height: 12px;
    /* 圆角50%变圆形 */
    border-radius: 50%;
    /* 背景色绿色（在线） */
    background: #4a7c59;
    /* 动画：呼吸闪烁 */
    animation: pulse 2s infinite;
}

/* 离线状态指示灯 */
.status-dot.offline {
    /* 背景色灰色 */
    background: #555;
    /* 取消动画 */
    animation: none;
}

/* 状态文字 */
.status-text {
    /* 字体大小 */
    font-size: 13px;
    /* 文字颜色 */
    color: #4a7c59;
    /* 字体粗细 */
    font-weight: bold;
}

/* 离线状态文字 */
.status-text.offline {
    /* 颜色灰色 */
    color: #888;
}

/* 服务器信息行 */
.server-info {
    /* 下边距 */
    margin-bottom: 15px;
    /* flex布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 字体大小 */
    font-size: 14px;
}

/* 信息标签 */
.server-info .label {
    /* 颜色浅灰 */
    color: #888;
}

/* 信息值 */
.server-info .value {
    /* 颜色白色 */
    color: #e0e0e0;
    /* 字体粗细 */
    font-weight: 500;
}

/* 玩家进度条容器 */
.player-bar-container {
    /* 上边距 */
    margin-top: 20px;
    /* 下边距 */
    margin-bottom: 20px;
}

/* 玩家数字显示 */
.player-count {
    /* flex布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 字体大小 */
    font-size: 13px;
    /* 下边距 */
    margin-bottom: 8px;
}

/* 玩家数量文字 */
.player-count .num {
    /* 颜色橙黄色 */
    color: #e8a838;
    /* 字体粗细 */
    font-weight: bold;
}

/* 进度条背景 */
.progress-bar {
    /* 宽度100% */
    width: 100%;
    /* 高度8px */
    height: 8px;
    /* 背景深色 */
    background: #1a1a2e;
    /* 圆角 */
    border-radius: 4px;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 边框 */
    border: 1px solid #2a2a40;
}

/* 进度条填充 */
.progress-fill {
    /* 高度100% */
    height: 100%;
    /* 宽度由JS控制 */
    width: 0%;
    /* 背景渐变 */
    background: linear-gradient(90deg, #4a7c59, #e8a838);
    /* 过渡动画 */
    transition: width 0.5s ease;
    /* 圆角 */
    border-radius: 4px;
}

/* 服务器卡片底部按钮区域 */
.server-footer {
    /* 顶部边框 */
    border-top: 1px solid #2a2a40;
    /* 顶部内边距 */
    padding-top: 20px;
    /* flex布局 */
    display: flex;
    /* 两端对齐 */
    justify-content: space-between;
    /* 垂直居中 */
    align-items: center;
}

/* 服务器类型标签 */
.server-type {
    /* 内边距 */
    padding: 4px 12px;
    /* 字体大小 */
    font-size: 12px;
    /* 边框 */
    border: 1px solid #4a7c59;
    /* 文字颜色 */
    color: #4a7c59;
    /* 字母间距 */
    letter-spacing: 1px;
}

/* 一键连接按钮 */
.btn-connect {
    /* 内边距 */
    padding: 10px 25px;
    /* 字体大小 */
    font-size: 13px;
    /* 背景色 */
    background: #e8a838;
    /* 边框色 */
    border-color: #e8a838;
    /* 文字颜色深色 */
    color: #1a1a2e;
    /* 字体粗细 */
    font-weight: bold;
    /* 文字转换大写 */
    text-transform: uppercase;
    /* 字母间距 */
    letter-spacing: 1px;
    /* 去除下划线 */
    text-decoration: none;
    /* 边框样式 */
    border: 2px solid #e8a838;
    /* 鼠标手型 */
    cursor: pointer;
    /* 过渡动画 */
    transition: all 0.3s ease;
    /* 相对定位 */
    position: relative;
    /* 行内块级元素 */
    display: inline-block;
}

/* 连接按钮悬停效果 */
.btn-connect:hover {
    /* 背景变深 */
    background: #d4962e;
    /* 边框变深 */
    border-color: #d4962e;
    /* 向上移动1px */
    transform: translateY(-1px);
    /* 添加阴影 */
    box-shadow: 0 3px 15px rgba(232, 168, 56, 0.4);
    /* 文字颜色保持深色 */
    color: #1a1a2e;
}

/* ========== 响应式适配 - 平板端 ========== */
@media (max-width: 992px) {
    /* 服务器网格变为单列 */
    .servers-grid {
        /* 单列布局 */
        grid-template-columns: 1fr;
    }

    /* Hero主标题缩小 */
    .hero-title {
        /* 字体大小 */
        font-size: 52px;
        /* 字母间距 */
        letter-spacing: 10px;
    }
}

/* ========== 响应式适配 - 移动端 ========== */
@media (max-width: 768px) {
    /* Hero副标题缩小 */
    .hero-subtitle {
        /* 字体大小 */
        font-size: 14px;
        /* 字母间距 */
        letter-spacing: 4px;
    }

    /* Hero主标题缩小 */
    .hero-title {
        /* 字体大小 */
        font-size: 36px;
        /* 字母间距 */
        letter-spacing: 8px;
    }

    /* Hero标语缩小 */
    .hero-slogan {
        /* 字体大小 */
        font-size: 16px;
        /* 字母间距 */
        letter-spacing: 1px;
    }

    /* Hero按钮组调整 */
    .hero-buttons {
        /* 纵向排列 */
        flex-direction: column;
        /* 元素间距 */
        gap: 15px;
        /* 左右内边距 */
        padding: 0 20px;
    }

    /* 服务器卡片内边距减小 */
    .server-card {
        /* 内边距 */
        padding: 20px;
    }

    /* 服务器名称缩小 */
    .server-name {
        /* 字体大小 */
        font-size: 17px;
    }
}
