/* ============================================
   Hero Slider - 全新稳定版本
   使用标准CSS技术，兼容性好，性能稳定
   动画效果明显流畅，UI界面现代化
   ============================================ */

/* ============================================
   FOUC Prevention / Layout Stability
   Prevents slides from stacking vertically before JS init
   ============================================ */
/* FOUC Fix: Hide non-active slides before initialization */
.tiny-slider-inner:not(.tns-slider) > div:not(:first-child) {
    display: none !important;
}
/* Ensure container has height/structure even before init */
.tiny-slider-inner:not(.tns-slider) {
    display: block;
    overflow: hidden;
}

/* ============================================
   基础容器样式
   ============================================ */
.hero-visual {
    position: relative;
    width: 100%;
    height: 380px;
    min-height: 380px;
    border-radius: 16px;
    overflow: visible;
    box-sizing: border-box;
    background: transparent;
}

.visual-infra,
.visual-hk,
.visual-bt {
    background: transparent;
    padding: 0;
    position: relative;
    height: 380px;
    min-height: 380px;
    border-radius: 16px;
}

/* ============================================
   第一页：NVMe SSD 面板 - 重构版 (Constellation Layout)
   ============================================ */

/* 容器 - 保持相对定位 */
.visual-infra {
    position: relative;
    height: 380px;
    width: 100%;
    /* 使用 Flex 居中，作为定位基准 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 核心定位系统：所有元素相对于中心点定位，确保在大屏小屏下布局一致，不重叠 */
.server-card-group {
    position: relative;
    width: 10px; /* 虚拟中心点 */
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === 主卡片 (深色) === */
.server-card-main {
    position: absolute;
    width: 280px;
    height: 180px; /* 减小高度，因为移除了终端 */
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    /* 居中定位 */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: main-card-enter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes main-card-enter {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 主卡片 - 顶部标签栏 */
.server-card-header {
    display: flex;
    gap: 10px;
}

.sc-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.sc-badge-teal {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* 主卡片 - 磁盘列表 */
.server-disk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.disk-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.disk-id {
    font-family: 'Courier New', monospace;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.disk-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.disk-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px;
    width: 0; /* 动画起始 */
    animation: disk-fill-anim 1.5s ease-out forwards;
}

@keyframes disk-fill-anim {
    to { width: var(--w); }
}

.disk-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation: blink 2s infinite;
}

/* 主卡片 - 底部终端 */
.server-terminal-mini {
    background: #ffffff;
    border-radius: 12px;
    /* padding: 12px 16px;  移除统一 padding，改用内部结构控制 */
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #64748b; /* 灰色文字，适合白底 */
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    
    /* 浮动定位属性 */
    position: absolute;
    z-index: 15;
    min-width: 200px;
    /* 初始居中，通过 margin 偏移 */
    left: 50%;
    top: 50%;
    opacity: 0;
    animation: float-card-enter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards, infra-float 6s ease-in-out 1.3s infinite;
    overflow: hidden; /* 确保圆角不被子元素溢出 */
}

.term-header {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc; /* 浅灰背景区分标题栏 */
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.term-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.term-body {
    padding: 12px;
}

.term-line {
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 4px;
    opacity: 1; /* 增强对比度 */
}

.term-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #64748b;
    margin-left: 2px;
    vertical-align: middle;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.text-green { color: #16a34a; } /* 更深的绿色，适合白底 */

/* === 悬浮卡片 (白色) === */
.server-card-float {
    position: absolute;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    min-width: 160px;
    /* 初始居中，通过 margin 偏移 */
    left: 50%;
    top: 50%;
    opacity: 0;
    animation: float-card-enter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards, infra-float 6s ease-in-out 1.1s infinite;
}

@keyframes float-card-enter {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes infra-float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px) rotate(1deg);
    }
}

/* 位置偏移 - 绝对可靠的相对中心定位 */
.float-pos-1 {
    /* 右上 */
    margin-left: 210px; /* 增加偏移，避免重叠 */
    margin-top: -135px;
}

.float-pos-2 {
    /* 左下 */
    margin-left: -210px; /* 增加偏移，避免重叠 */
    margin-top: 115px;
}

.float-pos-3 {
    /* 右下 - 终端 */
    margin-left: 100px; /* 中心向右 100px */
    margin-top: 135px;  /* 中心向下 135px */
}

.sc-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icon-box-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.icon-box-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.sc-content h6 {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.sc-content .sc-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.sc-value.text-green { color: #16a34a; }
.sc-value.text-blue { color: #2563eb; }

/* ============================================
   第二页：HK CN2 GIA 服务器机架
   ============================================ */

/* 服务器机架 - 紫色主题 */
.hero-server-rack {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 160px;
    height: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 20px rgba(139, 92, 246, 0.2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
    transform: translate(-50%, -50%);
    animation: rack-enter-3d 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes rack-enter-3d {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85) rotateY(-15deg) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg) rotateX(0deg);
    }
}

.rack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rack-header .badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    font-weight: 700;
    border-radius: 6px;
}

.rack-slots {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rack-slot {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 8px;
    color: #cbd5e1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rack-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.rack-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.9),
        0 0 30px rgba(139, 92, 246, 0.5),
        0 0 45px rgba(139, 92, 246, 0.2);
    animation: light-breathe-intense 2s ease-in-out infinite;
    position: relative;
}

.rack-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #8b5cf6;
    transform: translate(-50%, -50%);
    animation: light-ripple-expand 2s ease-out infinite;
}

.rack-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #a78bfa;
    transform: translate(-50%, -50%);
    animation: light-ripple-expand 2s ease-out infinite;
    animation-delay: 0.3s;
}

.rack-slot:nth-child(1) .rack-light {
    animation-delay: 0s;
}

.rack-slot:nth-child(1) .rack-light::before,
.rack-slot:nth-child(1) .rack-light::after {
    animation-delay: 0s, 0.3s;
}

.rack-slot:nth-child(2) .rack-light {
    animation-delay: 0.5s;
}

.rack-slot:nth-child(2) .rack-light::before,
.rack-slot:nth-child(2) .rack-light::after {
    animation-delay: 0.5s, 0.8s;
}

.rack-slot:nth-child(3) .rack-light {
    animation-delay: 1s;
}

.rack-slot:nth-child(3) .rack-light::before,
.rack-slot:nth-child(3) .rack-light::after {
    animation-delay: 1s, 1.3s;
}

@keyframes light-breathe-intense {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
        box-shadow: 
            0 0 15px rgba(139, 92, 246, 0.9),
            0 0 30px rgba(139, 92, 246, 0.5),
            0 0 45px rgba(139, 92, 246, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.6);
        box-shadow: 
            0 0 25px rgba(139, 92, 246, 1),
            0 0 50px rgba(139, 92, 246, 0.7),
            0 0 75px rgba(139, 92, 246, 0.4);
    }
}

@keyframes light-ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* Hero Card 基础样式 */
.hero-card {
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
    min-width: 160px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero-card .card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-card .card-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card .card-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

/* 浮动卡片动画 - 第二页 */
.visual-hk .hero-card {
    animation: card-float-smooth-hk 6s ease-in-out infinite;
}

.visual-hk .card-latency {
    top: 30px;
    right: 10px;
    animation: card-float-smooth-hk 5s ease-in-out infinite,
                card-glow-warm 3s ease-in-out infinite;
}

.visual-hk .card-speed {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    padding: 14px;
    animation: card-float-smooth-speed-hk 6s ease-in-out infinite,
                card-glow-purple 3.5s ease-in-out infinite;
    animation-delay: 1s, 0s;
}

.visual-hk .card-status {
    top: 40px;
    left: 60px;
    animation: card-float-smooth-hk 5.5s ease-in-out infinite,
                card-glow-pink 4s ease-in-out infinite;
    animation-delay: 1.5s, 0s;
}

.visual-hk .card-region {
    bottom: 40px;
    left: -10px;
    animation: card-float-smooth-hk 7s ease-in-out infinite,
                card-glow-cyan 4s ease-in-out infinite;
    animation-delay: 0.5s, 1s;
}

.card-status .card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
    animation: status-dot-pulse-fast 1.5s ease-in-out infinite;
}

@keyframes status-dot-pulse-fast {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.4);
    }
}

@keyframes card-float-smooth-hk {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-15px) rotate(2deg) scale(1.03);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg) scale(1.01);
    }
}

