/* ============================================================
 * 阿里云控制台 全控件风格增强
 * 通过 !important + 高特异性选择器统一覆盖所有中心控件
 * 主色: #0070cc(蓝)  成功: #00a854  警告: #fa8c16  危险: #ff4d4f
 * ============================================================ */

/* ==================== 1. 按钮增强 ==================== */

/* --- 通用按钮基础增强 --- */
.btn,
.dialog-btn,
.detail-btn,
.app-btn,
.nav-right-btn,
.btn-notify {
    transition: all 0.2s !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    letter-spacing: 0.3px;
}
.btn:active,
.dialog-btn:active,
.detail-btn:active,
.app-btn:active {
    transform: scale(0.98);
}
.btn:disabled,
.dialog-btn:disabled,
.detail-btn:disabled,
.app-btn:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* --- 主按钮 --- */
.btn-primary,
.dialog-btn--confirm,
.detail-btn--read,
.app-btn--approve,
.nav-right-btn {
    background: #0070cc !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 112, 204, 0.2) !important;
}
.btn-primary:hover,
.dialog-btn--confirm:hover,
.detail-btn--read:hover,
.app-btn--approve:hover,
.nav-right-btn:hover {
    background: #0084e6 !important;
    box-shadow: 0 1px 2px rgba(0, 112, 204, 0.2) !important;
}
.btn-primary:active,
.dialog-btn--confirm:active,
.detail-btn--read:active,
.app-btn--approve:active,
.nav-right-btn:active {
    background: #005ba6 !important;
    box-shadow: 0 1px 2px rgba(0, 112, 204, 0.2) !important;
}
.btn-primary:disabled,
.btn-primary[disabled] {
    background: rgba(0, 0, 0, 0.04) !important;
    background-image: none !important;
    color: rgba(0, 0, 0, 0.25) !important;
    box-shadow: none !important;
    border: 1px solid #d9d9d9 !important;
    cursor: not-allowed !important;
}

/* --- 成功/通知按钮 --- */
.btn-success,
.btn-notify {
    background: #00a854 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 168, 84, 0.2) !important;
}
.btn-success:hover,
.btn-notify:hover {
    background: #1db868 !important;
    box-shadow: 0 1px 2px rgba(0, 168, 84, 0.2) !important;
}
.btn-success:active,
.btn-notify:active {
    background: #008c46 !important;
}

/* --- 危险/驳回按钮 --- */
.btn-danger,
.app-btn--reject {
    background: #ff4d4f !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(255, 77, 79, 0.2) !important;
}
.btn-danger:hover,
.app-btn--reject:hover {
    background: #ff7875 !important;
    box-shadow: 0 1px 2px rgba(255, 77, 79, 0.2) !important;
}
.btn-danger:active,
.app-btn--reject:active {
    background: #d9363e !important;
}

/* --- 取消/关闭按钮 --- */
.dialog-btn--cancel,
.detail-btn--close {
    background: #ffffff !important;
    color: rgba(0, 0, 0, 0.88) !important;
    border: 1px solid #d9d9d9 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
.dialog-btn--cancel:hover,
.detail-btn--close:hover {
    color: #0084e6 !important;
    border-color: #0084e6 !important;
}
.dialog-btn--cancel:active,
.detail-btn--close:active {
    color: #005ba6 !important;
    border-color: #005ba6 !important;
}

/* --- 详情按钮（文字型） --- */
.app-btn--detail {
    background: #ffffff !important;
    color: rgba(0, 0, 0, 0.88) !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px !important;
}
.app-btn--detail:hover {
    color: #0084e6 !important;
    border-color: #0084e6 !important;
}

/* ==================== 2. 输入框增强 ==================== */

.form-input,
.form-textarea,
.filter-row input,
.filter-row select,
.dialog-input,
.dialog-textarea,
.search-wrap input,
.edit-input,
.code-input {
    transition: all 0.2s !important;
    border-color: #d9d9d9 !important;
}
.form-input:hover,
.form-textarea:hover,
.filter-row input:hover,
.filter-row select:hover,
.dialog-input:hover,
.dialog-textarea:hover,
.search-wrap input:hover,
.edit-input:hover,
.code-input:hover {
    border-color: #0084e6 !important;
}
.form-input:focus,
.form-textarea:focus,
.filter-row input:focus,
.filter-row select:focus,
.dialog-input:focus,
.dialog-textarea:focus,
.search-wrap input:focus,
.edit-input:focus,
.code-input:focus {
    border-color: #0070cc !important;
    box-shadow: 0 0 0 2px rgba(0, 112, 204, 0.08) !important;
}
.form-input:disabled,
.edit-input:disabled,
.code-input:disabled {
    background: #f5f5f5 !important;
    color: rgba(0, 0, 0, 0.25) !important;
    cursor: not-allowed !important;
}

/* ==================== 3. 统计卡片增强 ==================== */

.stat-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.3s;
}
.stat-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* ==================== 4. 列表卡片增强 ==================== */

