/**
 * Rexo-UI 官方风格后台管理系统
 * 基于官网 www.rexoui.com 的设计规范
 * Material Design + Vuetify 3 风格
 */

/* ==================== CSS 变量 ==================== */
:root {
    /* Rexo-UI 官方主色 - 紫色 */
    --rexo-primary: #7367F0;
    --rexo-primary-dark: #5E50EE;
    --rexo-primary-light: #9E95F5;
    --rexo-primary-pale: rgba(115, 103, 240, 0.08);
    
    /* FontAwesome 图标字体 */
    --fa-font-solid: "Font Awesome 6 Free";
    --fa-font-regular: "Font Awesome 6 Free";
    --fa-font-brands: "Font Awesome 6 Brands";
    
    /* 功能色 - Material Design */
    --rexo-success: #28C76F;
    --rexo-success-light: rgba(40, 199, 111, 0.12);
    --rexo-warning: #FF9F43;
    --rexo-warning-light: rgba(255, 159, 67, 0.12);
    --rexo-error: #EA5455;
    --rexo-error-light: rgba(234, 84, 85, 0.12);
    --rexo-info: #00CFE8;
    --rexo-info-light: rgba(0, 207, 232, 0.12);
    
    /* 中性色 - Material Design */
    --rexo-text-primary: rgba(76, 78, 100, 0.87);
    --rexo-text-secondary: rgba(76, 78, 100, 0.68);
    --rexo-text-disabled: rgba(76, 78, 100, 0.38);
    
    /* 背景色 */
    --rexo-bg-default: #F4F5FA;
    --rexo-bg-paper: #FFFFFF;
    --rexo-bg-hover: #F6F6F7;
    
    /* 边框 */
    --rexo-border-color: rgba(76, 78, 100, 0.12);
    --rexo-divider: rgba(76, 78, 100, 0.12);
    
    /* 阴影 - Material Design */
    --rexo-shadow-xs: 0 2px 4px 0 rgba(76, 78, 100, 0.1);
    --rexo-shadow-sm: 0 2px 6px 0 rgba(76, 78, 100, 0.14);
    --rexo-shadow-md: 0 4px 8px -2px rgba(76, 78, 100, 0.42);
    --rexo-shadow-lg: 0 6px 18px -8px rgba(76, 78, 100, 0.56);
    
    /* 圆角 - Material Design */
    --rexo-radius: 6px;
    
    /* 间距 */
    --rexo-spacing-1: 0.25rem;
    --rexo-spacing-2: 0.5rem;
    --rexo-spacing-3: 1rem;
    --rexo-spacing-4: 1.5rem;
    --rexo-spacing-3: 0.75rem;
    --rexo-spacing-4: 1rem;
    --rexo-spacing-5: 1.25rem;
    --rexo-spacing-6: 1.5rem;
    --rexo-spacing-8: 2rem;
    
    /* 字体 */
    --rexo-font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* 布局 */
    --rexo-sidebar-width: 220px;
    --rexo-sidebar-collapsed-width: 80px;
    --rexo-navbar-height: 64px;
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--rexo-font-family);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--rexo-text-primary);
    background: var(--rexo-bg-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== 布局容器 ==================== */
.rexo-layout {
    display: flex;
    min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.rexo-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rexo-sidebar-width);
    background: var(--rexo-bg-paper);
    box-shadow: var(--rexo-shadow-sm);
    transition: all 0.25s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.rexo-sidebar-collapsed {
    width: var(--rexo-sidebar-collapsed-width);
}

/* Logo区域 */
.rexo-sidebar-logo {
    height: var(--rexo-navbar-height);
    display: flex;
    align-items: center;
    padding: 0 var(--rexo-spacing-5);
    border-bottom: 1px solid var(--rexo-divider);
}

.rexo-logo {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-3);
}

.rexo-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--rexo-primary);
    border-radius: var(--rexo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rexo-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rexo-primary);
    white-space: nowrap;
    transition: opacity 0.25s ease;
}

.rexo-sidebar-collapsed .rexo-logo-text {
    opacity: 0;
    width: 0;
}

/* 菜单 */
.rexo-menu {
    flex: 1;
    overflow-y: auto;
    padding: var(--rexo-spacing-4) 0;
}

.rexo-menu::-webkit-scrollbar {
    width: 5px;
}

.rexo-menu::-webkit-scrollbar-thumb {
    background: var(--rexo-border-color);
    border-radius: 10px;
}

.rexo-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem var(--rexo-spacing-5);
    margin: 0.125rem var(--rexo-spacing-4);
    border-radius: var(--rexo-radius);
    color: var(--rexo-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.rexo-menu-item:hover {
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-primary);
}

.rexo-menu-item-active {
    background: var(--rexo-primary-pale);
    color: var(--rexo-primary);
    font-weight: 500;
}

.rexo-menu-item i {
    font-size: 1.375rem;
    width: 24px;
    margin-right: var(--rexo-spacing-4);
    flex-shrink: 0;
}

.rexo-menu-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9375rem;
    transition: opacity 0.25s ease;
}

.rexo-sidebar-collapsed .rexo-menu-item {
    padding: 0.75rem var(--rexo-spacing-4);
    justify-content: center;
}

.rexo-sidebar-collapsed .rexo-menu-item i {
    margin-right: 0;
}

.rexo-sidebar-collapsed .rexo-menu-item-text {
    opacity: 0;
    width: 0;
}

/* ==================== 主内容区 ==================== */
.rexo-main {
    margin-left: var(--rexo-sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.rexo-sidebar-collapsed + .rexo-main {
    margin-left: var(--rexo-sidebar-collapsed-width);
}

/* ==================== 顶部导航栏 ==================== */
.rexo-navbar {
    height: var(--rexo-navbar-height);
    background: var(--rexo-bg-paper);
    box-shadow: var(--rexo-shadow-xs);
    padding: 0 var(--rexo-spacing-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.rexo-navbar-left {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-4);
}

.rexo-navbar-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rexo-radius);
    cursor: pointer;
    color: var(--rexo-text-secondary);
    transition: all 0.2s ease;
}

.rexo-navbar-toggle:hover {
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-primary);
}

.rexo-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
    font-size: 0.875rem;
    color: var(--rexo-text-secondary);
}

.rexo-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
}

.rexo-breadcrumb-separator {
    color: var(--rexo-text-disabled);
}

.rexo-navbar-right {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
}