.visual-hk .card-speed {
    animation-name: card-float-smooth-speed-hk, card-glow-purple;
}

@keyframes card-float-smooth-speed-hk {
    0%, 100% {
        transform: translateY(-50%) translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-50%) translateY(-15px) rotate(2deg) scale(1.03);
    }
    66% {
        transform: translateY(-50%) translateY(-8px) rotate(-1deg) scale(1.01);
    }
}

@keyframes card-glow-warm {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 18px 50px rgba(245, 158, 11, 0.25);
    }
}

@keyframes card-glow-purple {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 18px 50px rgba(139, 92, 246, 0.3);
    }
}

@keyframes card-glow-pink {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 18px 50px rgba(236, 72, 153, 0.25);
    }
}

@keyframes card-glow-cyan {
    0%, 100% {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 18px 50px rgba(6, 182, 212, 0.25);
    }
}

.visual-hk .card-icon {
    animation: icon-bounce-hk 2s ease-in-out infinite;
}

@keyframes icon-bounce-hk {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* ============================================
   第三页：宝塔面板 - 绿色主题
   ============================================ */

/* 宝塔面板 */
.hero-bt-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: translate(-50%, -50%);
    animation: bt-panel-enter-smooth 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes bt-panel-enter-smooth {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(20px) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0) rotateX(0deg);
    }
}

