/* 通用样式 */
body {
    text-align: center;
}

textarea {
    height: 200px;

    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    background-color: #101010;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

/* AI 神经网络效果样式 */
body {
    overflow: hidden;
    background: #000;
    font-family: 'Arial', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #000000, #0a192f);
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    font-size: 2.5em;
    margin-top: 40px;
    letter-spacing: 1px;
}

textarea, p {
    position: relative;
    z-index: 1;
    color: #fff;
}

textarea {
    background-color: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    width: 92%;
}

textarea:focus {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    outline: none;
}

/* 聊天容器样式 */
.chat-container {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    position: relative;
    z-index: 1;
}

/* PC端适配 */
@media screen and (min-width: 769px) {
    body {
        font-size: 16px;
        line-height: 1.6;
        max-width: 1200px;
        margin: 0 auto;
    }

    .container {
        width: 80%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .chat-container {
        width: 80%;
        max-width: 800px;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    button {
        padding: 12px 24px;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
        padding: 0;
        margin: 0;
    }

    h1 {
        font-size: 1.8em;
        margin-top: 20px;
    }

    .chat-container {
        width: 95%;
        margin: 20px auto;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    nav {
        display: flex;
        flex-direction: column;
    }

    button {
        padding: 10px;
        font-size: 14px;
    }
}