/* 前台公开页面样式 - 从 app/Views/front/index.php 提取 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #0a0e1a; min-height: 100vh; overflow-x: hidden; color: #e0e6f0;
}
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(102,126,234,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,126,234,0.06) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0;
    animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
    0% { transform: translate(0,0); }
    100% { transform: translate(60px,60px); }
}
.scan-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102,126,234,0.6), rgba(118,75,162,0.6), transparent);
    z-index: 1; animation: scanDown 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102,126,234,0.4), 0 0 60px rgba(102,126,234,0.1);
}
@keyframes scanDown {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; pointer-events: none; }
.particle-dot { width: 3px; height: 3px; background: rgba(102,126,234,0.7); box-shadow: 0 0 6px rgba(102,126,234,0.5); }
.particle-glow { width: 6px; height: 6px; background: rgba(118,75,162,0.5); box-shadow: 0 0 12px rgba(118,75,162,0.4), 0 0 24px rgba(118,75,162,0.15); }
.p1 { top:12%; left:8%; animation: floatA 7s ease-in-out infinite; }
.p2 { top:35%; left:25%; animation: floatB 9s ease-in-out infinite 1s; }
.p3 { top:55%; left:65%; animation: floatA 11s ease-in-out infinite 2s; }
.p4 { top:78%; left:42%; animation: floatB 8s ease-in-out infinite 0.5s; }
.p5 { top:20%; left:78%; animation: floatA 10s ease-in-out infinite 1.5s; }
.p6 { top:65%; left:88%; animation: floatB 7.5s ease-in-out infinite 3s; }
.p7 { top:45%; left:12%; animation: floatA 8.5s ease-in-out infinite 2.5s; }
.p8 { top:88%; left:70%; animation: floatB 9.5s ease-in-out infinite 1s; }
@keyframes floatA {
    0%,100% { transform: translate(0,0) scale(1); opacity:0.6; }
    50% { transform: translate(15px,-25px) scale(1.4); opacity:1; }
}
@keyframes floatB {
    0%,100% { transform: translate(0,0) scale(1); opacity:0.5; }
    50% { transform: translate(-20px,15px) scale(1.3); opacity:0.9; }
}
.glow-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(80px); }
.glow-orb-1 {
    width: 500px; height: 500px; top: -15%; left: -10%;
    background: radial-gradient(circle, rgba(102,126,234,0.25), transparent 70%);
    animation: orbPulse 8s ease-in-out infinite;
}
.glow-orb-2 {
    width: 400px; height: 400px; bottom: -10%; right: -5%;
    background: radial-gradient(circle, rgba(118,75,162,0.2), transparent 70%);
    animation: orbPulse 10s ease-in-out infinite 2s;
}
.glow-orb-3 {
    width: 300px; height: 300px; top: 40%; left: 50%;
    background: radial-gradient(circle, rgba(72,187,120,0.1), transparent 70%);
    animation: orbPulse 12s ease-in-out infinite 4s;
}
@keyframes orbPulse {
    0%,100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}
.front-container { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; position: relative; z-index: 5; }
.nav-bar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 2rem; gap: 12px; animation: fadeSlideDown 0.6s ease-out; }
@keyframes fadeSlideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); border: 1px solid transparent; }
.nav-btn-primary { background: rgba(102,126,234,0.15); color: #a3b1f0; border-color: rgba(102,126,234,0.3); }
.nav-btn-primary:hover { background: rgba(102,126,234,0.3); border-color: rgba(102,126,234,0.5); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(102,126,234,0.2); }
.nav-btn-ghost { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }
.nav-btn-ghost:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.2); }
.hero { text-align: center; margin-bottom: 3.5rem; animation: fadeSlideUp 0.8s ease-out 0.15s both; }
@keyframes fadeSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.hero-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 1.2rem; letter-spacing: -0.5px; background: linear-gradient(135deg, #fff 0%, #a3b1f0 50%, #d4a0f5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 600px; margin: 0 auto; font-weight: 400; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 20px; font-size: 12px; background: rgba(72,187,120,0.1); color: #68d391; border: 1px solid rgba(72,187,120,0.2); margin-top: 1.2rem; font-weight: 500; }
.hero-badge .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #48bb78; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse {
    0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(72,187,120,0.5); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(72,187,120,0); }
}
.monitor-card { background: rgba(15,20,40,0.85); backdrop-filter: blur(24px); border-radius: 20px; padding: 2rem; border: 1px solid rgba(102,126,234,0.15); box-shadow: 0 0 40px rgba(102,126,234,0.05), 0 20px 60px rgba(0,0,0,0.3); position: relative; overflow: hidden; animation: fadeSlideUp 0.8s ease-out 0.3s both; }
.monitor-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(102,126,234,0.5), rgba(118,75,162,0.5), transparent); }
.monitor-card::after { content: ""; position: absolute; top: -100%; left: -100%; width: 300%; height: 300%; background: conic-gradient(from 0deg, transparent, rgba(102,126,234,0.03), transparent, rgba(118,75,162,0.03), transparent); animation: cardRotate 15s linear infinite; }
@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.card-header-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2)); display: flex; align-items: center; justify-content: center; color: #a3b1f0; font-size: 18px; border: 1px solid rgba(102,126,234,0.2); }
.card-header-text { font-size: 1.2rem; font-weight: 700; color: #e0e6f0; }
.card-header-count { font-size: 12px; color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); padding: 3px 10px; border-radius: 10px; margin-left: auto; font-weight: 500; }
.table-wrap { position: relative; z-index: 2; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.table thead th { padding: 12px 18px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); border: none; border-bottom: 1px solid rgba(102,126,234,0.1); }
.table tbody tr { transition: all 0.25s ease; background: rgba(255,255,255,0.02); border-radius: 10px; }
.table tbody tr:hover { background: rgba(102,126,234,0.08); transform: translateX(4px); }
.table tbody td { padding: 16px 18px; border: none; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 14px; color: #c5cde0; }
.status-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-up .status-dot { background: #48bb78; box-shadow: 0 0 8px rgba(72,187,120,0.6), 0 0 20px rgba(72,187,120,0.2); animation: statusPulseGreen 2s ease-in-out infinite; }
.status-up { color: #68d391; background: rgba(72,187,120,0.08); }
@keyframes statusPulseGreen {
    0%,100% { box-shadow: 0 0 8px rgba(72,187,120,0.6), 0 0 20px rgba(72,187,120,0.2); }
    50% { box-shadow: 0 0 12px rgba(72,187,120,0.8), 0 0 30px rgba(72,187,120,0.3); }
}
.status-down .status-dot { background: #fc8181; box-shadow: 0 0 8px rgba(252,129,129,0.6), 0 0 20px rgba(252,129,129,0.2); animation: statusBlink 1s ease-in-out infinite; }
.status-down { color: #fc8181; background: rgba(252,129,129,0.08); }
@keyframes statusBlink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.status-unknown .status-dot { background: #a0aec0; box-shadow: 0 0 6px rgba(160,174,192,0.3); }
.status-unknown { color: #a0aec0; background: rgba(160,174,192,0.06); }
.type-tag { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; background: rgba(102,126,234,0.1); color: #a3b1f0; border: 1px solid rgba(102,126,234,0.15); font-family: 'Courier New', monospace; }
.latency { font-family: 'Courier New', monospace; font-weight: 600; font-size: 13px; }
.latency-fast { color: #68d391; }
.latency-mid { color: #f6ad55; }
.latency-slow { color: #fc8181; }
.latency-na { color: rgba(255,255,255,0.2); }
.time-cell { color: rgba(255,255,255,0.35); font-size: 13px; font-family: 'Courier New', monospace; }
.time-cell i { margin-right: 6px; font-size: 11px; }
.unit-name { font-weight: 600; color: #e0e6f0; display: flex; align-items: center; gap: 10px; }
.unit-name i { color: #a3b1f0; font-size: 16px; }
.empty-state { text-align: center; padding: 4rem 2rem; color: rgba(255,255,255,0.25); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 16px; }
.footer-line { position: fixed; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(102,126,234,0.4), rgba(118,75,162,0.4), transparent); z-index: 10; }
.footer-line::after { content: ""; position: absolute; top: -2px; width: 80px; height: 5px; background: linear-gradient(90deg, transparent, rgba(102,126,234,0.8), transparent); border-radius: 50%; animation: footerSweep 4s ease-in-out infinite; }
@keyframes footerSweep {
    0% { left: -80px; } 50% { left: 100%; } 100% { left: -80px; }
}
#networkCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#aiRobotCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .monitor-card { padding: 1.2rem; border-radius: 14px; }
    .table thead th, .table tbody td { padding: 10px 10px; font-size: 12px; }
    .nav-bar { flex-wrap: wrap; justify-content: center; }
}
