:root {
    --primary-clr: #00f2ff;
    --accent-clr: #7000ff;
    --bg-dark: #0b0e1a;
    --card-bg: #161b33;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'PingFang SC', system-ui, sans-serif;
    margin: 0; padding: 0;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; position: relative;
}

body::before {
    content: ""; position: fixed; top:0; left:0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px; z-index: -1;
}

/* 核心布局结构 */
.main-wrapper {
    display: flex; gap: 20px; width: 95%; max-width: 1100px;
    padding: 20px; box-sizing: border-box;
}

/* 左侧面板 */
.left-panel {
    flex: 1.8; background: var(--card-bg); border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px; padding: 40px; display: flex; flex-direction: column; 
    align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.loader-ring {
    width: 80px; height: 80px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-clr); position: relative; 
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
.loader-ring::before {
    content: ""; position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    background: var(--primary-clr); border-radius: 50%; 
    box-shadow: 0 0 15px var(--primary-clr); animation: pulse 1.5s ease-in-out infinite;
}

.status-title { font-size: 22px; font-weight: bold; color: var(--primary-clr); margin-bottom: 5px; }
.status-sub { color: #8b92b7; margin-bottom: 25px; font-size: 13px; text-align: center; }

.url-box {
    width: 100%; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 12px;
    border: 1px dashed #444; margin-bottom: 25px; box-sizing: border-box;
    overflow: hidden;
}
.url-text { color: #00f2ff; font-family: monospace; font-size: 14px; word-break: break-all; }

.progress-container { width: 100%; margin-bottom: 30px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; color: #8b92b7; font-size: 12px; }
.progress-bar { width: 100%; height: 6px; background: #222; border-radius: 3px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent-clr), var(--primary-clr)); transition: width 0.4s ease; }

.btn-group { display: flex; gap: 15px; width: 100%; }
.btn { flex: 1; padding: 12px; border-radius: 8px; font-weight: bold; color: white; font-size: 14px; text-decoration: none; text-align: center; }
.btn-main { background: linear-gradient(90deg, #1e90ff, #00bfff); }
.btn-secondary { background: #2a2f45; color: #aaa; }

/* 右侧排行面板 */
.right-panel {
    flex: 1.2; background: var(--card-bg); border-radius: 20px; border: 1px solid rgba(112, 0, 255, 0.2);
    display: flex; flex-direction: column; overflow: hidden; height: 600px;
}
.card-head { padding: 15px 20px; background: rgba(255,255,255,0.03); color: var(--primary-clr); font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.05); }
.card-body { flex: 1; overflow-y: auto; padding: 10px 15px; }

.site-ranking { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-decoration: none; }
.rank { width: 25px; color: #555; font-weight: bold; font-size: 13px; }
.site-ranking:nth-child(-n+3) .rank { color: #ff4757; }
.icon { width: 20px; height: 20px; margin: 0 10px; border-radius: 4px; overflow: hidden; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.name { flex: 1; color: #ccd0e0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view { color: #444; font-size: 10px; margin-left: 8px; }

/* --- 响应式适配 --- */
@media (max-width: 850px) {
    body { overflow-y: auto; padding: 20px 0; }
    .main-wrapper { flex-direction: column; align-items: center; height: auto; }
    .left-panel, .right-panel { width: 100%; flex: none; }
    .right-panel { height: 450px; margin-top: 10px; }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }