/* ========================================
   CYBERPUNK PHONE ANALYZER - 赛博朋克风格
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --cyber-pink: #ff006e;
    --cyber-blue: #00f0ff;
    --cyber-purple: #8b00ff;
    --cyber-yellow: #ffbe0b;
    --cyber-green: #00ff41;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #00f0ff;
    --text-secondary: #a0a0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ========================================
   矩阵数字雨背景
   ======================================== */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
}

/* ========================================
   CRT屏幕效果
   ======================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 9997;
}

/* ========================================
   主容器 - 分屏布局
   ======================================== */
.cyber-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 2px;
    background: var(--cyber-pink);
}

.panel {
    background: var(--bg-dark);
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.panel-border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--cyber-blue);
    pointer-events: none;
    z-index: 1;
}

.panel-border::before,
.panel-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyber-pink);
}

.panel-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.panel-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* ========================================
   文字故障效果
   ======================================== */
.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    letter-spacing: 8px;
    animation: glitch-main 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-before 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyber-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-after 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-main {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-before {
    0% { clip: rect(30px, 9999px, 60px, 0); }
    20% { clip: rect(70px, 9999px, 110px, 0); }
    40% { clip: rect(10px, 9999px, 40px, 0); }
    60% { clip: rect(90px, 9999px, 120px, 0); }
    80% { clip: rect(50px, 9999px, 80px, 0); }
    100% { clip: rect(20px, 9999px, 50px, 0); }
}

@keyframes glitch-after {
    0% { clip: rect(65px, 9999px, 95px, 0); }
    20% { clip: rect(25px, 9999px, 55px, 0); }
    40% { clip: rect(85px, 9999px, 115px, 0); }
    60% { clip: rect(45px, 9999px, 75px, 0); }
    80% { clip: rect(105px, 9999px, 135px, 0); }
    100% { clip: rect(15px, 9999px, 45px, 0); }
}

.glitch-small {
    position: relative;
    display: inline-block;
}

.glitch-small::before,
.glitch-small::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
}

.glitch-small::before {
    left: 1px;
    text-shadow: -1px 0 var(--cyber-pink);
    animation: glitch-small-anim 2s infinite;
}

.glitch-small::after {
    left: -1px;
    text-shadow: 1px 0 var(--cyber-blue);
    animation: glitch-small-anim 2.5s infinite reverse;
}

@keyframes glitch-small-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; transform: translateX(2px); }
}

/* ========================================
   头部样式
   ======================================== */
.cyber-header {
    margin-bottom: 40px;
    text-align: center;
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--cyber-yellow);
    margin-top: 15px;
    letter-spacing: 3px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.header-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-pink), transparent);
    margin-top: 25px;
    box-shadow: 0 0 10px var(--cyber-pink);
}

/* ========================================
   系统信息
   ======================================== */
.system-info {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--cyber-blue);
    border-left: 4px solid var(--cyber-blue);
    padding: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.info-line {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.info-line:last-child {
    border-bottom: none;
}

.label {
    color: var(--cyber-pink);
    font-weight: bold;
}

.value {
    color: var(--text-primary);
}

.status-online {
    color: var(--cyber-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   终端输入框
   ======================================== */
.terminal-box {
    background: var(--bg-darker);
    border: 2px solid var(--cyber-blue);
    margin-bottom: 30px;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.2),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.terminal-header {
    background: var(--cyber-blue);
    color: var(--bg-dark);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff006e; }
.dot.yellow { background: #ffbe0b; }
.dot.green { background: #00ff41; }

.terminal-body {
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
}

.terminal-line {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terminal-line.hint {
    color: #666;
    font-size: 0.85rem;
}

.prompt {
    color: var(--cyber-green);
    margin-right: 10px;
}

.command {
    color: var(--text-secondary);
}

.input-wrapper {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    outline: none;
    padding: 5px 10px;
}

.input-wrapper input::placeholder {
    color: rgba(160, 160, 255, 0.3);
}

/* ========================================
   赛博按钮
   ======================================== */
.cyber-button {
    position: relative;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    margin: 30px 0;
}

.button-border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--cyber-pink);
    clip-path: polygon(
        0 0, calc(100% - 20px) 0, 100% 20px,
        100% 100%, 20px 100%, 0 calc(100% - 20px)
    );
    transition: all 0.3s;
}

.cyber-button:hover .button-border {
    border-color: var(--cyber-blue);
    box-shadow: 
        0 0 20px var(--cyber-blue),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.button-text {
    position: relative;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.button-text .icon {
    color: var(--cyber-pink);
    animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.button-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 0, 110, 0.1), 
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cyber-button:hover .button-glow {
    transform: translateX(100%);
}

.cyber-button:active {
    transform: scale(0.98);
}

/* ========================================
   赛博广告
   ======================================== */
.cyber-ad {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 0, 110, 0.1), 
        rgba(139, 0, 255, 0.1)
    );
    padding: 25px;
    margin: 30px 0;
    clip-path: polygon(
        0 0, calc(100% - 15px) 0, 100% 15px,
        100% 100%, 15px 100%, 0 calc(100% - 15px)
    );
}

.ad-border {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        var(--cyber-pink),
        var(--cyber-purple),
        var(--cyber-blue)
    );
    opacity: 0.3;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ad-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--cyber-pink));
}

.ad-text {
    flex: 1;
}

.ad-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyber-pink);
    margin-bottom: 5px;
}