.rexo-navbar-action {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rexo-radius);
    cursor: pointer;
    color: var(--rexo-text-secondary);
    transition: all 0.2s ease;
    position: relative;
}

.rexo-navbar-action:hover {
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-primary);
}

.rexo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--rexo-error);
    border-radius: 50%;
    border: 2px solid var(--rexo-bg-paper);
}

/* ==================== 内容区 ==================== */
.rexo-content {
    flex: 1;
    padding: var(--rexo-spacing-6);
}

/* ==================== 页面标题 ==================== */
.rexo-page-header {
    margin-bottom: var(--rexo-spacing-6);
}

.rexo-page-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rexo-spacing-3);
}

.rexo-page-title {
    font-size: 1.625rem;
    font-weight: 500;
    color: var(--rexo-text-primary);
}

.rexo-page-subtitle {
    font-size: 0.875rem;
    color: var(--rexo-text-secondary);
    margin-top: var(--rexo-spacing-1);
}

.rexo-page-actions {
    display: flex;
    gap: var(--rexo-spacing-3);
}

/* ==================== 卡片 ==================== */
.rexo-card {
    background: var(--rexo-bg-paper);
    border-radius: var(--rexo-radius);
    box-shadow: var(--rexo-shadow-xs);
    overflow: hidden;
    margin-bottom: var(--rexo-spacing-6);
}

.rexo-card-header {
    padding: var(--rexo-spacing-5);
    border-bottom: 1px solid var(--rexo-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rexo-card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--rexo-text-primary);
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
}

.rexo-card-body {
    padding: var(--rexo-spacing-5);
}

.rexo-card-body-nopadding {
    padding: 0;
}

/* ==================== 统计卡片 ==================== */
.rexo-stats-card {
    background: var(--rexo-bg-paper);
    border-radius: var(--rexo-radius);
    box-shadow: var(--rexo-shadow-xs);
    padding: var(--rexo-spacing-5);
    transition: all 0.3s ease;
    border-left: 4px solid var(--rexo-border-color);
    position: relative;
    overflow: hidden;
}

/* 统计卡片容器 - 电脑端一行，手机端一行两个 */
.rexo-stats-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.rexo-stats-container .rexo-stats-card {
    flex: 1;
    margin: 0 0.5rem 1rem;
    min-width: 0;
}

/* 搜索表单 - 所有元素在一行 */
.rexo-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
}

.rexo-search-form .rexo-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.rexo-search-form .rexo-form-group:last-child {
    flex: 0 0 auto;
    min-width: auto;
}

.rexo-stats-card:hover {
    box-shadow: var(--rexo-shadow-md);
    transform: translateY(-4px);
}

.rexo-stats-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--rexo-spacing-4);
}

.rexo-stats-card-info h6 {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--rexo-text-secondary);
    margin-bottom: var(--rexo-spacing-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rexo-stats-card-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rexo-text-primary);
    line-height: 1.2;
}

.rexo-stats-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--rexo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rexo-stats-card-icon-primary {
    background: var(--rexo-primary-pale);
    color: var(--rexo-primary);
}

.rexo-stats-card-icon-success {
    background: var(--rexo-success-light);
    color: var(--rexo-success);
}

.rexo-stats-card-icon-warning {
    background: var(--rexo-warning-light);
    color: var(--rexo-warning);
}

.rexo-stats-card-icon-info {
    background: var(--rexo-info-light);
    color: var(--rexo-info);
}

/* 统计卡片左侧边框颜色变体 */
.rexo-stats-card.stats-primary {
    border-left-color: var(--rexo-primary);
}

.rexo-stats-card.stats-success {
    border-left-color: var(--rexo-success);
}

.rexo-stats-card.stats-warning {
    border-left-color: var(--rexo-warning);
}

.rexo-stats-card.stats-info {
    border-left-color: var(--rexo-info);
}

.rexo-stats-card.stats-error {
    border-left-color: var(--rexo-error);
}

/* 统计卡片左侧边框渐变效果（可选） */
.rexo-stats-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rexo-stats-card:hover::before {
    opacity: 0.1;
}

.rexo-stats-card-footer {
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
    font-size: 0.8125rem;
    color: var(--rexo-text-secondary);
}

.rexo-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.rexo-trend-up {
    color: var(--rexo-success);
}

.rexo-trend-down {
    color: var(--rexo-error);
}

/* ==================== 按钮 ==================== */
.rexo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rexo-spacing-2);
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--rexo-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.rexo-btn:active {
    transform: scale(0.97);
}

.rexo-btn-primary {
    background: var(--rexo-primary);
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(115, 103, 240, 0.4);
}

.rexo-btn-primary:hover {
    background: var(--rexo-primary-dark);
    box-shadow: 0 5px 12px 0 rgba(115, 103, 240, 0.5);
}

.rexo-btn-success {
    background: var(--rexo-success);
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(40, 199, 111, 0.4);
}

.rexo-btn-success:hover {
    background: #24B263;
    box-shadow: 0 5px 12px 0 rgba(40, 199, 111, 0.5);
}

.rexo-btn-warning {
    background: var(--rexo-warning);
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(255, 159, 67, 0.4);
}

.rexo-btn-warning:hover {
    background: #FF922A;
    box-shadow: 0 5px 12px 0 rgba(255, 159, 67, 0.5);
}

.rexo-btn-info {
    background: var(--rexo-info);
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(0, 207, 232, 0.4);
}

.rexo-btn-info:hover {
    background: #00BAD1;
    box-shadow: 0 5px 12px 0 rgba(0, 207, 232, 0.5);
}

.rexo-btn-danger {
    background: var(--rexo-error);
    color: #ffffff;
    box-shadow: 0 3px 8px 0 rgba(234, 84, 85, 0.4);
}

.rexo-btn-danger:hover {
    background: #E63E3F;
    box-shadow: 0 5px 12px 0 rgba(234, 84, 85, 0.5);
}

.rexo-btn-secondary {
    background: rgba(76, 78, 100, 0.08);
    color: var(--rexo-text-primary);
    box-shadow: none;
}

.rexo-btn-secondary:hover {
    background: rgba(76, 78, 100, 0.12);
}

.rexo-btn-outlined {
    background: transparent;
    color: var(--rexo-primary);
    border: 1px solid var(--rexo-border-color);
}

