/* 基础重置和字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #001b19;
    color: #00f2ff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 赛博背景效果 */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 网格线效果 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 255, 251, 0.114) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 255, 251, 0.286) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* 发光点效果 */
.glowing-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.glowing-dots::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 238, 255, 0.3) 0px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(0, 238, 255, 0.2) 0px, transparent 3px),
        radial-gradient(circle at 40% 60%, rgba(0, 238, 255, 0.25) 0px, transparent 4px);
    animation: dotsPulse 8s ease-in-out infinite;
}

@keyframes dotsPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 内容区域 */
.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
}

/* 头部样式 */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* border: 1px solid #00ff41;
    border-radius: 4px; */
    /* background: rgba(10, 10, 10, 0.8); */
    /* box-shadow: 0 0 20px rgba(0, 255, 65, 0.3); */
    margin-bottom: 3rem;
}

.cyber-title {
    font-size: 2.5rem;
    text-shadow: 0 0 10px #00f2ff, 0 0 20px #00f2ff;
    letter-spacing: 2px;
}

.cyber-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #00f2ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #00f2ff;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(0, 225, 255, 0.1);
    box-shadow: 0 0 15px #00f2ff;
}

/* 内容区域样式 */
.cyber-section {
    /* background: rgba(20, 20, 20, 0.9);
    border: 1px solid #00f2ff;
    border-radius: 8px; */
    padding: 2rem;
    margin: 2rem 0;
    /* box-shadow: 0 0 25px rgba(0, 255, 65, 0.2); */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px #00f2ff;
    letter-spacing: 1px;
}

.cyber-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cdfdff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cyber-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cyber-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cyber-title {
        font-size: 2rem;
    }
    
    .content {
        padding: 1rem;
    }
}

/* AI对话界面样式 */
.ai-chat-container {
    max-width: 1500px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(0, 40, 42, 0.95), rgba(0, 70, 72, 0.9));
    border: 2px solid rgba(0, 242, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(10px);
}

.chat-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chat-title {
    font-size: 1.8rem;
    color: #00f2ff;
    text-shadow: 0 0 10px #00f2ff;
    margin: 0;
}

.chat-messages {
    height: 600px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 69, 74, 0.6);
    border: 1px solid #00f2ff;
    border-radius: 6px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(135deg, #00f2ff, #0099ff);
    color: #000;
    margin-left: auto;
    text-align: right;
    border: 1px solid rgba(0, 242, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
}

.ai-message {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    border: 1px solid rgba(0, 242, 255, 0.3);
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.2);
    transition: all 0.3s ease;
}

.message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.4);
}

.chat-input-container {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    justify-content: space-between;
}

.chat-input {
    flex: 1;
    padding: 1.2rem 1.4rem;
    border: 2px solid rgba(0, 242, 255, 0.5);
    border-radius: 12px;
    background: rgba(0, 39, 41, 0.9);
    color: #00f2ff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    resize: none;
    min-height: 130px;
    width: 1430px;
    font-family: inherit;
    line-height: 1.5;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
    border-color: #00f2ff;
    background: rgba(0, 29, 31, 0.95);
}

.chat-input::placeholder {
    color: rgba(0, 242, 255, 0.6);
}

.send-button {
    padding: 1.2rem 2.2rem;
    background: linear-gradient(135deg, #00f2ff, #0066ff);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 1430px;
    height: 80px;
    font-size: 1.1rem;
} 

.send-button:hover {
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00e6ff, #0055ff);
}

.send-button:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 51, 57, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #00f2ff;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #0099ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-chat-container {
        margin: 1rem;
        padding: 1rem;
    }

    .chat-messages {
        height: 400px;
    }

    .message {
        max-width: 90%;
    }

    .chat-input-container {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-input {
        min-height: 100px;
    }

    .send-button {
        height: 60px;
        margin-top: 1rem;
    }
}