.ad-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ad-link {
    background: var(--cyber-pink);
    color: var(--bg-dark);
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
    transition: all 0.3s;
    white-space: nowrap;
}

.ad-link:hover {
    background: var(--cyber-blue);
    box-shadow: 0 0 20px var(--cyber-blue);
    transform: translateY(-2px);
}

/* ========================================
   功能模块 - 赛博风格
   ======================================== */
.features-cyber {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.feature-cyber {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 240, 255, 0.02);
    padding: 20px;
    border-left: 3px solid var(--cyber-blue);
    transition: all 0.3s;
}

.feature-cyber:hover {
    background: rgba(0, 240, 255, 0.05);
    border-left-color: var(--cyber-pink);
    transform: translateX(5px);
}

.feature-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyber-pink);
    opacity: 0.3;
    min-width: 50px;
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   右侧面板样式
   ======================================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid var(--cyber-pink);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyber-pink);
    transform: scaleX(0);
    transform-origin: left;
    animation: loadBar 2s ease-out forwards;
}

@keyframes loadBar {
    to { transform: scaleX(1); }
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyber-pink);
    margin: 10px 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   数据可视化
   ======================================== */
.data-viz {
    background: var(--bg-darker);
    border: 2px solid var(--cyber-blue);
    padding: 25px;
    margin-bottom: 30px;
}

.viz-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--cyber-blue);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.waveform {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 5px;
}

.wave-bar {
    flex: 1;
    background: linear-gradient(to top, var(--cyber-pink), var(--cyber-blue));
    animation: waveAnim 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    min-width: 8px;
}

@keyframes waveAnim {
    0%, 100% { height: 20%; }
    50% { height: 90%; }
}

/* ========================================
   系统日志
   ======================================== */
.system-log {
    background: var(--bg-darker);
    border: 2px solid var(--cyber-green);
    padding: 20px;
    margin-bottom: 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
}

.log-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--cyber-green);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.log-content {
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    margin: 8px 0;
    color: var(--text-secondary);
    padding: 5px;
    transition: all 0.3s;
}

.log-entry.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--cyber-green);
}

.log-time {
    color: var(--cyber-yellow);
    margin-right: 10px;
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* ========================================
   免责声明 - 赛博风格
   ======================================== */
.disclaimer-cyber {
    position: relative;
    background: rgba(255, 190, 11, 0.05);
    border: 2px dashed var(--cyber-yellow);
    padding: 20px;
    clip-path: polygon(
        0 0, calc(100% - 10px) 0, 100% 10px,
        100% 100%, 10px 100%, 0 calc(100% - 10px)
    );
}

.disclaimer-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--cyber-yellow);
    opacity: 0.3;
    animation: borderBlink 2s infinite;
}

@keyframes borderBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.disclaimer-content {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.disclaimer-icon {
    font-size: 2rem;
    color: var(--cyber-yellow);
    animation: warningPulse 1.5s infinite;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.disclaimer-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.disclaimer-text strong {
    color: var(--cyber-yellow);
    font-family: 'Orbitron', sans-serif;
}

/* ========================================
   底部信息栏
   ======================================== */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    border-top: 2px solid var(--cyber-blue);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.85rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-label {
    color: var(--cyber-pink);
    font-weight: bold;
}

.footer-value {
    color: var(--text-secondary);
}

.status-pulse {
    color: var(--cyber-green);
    animation: pulse 2s infinite;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .cyber-container {
        grid-template-columns: 1fr;
    }
    
    .panel {
        padding: 30px 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
        letter-spacing: 3px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .panel {
        padding: 20px 15px;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-link {
        width: 100%;
        text-align: center;
    }
    
    .footer-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
}

/* ========================================
   滚动条样式
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid var(--cyber-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--cyber-pink);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-blue);
}
