/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #0f1621;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 容器样式 */
.container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 0 auto;
    padding: 2rem;
    z-index: 2;
}

/* 控制面板样式 */
.controls {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(16, 26, 44, 0.85);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #00a8ff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.control-group {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

label {
    font-family: 'Orbitron', sans-serif;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #00a8ff;
    min-width: 100px;
}

input[type="text"] {
    background: rgba(16, 26, 44, 0.5);
    border: 1px solid #00a8ff;
    color: #fff;
    padding: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    border-radius: 3px;
    outline: none;
    width: 150px;
}

input[type="range"] {
    width: 150px;
    accent-color: #00a8ff;
}

/* 坐标系样式 */
.coordinate-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 网格线样式 */
.grid-line {
    position: absolute;
    background-color: rgba(0, 168, 255, 0.1);
}

.grid-line-x {
    width: 100%;
    height: 1px;
}

.grid-line-y {
    height: 100%;
    width: 1px;
}

/* 坐标轴样式 */
.axis {
    position: absolute;
    background-color: #00a8ff;
    box-shadow: 0 0 10px #00a8ff, 0 0 20px rgba(0, 168, 255, 0.5);
    z-index: 1;
}

.x-axis {
    width: 90%;
    height: 2px;
    bottom: 50%;
}

.y-axis {
    height: 90%;
    width: 2px;
    left: 50%;
}

/* 坐标轴标签样式 */
.axis-label {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    color: #00a8ff;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.7);
    z-index: 2;
}

.x-label {
    bottom: calc(50% - 30px);
    right: 5%;
}

.y-label {
    top: 5%;
    left: calc(50% + 10px);
    transform: rotate(90deg);
    transform-origin: left bottom;
}

/* 箭头样式 */
.arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 2;
}

.x-arrow {
    right: 5%;
    bottom: calc(50% - 5px);
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent #00a8ff;
    filter: drop-shadow(0 0 2px #00a8ff);
}

.y-arrow {
    left: calc(50% - 5px);
    top: 5%;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #00a8ff transparent;
    filter: drop-shadow(0 0 2px #00a8ff);
}

/* 高亮效果 */
.axis:hover {
    box-shadow: 0 0 15px #00a8ff, 0 0 30px rgba(0, 168, 255, 0.7);
}

/* 科技边框装饰 */
.tech-border {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #00a8ff;
    z-index: 3;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* 粒子背景容器 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .controls {
        width: 100%;
        left: 0;
        top: 0;
        border-radius: 0;
    }
    
    .axis-label {
        font-size: 0.8rem;
    }
    
    input[type="text"] {
        width: 100px;
    }
    
    input[type="range"] {
        width: 100px;
    }
} 