.rexo-btn-outlined:hover {
    background: var(--rexo-primary-pale);
    border-color: var(--rexo-primary);
}

.rexo-btn-text {
    background: transparent;
    color: var(--rexo-primary);
    box-shadow: none;
}

.rexo-btn-text:hover {
    background: var(--rexo-primary-pale);
}

.rexo-btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

.rexo-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ==================== 复选框和单选框 ==================== */
.rexo-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rexo-primary);
    margin: 0;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.rexo-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rexo-primary);
    margin: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.rexo-checkbox-label {
    cursor: pointer;
    color: var(--rexo-text-primary);
    user-select: none;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    flex: 1;
}

.rexo-radio {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rexo-primary);
    margin: 0;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.rexo-radio-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rexo-primary);
    margin: 0;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.rexo-radio-label {
    cursor: pointer;
    color: var(--rexo-text-primary);
    user-select: none;
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    flex: 1;
}

.rexo-form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

/* 辅助文本 */
.rexo-form-text,
.rexo-help-text {
    font-size: 0.8125rem;
    color: var(--rexo-text-secondary);
    margin-top: 0.375rem;
    line-height: 1.5;
}

.rexo-form-text i,
.rexo-help-text i {
    margin-right: 0.25rem;
}

/* ==================== 表格 ==================== */
.rexo-table-wrapper {
    overflow-x: auto;
}

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

.rexo-table thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rexo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--rexo-divider);
    background: var(--rexo-bg-hover);
}

.rexo-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--rexo-divider);
    color: var(--rexo-text-primary);
    font-size: 0.9375rem;
}

.rexo-table tbody tr {
    transition: background 0.2s ease;
}

.rexo-table tbody tr:hover {
    background: var(--rexo-bg-hover);
}

/* ==================== 表单 ==================== */
.rexo-form-group {
    margin-bottom: var(--rexo-spacing-5);
}

.rexo-form-label {
    display: block;
    margin-bottom: var(--rexo-spacing-2);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--rexo-text-primary);
}

.rexo-form-label-required::after {
    content: ' *';
    color: var(--rexo-error);
}

.rexo-form-help {
    font-size: 0.875rem;
    color: var(--rexo-text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.rexo-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--rexo-text-primary);
}

.rexo-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
}

.rexo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 4px;
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-secondary);
}

.rexo-badge-primary {
    background: var(--rexo-primary-pale);
    color: var(--rexo-primary);
}

.rexo-badge-success {
    background: var(--rexo-success-light);
    color: var(--rexo-success);
}

.rexo-badge-warning {
    background: var(--rexo-warning-light);
    color: var(--rexo-warning);
}

.rexo-badge-error {
    background: var(--rexo-error-light);
    color: var(--rexo-error);
}

.rexo-badge-info {
    background: var(--rexo-info-light);
    color: var(--rexo-info);
}

.rexo-input {
    width: 100%;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--rexo-border-color);
    border-radius: var(--rexo-radius);
    color: var(--rexo-text-primary);
    background: var(--rexo-bg-paper);
    transition: all 0.2s ease;
}

.rexo-input:hover {
    border-color: var(--rexo-text-disabled);
}

.rexo-input:focus {
    outline: none;
    border-color: var(--rexo-primary);
    box-shadow: 0 2px 4px 0 rgba(115, 103, 240, 0.1);
}

textarea.rexo-input {
    min-height: 100px;
    resize: vertical;
}

.rexo-select {
    width: 100%;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--rexo-border-color);
    border-radius: var(--rexo-radius);
    color: var(--rexo-text-primary);
    background: var(--rexo-bg-paper);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rexo-select:hover {
    border-color: var(--rexo-text-disabled);
}

.rexo-select:focus {
    outline: none;
    border-color: var(--rexo-primary);
    box-shadow: 0 2px 4px 0 rgba(115, 103, 240, 0.1);
}

.rexo-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rexo-text-primary);
}

.rexo-label-required::after {
    content: ' *';
    color: var(--rexo-error);
}

/* Input Group - Material Design */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--rexo-text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--rexo-bg-default);
    border: 1px solid var(--rexo-border-color);
    transition: all 0.2s ease;
}

.input-group-text:first-child {
    border-right: 0;
    border-radius: var(--rexo-radius) 0 0 var(--rexo-radius);
}

.input-group-text:last-child {
    border-left: 0;
    border-radius: 0 var(--rexo-radius) var(--rexo-radius) 0;
}

.input-group .rexo-input:not(:first-child) {
    border-radius: 0 var(--rexo-radius) var(--rexo-radius) 0;
}

.input-group .rexo-input:not(:last-child) {
    border-radius: var(--rexo-radius) 0 0 var(--rexo-radius);
}

.input-group .rexo-select:not(:first-child) {
    border-radius: 0 var(--rexo-radius) var(--rexo-radius) 0;
}

.input-group .rexo-select:not(:last-child) {
    border-radius: var(--rexo-radius) 0 0 var(--rexo-radius);
}

.input-group .rexo-input + .rexo-select,
.input-group .rexo-select + .rexo-input {
    border-left: 0;
}

/* ==================== 标签页 ==================== */
.rexo-tabs {
    width: 100%;
}

.rexo-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--rexo-border-color);
    padding-bottom: 0;
    margin-bottom: 0;
}

.rexo-tab-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rexo-text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.rexo-tab-item:hover {
    color: var(--rexo-primary);
    background: var(--rexo-primary-pale);
}

.rexo-tab-item.active {
    color: var(--rexo-primary);
    border-bottom-color: var(--rexo-primary);
}

.rexo-tab-item i {
    font-size: 1.125rem;
}

.rexo-tabs-content {
    padding-top: 1rem;  /* 减小默认顶部间距，避免标签页和内容区之间出现过大空位 */
}

.rexo-tab-pane {
    display: none;
}

.rexo-tab-pane.active {
    display: block;
    animation: rexoFadeIn 0.3s ease;
}