.bt-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    border-radius: 10px;
    color: #22c55e;
    font-size: 1.1rem;
    animation: server-icon-rotate-bt 4.5s ease-in-out infinite;
}

@keyframes server-icon-rotate-bt {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-6deg) scale(1.08);
    }
    75% {
        transform: rotate(6deg) scale(1.08);
    }
}

.bt-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.bt-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.monitor-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-item .label {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.monitor-item .bar-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.monitor-item .bar-fill {
    height: 100%;
    border-radius: 6px;
    transform-origin: left center;
    position: relative;
    overflow: hidden;
    animation: bar-fill-animate-bt 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
                bar-pulse-bt 2.5s ease-in-out infinite;
    transform: scaleX(0);
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.monitor-item:nth-child(1) .bar-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    animation-delay: 0.4s, 2.2s;
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.monitor-item:nth-child(2) .bar-fill {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
    animation-delay: 0.6s, 2.4s;
    box-shadow: 
        0 0 10px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.monitor-item:nth-child(3) .bar-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    animation-delay: 0.8s, 2.6s;
    box-shadow: 
        0 0 10px rgba(245, 158, 11, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes bar-fill-animate-bt {
    0% {
        transform: scaleX(0);
        opacity: 0.8;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes bar-pulse-bt {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(59, 130, 246, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        opacity: 0.95;
    }
}

.monitor-item:nth-child(2) .bar-fill {
    animation-name: bar-fill-animate-bt, bar-pulse-green-bt;
}

.monitor-item:nth-child(3) .bar-fill {
    animation-name: bar-fill-animate-bt, bar-pulse-orange-bt;
}

@keyframes bar-pulse-green-bt {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(34, 197, 94, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 
            0 0 20px rgba(34, 197, 94, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        opacity: 0.95;
    }
}

@keyframes bar-pulse-orange-bt {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(245, 158, 11, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        opacity: 1;
    }
    50% {
        box-shadow: 
            0 0 20px rgba(245, 158, 11, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        opacity: 0.95;
    }
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    animation: bar-shine-sweep 2.5s ease-in-out infinite;
}

@keyframes bar-shine-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 第三页浮动卡片 */
.visual-bt .hero-card {
    animation: bt-card-float-smooth 5.5s ease-in-out infinite;
}

.visual-bt .card-waf {
    bottom: -10px;
    left: -40px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(34, 197, 94, 0.2);
    animation: bt-card-float-smooth 6s ease-in-out infinite,
                bt-card-glow-green 3.5s ease-in-out infinite;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(34, 197, 94, 0.1);
}

.card-waf .card-header-sm {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.waf-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.waf-stat .count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.waf-stat .desc {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.visual-bt .card-cmd-float {
    top: 20px;
    right: -50px;
    background: #ffffff;
    color: #1e293b;
    font-family: 'Courier New', 'Consolas', monospace;
    padding: 16px 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    min-width: 240px;
    animation: bt-card-float-smooth 5s ease-in-out infinite,
                bt-card-glow-green 3s ease-in-out infinite;
    animation-delay: 0.6s, 0s;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(34, 197, 94, 0.1);
}

.card-cmd-float .cmd-line {
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: #1e293b;
    font-weight: 600;
}

.card-cmd-float .cmd-result {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes bt-card-float-smooth {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-8px) translateX(3px);
    }
}

@keyframes bt-card-glow-green {
    0%, 100% {
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 
            0 18px 50px rgba(34, 197, 94, 0.25),
            0 0 0 1px rgba(34, 197, 94, 0.2);
    }
}



/* ============================================
   性能优化
   ============================================ */
.nvme-main-panel,
.card-network-uptime,
.card-ddos-protection,
.hero-server-rack,
.hero-bt-panel,
.hero-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .hero-visual {
        height: 320px;
        min-height: 320px;
    }
    
    .nvme-main-panel {
        width: 300px;
        padding: 16px;
    }
    
    .card-network-uptime,
    .card-ddos-protection {
        min-width: 170px;
        padding: 14px;
    }
    
    .hero-server-rack {
        width: 140px;
        height: 240px;
    }
    
    .hero-bt-panel {
        width: 260px;
    }
}

@media (max-width: 991px) {
    .hero-visual {
        height: 300px;
        min-height: 300px;
    }
    
    .nvme-main-panel {
        width: 280px;
        padding: 14px;
    }
    
    .card-network-uptime {
        top: 10px;
        right: 10px;
        min-width: 150px;
    }
    
    .card-ddos-protection {
        bottom: 10px;
        left: 10px;
        min-width: 150px;
    }
}

/* ============================================
   可访问性支持
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .nvme-main-panel,
    .card-network-uptime,
    .card-ddos-protection,
    .hero-server-rack,
    .hero-bt-panel,
    .hero-card,
    .rack-dot,
    .rack-light,
    .nvme-progress-fill,
    .bar-fill,
    .nvme-tag,
    .card-icon,
    .bt-logo {
        animation: none !important;
    }
}

