/* system-style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Orbitron', 'Rajdhani', sans-serif;
}

body {
    background: #0a0a16;
    color: #e0e0ff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.desktop {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 背景效果 */
.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 100, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 100, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* 顶部状态栏 */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 15, 35, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
}

.time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff;
    letter-spacing: 2px;
}

.date {
    font-size: 14px;
    color: #a0a0ff;
    margin-top: 2px;
}

.system-status {
    display: flex;
    gap: 25px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(0, 50, 100, 0.3);
    border: 1px solid rgba(0, 150, 255, 0.2);
}

.status-item i {
    color: #00f3ff;
}

/* 系统监视器 */
.system-monitor {
    position: absolute;
    bottom: 100px;
    right: 30px;
    width: 200px;
    background: rgba(10, 20, 40, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 150, 255, 0.2);
    z-index: 5;
    backdrop-filter: blur(5px);
}

.monitor-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #a0a0ff;
    font-size: 16px;
}

.monitor-title i {
    color: #ff9900;
}

.monitor-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-row span {
    font-size: 14px;
    color: #a0a0ff;
}

.data-value {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 60%;
}

.data-bar {
    height: 8px;
    background: linear-gradient(90deg, #0066ff, #00ffaa);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.data-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
    background: rgba(255, 255, 255, 0.5);
    animation: barGlow 2s infinite linear;
}

@keyframes barGlow {
    0% { left: -20px; }
    100% { left: 100%; }
}

.data-value span {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    min-width: 40px;
    text-align: right;
}

/* 任务栏 */
.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 15, 35, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 200, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.start-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066ff, #ff00ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
}

.start-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.8);
}

.taskbar-items {
    display: flex;
    gap: 10px;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 30, 60, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.taskbar-item.active {
    background: rgba(0, 100, 255, 0.3);
    border-color: #00f3ff;
}

.taskbar-item:hover {
    background: rgba(0, 100, 255, 0.4);
}

.taskbar-item i {
    color: #00f3ff;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 30, 60, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    cursor: pointer;
    font-size: 18px;
    color: #ff9900;
    transition: all 0.3s;
}

.notification:hover {
    background: rgba(0, 100, 255, 0.4);
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(0, 30, 60, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 150, 255, 0.2);
}

.user i {
    color: #00ffaa;
}

/* 电源菜单 */
.power-menu {
    position: absolute;
    bottom: 0px;
    right: 5px;
    z-index: 11;
}

.power-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff3366, #ff00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    color: white;
}

.power-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

.power-options {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.power-options.show {
    display: block;
}

.power-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.power-option:hover {
    background: rgba(255, 0, 255, 0.2);
}

.power-option i {
    color: #ff00ff;
    width: 20px;
}

/* 滚动条样式 */
.icon-area::-webkit-scrollbar {
    width: 8px;
}

.icon-area::-webkit-scrollbar-track {
    background: rgba(0, 30, 60, 0.3);
    border-radius: 4px;
}

.icon-area::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0066ff, #00ffaa);
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .icon-area {
        right: 350px;
    }
}

@media (max-width: 992px) {
    .energy-indicator, .system-monitor {
        position: relative;
        top: auto;
        right: auto;
        width: calc(50% - 20px);
        margin: 20px 10px;
        float: left;
    }
    
    .icon-area {
        clear: both;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        height: 400px;
        margin: 20px;
    }
}

/* 卫星控制盘按钮样式 */
.satellite-control-container {
    position: fixed;
    bottom: 5px;
    left: 280px;
    z-index: 15;
    display: inline-block;
    text-align: center;
}

.satellite-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 45px;
    background: linear-gradient(135deg, rgba(102, 117, 120, 0.9) 0%, rgba(9, 9, 121, 0.9) 50%, rgba(2, 0, 36, 0.9) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: 'Segoe UI', 'Orbitron', 'Arial', sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: #00f3ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 10px rgba(0, 212, 255, 0.7),
        0 0 20px rgba(0, 150, 255, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding: 0 5px;
    gap: 4px;
}

/* 火箭图标样式 */
.rocket-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    transition: transform 0.5s ease;
}