@media (max-width: 768px) {
    .rexo-tabs-nav {
        /* 移动端：三个按钮一行显示 */
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow: visible;
        margin-bottom: 0;
        padding-bottom: 0.5rem;
        justify-content: space-between;
    }

    .rexo-tab-item {
        /* 三个按钮平均分配宽度 */
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        justify-content: center;
        text-align: center;
        /* 确保文字不换行 */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 优化标签页内容区域，移除多余间距 */
    .rexo-tabs-content {
        padding-top: 0.75rem;  /* 移动端进一步减小间距 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .rexo-tabs-nav {
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .rexo-tab-item {
        padding: 0.625rem 0.25rem;
        font-size: 0.75rem;
        /* 超小屏幕下进一步压缩 */
        min-width: 0;
    }
    
    /* 确保图标和文字都能正常显示 */
    .rexo-tab-item i {
        font-size: 0.875rem;
        margin-right: 0.25rem;
        flex-shrink: 0;
    }
    
    /* 超小屏幕下隐藏部分文字，只显示图标 */
    .rexo-tab-item span {
        display: none;
    }
    
    .rexo-tab-item {
        flex-direction: column;
        gap: 0.125rem;
    }
}

/* 中等屏幕优化（平板横屏） */
@media (min-width: 769px) and (max-width: 1024px) {
    .rexo-tabs-nav {
        gap: 0.75rem;
    }

    .rexo-tab-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ==================== 标签 ==================== */
.rexo-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rexo-tag-primary {
    background: var(--rexo-primary-pale);
    color: var(--rexo-primary);
}

.rexo-tag-success {
    background: var(--rexo-success-light);
    color: var(--rexo-success);
}

.rexo-tag-warning {
    background: var(--rexo-warning-light);
    color: var(--rexo-warning);
}

.rexo-tag-error {
    background: var(--rexo-error-light);
    color: var(--rexo-error);
}

.rexo-tag-info {
    background: var(--rexo-info-light);
    color: var(--rexo-info);
}

/* ==================== 提示框 ==================== */
.rexo-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--rexo-radius);
    margin-bottom: var(--rexo-spacing-5);
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-3);
}

.rexo-alert-success {
    background: var(--rexo-success-light);
    color: var(--rexo-success);
}

.rexo-alert-warning {
    background: var(--rexo-warning-light);
    color: var(--rexo-warning);
}

.rexo-alert-error {
    background: var(--rexo-error-light);
    color: var(--rexo-error);
}

.rexo-alert-info {
    background: var(--rexo-info-light);
    color: var(--rexo-info);
}

/* ==================== 网格系统 ==================== */
.rexo-row, .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.rexo-col {
    padding: 0 var(--rexo-spacing-3);
    margin-bottom: var(--rexo-spacing-6);
}

.rexo-col-1, .col-md-1 { width: 8.333%; padding: 0 0.75rem; }
.rexo-col-2, .col-md-2 { width: 16.666%; padding: 0 0.75rem; }
.rexo-col-3, .col-md-3 { width: 25%; padding: 0 0.75rem; }
.rexo-col-4, .col-md-4 { width: 33.333%; padding: 0 0.75rem; }
.rexo-col-6, .col-md-6 { width: 50%; padding: 0 0.75rem; }
.rexo-col-8, .col-md-8 { width: 66.666%; padding: 0 0.75rem; }
.rexo-col-9, .col-md-9 { width: 75%; padding: 0 0.75rem; }
.rexo-col-12, .col-md-12 { width: 100%; padding: 0 0.75rem; }

/* 间距工具类 */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 0.75rem !important; }
.mb-3 { margin-bottom: 1.25rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 0.75rem !important; }
.mt-3 { margin-top: 1.25rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 0.75rem !important; }
.p-3 { padding: 1.25rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--rexo-primary); }
.text-success { color: var(--rexo-success); }
.text-warning { color: var(--rexo-warning); }
.text-error { color: var(--rexo-error); }
.text-secondary { color: var(--rexo-text-secondary); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .rexo-col-3, .rexo-col-4, .col-md-3, .col-md-4 {
        width: 50%;
    }
}

@media (max-width: 768px) {
    :root {
        --rexo-navbar-height: 56px;
    }
    
    .rexo-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
        height: 100vh;
        top: 0;
        left: 0;
        overflow-y: auto;
        transition: transform 0.3s ease;
    }
    
    /* 显示侧边栏时的样式 */
    .rexo-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }
    
    /* 侧边栏打开时禁止body滚动 */
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* 添加遮罩层 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 主内容区域占满宽度 */
    .rexo-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* 网格系统响应式调整 */
    .rexo-col-1, .rexo-col-2, .rexo-col-3, .rexo-col-4, 
    .rexo-col-5, .rexo-col-7, .rexo-col-8, 
    .rexo-col-9, .rexo-col-10, .rexo-col-11 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 在移动端保持双列布局 */
    .rexo-col-6 {
        width: 50% !important;
        margin-bottom: 1rem;
    }
    
    .rexo-col-12 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 保留两列布局的选项 */
    .rexo-col-6.rexo-col-md-3 {
        width: 50% !important;
    }
    
    /* 表格横向滚动 */
    .rexo-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 页面头部按钮组在移动端垂直排列 */
    .rexo-page-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* 移动端菜单按钮更明显 */
    .rexo-navbar-toggle {
        display: flex !important;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    /* 移动端导航栏调整 */
    .rexo-navbar {
        padding: 0.75rem 1rem;
    }
    
    .rexo-breadcrumb {
        display: none;
    }
    
    .rexo-content {
        padding: 1rem !important;
    }
    
    .rexo-page-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--rexo-spacing-4);
    }
    
    .rexo-page-title {
        font-size: 1.375rem;
    }
    
    .rexo-page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--rexo-spacing-3);
    }
    
    .rexo-page-actions .rexo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rexo-stats-card {
        padding: var(--rexo-spacing-4);
    }
    
    .rexo-stats-card-info h3 {
        font-size: 1.5rem;
    }
    
    /* 移动端统计卡片 - 一行两个 */
    .rexo-stats-container .rexo-stats-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    /* 移动端搜索表单 - 保持一行但调整间距 */
    .rexo-search-form {
        gap: 0.75rem;
    }
    
    .rexo-search-form .rexo-form-group {
        min-width: 150px;
    }
    
    .rexo-card-header, .rexo-card-body {
        padding: 1rem !important;
    }
    
    .rexo-table {
        font-size: 0.8125rem;
        min-width: 900px;
    }
    
    .rexo-table thead th,
    .rexo-table tbody td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }
    
    .rexo-table thead th {
        font-size: 0.6875rem;
    }
    
    /* 表单响应式处理 */
    .rexo-form-group {
        flex-direction: column;
    }
    
    .rexo-form-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .rexo-form-control {
        width: 100%;
    }
    
    /* 按钮组响应式调整 */
    .rexo-btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .rexo-btn-group .rexo-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* 卡片头部的按钮组保持横向排列 */
    .rexo-card-header {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .rexo-card-header .rexo-card-title {
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .rexo-card-header .rexo-btn-group {
        flex-direction: row;
        width: auto;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .rexo-card-header .rexo-btn-group .rexo-btn {
        width: auto;
        margin-bottom: 0;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    
    /* 下拉菜单位置调整 */
    .rexo-dropdown-menu {
        position: fixed;
        width: 90%;
        left: 5%;
        top: auto;
        bottom: 1rem;
        transform: none;
    }
    
    /* 分页控件响应式 */
    .rexo-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 标签页响应式 */
    .rexo-tabs-nav {
        flex-wrap: wrap;
    }
    
    .rexo-tabs-nav-item {
        flex-grow: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rexo-stats-card-header {
        flex-direction: row;
        align-items: center;
    }
    
    .rexo-stats-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }
    
    .rexo-stats-card-info h3 {
        font-size: 1.25rem;
    }
    
    .rexo-navbar-right {
        gap: 0;
    }
    
    .rexo-navbar-action {
        width: 36px;
        height: 36px;
    }
}

/* ==================== 遮罩层 ==================== */
.rexo-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 78, 100, 0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.rexo-mask-show {
    display: block;
}

/* ==================== 登录页面 ==================== */
.rexo-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rexo-bg-default);
    padding: var(--rexo-spacing-6);
}

.rexo-login-card {
    width: 100%;
    max-width: 400px;
    background: var(--rexo-bg-paper);
    border-radius: var(--rexo-radius);
    box-shadow: var(--rexo-shadow-md);
    padding: 2rem 1.75rem;
}

.rexo-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.rexo-login-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--rexo-primary);
    border-radius: var(--rexo-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rexo-login-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--rexo-text-primary);
    margin-bottom: 0.5rem;
}

