/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* 表格样式 */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #343a40;
    color: #fff;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    border-radius: 12px;
}

/* 头像占位符 */
.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* 物品插槽 */
.item-slot {
    width: 50px;
    height: 50px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.item-slot:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

/* 产品图片 */
.product-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* 登录页面样式 */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
}

footer a {
    color: #adb5bd;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 消息提示 */
.alert {
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 快捷操作 */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* 角色卡片 */
.character-card {
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 物品详情 */
.item-detail {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

/* 活动卡片 */
.event-card {
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 客服聊天 */
.chat-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.support {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.chat-bubble.user {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.support {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}