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

body {
    background: linear-gradient(145deg, #eef2f7 0%, #d9e2ec 100%);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin: 0;
}

.nav-card {
    max-width: 560px;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 2.5rem;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem 2rem 2.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-card:hover {
    box-shadow: 0 30px 55px -14px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4fa;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e466e;
    margin-bottom: 1.2rem;
}

.badge-icon span {
    font-size: 1.1rem;
}

h1 {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1D3557, #2C5F8A);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.sub {
    color: #5c6f87;
    font-size: 0.9rem;
    border-bottom: 1px dashed #cbd5e1;
    display: inline-block;
    padding-bottom: 0.2rem;
    margin-bottom: 1.6rem;
}

/* 访客数卡片 */
.stats-container {
    background: #f8fafd;
    border-radius: 1.8rem;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    border: 1px solid #e6edf4;
}

.visitor-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: white;
    padding: 0.4rem 1rem 0.4rem 1.2rem;
    border-radius: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.visitor-icon {
    font-size: 1.6rem;
}

.visitor-text {
    font-weight: 600;
    color: #2c3e66;
    font-size: 0.9rem;
}

.visitor-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(125deg, #1f6392, #1d476b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1;
    font-feature-settings: "tnum";
}

.refresh-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffffcc;
    padding: 0.3rem 0.8rem 0.3rem 1rem;
    border-radius: 3rem;
    border: 1px solid #e2edf7;
}

.refresh-btn {
    background: #eef2f8;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #2c6288;
    font-weight: 500;
    font-family: inherit;
}

.refresh-btn:hover {
    background: #e1e8f0;
    transform: scale(0.97);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.status-badge {
    font-size: 0.7rem;
    color: #7d8eac;
    background: #eef2f9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.last-update {
    font-size: 0.65rem;
    color: #7b8ba3;
}

/* 链接按钮 */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0.5rem 0 0.8rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #1e3a5f;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1.5px solid #e2edf7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    background: rgba(255, 255, 255, 0.9);
}

.nav-link.shop-link {
    background: linear-gradient(105deg, #ffffff 0%, #fef9f0 100%);
    border-left: 5px solid #f5a65b;
}

.nav-link.worldbox-link {
    background: linear-gradient(105deg, #ffffff 0%, #eff8ff 100%);
    border-left: 5px solid #4c9f70;
}

.nav-link:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.2);
}

.link-icon {
    font-size: 1.6rem;
    transition: transform 0.2s ease;
}

.nav-link:hover .link-icon {
    transform: translateX(3px) scale(1.02);
}

.link-text {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
}

.info-note {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: #8d9bb0;
    background: #f1f5f9;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 30px;
}

hr {
    margin: 1rem 0 0.6rem;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cad5e0, transparent);
}

@media (max-width: 480px) {
    .nav-card {
        padding: 1.6rem 1.4rem 1.8rem;
        border-radius: 2rem;
    }
    h1 { font-size: 1.6rem; }
    .nav-link { padding: 0.8rem 1rem; }
    .link-text { font-size: 1rem; }
    .link-icon { font-size: 1.4rem; }
    .stats-container {
        flex-direction: column;
        align-items: stretch;
    }
    .visitor-number { font-size: 1.7rem; }
}

.nav-link:focus-visible, .refresh-btn:focus-visible {
    outline: 3px solid #2c7da0;
    outline-offset: 3px;
    border-radius: 2rem;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.2s steps(3, end) infinite;
    display: inline-block;
    width: 24px;
    text-align: left;
}
@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}