.rexo-login-subtitle {
    font-size: 0.875rem;
    color: var(--rexo-text-secondary);
}

@media (max-width: 480px) {
    .rexo-login-card {
        padding: 1.75rem 1.5rem;
    }
    
    .rexo-login-title {
        font-size: 1.25rem;
    }
}

/* ==================== Rexo-UI 模态框 ==================== */
.rexo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rexo-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rexo-spacing-4);
}

.rexo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 78, 100, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    animation: rexoFadeIn 0.2s ease;
}

.rexo-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: var(--rexo-bg-paper);
    border-radius: var(--rexo-radius);
    box-shadow: var(--rexo-shadow-lg);
    animation: rexoModalSlideIn 0.3s ease;
    z-index: 1001;
}

.rexo-modal-dialog-lg {
    max-width: 800px;
}

.rexo-modal-dialog-xl {
    max-width: 1140px;
}

.rexo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rexo-spacing-5) var(--rexo-spacing-6);
    border-bottom: 1px solid var(--rexo-divider);
}

.rexo-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--rexo-text-primary);
    display: flex;
    align-items: center;
    gap: var(--rexo-spacing-2);
}

.rexo-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--rexo-radius);
    color: var(--rexo-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rexo-modal-close:hover {
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-primary);
}

.rexo-modal-close i {
    font-size: 1.25rem;
}

.rexo-modal-body {
    padding: var(--rexo-spacing-6);
    max-height: 70vh;
    overflow-y: auto;
}

/* 模态框内的布局支持 - Material Design 间距 */
.rexo-modal-body .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.rexo-modal-body .col-md-6,
.rexo-modal-body .col-md-4,
.rexo-modal-body .col-md-8,
.rexo-modal-body .col-md-12 {
    padding: 0 0.75rem;
}

.rexo-modal-body .col-md-6 { width: 50%; }
.rexo-modal-body .col-md-4 { width: 33.333%; }
.rexo-modal-body .col-md-8 { width: 66.666%; }
.rexo-modal-body .col-md-12 { width: 100%; }

.rexo-modal-body .mb-3 {
    margin-bottom: 1.25rem;
}

.rexo-modal-body .mb-0 {
    margin-bottom: 0;
}

.rexo-modal-body .mt-3 {
    margin-top: 1.25rem;
}

.rexo-modal-body .mb-2 {
    margin-bottom: 0.75rem;
}

/* Input Group 样式 */
.rexo-modal-body .input-group {
    display: flex;
    align-items: stretch;
}

.rexo-modal-body .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--rexo-text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--rexo-bg-default);
    border: 1px solid var(--rexo-border-color);
    border-right: 0;
    border-radius: var(--rexo-radius) 0 0 var(--rexo-radius);
}

.rexo-modal-body .input-group .rexo-input,
.rexo-modal-body .input-group .rexo-select {
    flex: 1;
    border-radius: 0 var(--rexo-radius) var(--rexo-radius) 0;
}

.rexo-modal-body .input-group .rexo-input:first-child,
.rexo-modal-body .input-group .rexo-select:first-child {
    border-radius: var(--rexo-radius) 0 0 var(--rexo-radius);
}

.rexo-modal-body .input-group .rexo-input:last-child,
.rexo-modal-body .input-group .rexo-select:last-child {
    border-radius: 0 var(--rexo-radius) var(--rexo-radius) 0;
}

.rexo-modal-body .input-group .rexo-input + .rexo-select {
    border-left: 0;
}

.rexo-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--rexo-spacing-3);
    padding: var(--rexo-spacing-5) var(--rexo-spacing-6);
    border-top: 1px solid var(--rexo-divider);
}

