/* assets/css/admin.css - 白底后台管理风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    font-family: 'Segoe UI', system-ui, sans-serif;
    padding: 24px;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: #ffffff;
    border-radius: 28px;
    padding: 18px 28px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.admin-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a2e;
}

.btn-logout {
    background: #FEE2E2;
    color: #DC2626;
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #FECACA;
    transform: translateY(-1px);
}

/* 登录卡片 */
.login-card {
    max-width: 420px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 36px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
}

.login-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.login-card h2 {
    margin-bottom: 28px;
    color: #1a1a2e;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 48px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.login-card input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.btn-login {
    width: 100%;
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 48px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #7C3AED;
    transform: translateY(-2px);
}

/* 统计面板 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-value {
    font-size: 2.3rem;
    font-weight: 700;
    color: #8B5CF6;
}

.stat-label {
    color: #6c6f93;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* 快捷操作 */
.quick-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-btn {
    background: #f8f9fc;
    color: #4b5563;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e8ecf0;
}

.action-btn:hover {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
    transform: translateY(-2px);
}

.action-btn.danger:hover {
    background: #EF4444;
    border-color: #EF4444;
}

/* 数据表格区域 */
.section {
    background: #ffffff;
    border-radius: 28px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.section-header {
    background: #fafbfd;
    padding: 18px 24px;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.table-container {
    overflow-x: auto;
}

.bottle-table {
    width: 100%;
    border-collapse: collapse;
}

.bottle-table th,
.bottle-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.bottle-table th {
    background: #fafbfd;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.85rem;
}

.bottle-table tr:hover {
    background: #fafbfd;
}

.content-preview {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4b5563;
}

.status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-0 { background: #ECFDF5; color: #065F46; }
.status-1 { background: #EFF6FF; color: #1E40AF; }
.status-2 { background: #FEF2F2; color: #991B1B; }
.status-3 { background: #FFFBEB; color: #92400E; }

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 5px 12px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f0f2f5;
    color: #4b5563;
    transition: all 0.2s;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

.btn-sm.danger { background: #FEF2F2; color: #DC2626; }
.btn-sm.danger:hover { background: #FEE2E2; }
.btn-sm.warning { background: #FFFBEB; color: #D97706; }
.btn-sm.warning:hover { background: #FEF3C7; }
.btn-sm.success { background: #ECFDF5; color: #059669; }
.btn-sm.success:hover { background: #D1FAE5; }

/* 聊天记录 */
.chat-log {
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
}

.chat-log-item {
    background: #fafbfd;
    border-radius: 20px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-left: 4px solid #8B5CF6;
    transition: all 0.2s;
}

.chat-log-item:hover {
    background: #f8f6ff;
}

.chat-log-name {
    font-weight: 600;
    margin-right: 12px;
    font-size: 0.85rem;
}

.chat-log-time {
    font-size: 0.65rem;
    color: #aaa;
}

.chat-log-msg {
    margin-top: 8px;
    color: #4b5563;
    font-size: 0.9rem;
}

.empty-chat {
    text-align: center;
    padding: 50px;
    color: #aaa;
}

/* 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    border-radius: 40px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    font-weight: 500;
}

.toast-success { background: #ECFDF5; color: #065F46; border-left: 5px solid #10B981; }
.toast-error { background: #FEF2F2; color: #991B1B; border-left: 5px solid #EF4444; }
.toast-warning { background: #FFFBEB; color: #92400E; border-left: 5px solid #F59E0B; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}