/* 主要内容区域 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 10%;
    background-color: #161b22;
    min-height: 500px;
}

.hero-content {
    width: 50%;
    padding-right: 40px;
}

.hero-image {
    width: 40%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.slogan {
    margin-bottom: 40px;
}

.slogan-line {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    line-height: 1.3;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #8b949e;
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 服务器资源区域 */
.resources {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 60px;
    background-color: #131921;
    border-bottom: 1px solid #30363d;
}

.resources-title {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 30px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 90%;
    max-width: 1400px;
}

.stat-card {
    background-color: #1d232a;
    border-radius: 8px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3498db;
}

.stat-description {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 25px;
    line-height: 1.6;
}

.stat-item {
    margin-bottom: 16px;
}

.stat-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.stat-item-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.stat-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    flex-grow: 1;
}

.stat-item-value {
    font-size: 14px;
    font-weight: bold;
    color: #f8f9fa;
}

.progress-bar {
    height: 8px;
    width: 100%;
    background-color: #2c3440;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
}

.progress-fill.blue {
    background-color: #3498db;
}

.progress-fill.green {
    background-color: #2ecc71;
}

.progress-fill.orange {
    background-color: #e67e22;
}

.progress-fill.purple {
    background-color: #9b59b6;
}

.progress-fill.red {
    background-color: #e74c3c;
}

.progress-fill.black {
    background-color: #34495e;
}

/* 响应式调整 */
@media (max-width: 1000px) {
    .hero {
        flex-direction: column;
        padding: 40px 5%;
        justify-content: center; /* 垂直居中 */
    }
    
    .hero-content, .hero-image {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
        order: 2;
    }
    
    .slogan-line {
        font-size: 32px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slogan-line {
        font-size: 28px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .stat-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .resources-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .resources {
        padding: 30px 0 40px;
    }
    
    .hero-image {
        display: none; /* 在移动端隐藏图标 */
    }
}

@media (max-width: 480px) {
    .slogan-line {
        font-size: 24px;
    }
    
    .action-buttons {
        /* 保持flex布局，让按钮在同一行显示 */
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    /* 确保前两个按钮（获取服务和用户中心）在同一行 */
    .action-buttons .btn:nth-child(1),
    .action-buttons .btn:nth-child(2) {
        flex: 1;
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        font-size: 13px;
        padding: 10px 8px;
    }
    
    /* 第三个按钮（下载APP）单独一行 */
    .action-buttons .btn:nth-child(3) {
        width: 100%;
        margin-top: 5px;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .stat-item-name {
        font-size: 13px;
    }
    
    .stat-item-value {
        font-size: 13px;
    }
}

/* 按钮卡片区域样式 */
.card-section {
    padding: 20px 10%;
    background-color: #0d1117;
    border-top: 1px solid #30363d;
}

.card-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.nav-card {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #161b22, #1d232a);
    border: 1px solid #30363d;
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.nav-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-icon {
    transform: scale(1.1);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 14px;
    color: #8b949e;
    margin: 0;
    line-height: 1.5;
}

.card-arrow {
    font-size: 16px;
    color: #3498db;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.nav-card:hover .card-arrow {
    transform: translateX(5px);
}

/* 不同卡片的图标颜色 */
.nav-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.nav-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.nav-card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.nav-card:nth-child(4) .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-section {
        padding: 40px 5%;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card-section {
        padding: 30px 5%;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .nav-card {
        padding: 18px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-right: 12px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-description {
        font-size: 12px;
    }
}