/* 模态框动画 */
@keyframes rexoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rexoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框响应式 */
@media (max-width: 768px) {
    .rexo-modal.show {
        padding: 1rem;
        align-items: center;
    }
    
    .rexo-modal-dialog {
        max-width: calc(100% - 2rem);
        width: 100%;
        max-height: 90vh;
        border-radius: var(--rexo-radius);
        animation: rexoModalSlideIn 0.2s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .rexo-modal-dialog-lg,
    .rexo-modal-dialog-xl {
        max-width: calc(100% - 2rem);
    }
    
    /* form 标签也要参与 flex 布局 */
    .rexo-modal-dialog > form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .rexo-modal-header {
        flex-shrink: 0;
        padding: var(--rexo-spacing-4) var(--rexo-spacing-5);
        border-bottom: 1px solid var(--rexo-divider);
    }
    
    .rexo-modal-title {
        font-size: 1.125rem;
    }
    
    .rexo-modal-body {
        flex: 1;
        padding: var(--rexo-spacing-5);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 手机端模态框内的列布局变为单列 */
    .rexo-modal-body .col-md-6,
    .rexo-modal-body .col-md-4,
    .rexo-modal-body .col-md-8 {
        width: 100%;
    }
    
    .rexo-modal-footer {
        flex-shrink: 0;
        padding: var(--rexo-spacing-4) var(--rexo-spacing-5);
        flex-direction: row;
        justify-content: space-between;
        gap: var(--rexo-spacing-3);
        border-top: 1px solid var(--rexo-divider);
    }
    
    .rexo-modal-footer .rexo-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-width: 0;
    }
}

@keyframes rexoModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框表单样式 */
.rexo-modal-body .rexo-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rexo-spacing-4);
    margin-bottom: var(--rexo-spacing-4);
}

.rexo-modal-body .rexo-form-col {
    flex: 1;
    min-width: 200px;
}

.rexo-modal-body .rexo-form-col-full {
    width: 100%;
}

@media (max-width: 480px) {
    .rexo-modal-body .rexo-form-col {
        min-width: 100%;
    }
}

/* ==================== iframe 模式优化 ==================== */
/* 1. 禁用 body 的滚动，只在内容区滚动 */
.rexo-iframe-mode html {
    overflow: hidden !important;
    height: 100%;
}

.rexo-iframe-mode body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important; /* 关键：禁用 body 滚动 */
    height: 100%;
}

/* 2. 内容容器使用绝对定位，只在此处滚动 */
.rexo-iframe-mode .rexo-content {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px !important; /* 为底部按钮栏留出空间 */
    padding: 0 !important;        /* 移除所有默认内边距 */
    padding-top: 0 !important;    /* 确保顶部无内边距 */
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    background: #F4F5FA;
    overflow-x: hidden !important;
    overflow-y: auto !important; /* 只有这里有滚动条 */
    z-index: 1 !important;
}

/* 3. 防止横向溢出 */
.rexo-iframe-mode * {
    box-sizing: border-box;
}

.rexo-iframe-mode .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

/* 4. 确保所有内容不超出 */
.rexo-iframe-mode .rexo-card,
.rexo-iframe-mode .rexo-tabs-content,
.rexo-iframe-mode .rexo-tab-pane {
    max-width: 100%;
    overflow: visible;
}

/* 5. 标签页固定在顶部（相对于滚动容器） */
.rexo-iframe-mode .rexo-tabs {
    position: sticky;
    top: 0;
    background: #F4F5FA;
    z-index: 100;
    padding-top: 0 !important;           /* 移除顶部内边距，消除空位 */
    padding-bottom: 0.5rem !important;   /* 改为底部内边距 */
    margin-bottom: 0 !important;         /* 移除底部外边距，消除空位 */
    border-bottom: 1px solid rgba(76, 78, 100, 0.08);
}

/* 调整标签页内容区的顶部间距 */
.rexo-iframe-mode .rexo-tabs-content {
    padding-top: 1rem !important;  /* 减小顶部间距，从1.5rem改为1rem */
}

/* 6. 底部按钮栏样式 */
.rexo-footer-actions {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 70px !important;
    background: #fff !important;
    border-top: 1px solid rgba(76, 78, 100, 0.12) !important;
    padding: 0 2rem !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 8px rgba(76, 78, 100, 0.08) !important;
    display: flex !important;
    align-items: center !important;
}

.rexo-footer-actions-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.rexo-footer-actions .rexo-btn {
    flex-shrink: 0; /* 防止按钮被压缩 */
    min-width: auto;
}

/* 响应式优化 - 小屏幕 */
@media (max-width: 768px) {
    .rexo-iframe-mode .rexo-footer-actions {
        padding: 0 1rem !important;
        height: 60px !important;
    }
    
    .rexo-iframe-mode .rexo-content {
        padding: 0 !important;           /* 移除所有内边距 */
        padding-top: 0 !important;       /* 确保顶部无内边距，消除空位 */
        padding-left: 1rem !important;   /* 左右内边距 */
        padding-right: 1rem !important;
        padding-bottom: 1rem !important; /* 底部内边距 */
        bottom: 60px !important;
    }
    
    .rexo-iframe-mode .rexo-footer-actions-inner {
        gap: 0.5rem;
    }
    
    .rexo-iframe-mode .rexo-footer-actions .rexo-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .rexo-iframe-mode .rexo-footer-actions .rexo-btn i {
        font-size: 0.875rem;
    }
    
    /* 移动端标签页优化 */
    .rexo-iframe-mode .rexo-tabs {
        padding-top: 0 !important;
        padding-bottom: 0.25rem !important;  /* 移动端减小底部间距 */
        margin-bottom: 0 !important;
    }
    
    .rexo-iframe-mode .rexo-tabs-content {
        padding-top: 0.5rem !important;  /* 移动端进一步减小间距 */
    }
    
    /* 移动端标签按钮优化 */
    .rexo-iframe-mode .rexo-tab-item {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.875rem !important;
    }
}

/* ==================== 模板编辑页面通用样式 ==================== */
/* 卡片样式统一 */
.rexo-template-edit .card {
    background: white;
    border: 1px solid rgba(76, 78, 100, 0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.rexo-template-edit .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(76, 78, 100, 0.08);
    padding: 1rem 1.25rem;
    border-radius: 8px 8px 0 0;
}

.rexo-template-edit .card-body {
    padding: 1.25rem;
}

/* 标签页切换样式 */
.rexo-template-edit .rexo-tab-pane {
    display: none;
}

.rexo-template-edit .rexo-tab-pane.active {
    display: block;
}

/* 自定义提示框系统 */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==================== 音乐播放器组件 ==================== */
.rexo-music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 16px;
    transition: all 0.3s ease;
    font-family: var(--rexo-font-family);
}

.rexo-music-player.minimized {
    width: 60px;
    height: 60px;
    padding: 8px;
    border-radius: 50%;
}

.rexo-music-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rexo-music-player-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rexo-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rexo-music-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rexo-music-player-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--rexo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.rexo-music-player-btn:hover {
    background: var(--rexo-primary-dark);
    transform: scale(1.05);
}

.rexo-music-player-btn.minimize {
    background: var(--rexo-text-secondary);
    font-size: 12px;
}

