/* Modern Console Style - Index Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tiktok-cyan: #25F4EE;
    --tiktok-red: #FE2C55;
    --dark-bg: #0a0a0f;
    --dark-surface: #14141e;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 动态背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 244, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 244, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.2), transparent 60%);
    top: -300px;
    left: -300px;
    animation: floatGlow1 10s ease-in-out infinite;
    filter: blur(60px);
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.2), transparent 60%);
    bottom: -200px;
    right: -200px;
    animation: floatGlow2 10s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes floatGlow1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -50px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 1;
}

.detection-box {
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.detection-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tiktok-cyan), var(--tiktok-red));
    opacity: 0.8;
}

.detection-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.1), transparent 70%);
    pointer-events: none;
}

.logo-text {
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 8px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--tiktok-cyan), #fff, var(--tiktok-red));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(37, 244, 238, 0.3);
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.loading-spinner {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--tiktok-cyan);
    animation: spinFast 1s linear infinite;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--tiktok-red);
    animation: spinFast 1.5s linear infinite reverse;
}

@keyframes spinFast {
    to { transform: rotate(360deg); }
}

.loading-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.3), transparent 70%);
    animation: pulseCore 2s ease-in-out infinite;
}

.loading-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--tiktok-cyan),
        0 0 40px var(--tiktok-cyan),
        0 0 60px rgba(37, 244, 238, 0.5);
}

.loading-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(37, 244, 238, 0.2);
    animation: ripple 2s ease-out infinite;
}

@keyframes pulseCore {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#domains-status {
    margin-top: 30px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
}

.domain-item {
    margin: 10px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.domain-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.success {
    color: var(--tiktok-cyan);
    text-shadow: 0 0 10px rgba(37, 244, 238, 0.5);
}

.failure {
    color: var(--tiktok-red);
    text-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
}

.pending {
    color: var(--text-secondary);
}

h1 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(37, 244, 238, 0.2);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

.error-container {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.retry-button {
    background: linear-gradient(135deg, var(--tiktok-cyan), #1ed9d3);
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 8px 30px rgba(37, 244, 238, 0.3),
        0 0 0 0 rgba(37, 244, 238, 0.5);
    position: relative;
    overflow: hidden;
}

.retry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.retry-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(37, 244, 238, 0.4),
        0 0 0 4px rgba(37, 244, 238, 0.2);
}

.retry-button:hover::before {
    left: 100%;
}

.retry-button:active {
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .detection-box {
        padding: 30px 20px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}

/* Admin Page Styles */
.admin-container {
    max-width: 900px;
}

.status-box {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-header h1 {
    margin-bottom: 0;
}

#refresh-btn {
    margin-top: 0;
    padding: 10px 24px;
    font-size: 14px;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-secondary);
}

.status-table th, .status-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-table th {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-table td a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.status-table td a:hover {
    color: var(--tiktok-cyan);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-bg);
}

.status-ok {
    background-color: #25F4EE; /* Cyan */
    box-shadow: 0 0 10px rgba(37, 244, 238, 0.5);
}

.status-unsafe {
    background-color: #FFC107; /* Amber */
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.status-down {
    background-color: #FE2C55; /* Red */
    box-shadow: 0 0 10px rgba(254, 44, 85, 0.5);
}

.loading-container-admin {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.error-text {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: var(--tiktok-red);
}

/* New Card Layout Styles */
#status-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.status-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card border colors based on status */
.status-card.status-ok {
    border-left-color: var(--tiktok-cyan);
}
.status-card.status-unsafe {
    border-left-color: #FFC107; /* Amber */
}
.status-card.status-down {
    border-left-color: var(--tiktok-red);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.card-status-icon {
    font-size: 20px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.status-card.status-ok .card-status-icon { color: var(--tiktok-cyan); }
.status-card.status-unsafe .card-status-icon { color: #FFC107; }
.status-card.status-down .card-status-icon { color: var(--tiktok-red); }

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-header .status-badge {
    flex-shrink: 0;
}

.card-body {
    margin-bottom: 20px;
}

.card-url {
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
    margin: 0;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
}

.card-latency-label {
    color: var(--text-secondary);
}

.card-latency-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Admin Page - Modern Console Style
   ======================================== */

.admin-body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* 动态背景 */
.admin-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.admin-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 244, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 244, 238, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.admin-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: glowFloat 8s ease-in-out infinite;
}

.admin-bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 244, 238, 0.3), transparent 70%);
    top: -200px;
    left: -200px;
}

.admin-bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.3), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -4s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

/* 主容器 */
.admin-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.admin-logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--tiktok-cyan), var(--tiktok-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(37, 244, 238, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(37, 244, 238, 0.2);
}

.admin-pulse {
    width: 10px;
    height: 10px;
    background: var(--tiktok-cyan);
    border-radius: 50%;
    animation: pulseGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--tiktok-cyan);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.admin-status-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--tiktok-cyan);
}

.admin-refresh-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--tiktok-cyan), #1ed9d3);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(37, 244, 238, 0.3);
}

.admin-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 244, 238, 0.4);
}

