:root {
    --neon: #00f2ff;
    --bg-dark: #020810;
}

body {
    margin: 0; background: var(--bg-dark); color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif; overflow-x: hidden;
}

#mathCanvas { position: fixed; top: 0; left: 0; z-index: -1; }

header { padding: 40px; }
.user-profile { display: flex; align-items: center; gap: 30px; }

.avatar {
    width: 110px; height: 110px; border-radius: 12px;
    border: 2px solid var(--neon); object-fit: cover;
    transition: 0.5s; cursor: pointer;
}
.avatar:hover { transform: rotate(5deg) scale(1.1); }

.info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; padding: 0 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px; border-radius: 15px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(5px);
}

.info-card h3 { color: var(--neon); margin-bottom: 12px; font-size: 1rem; }
.info-card p { 
    margin: 8px 0; font-size: 0.95rem; line-height: 1.6;
    transition: 0.3s; cursor: default;
}

/* 文字滑鼠反應 */
.info-card p:hover {
    color: var(--neon);
    transform: translateX(10px);
    text-shadow: 0 0 8px var(--neon);
}

.ai-chat {
    margin: 40px; background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333; border-radius: 20px; height: 400px;
    display: flex; flex-direction: column; overflow: hidden;
}

.chat-display { flex: 1; padding: 25px; overflow-y: auto; }
.msg { margin-bottom: 15px; padding: 12px 18px; border-radius: 15px; max-width: 75%; }
.bot { background: rgba(0, 242, 255, 0.1); border: 1px solid var(--neon); }
.user { align-self: flex-end; background: #222; margin-left: auto; color: var(--neon); }

.input-area { display: flex; padding: 20px; background: rgba(255, 255, 255, 0.05); }
input { flex: 1; background: transparent; border: 1px solid #444; color: white; padding: 12px; border-radius: 8px; outline: none; }
button { background: var(--neon); border: none; padding: 0 25px; margin-left: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; }