.rexo-music-player-btn.close {
    background: var(--rexo-error);
    font-size: 12px;
}

.rexo-music-player-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rexo-music-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rexo-music-player-cover {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rexo-primary), var(--rexo-primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.rexo-music-player-details {
    flex: 1;
    min-width: 0;
}

.rexo-music-player-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--rexo-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rexo-music-player-status {
    font-size: 12px;
    color: var(--rexo-text-secondary);
}

.rexo-music-player-progress {
    width: 100%;
    height: 4px;
    background: var(--rexo-border-color);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.rexo-music-player-progress-bar {
    height: 100%;
    background: var(--rexo-primary);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

.rexo-music-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--rexo-text-secondary);
    margin-top: 4px;
}

.rexo-music-player-main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.rexo-music-player-main-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--rexo-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.rexo-music-player-main-btn:hover {
    background: var(--rexo-primary-dark);
    transform: scale(1.1);
}

.rexo-music-player-main-btn.play {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.rexo-music-player-main-btn.secondary {
    background: var(--rexo-text-secondary);
    font-size: 14px;
}

.rexo-music-player-main-btn.secondary:hover {
    background: var(--rexo-text-primary);
}

/* 最小化状态 */
.rexo-music-player.minimized .rexo-music-player-content {
    display: none;
}

.rexo-music-player.minimized .rexo-music-player-header {
    margin-bottom: 0;
}

.rexo-music-player.minimized .rexo-music-player-title {
    display: none;
}

.rexo-music-player.minimized .rexo-music-player-controls {
    gap: 4px;
}

.rexo-music-player.minimized .rexo-music-player-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .rexo-music-player {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .rexo-music-player.minimized {
        width: 50px;
        height: 50px;
        right: 20px;
        left: auto;
    }
}

/* 动画效果 */
@keyframes rexoMusicPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.rexo-music-player.playing .rexo-music-player-cover {
    animation: rexoMusicPulse 2s infinite;
}

/* ==================== 表格卡片响应式 ==================== */
.rexo-table-mobile-card {
    width: 100%;
}

@media (max-width: 768px) {
    .rexo-table-wrapper-mobile {
        overflow: visible;
    }

    .rexo-table-wrapper-mobile .rexo-table-mobile-card {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .rexo-table-mobile-card thead {
        display: none;
    }

    .rexo-table-mobile-card tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .rexo-table-mobile-card tbody tr {
        display: block;
        background: var(--rexo-bg-paper);
        border-radius: var(--rexo-radius);
        border: 1px solid var(--rexo-divider);
        border-left: 4px solid var(--rexo-primary);
        padding: 0.85rem 1rem;
        box-shadow: var(--rexo-shadow-xs);
    }

    .rexo-table-mobile-card tbody tr:nth-child(even) {
        background: var(--rexo-bg-paper);
    }

    .rexo-table-mobile-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border-bottom: 1px solid var(--rexo-divider);
        font-size: 0.9rem;
    }

    .rexo-table-mobile-card tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .rexo-table-mobile-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--rexo-text-secondary);
        font-size: 0.82rem;
    }

    .rexo-table-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .rexo-table-actions .rexo-btn {
        flex: 1;
        min-width: 48%;
    }
}

/* ==================== 工具类 ==================== */
/* 显示/隐藏 */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

/* 文本对齐 */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* 文本颜色 */
.text-muted {
    color: var(--rexo-text-disabled) !important;
}

.text-primary {
    color: var(--rexo-primary) !important;
}

.text-success {
    color: var(--rexo-success) !important;
}

.text-warning {
    color: var(--rexo-warning) !important;
}

.text-danger, .text-error {
    color: var(--rexo-error) !important;
}

.text-info {
    color: var(--rexo-info) !important;
}

.text-secondary {
    color: var(--rexo-text-secondary) !important;
}

/* 边距工具类 */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-0, .ml-0 { margin-left: 0 !important; }
.me-0, .mr-0 { margin-right: 0 !important; }

