/* ===== 全局背景与字体 ===== */
body {
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at top, #0d1b2a, #000814);
    color: #e0eaff;
    padding: 40px;
}

/* ===== 标题 ===== */
h1, h2, h3 {
    color: #9bbcff;
    margin-bottom: 20px;
}

/* ===== 玻璃拟态卡片 ===== */
.card,
.service-box,
.incident-box,
.admin-box {
    background: rgba(255, 255, 255, 0.06);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ===== 在线状态指示器 ===== */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.green {
    background: #4cc9f0;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.8);
}

.red {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

/* ===== 输入框 ===== */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select,
.input-field {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0eaff;
    padding: 8px 12px;
    border-radius: 10px;
    width: 100%;
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus,
.input-field:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76,201,240,0.6);
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* ===== 下拉框 ===== */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

/* ===== 自动填充修复 ===== */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.05) inset !important;
    -webkit-text-fill-color: #e0eaff !important;
}

/* ===== 按钮 ===== */
.btn,
button,
a.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
}

.btn:hover,
button:hover,
a.btn:hover {
    transform: translateY(-1px);
}

/* 蓝色按钮 */
.btn-add,
.btn-publish,
.btn-modify {
    background: linear-gradient(90deg, #4cc9f0, #3a90c9);
    color: #fff;
}

.btn-add:hover,
.btn-publish:hover,
.btn-modify:hover {
    background: linear-gradient(90deg, #72d9ff, #5bb0e0);
}

/* 红色按钮 */
.btn-delete {
    background: linear-gradient(90deg, #ff6b6b, #e04f4f);
    color: #fff;
}

.btn-delete:hover {
    background: linear-gradient(90deg, #ff8b8b, #f06060);
}

/* 紫色按钮 */
.btn-logout {
    background: linear-gradient(90deg, #9b5de5, #6f3ac5);
    color: #fff;
}

.btn-logout:hover {
    background: linear-gradient(90deg, #b57df0, #8053d0);
}

/* ===== 管理列表 ===== */
.admin-item {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.admin-list::-webkit-scrollbar {
    width: 6px;
}

.admin-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

/* ===== 聊天气泡 ===== */
.msg-me, .msg-other {
    max-width: 70%;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    display: inline-block;
    clear: both;
}

.msg-me {
    background: rgba(76,201,240,0.2);
    border: 1px solid rgba(76,201,240,0.4);
    float: right;
}

.msg-other {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    float: left;
}

/* ===== 聊天框 ===== */
.chat-box {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

/* ===== 输入区域 ===== */
.input-area {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* 文件按钮 */
.file-btn {
    background: linear-gradient(90deg, #9b5de5, #6f3ac5);
    color: white;
}