.rocket-icon svg {
    width: 100%;
    height: 100%;
    fill: #00f3ff;
    filter: drop-shadow(0 0 3px rgba(0, 243, 255, 0.8));
}

/* 按钮文字样式 */
.btn-text {
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.8);
}

/* 脉冲光环效果 */
.pulse-ring {
    position: absolute;
    width: 70px;
    height: 30px;
    border: 1px solid rgba(0, 212, 255, 0.6);
    border-radius: 15px;
    opacity: 0;
    animation: pulse 3s infinite;
}

/* 悬停发光效果 */
.hover-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 10px;
    pointer-events: none;
}

/* 悬停效果 */
.satellite-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.9),
        0 0 30px rgba(0, 150, 255, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.satellite-control-btn:hover .rocket-icon {
    transform: translateY(-2px);
}

.satellite-control-btn:hover .rocket-icon svg {
    fill: #ffffff;
}

.satellite-control-btn:hover .hover-glow {
    opacity: 1;
}

/* 点击效果 */
.satellite-control-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 5px rgba(0, 212, 255, 0.9),
        0 0 10px rgba(0, 150, 255, 0.7),
        inset 0 0 10px rgba(255, 255, 255, 0.4);
    transition: all 0.1s ease;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

/* 未来科技感加载动画（点击时） */
@keyframes launch {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-40px) scale(1.5);
        opacity: 0;
    }
}

/* 火箭发射动画类 */
.rocket-launch {
    animation: launch 0.8s forwards;
}
/* ========== 响应式优化：右侧大模块缩小并下移 ========== */
@media (max-width: 768px) {
    /* 能量指示器、系统监视器、卫星控制盘调整为全宽，清除浮动，并增加上边距 */
    .energy-indicator,
    .system-monitor,
    .satellite-control-container {
        position: relative;      /* 脱离固定定位，回归文档流 */
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;             /* 占满宽度 */
        max-width: 100%;
        margin: 20px 0;          /* 上下间距，确保位于图标网格下方 */
        float: none;             /* 清除可能存在的浮动 */
        clear: both;             /* 避免与上方元素纠缠 */
        box-sizing: border-box;
    }

    /* 卫星控制盘按钮适当放大，方便触摸 */
    .satellite-control-btn {
        width: auto;
        min-width: 160px;
        padding: 10px 20px;
        font-size: 14px;
        gap: 8px;
    }

    /* 能量指示器内部紧凑 */
    .energy-indicator {
        padding: 15px;
    }

    .indicator-header h3 {
        font-size: 16px;
    }

    .energy-level {
        font-size: 22px;
    }

    .stat strong {
        font-size: 14px;
    }

    /* 系统监视器内部紧凑 */
    .system-monitor {
        padding: 15px;
    }

    .monitor-title {
        font-size: 15px;
    }

    .data-row span {
        font-size: 13px;
    }

    .data-value span {
        font-size: 12px;
    }

    /* 能量条高度稍减 */
    .energy-bar {
        height: 16px;
    }

    .data-bar {
        height: 6px;
    }
}

/* 更小屏幕（手机）进一步优化 */
@media (max-width: 480px) {
    .energy-indicator,
    .system-monitor,
    .satellite-control-container {
        margin: 15px 0;          /* 减少上下边距 */
    }

    .energy-indicator {
        padding: 12px;
    }

    .indicator-header h3 {
        font-size: 15px;
    }

    .energy-level {
        font-size: 20px;
    }

    .stat strong {
        font-size: 13px;
    }

    .system-monitor {
        padding: 12px;
    }

    .monitor-title {
        font-size: 14px;
    }

    .data-row span {
        font-size: 12px;
    }

    .satellite-control-btn {
        min-width: 140px;
        padding: 8px 16px;
        font-size: 13px;
    }
}