.item-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s, transform 0.2s;
}
.item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.item-card:active {
    transform: scale(0.995);
}

/* 消息卡片 */
.msg-card {
    transition: box-shadow 0.3s, transform 0.15s !important;
}
.msg-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ==================== 5. 筛选标签增强 ==================== */

.filter-tab {
    transition: all 0.2s !important;
}
.filter-tab:hover:not(.active) {
    color: #0070cc !important;
    border-color: #a3d4ff !important;
    background: #e6f2ff !important;
}
.filter-tab.orange:hover:not(.active) {
    color: #fa8c16 !important;
    border-color: #ffd591 !important;
    background: #fff7e6 !important;
}
.filter-tab.green:hover:not(.active) {
    color: #00a854 !important;
    border-color: #8ae0b3 !important;
    background: #f0faf4 !important;
}

/* Tab 栏 (站内信等页面) */
.tab-item {
    transition: color 0.2s !important;
}
.tab-item:hover:not(.active) {
    color: #0070cc !important;
}

/* ==================== 6. Toast 消息增强 ==================== */

.toast {
    border-radius: 4px !important;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.10), 0 6px 20px 4px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.75) !important;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ==================== 7. 徽章 / 标签增强 ==================== */

.role-badge,
.item-status,
.item-tag,
.msg-tag {
    letter-spacing: 0.3px;
    transition: all 0.2s;
}
.status-success { background: #f0faf4 !important; color: #008c46 !important; border: 1px solid #8ae0b3; }
.status-pending { background: #fffbe6 !important; color: #d48806 !important; border: 1px solid #ffe58f; }
.status-fail { background: #fff2f0 !important; color: #cf1322 !important; border: 1px solid #ffccc7; }
.status-info { background: #e6f2ff !important; color: #005ba6 !important; border: 1px solid #a3d4ff; }
.status-default { background: #fafafa !important; color: #8c8c8c !important; border: 1px solid #d9d9d9; }

/* ==================== 8. 详情面板增强 ==================== */

.detail-item {
    transition: background 0.2s;
    border: 1px solid transparent;
}
.detail-item:hover {
    background: #edf5ff !important;
    border-color: #b3d8ff;
}
.detail-section-title {
    letter-spacing: 0.5px;
}
.detail-grid {
    gap: 8px;
}

/* ==================== 9. 弹窗增强 ==================== */

.dialog-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.dialog-sheet {
    box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.06), 0 -2px 4px -2px rgba(0, 0, 0, 0.08), 0 -6px 20px 4px rgba(0, 0, 0, 0.04);
}
.dialog-btns {
    gap: 12px !important;
}

/* ==================== 10. 空状态增强 ==================== */

.empty-state {
    color: #bfbfbf !important;
}
.empty-state svg {
    stroke: #d9d9d9 !important;
    opacity: 0.6;
}

/* ==================== 11. 导航栏增强 ==================== */

.nav-bar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.header-back-btn {
    transition: background 0.2s !important;
}
.header-back-btn:hover {
    background: #f5f5f5 !important;
}
.header-back-btn:active {
    background: #e8e8e8 !important;
}
.nav-action,
.nav-action-link {
    transition: opacity 0.2s !important;
}
.nav-action:hover,
.nav-action-link:hover {
    opacity: 0.75;
}

/* ==================== 12. AI 提示增强 ==================== */

.ai-tip {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}
.ai-tip:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==================== 13. 菜单项增强 ==================== */

.menu-item {
    transition: background 0.15s !important;
}
.menu-item:hover {
    background: #f5f8ff !important;
}

/* ==================== 14. 搜索框增强 ==================== */

.search-wrap input {
    transition: all 0.3s !important;
}
.search-wrap input:focus {
    box-shadow: 0 0 0 2px rgba(0, 112, 204, 0.08) !important;
}
.search-wrap svg {
    transition: stroke 0.2s;
}
.search-wrap input:focus ~ svg,
.search-wrap:focus-within svg {
    stroke: #0070cc !important;
}

/* ==================== 15. 表单行增强 ==================== */

.form-label {
    color: rgba(0, 0, 0, 0.88) !important;
    font-weight: 500 !important;
}
.form-row {
    margin-bottom: 16px !important;
}

/* ==================== 16. 列表序号增强 ==================== */

.item-no {
    background: #f5f5f5;
    border-radius: 2px;
    padding: 1px 6px;
    font-size: 11px;
}

/* ==================== 17. 占位提示卡增强 ==================== */

.placeholder-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}
.placeholder-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==================== 18. 信息卡片增强 ==================== */

.info-card,
.card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s;
}
.info-card:hover,
.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==================== 19. 字段列表增强 ==================== */

.field-row {
    transition: background 0.15s;
    padding: 8px 4px !important;
    border-radius: 2px;
}
.field-row:hover {
    background: #f5f8ff;
}

/* ==================== 20. 动画增强 ==================== */

@keyframes antFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.stats-row {
    animation: antFadeIn 0.4s ease;
}
.list-section {
    animation: antFadeIn 0.3s ease;
}