.m-1 { margin: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.ms-1, .ml-1 { margin-left: 0.25rem !important; }
.me-1, .mr-1 { margin-right: 0.25rem !important; }

.m-2 { margin: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ms-2, .ml-2 { margin-left: 0.5rem !important; }
.me-2, .mr-2 { margin-right: 0.5rem !important; }

.m-3 { margin: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ms-3, .ml-3 { margin-left: 1rem !important; }
.me-3, .mr-3 { margin-right: 1rem !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.ps-0, .pl-0 { padding-left: 0 !important; }
.pe-0, .pr-0 { padding-right: 0 !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }

/* 宽度 */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* 其他 */
.cursor-pointer {
    cursor: pointer !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* ==================== 翻页组件 ==================== */
.rexo-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.rexo-pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rexo-pagination-label {
    font-size: 0.875rem;
    color: var(--rexo-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.rexo-pagination-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--rexo-border-color);
    border-radius: var(--rexo-radius);
    background: var(--rexo-bg-paper);
    color: var(--rexo-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rexo-pagination-select:hover {
    border-color: var(--rexo-primary);
    color: var(--rexo-primary);
}

.rexo-pagination-select:focus {
    outline: none;
    border-color: var(--rexo-primary);
    box-shadow: 0 0 0 2px rgba(var(--rexo-primary-rgb), 0.2);
}

.rexo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rexo-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--rexo-border-color);
    border-radius: var(--rexo-radius);
    background: var(--rexo-bg-paper);
    color: var(--rexo-text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rexo-pagination-item:hover {
    background: var(--rexo-bg-hover);
    border-color: var(--rexo-primary);
    color: var(--rexo-primary);
    text-decoration: none;
}

.rexo-pagination-item.active {
    background: var(--rexo-primary);
    border-color: var(--rexo-primary);
    color: #fff;
}

.rexo-pagination-item.active:hover {
    background: var(--rexo-primary-dark);
    border-color: var(--rexo-primary-dark);
    color: #fff;
}

.rexo-pagination-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.rexo-pagination-item.disabled:hover {
    background: var(--rexo-bg-paper);
    border-color: var(--rexo-border-color);
    color: var(--rexo-text-primary);
}

.rexo-pagination-prev,
.rexo-pagination-next {
    min-width: auto;
    padding: 0 1rem;
}

.rexo-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--rexo-text-secondary);
    font-size: 0.875rem;
    cursor: default;
}

/* 翻页组件响应式 */
@media (max-width: 768px) {
    .rexo-pagination-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .rexo-pagination-per-page {
        order: 2;
        justify-content: center;
    }
    
    .rexo-pagination {
        order: 1;
        gap: 0.25rem;
    }
    
    .rexo-pagination-item {
        min-width: 32px;
        height: 32px;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }
    
    .rexo-pagination-prev,
    .rexo-pagination-next {
        padding: 0 0.75rem;
    }
    
    .rexo-pagination-select {
        min-width: 70px;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .rexo-pagination-container {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .rexo-pagination {
        gap: 0.125rem;
    }
    
    .rexo-pagination-item {
        min-width: 28px;
        height: 28px;
        padding: 0 0.375rem;
        font-size: 0.75rem;
    }
    
    .rexo-pagination-prev,
    .rexo-pagination-next {
        padding: 0 0.5rem;
    }
    
    .rexo-pagination-select {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .rexo-pagination-label {
        font-size: 0.8125rem;
    }
}

/* 上传按钮布局优化 */
.rexo-upload-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rexo-upload-group .rexo-input {
    width: 100%;
    margin-bottom: 0;
}

.rexo-upload-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rexo-upload-buttons .rexo-btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .rexo-upload-group {
        gap: 0.75rem;
    }
    
    .rexo-upload-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rexo-upload-buttons .rexo-btn {
        flex: none;
        width: 100%;
        justify-content: center;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .rexo-upload-group {
        gap: 0.5rem;
    }
    
    .rexo-upload-buttons {
        gap: 0.375rem;
    }
    
    .rexo-upload-buttons .rexo-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* 卡片头部按钮组在超小屏幕上更紧凑 */
    .rexo-card-header .rexo-btn-group {
        gap: 0.375rem;
    }
    
    .rexo-card-header .rexo-btn-group .rexo-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* ==================== Toast 提示框 ==================== */
.rexo-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background: var(--rexo-bg-paper);
    border-radius: var(--rexo-radius);
    box-shadow: var(--rexo-shadow-lg);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rexo-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.rexo-toast-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.rexo-toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rexo-toast-message {
    flex: 1;
    color: var(--rexo-text-primary);
    line-height: 1.5;
    font-size: 0.875rem;
}

.rexo-toast-close {
    background: none;
    border: none;
    color: var(--rexo-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--rexo-radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rexo-toast-close:hover {
    background: var(--rexo-bg-hover);
    color: var(--rexo-text-primary);
}

/* Toast 类型样式 */
.rexo-toast-success {
    border-left: 4px solid var(--rexo-success);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rexo-toast-success .rexo-toast-icon {
    color: var(--rexo-success);
}

.rexo-toast-error {
    border-left: 4px solid var(--rexo-error);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rexo-toast-error .rexo-toast-icon {
    color: var(--rexo-error);
}

.rexo-toast-warning {
    border-left: 4px solid var(--rexo-warning);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rexo-toast-warning .rexo-toast-icon {
    color: var(--rexo-warning);
}

.rexo-toast-info {
    border-left: 4px solid var(--rexo-info);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rexo-toast-info .rexo-toast-icon {
    color: var(--rexo-info);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .rexo-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ==================== 确认弹窗 ==================== */
.rexo-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rexo-confirm-overlay.show {
    opacity: 1;
}

.rexo-confirm {
    background: var(--rexo-bg-paper);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rexo-confirm-overlay.show .rexo-confirm {
    transform: scale(1) translateY(0);
}

.rexo-confirm-content {
    display: flex;
    flex-direction: column;
}

.rexo-confirm-header {
    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem;
    gap: 1rem;
}

.rexo-confirm-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rexo-confirm-icon i {
    font-size: 1.75rem;
    color: #f59e0b;
}

.rexo-confirm-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--rexo-text-primary);
    line-height: 1.3;
    margin: 0;
}

.rexo-confirm-body {
    padding: 0 2rem 1.5rem;
}

.rexo-confirm-message {
    color: var(--rexo-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    white-space: pre-line;
    margin: 0;
}

.rexo-confirm-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem 2rem;
    justify-content: flex-end;
    background: var(--rexo-bg-subtle);
    border-top: 1px solid var(--rexo-border);
}

.rexo-confirm-footer .rexo-btn {
    min-width: 100px;
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.rexo-confirm-cancel {
    background: var(--rexo-bg-secondary);
    color: var(--rexo-text-primary);
    border: 1px solid var(--rexo-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rexo-confirm-cancel:hover {
    background: var(--rexo-bg-hover);
    border-color: var(--rexo-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rexo-confirm-ok {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.rexo-confirm-ok:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.rexo-confirm-ok:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .rexo-confirm {
        width: 95%;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .rexo-confirm-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .rexo-confirm-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .rexo-confirm-icon i {
        font-size: 1.5rem;
    }
    
    .rexo-confirm-title {
        font-size: 1.25rem;
    }
    
    .rexo-confirm-body {
        padding: 0 1.5rem 1.25rem;
    }
    
    .rexo-confirm-message {
        font-size: 0.95rem;
    }
    
    .rexo-confirm-footer {
        padding: 1.25rem 1.5rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }
    
    .rexo-confirm-footer .rexo-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

/* ==================== 全局字体粗细优化 ==================== */
/* 优化整个系统的文字显示效果 */

/* 所有文本元素统一加粗 */
body, 
p, 
span, 
div, 
label, 
a, 
input, 
textarea, 
select, 
button {
    font-weight: 500 !important; /* 中等粗细，确保清晰易读 */
}

/* 标题和重要文字更粗 */
h1, h2, h3, h4, h5, h6,
.rexo-page-title,
.rexo-card-title,
.rexo-form-label,
.rexo-menu-item-text {
    font-weight: 600 !important;
}

/* 按钮文字加粗 */
.rexo-btn,
button,
input[type="button"],
input[type="submit"] {
    font-weight: 600 !important;
}

/* 输入框文字适中 */
.rexo-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    font-weight: 500 !important;
}

/* 导航栏文字 */
.rexo-navbar,
.rexo-breadcrumb {
    font-weight: 500 !important;
}

/* 表格文字 */
.rexo-table th,
.rexo-table td {
    font-weight: 500 !important;
}

/* 统计数据加粗 */
.rexo-stats-card h3,
.rexo-stats-card h6 {
    font-weight: 700 !important;
}

