@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0d1117;
    --card: #161b22;
    --card-hover: #1c2333;
    --border: #30363d;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --green: #5b8731;
    --green-light: #6ea539;
    --brown: #8b6914;
    --gold: #f5c842;
    --accent: #58a6ff;
    --dirt: #866043;
    --stone: #7a7a7a;
    --grass-top: #6ea539;
    --grass-side: #5b8731;
    --diamond: #2dd4bf;
}

body {
    font-family: 'Noto Sans SC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* MC 风格背景块 */
.bg-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 32px;
}

.server-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--green-light), var(--diamond), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.tagline {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 400;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--green-light);
}

.card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text);
}

/* IP Card */
.ip-card {
    border-color: var(--green-light);
    background: linear-gradient(135deg, #5b873108, #2dd4bf08);
}

.ip-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ip-box code {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--gold);
    background: #f5c84210;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #f5c84230;
    font-family: 'SF Mono', 'Consolas', monospace;
    flex: 1;
    text-align: center;
}

#copyBtn {
    padding: 10px 20px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

#copyBtn:hover {
    background: var(--green-light);
    transform: scale(1.03);
}

.ip-hint {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* Status */
.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--green-light);
    box-shadow: 0 0 12px var(--green-light);
}

.status-dot.offline {
    background: #f85149;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-hint {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Steps */
.steps {
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 2.2;
}

.steps li::marker {
    color: var(--green-light);
    font-weight: 700;
}

.steps a {
    color: var(--accent);
    text-decoration: none;
}

.steps a:hover {
    text-decoration: underline;
}

.steps code {
    background: var(--bg);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gold);
    border: 1px solid var(--border);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-card .info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--diamond);
}

.info-card .info-value a {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.info-card .info-value a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .container { padding: 20px 12px; }
    header h1 { font-size: 1.6rem; }
    .ip-box code { font-size: 1.1rem; }
    .info-grid { grid-template-columns: 1fr; }
}
