/* ============================================
   服务器页面样式
   ============================================ */
.server-page {
    padding-top: 110px;
    padding-bottom: 60px;
}

.server-hero {
    background:
        radial-gradient(ellipse at top, rgba(76, 175, 80, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(20, 26, 38, 0.8), rgba(10, 14, 20, 0.8)),
        var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.server-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(76, 175, 80, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 175, 80, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mc-green-light);
    margin-bottom: 24px;
    position: relative;
}

.server-status-badge.offline {
    background: rgba(239, 83, 80, 0.1);
    border-color: rgba(239, 83, 80, 0.3);
    color: var(--mc-redstone);
}

.server-status-badge .status-dot {
    width: 10px;
    height: 10px;
}

.server-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.server-motd {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    position: relative;
}

.server-address-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 32px;
    position: relative;
}

.server-address-label {
    color: var(--text-muted);
    font-size: 13px;
    text-align: left;
}

.server-address-value {
    font-family: "SF Mono", monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--mc-green-light);
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.server-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.server-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.3);
}

.server-info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-green-light);
}

.server-info-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.server-info-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* 玩家进度条 */
.player-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}

.player-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.player-bar-title {
    font-size: 16px;
    font-weight: 700;
}

.player-bar-numbers {
    font-size: 14px;
    color: var(--text-secondary);
}

.player-bar-numbers strong {
    color: var(--mc-green-light);
    font-size: 18px;
}

.player-bar-track {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.player-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mc-green) 0%, var(--mc-green-light) 100%);
    border-radius: 6px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.player-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 世界列表 */
.worlds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.world-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: var(--shadow-lg);
}

.world-card-banner {
    height: 140px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.9);
}

.world-card:nth-child(2) .world-card-banner { background: var(--gradient-diamond); }
.world-card:nth-child(3) .world-card-banner { background: var(--gradient-gold); }
.world-card:nth-child(4) .world-card-banner { background: var(--gradient-purple); }
.world-card:nth-child(5) .world-card-banner { background: var(--gradient-sunset); }
.world-card:nth-child(6) .world-card-banner { background: linear-gradient(135deg, #7cb342 0%, #2e7d32 100%); }

.world-card-body {
    padding: 24px;
}

.world-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.world-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.world-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 规则页面 */
.rules-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.rule-section {
    margin-bottom: 32px;
}

.rule-section:last-child {
    margin-bottom: 0;
}

.rule-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--mc-green-light);
}

.rule-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.rule-list {
    list-style: none;
    padding-left: 16px;
}

.rule-list li {
    padding: 10px 0 10px 32px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.rule-list li:last-child {
    border-bottom: none;
}

.rule-list li::before {
    content: counter(rule-counter);
    counter-increment: rule-counter;
    position: absolute;
    left: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--mc-green-light);
}

.rule-list {
    counter-reset: rule-counter;
}

@media (max-width: 1024px) {
    .server-info-grid { grid-template-columns: repeat(2, 1fr); }
    .worlds-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .server-hero { padding: 32px 20px; }
    .server-title { font-size: 26px; }
    .server-info-grid { grid-template-columns: 1fr; }
    .worlds-grid { grid-template-columns: 1fr; }
    .server-address-box { flex-direction: column; gap: 8px; }
}