.admin-refresh-btn:active {
    transform: translateY(0);
}

.admin-refresh-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.admin-btn-loading .admin-refresh-icon {
    animation: spin 1s linear infinite;
}

.admin-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 统计概览区域 */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-stat-total::before { background: linear-gradient(180deg, var(--tiktok-cyan), var(--tiktok-red)); }
.admin-stat-ok::before { background: var(--tiktok-cyan); }
.admin-stat-warning::before { background: #FFC107; }
.admin-stat-down::before { background: var(--tiktok-red); }

.admin-stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.admin-stat-icon svg {
    width: 28px;
    height: 28px;
}

.admin-stat-total .admin-stat-icon {
    background: linear-gradient(135deg, rgba(37, 244, 238, 0.2), rgba(254, 44, 85, 0.2));
    color: var(--tiktok-cyan);
}

.admin-stat-ok .admin-stat-icon {
    background: rgba(37, 244, 238, 0.15);
    color: var(--tiktok-cyan);
}

.admin-stat-warning .admin-stat-icon {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.admin-stat-down .admin-stat-icon {
    background: rgba(254, 44, 85, 0.15);
    color: var(--tiktok-red);
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.admin-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 内容区域 */
.admin-content {
    flex: 1;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--tiktok-cyan), var(--tiktok-red));
    border-radius: 2px;
}

.admin-filter-group {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.admin-filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-filter-btn.active {
    background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
    color: #000;
    font-weight: 600;
}

/* 卡片网格 */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    min-height: 200px;
}

/* 状态卡片 */
.admin-card {
    background: rgba(30, 30, 45, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.admin-card-status-bar {
    height: 4px;
    width: 100%;
}

.admin-card-ok .admin-card-status-bar {
    background: linear-gradient(90deg, var(--tiktok-cyan), rgba(37, 244, 238, 0.5));
}

.admin-card-warning .admin-card-status-bar {
    background: linear-gradient(90deg, #FFC107, rgba(255, 193, 7, 0.5));
}

.admin-card-down .admin-card-status-bar {
    background: linear-gradient(90deg, var(--tiktok-red), rgba(254, 44, 85, 0.5));
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 20px 15px;
}

.admin-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.admin-card-icon svg {
    width: 24px;
    height: 24px;
}

.admin-card-ok .admin-card-icon {
    background: rgba(37, 244, 238, 0.15);
    color: var(--tiktok-cyan);
}

.admin-card-warning .admin-card-icon {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.admin-card-down .admin-card-icon {
    background: rgba(254, 44, 85, 0.15);
    color: var(--tiktok-red);
}

.admin-card-title-group {
    flex: 1;
    min-width: 0;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-card-ok .admin-card-badge {
    background: rgba(37, 244, 238, 0.15);
    color: var(--tiktok-cyan);
    border: 1px solid rgba(37, 244, 238, 0.3);
}

.admin-card-warning .admin-card-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-card-down .admin-card-badge {
    background: rgba(254, 44, 85, 0.15);
    color: var(--tiktok-red);
    border: 1px solid rgba(254, 44, 85, 0.3);
}

.admin-card-body {
    padding: 0 20px 15px;
}

.admin-card-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    word-break: break-all;
}

.admin-card-url svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

.admin-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-card-latency {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-card-latency-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-card-latency-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.admin-latency-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-latency-unit {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-card-indicator {
    display: flex;
    align-items: center;
}

.admin-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.admin-card-ok .admin-card-dot {
    background: var(--tiktok-cyan);
    box-shadow: 0 0 15px var(--tiktok-cyan);
}

.admin-card-warning .admin-card-dot {
    background: #FFC107;
    box-shadow: 0 0 15px #FFC107;
}

.admin-card-down .admin-card-dot {
    background: var(--tiktok-red);
    box-shadow: 0 0 15px var(--tiktok-red);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 加载状态 */
.admin-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 20px;
}

.admin-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--tiktok-cyan);
    border-right-color: var(--tiktok-red);
    animation: spin 1s linear infinite;
}

.admin-loading-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 空状态 */
.admin-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 15px;
    color: var(--text-secondary);
}

.admin-empty svg {
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* 错误状态 */
.admin-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 15px;
    color: var(--tiktok-red);
}

.admin-error svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

.admin-retry-btn {
    margin-top: 10px;
    padding: 10px 24px;
    background: rgba(254, 44, 85, 0.15);
    border: 1px solid rgba(254, 44, 85, 0.3);
    border-radius: 8px;
    color: var(--tiktok-red);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-retry-btn:hover {
    background: rgba(254, 44, 85, 0.25);
}

/* 页脚 */
.admin-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-footer-dot {
    opacity: 0.3;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .admin-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .admin-stat-card {
        padding: 20px;
    }
    
    .admin-stat-value {
        font-size: 28px;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .admin-content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-filter-group {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .admin-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-status-indicator {
        display: none;
    }
    
    .admin-refresh-btn span {
        display: none;
    }
    
    .admin-refresh-btn {
        padding: 12px;
    }
} 