@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --accent-purple: #7000ff;
    --bg-dark: #00050a;
    --card-bg: rgba(6, 18, 38, 0.7);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: #e0f2ff;
    background-image: 
        radial-gradient(circle at center, transparent 30%, #00050a 120%),
        radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    overflow-x: hidden;
}

/* 科技感卡片 */
.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 242, 254, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
}

/* 四角高亮装饰 */
.glass-card::before, .glass-card::after, 
.card-corner::before, .card-corner::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-cyan);
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

.glass-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.glass-card::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.card-corner::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.card-corner::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.text-tech { font-family: 'Share Tech Mono', monospace; }

.glow-text {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

/* 顶部装饰条 */
.header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.5), transparent);
    position: relative;
    width: 80%;
    margin: 0 auto;
}
.header-line::after {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 4px;
    background: var(--primary-cyan);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

/* 标签页样式 */
.tab-active {
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.3) 0%, rgba(0, 242, 254, 0.05) 100%);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 10px rgba(0, 242, 254, 0.1);
    transform: skewX(-15deg);
}
.tab-active i, .tab-active span { transform: skewX(15deg); display: inline-block; }

.tab-inactive {
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.1);
    color: #5d7d8f;
    transform: skewX(-15deg);
}
.tab-inactive i, .tab-inactive span { transform: skewX(15deg); display: inline-block; }
.tab-inactive:hover {
    border-color: rgba(0, 242, 254, 0.5);
    color: #a0d0e0;
}

tr:hover { background: rgba(0, 242, 254, 0.05); }

/* 新增动画效果 */
.reveal-animation {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-loading-bar {
    height: 4px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 5px 0;
    width: 150px;
}

.terminal-loading-progress {
    height: 100%;
    background: var(--primary-cyan);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-dots:after {
    content: ' .';
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ' .'; }
    40% { content: ' ..'; }
    60% { content: ' ...'; }
    80%, 100% { content: ''; }
}

/* AI Assistant Widget */
#ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.ai-chat-bubble {
    background: rgba(0, 13, 26, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.1);
    width: 340px;
    height: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(25px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.ai-chat-bubble.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

/* 模拟器滑块样式 */
input[type=range] {
    height: 4px;
    -webkit-appearance: none;
    width: 100%;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-cyan);
}
/* Terminal Styles */
.terminal-window {
    background: #000d1a;
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    font-family: 'Share Tech Mono', monospace;
    width: 800px;
    max-width: 95vw;
}
.terminal-header {
    background: rgba(0, 242, 254, 0.1);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.terminal-body {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    color: #00f2fe;
    font-size: 13px;
    line-height: 1.6;
}
.terminal-prompt { color: #4facfe; margin-right: 10px; }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--primary-cyan);
    animation: blink 1s infinite;
    vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 科技感背景动画 */
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.perspective-container::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50%;
    width: 200%;
    height: 100vh;
    background: 
        linear-gradient(rgba(0, 242, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 3s linear infinite;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 40%);
}

.perspective-container {
    perspective: 1200px;
    overflow: hidden;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.rotate-y-left {
    transform: rotateY(35deg) scale(0.9) translateZ(-100px) translateX(-20px);
    transform-origin: right center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(0, 242, 254, 0.3);
}

.rotate-y-right {
    transform: rotateY(-35deg) scale(0.9) translateZ(-100px) translateX(20px);
    transform-origin: left center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 242, 254, 0.3);
}

.rotate-y-left:hover, .rotate-y-right:hover {
    transform: rotateY(0) scale(1) translateZ(0);
    z-index: 10;
    box-shadow: 0 0 80px rgba(0, 242, 254, 0.5);
    border-color: var(--primary-cyan);
}

.center-panel {
    z-index: 5;
    transform: scale(0.98) translateZ(80px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 100px rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.center-panel:hover {
    transform: scale(1) translateZ(100px);
}

/* HUD 装饰线 */
.glass-card {
    background: rgba(6, 18, 38, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.15);
    clip-path: polygon(
        0 10px, 10px 0, 
        100% 0, 100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0 100%
    );
}

/* 增强的高亮装饰 */
.glass-card::before { 
    top: 0; left: 0; width: 20px; height: 2px; 
    background: var(--primary-cyan); 
    border: none;
    box-shadow: 0 0 10px var(--primary-cyan);
}
.glass-card::after { 
    bottom: 0; right: 0; width: 20px; height: 2px; 
    background: var(--primary-cyan); 
    border: none;
    box-shadow: 0 0 10px var(--primary-cyan);
}
.card-corner::before { 
    top: 0; right: 0; width: 2px; height: 20px; 
    background: var(--primary-cyan); 
    border: none;
    box-shadow: 0 0 10px var(--primary-cyan);
}
.card-corner::after { 
    bottom: 0; left: 0; width: 2px; height: 20px; 
    background: var(--primary-cyan); 
    border: none;
    box-shadow: 0 0 10px var(--primary-cyan);
}
/* Simulator Panel Enhancement */
.simulator-panel {
    background: linear-gradient(180deg, rgba(6, 18, 38, 0.9) 0%, rgba(0, 5, 10, 0.95) 100%);
    border-top: 1px solid var(--primary-cyan);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(25deg) translateY(-20px) scale(0.95);
    transform-origin: top center;
    transition: all 0.3s ease;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.simulator-panel:hover {
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
    background: rgba(6, 18, 38, 0.95);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
}

/* Loading Progress */
.progress-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.loader-ring {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(0, 242, 254, 0.1);
    border-top: 4px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px var(--primary-cyan));
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin 3s linear infinite; }

/* Custom Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.1);
    border-radius: 1px;
    transition: background 0.3s ease;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.8);
}

/* For Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.1) transparent;
}
