/* 管理后台样式文件 */

/* ==================== 白底红色主题变量 ==================== */
:root {
    --bg-base: #ffffff;
    --bg-subtle: #f8f9fa;
    --bg-muted: #f0f1f3;
    --bg-elevated: #ffffff;
    --border: #e8e8ec;
    --border-hover: #d0d0d6;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #e63946;
    --accent-hover: #d32f3c;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f5f8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 防止页面闪烁 */
[v-cloak] {
    display: none !important;
}

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

/* ==================== 新版深色侧边栏 ==================== */
.sidebar {
    width: 220px;
    background: var(--bg-base);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.25s ease;
}

/* 品牌区域 */
.sidebar-brand {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.brand-logo-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-right: 28px;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.brand-logo {
    position: relative;
    width: 110px;
    height: 42px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 21px;
    padding: 1.5px;
    background: conic-gradient(from var(--angle, 0deg), transparent 30%, #6366f1 45%, #a855f7 55%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: brand-border-spin 3s linear infinite;
}

@keyframes brand-border-spin {
    to { --angle: 360deg; }
}

.brand-logo-text {
    position: relative;
    z-index: 2;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 侧边栏边框 */
.sidebar {
    border-right: 1px solid #e8e8ec;
}

.brand-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.brand-toggle:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.brand-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航区域 */
.nav-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px;
}

.nav-section::-webkit-scrollbar {
    width: 4px;
}

.nav-section::-webkit-scrollbar-track {
    background: transparent;
}

.nav-section::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 2px;
}

.nav-group {
    margin-bottom: 20px;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 8px 6px;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--bg-subtle);
}

.nav-item.active {
    background: var(--bg-subtle);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #e63946;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-muted);
    transition: all 0.15s;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: var(--text);
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.nav-content {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.nav-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s;
    white-space: nowrap;
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    color: var(--text);
}

.nav-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.nav-item.expanded .nav-arrow {
    transform: rotate(90deg);
}

/* 子菜单包装器 */
.submenu-wrapper {
    position: relative;
}

/* 子菜单 */
.nav-submenu {
    padding-left: 52px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.nav-submenu-inner {
    display: contents;
}

.submenu-wrapper .nav-item.expanded ~ .nav-submenu,
.nav-item.expanded + .nav-submenu {
    max-height: 200px;
}

.nav-subitem {
    padding: 7px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.nav-subitem::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--border);
}

.nav-subitem:hover {
    color: var(--text);
    background: var(--bg-subtle);
}

.nav-subitem.active {
    color: var(--accent);
}

/* 用户区域 */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.user-card:hover {
    background: var(--bg-subtle);
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    position: relative;
    flex-shrink: 0;
}

.user-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.user-info-sidebar {
    flex: 1;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.user-name-sidebar {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.user-role-sidebar {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-muted);
    color: var(--text);
}

/* 用户弹出菜单 */
.user-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 12px;
    right: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.user-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-muted);
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-popup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.user-popup-info {
    flex: 1;
}

.user-popup-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.user-popup-role {
    font-size: 12px;
    color: var(--text-muted);
}

.user-popup-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.user-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.user-popup-item:hover {
    background: var(--bg-muted);
    color: var(--text);
}

.user-popup-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.user-popup-item.danger {
    color: var(--danger);
}

.user-popup-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== 侧边栏折叠状态 ==================== */
.sidebar.collapsed {
    width: 88px;
    overflow: visible;
}

.sidebar.collapsed .sidebar-brand {
    padding: 16px 8px;
    justify-content: center;
}

.sidebar.collapsed .brand-logo-wrap {
    padding-right: 0;
}

.sidebar.collapsed .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.sidebar.collapsed .brand-logo::before {
    border-radius: 50%;
}

.sidebar.collapsed .brand-logo-text {
    font-size: 0;
}

.sidebar.collapsed .brand-logo-text::before {
    content: 'G';
    font-size: 20px;
    font-weight: 800;
}

.sidebar.collapsed .brand-toggle {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.sidebar.collapsed .brand-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed .nav-section {
    padding: 0 8px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .nav-section::-webkit-scrollbar {
    width: 0;
}

.sidebar.collapsed .nav-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar.collapsed .nav-group-title {
    display: none !important;
}

.sidebar.collapsed .nav-item {
    width: 56px;
    justify-content: center;
    padding: 8px;
    margin-bottom: 4px;
}

.sidebar.collapsed .nav-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0;
}

.sidebar.collapsed .nav-content,
.sidebar.collapsed .nav-arrow {
    display: none !important;
}

/* 折叠时的 tooltip */
.sidebar.collapsed .nav-item[data-title]::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 12px;
    background: var(--bg-elevated);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.sidebar.collapsed .nav-item[data-title]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 折叠时子菜单弹出 */
.sidebar.collapsed .submenu-wrapper {
    position: relative;
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .submenu-wrapper .nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    padding-left: 12px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
    max-height: none !important;
    overflow: visible;
}

.sidebar.collapsed .submenu-wrapper .nav-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
}

.sidebar.collapsed .submenu-wrapper .nav-submenu-inner {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.sidebar.collapsed .submenu-wrapper:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar.collapsed .submenu-wrapper .nav-submenu .nav-subitem {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
}

.sidebar.collapsed .submenu-wrapper .nav-submenu .nav-subitem::before {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    padding: 8px;
    display: flex;
    justify-content: center;
}

.sidebar.collapsed .user-card {
    width: 56px;
    justify-content: center;
    padding: 8px;
}

.sidebar.collapsed .user-info-sidebar,
.sidebar.collapsed .user-menu-btn {
    display: none !important;
}

.sidebar.collapsed .user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.sidebar.collapsed .user-popup {
    left: calc(100% + 12px);
    bottom: 0;
    right: auto;
    width: 220px;
}

/* 折叠过渡期间禁用弹出 */
.sidebar.transitioning .nav-submenu,
.sidebar.transitioning .submenu-wrapper .nav-submenu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
}

/* ==================== 新版深色顶部导航 ==================== */
.main-container {
    margin-left: 220px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
    overflow-x: hidden;
}

.sidebar.collapsed ~ .main-container {
    margin-left: 88px;
}

.top-header {
    height: 60px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 16px;
    overflow: hidden;
}

/* ==================== 顶部标签页 ==================== */
.topbar-tabs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.tabs-container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0;
    flex: 1;
    min-width: 0;
}

.tabs-container::-webkit-scrollbar {
    height: 0;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    position: relative;
    flex-shrink: 0;
}

.tab-item:hover {
    background: var(--bg-muted);
    color: var(--text);
    border-color: var(--border-hover);
}

.tab-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tab-icon {
    font-size: 11px;
    opacity: 0.8;
}

.tab-title {
    font-weight: 500;
}

.tab-close {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    margin-left: 4px;
    transition: all 0.15s;
}

.tab-item:hover .tab-close {
    opacity: 0.6;
}

.tab-close:hover {
    background: rgba(0,0,0,0.08);
    opacity: 1 !important;
}

.tab-item.active .tab-close:hover {
    background: rgba(0,0,0,0.2);
}

.tab-item.pinned .tab-close {
    display: none;
}

.tabs-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
    flex-shrink: 0;
}

.tabs-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.15s;
}

.tabs-action-btn:hover {
    background: var(--bg-muted);
    color: var(--text);
}

.header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    height: 36px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 18px;
    white-space: nowrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot.green { background: var(--success); }
.status-dot.green::after { background: var(--success); opacity: 0.3; }
.status-dot.blue { background: var(--accent); }
.status-dot.blue::after { background: var(--accent); opacity: 0.3; }
.status-dot.yellow { background: var(--warning); }
.status-dot.yellow::after { background: var(--warning); opacity: 0.3; }
.status-dot.red { background: var(--danger); }
.status-dot.red::after { background: var(--danger); opacity: 0.3; }

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.status-value {
    font-weight: 600;
    color: var(--text);
}

/* 旧版兼容 - 保留但不显示 */
.breadcrumb {
    display: none;
}

.stats-badge {
    display: none;
}

.user-info {
    display: none;
}

.avatar {
    display: none;
}

/* ==================== 内容区域 ==================== */
.content-area {
    padding: 24px 32px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card-pro {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out;
}

.stat-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.stat-card-pro::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-label-pro {
    color: #8c8c8c;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value-pro {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.stat-trend-pro {
    font-size: 12px;
    color: #52c41a;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== 卡片 ==================== */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

/* ==================== 状态标签 ==================== */
.status-tag-pro {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-pending {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
    color: #fa8c16;
}

.status-approved {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    color: #52c41a;
}

.status-rejected {
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    color: #ff4d4f;
}

.status-needinfo {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    color: #1890ff;
}

.status-success {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    color: #52c41a;
}

.status-danger {
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    color: #ff4d4f;
}

/* ==================== 详情抽屉 ==================== */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.detail-item {
    padding: 14px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.detail-item:not(:last-child) {
    border-bottom: 1px dashed #f0f0f0;
}

.detail-label {
    color: #8c8c8c;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.detail-label i {
    color: #e63946;
    width: 16px;
}

.detail-value {
    color: #262626;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* 可复制的值 */
.detail-value.copyable {
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
}

.detail-value.copyable:hover {
    background: #f0f0f0;
    color: #1890ff;
}

.detail-value.copyable:active {
    background: #e6f7ff;
    transform: scale(0.98);
}

.detail-value.copyable::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 11px;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #999;
}

.detail-value.copyable:hover::after {
    opacity: 0.7;
}

.status-card {
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.stat-card-pro:nth-child(1) { animation-delay: 0.1s; }
.stat-card-pro:nth-child(2) { animation-delay: 0.2s; }
.stat-card-pro:nth-child(3) { animation-delay: 0.3s; }
.stat-card-pro:nth-child(4) { animation-delay: 0.4s; }

/* ==================== 加载动画 ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #e63946;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: #333333;
    margin-top: 20px;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 登录页面 ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e63946 0%, #8b0000 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-box {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 420px;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #8c8c8c;
}

/* ==================== 表格样式统一 ==================== */
/* 强制统一所有表格的样式 */
.el-table {
    font-size: 13px !important;
}

.el-table .el-table__row {
    height: 50px !important;
}

.el-table .el-table__cell {
    padding: 12px 0 !important;
    font-size: 13px !important;
}

.el-table th.el-table__cell {
    background: #fafafa !important;
    color: #262626 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* small尺寸表格的额外控制 */
.el-table--small .el-table__row {
    height: 50px !important;
}

.el-table--small .el-table__cell {
    padding: 12px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* 确保表格内的标签和文本对齐 */
.el-table .el-table__cell .cell {
    line-height: 1.5 !important;
    padding: 0 8px !important;
}

/* ==================== 表格高亮样式 ==================== */
/* 高亮选中的验证码行 */
.el-table .highlight-row > td {
    background: linear-gradient(90deg, #e6f7ff 0%, #bae7ff 50%, #e6f7ff 100%) !important;
    animation: highlight-pulse 1.5s ease-in-out infinite;
}

.el-table .highlight-row:hover > td {
    background: linear-gradient(90deg, #d6efff 0%, #9ad7ff 50%, #d6efff 100%) !important;
}

@keyframes highlight-pulse {
    0%, 100% {
        background: linear-gradient(90deg, #e6f7ff 0%, #bae7ff 50%, #e6f7ff 100%);
    }
    50% {
        background: linear-gradient(90deg, #f0f9ff 0%, #d6efff 50%, #f0f9ff 100%);
    }
}

/* 实时输入行样式 - 在线浅绿色 */
.el-table .realtime-online-row > td {
    background-color: #f6ffed !important;
}

.el-table .realtime-online-row:hover > td {
    background-color: #d9f7be !important;
}

/* 实时输入行样式 - 离线浅红色 */
.el-table .realtime-offline-row > td {
    background-color: #fff2f0 !important;
}

.el-table .realtime-offline-row:hover > td {
    background-color: #ffccc7 !important;
}

/* 可复制单元格样式 */
.copyable-cell {
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.copyable-cell:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

.copyable-cell:active {
    background-color: rgba(24, 144, 255, 0.2);
    transform: scale(0.98);
}

/* 提交记录表格当前行高亮 */
.el-table .el-table__row.current-row > td {
    background: #f0f9ff !important;
}

.el-table .el-table__row.current-row:hover > td {
    background: #e6f7ff !important;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-container {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


 
 

/* ==================== 系统监控卡片 ==================== */
.system-monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.monitor-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.monitor-card-wide {
    grid-column: span 1;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.monitor-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f1f1f;
}

.monitor-subtitle {
    font-size: 12px;
    color: #8c8c8c;
}

.monitor-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-label {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 8px;
}

/* CPU 圆环 */
.cpu-ring {
    width: 120px;
    height: 120px;
    position: relative;
}

.cpu-ring svg {
    width: 100%;
    height: 100%;
}

.cpu-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #1f1f1f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cpu-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52c41a;
}

/* 内存信息 */
.memory-total {
    font-size: 32px;
    font-weight: bold;
    color: #1f1f1f;
}

.memory-label {
    font-size: 12px;
    color: #8c8c8c;
}

.memory-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #595959;
    margin-bottom: 8px;
}

.memory-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}


/* ==================== 审核配置页面样式 ==================== */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.message-item.is-default {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border-color: #ffe58f;
}

.message-index {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fa8c16 0%, #faad14 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content .el-input__wrapper {
    background: transparent;
    box-shadow: none !important;
    padding: 0;
}

.message-content .el-input__inner {
    font-size: 14px;
    color: #262626;
}

.message-item:hover .message-content .el-input__wrapper {
    background: #fff;
    box-shadow: 0 0 0 1px #d9d9d9 inset !important;
    padding: 4px 11px;
    border-radius: 6px;
}

.message-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==================== 拒绝选择对话框样式 ==================== */
.reject-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reject-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reject-option:hover {
    background: #fff;
    border-color: #d9d9d9;
}

.reject-option.selected {
    background: linear-gradient(135deg, #fff1f0 0%, #fff 100%);
    border-color: #ff4d4f;
}

.reject-option-radio {
    font-size: 20px;
    color: #d9d9d9;
    flex-shrink: 0;
}

.reject-option.selected .reject-option-radio {
    color: #ff4d4f;
}

.reject-option-text {
    flex: 1;
    font-size: 14px;
    color: #262626;
    line-height: 1.6;
}

/* 对话框美化 */
.custom-dialog .el-dialog__header,
.reject-dialog .el-dialog__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-dialog .el-dialog__title,
.reject-dialog .el-dialog__title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.custom-dialog .el-dialog__body,
.reject-dialog .el-dialog__body {
    padding: 20px 24px;
}

.custom-dialog .el-dialog__footer,
.reject-dialog .el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}


/* ==================== 审核配置页面样式 ==================== */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.message-item.is-default {
    background: linear-gradient(135deg, #fffbe6 0%, #fff7e6 100%);
    border-color: #ffe58f;
}

.message-index {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fa8c16 0%, #faad14 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content .el-input__wrapper {
    background: white;
    border-radius: 8px;
}

.message-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 拒绝选择对话框样式 */
.reject-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reject-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reject-option:hover {
    background: #fff;
    border-color: #d9d9d9;
}

.reject-option.selected {
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    border-color: #ff4d4f;
}

.reject-option-radio {
    font-size: 20px;
    color: #d9d9d9;
    flex-shrink: 0;
}

.reject-option.selected .reject-option-radio {
    color: #ff4d4f;
}

.reject-option-text {
    flex: 1;
    font-size: 14px;
    color: #262626;
    line-height: 1.6;
}

/* 对话框美化 */
.custom-dialog .el-dialog__header,
.reject-dialog .el-dialog__header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.custom-dialog .el-dialog__body,
.reject-dialog .el-dialog__body {
    padding: 20px 24px;
}

.custom-dialog .el-dialog__footer,
.reject-dialog .el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}


/* ==================== 审核配置紧凑布局 ==================== */
.message-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-item-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.message-item-compact:hover {
    background: #fff;
    border-color: #d9d9d9;
}

.message-item-compact.is-default {
    background: #fffbe6;
    border-color: #ffe58f;
}

.message-item-compact .el-input {
    flex: 1;
}

.message-actions-compact {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.message-actions-compact .el-button {
    width: 24px !important;
    height: 24px !important;
}


/* ==================== 验证码通过选择对话框 ==================== */
.approve-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approve-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.approve-option:hover {
    background: #fff;
    border-color: #d9d9d9;
}

.approve-option.selected {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border-color: #52c41a;
}

.approve-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approve-option-icon i {
    font-size: 22px;
    color: white;
}

.approve-option-content {
    flex: 1;
}

.approve-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.approve-option-desc {
    font-size: 13px;
    color: #8c8c8c;
}

.approve-option-radio {
    font-size: 22px;
    flex-shrink: 0;
}


/* ==================== 自动审核设置 ==================== */
.auto-audit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.auto-audit-item:last-child {
    border-bottom: none;
}

.auto-audit-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #262626;
}

.auto-audit-info i {
    font-size: 16px;
}

.auto-audit-select {
    padding: 8px 0 12px 26px;
    border-bottom: 1px solid #f5f5f5;
}


/* 自动审核分区 */
.auto-audit-section {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.auto-audit-section:last-child {
    border-bottom: none;
}

.auto-audit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auto-audit-bins {
    margin-top: 12px;
    padding-left: 26px;
}

.bins-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}


/* ==================== 自动审核设置（优化版） ==================== */
.auto-audit-block {
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.auto-audit-block:hover {
    background: #f5f5f5;
}

.auto-audit-block.active {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border-color: #95de64;
}

.auto-audit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auto-audit-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #262626;
}

.auto-audit-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.auto-audit-icon.approve {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
}

.auto-audit-icon.reject {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
}

.auto-audit-config {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d9d9d9;
}

.config-label {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 8px;
    font-weight: 500;
}


/* ==================== 验证码自动审核跳转选项卡片 ==================== */
.approve-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.approve-action-card:hover {
    border-color: #b7eb8f;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.15);
}

.approve-action-card.selected {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border-color: #52c41a;
    box-shadow: 0 2px 12px rgba(82, 196, 26, 0.2);
}

.approve-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.approve-action-icon i {
    font-size: 18px;
    color: white;
}

.approve-action-content {
    flex: 1;
    min-width: 0;
}

.approve-action-title {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 2px;
}

.approve-action-desc {
    font-size: 12px;
    color: #8c8c8c;
}

.approve-action-radio {
    flex-shrink: 0;
}

/* ==================== 审核配置页面 v2 ==================== */
/* ==================== 审核配置页（极简高级风格） ==================== */
.audit-config-page {
    max-width: none;
}

/* --- 双栏布局 --- */
.ac-two-col {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.ac-col-left {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 460px);
}

/* --- 项目选择标签 --- */
.ac-proj-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* --- 右栏固定定位 --- */
.ac-col-right {
    width: 440px;
    flex-shrink: 0;
    position: fixed;
    top: 84px;
    right: 32px;
    bottom: 24px;
    z-index: 10;
}

/* --- 2x2 四宫格 --- */
.ac-grid-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}
.ac-grid-cell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ac-grid-cell:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* --- 宫格标题 --- */
.ac-cell-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.ac-cell-title i {
    font-size: 12px;
    color: #94a3b8;
}

/* --- 今日数据格 --- */
.ac-cell-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.ac-cell-stat {
    text-align: center;
    padding: 12px 6px;
    background: #f8fafc;
    border-radius: 10px;
}
.ac-cell-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.ac-cell-lbl {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* --- 在线访客格 --- */
.ac-cell-online {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.ac-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: ac-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ac-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}
.ac-online-num {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    font-variant-numeric: tabular-nums;
}
.ac-online-txt {
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
}
.ac-cell-visitors {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.ac-cell-visitors::-webkit-scrollbar { width: 3px; }
.ac-cell-visitors::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.ac-cv-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #f8fafc;
}
.ac-cv-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}
.ac-cv-id {
    color: #64748b;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 10px;
}
.ac-cv-page {
    margin-left: auto;
    color: #94a3b8;
    font-size: 10px;
    white-space: nowrap;
}
.ac-cv-more {
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    padding: 2px 0;
}

/* --- 审核模式格 --- */
.ac-cell-modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.ac-cell-modes::-webkit-scrollbar { width: 3px; }
.ac-cell-modes::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.ac-cm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
}
.ac-cm-name {
    color: #334155;
    font-weight: 500;
    font-size: 13px;
}
.ac-cm-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
.ac-cm-badge.mode-approve {
    background: #ecfdf5;
    color: #059669;
}
.ac-cm-badge.mode-reject {
    background: #fef2f2;
    color: #dc2626;
}
.ac-cm-badge.mode-manual {
    background: #f1f5f9;
    color: #94a3b8;
}

/* --- 最近动态格 --- */
.ac-cell-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.ac-cell-activity::-webkit-scrollbar { width: 3px; }
.ac-cell-activity::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.ac-ca-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
}
.ac-ca-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.ac-ca-icon.submit { background: #eff6ff; color: #3b82f6; }
.ac-ca-icon.approve { background: #ecfdf5; color: #10b981; }
.ac-ca-icon.reject { background: #fef2f2; color: #ef4444; }
.ac-ca-icon.online { background: #f0fdf4; color: #22c55e; }
.ac-ca-icon.offline { background: #f8fafc; color: #94a3b8; }
.ac-ca-info { flex: 1; min-width: 0; }
.ac-ca-text {
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
    word-break: break-all;
}
.ac-ca-time {
    font-size: 10px;
    color: #cbd5e1;
    margin-top: 2px;
}

/* --- 空状态提示 --- */
.ac-cell-empty-hint {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 11px;
    gap: 2px;
}

/* --- 侧边栏收起时调整右栏和左栏 --- */
.sidebar.collapsed ~ .main-container .ac-col-left {
    max-width: calc(100% - 460px);
}

/* --- 响应式 --- */
@media (max-width: 1400px) {
    .ac-col-right { width: 380px; }
    .ac-col-left { max-width: calc(100% - 400px); }
    .sidebar.collapsed ~ .main-container .ac-col-left { max-width: calc(100% - 400px); }
}
@media (max-width: 1200px) {
    .ac-two-col { flex-direction: column; }
    .ac-col-left { max-width: none; }
    .ac-col-right {
        position: static;
        width: 100%;
        height: 360px;
    }
    .sidebar.collapsed ~ .main-container .ac-col-left { max-width: none; }
}
@media (max-width: 700px) {
    .ac-grid-panel { grid-template-columns: 1fr; }
    .ac-col-right { height: auto; }
    .ac-grid-cell { min-height: 160px; }
}

/* --- 顶部标题区 --- */
.ac-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
}

.ac-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.ac-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.ac-project-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ac-proj-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ac-proj-chip:hover {
    background: #e2e8f0;
    color: #334155;
}

.ac-proj-chip.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* --- 空状态 --- */
.ac-empty-state {
    text-align: center;
    padding: 80px 24px;
}

.ac-empty-icon {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.ac-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ac-empty-desc {
    font-size: 13px;
    color: #94a3b8;
}

/* --- 页面卡片列表 --- */
.ac-page-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ac-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ac-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

/* --- 卡片头部 --- */
.ac-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.ac-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ac-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

/* --- 审核开关 --- */
.ac-switches {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ac-switch-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-switch-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ac-switch-approve { color: #10b981; }
.ac-switch-reject { color: #ef4444; }

/* --- 卡片内容 --- */
.ac-card-body {
    padding: 20px 24px;
}

/* --- 通过后跳转目标 --- */
.ac-redirect-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #f1f5f9;
}
.ac-redirect-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ac-redirect-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.ac-redirect-opt:hover {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}
.ac-redirect-opt.active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.ac-redirect-opt.active i {
    color: #10b981;
}

/* --- BIN拒绝区块 --- */
.ac-bin-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.ac-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ac-field-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

/* --- 拒绝话术区块 --- */
.ac-msg-section {}

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

.ac-msg-add {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ac-msg-add:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.ac-msg-add i {
    font-size: 10px;
}

/* --- 话术列表 --- */
.ac-msg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ac-msg-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.ac-msg-row:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.ac-msg-row.is-default {
    background: #fefce8;
    border-color: #fde68a;
}

.ac-msg-content {
    flex: 1;
    min-width: 0;
}

.ac-msg-content .el-input__wrapper {
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 4px !important;
}

.ac-msg-content .el-input__inner {
    font-size: 13px;
    color: #334155;
}

.ac-msg-ops {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ac-op-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.ac-op-btn:hover {
    color: #64748b;
    background: #e2e8f0;
}

.ac-op-btn.starred {
    color: #f59e0b;
}

.ac-op-btn.starred:hover {
    color: #d97706;
    background: #fef3c7;
}

.ac-op-btn.del:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* --- 空话术提示 --- */
.ac-msg-empty {
    text-align: center;
    padding: 28px 16px;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 添加话术对话框 --- */
.ac-dialog .el-dialog__header {
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.ac-dialog .el-dialog__title {
    font-weight: 600;
    color: #1e293b;
}

.ac-dialog-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ==================== 提交记录面板布局 ==================== */
.submission-panels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-panel {
    background: #ffffff;
    border: 1px solid #e8e8ec;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    border-left: 3px solid #d0d0d6;
}

.sub-panel:hover {
    border-color: #d0d0d6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sub-panel.sub-panel-online {
    border-left-color: #52c41a;
    box-shadow: 0 0 12px rgba(82, 196, 26, 0.08);
}

.sub-panel.sub-panel-online:hover {
    border-color: #c8e6c9;
    border-left-color: #52c41a;
    box-shadow: 0 4px 20px rgba(82, 196, 26, 0.1);
}

.sub-panel.sub-panel-realtime {
    border-left-color: #faad14;
}
.sub-panel.sub-panel-realtime .sub-panel-header {
    background: #fffbe6;
    border-bottom-color: #ffe58f;
}
.sub-panel.sub-panel-realtime .sub-panel-id-badge {
    color: #d48806;
    background: rgba(250, 173, 20, 0.1);
    border-color: rgba(250, 173, 20, 0.3);
}

/* 面板头部 */
.sub-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8ec;
    gap: 10px;
}

.sub-panel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: visible;
    flex-wrap: wrap;
}

.sub-panel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sub-panel-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #e63946;
    background: rgba(230, 57, 70, 0.06);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(230, 57, 70, 0.15);
    white-space: nowrap;
}

.sub-panel-device-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 2px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.sub-panel-device-badge i {
    font-size: 13px;
}

.sub-panel-device-badge.device-online {
    color: #52c41a;
    background: rgba(82, 196, 26, 0.06);
    border: 1px solid rgba(82, 196, 26, 0.15);
}

.sub-panel-device-badge.device-offline {
    color: #999999;
    background: #f0f1f3;
    border: 1px solid #e0e0e4;
}

.sub-panel-time-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-right: 2px;
    color: #666666;
    background: #f0f1f3;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e4;
    white-space: nowrap;
}

.sub-panel-frontend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    background: #f0f1f3;
    padding: 4px 14px;
    border-radius: 6px;
    border: 1px solid #e0e0e4;
    white-space: nowrap;
}

/* 审核状态徽章 */
.sub-panel-audit-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}

.sub-panel-audit-badge i {
    font-size: 10px;
}

.sub-panel-audit-badge.badge-pending {
    background: rgba(24, 144, 255, 0.08);
    color: #1890ff;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.sub-panel-audit-badge.badge-approved {
    background: rgba(82, 196, 26, 0.08);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.2);
}

.sub-panel-audit-badge.badge-rejected {
    background: rgba(255, 77, 79, 0.08);
    color: #e63946;
    border: 1px solid rgba(255, 77, 79, 0.2);
}

.sub-panel-audit-badge.badge-realtime {
    background: rgba(250, 173, 20, 0.08);
    color: #d48806;
    border: 1px solid rgba(250, 173, 20, 0.2);
}
.sub-panel-audit-badge.badge-otp-typing {
    background: rgba(230, 126, 34, 0.08);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.25);
    animation: otp-pulse 1.5s ease-in-out infinite;
}
.sub-panel-audit-badge.badge-otp-pending {
    background: rgba(155, 89, 182, 0.08);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.25);
}
@keyframes otp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 面板按钮 */
.sub-panel-btn {
    font-size: 12px !important;
    background: #f0f1f3 !important;
    border-color: #d0d0d6 !important;
    color: #555555 !important;
    transition: all 0.2s !important;
}

.sub-panel-btn:hover {
    background: #e8e8ec !important;
    border-color: #c0c0c6 !important;
    color: #333333 !important;
}

.sub-panel-btn i {
    margin-right: 3px;
}

.sub-panel-btn.btn-online {
    background: rgba(82, 196, 26, 0.06) !important;
    border-color: rgba(82, 196, 26, 0.2) !important;
    color: #52c41a !important;
}

.sub-panel-btn.btn-online:hover {
    background: rgba(82, 196, 26, 0.12) !important;
    border-color: rgba(82, 196, 26, 0.35) !important;
    color: #389e0d !important;
}

/* 数据区域 */
.sub-panel-data {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 2px;
    flex-wrap: wrap;
    background: #ffffff;
}

.sub-panel-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-right: 1px solid #e8e8ec;
}

.sub-panel-field:last-child {
    border-right: none;
}

.field-label {
    font-size: 11px;
    color: #999999;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.field-label i {
    font-size: 10px;
    opacity: 0.5;
}

.field-value {
    font-size: 13px;
    color: #333333;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-value.copyable {
    cursor: pointer;
    transition: all 0.15s;
    padding: 1px 4px;
    border-radius: 3px;
}

.field-value.copyable:hover {
    color: #1a1a1a;
    background: #f0f1f3;
}

.field-mono {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.field-password {
    font-family: 'Courier New', Consolas, monospace;
    color: #ff6b6b;
    font-weight: 600;
}

/* 卡号高亮 */
.sub-panel-field-cardnum {
    background: rgba(82, 196, 26, 0.04);
    border-radius: 6px;
    padding: 6px 16px;
    border-right: 1px solid #e8e8ec;
    margin: 2px 0;
}

.field-cardnum {
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 700;
    font-size: 14px;
    color: #52c41a;
    letter-spacing: 1.5px;
}

/* OTP 高亮 */
.sub-panel-field-otp {
    padding: 4px 12px;
    border-right: none;
    margin: 2px 0;
}

.field-otp {
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 700;
    font-size: 20px;
    color: #fa8c16;
    letter-spacing: 4px;
}

/* 实时输入字段（正在输入） */
.sub-panel-field-realtime {
    background: rgba(250, 219, 20, 0.12);
    border-radius: 4px;
    margin: 2px 0;
}

.sub-panel-field-realtime .field-value {
    color: #d48806 !important;
}

.sub-panel-field-realtime.sub-panel-field-cardnum {
    background: rgba(250, 219, 20, 0.18);
}

.sub-panel-field-realtime .field-cardnum {
    color: #d48806 !important;
}

/* 历史提交记录区域 */
.sub-panel-history {
    border-top: 2px solid #e8e8ec;
}
.history-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: linear-gradient(90deg, #8c8c8c, #a6a6a6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.history-header i {
    font-size: 11px;
    margin-right: 2px;
}

/* 重填数据区域 */
.sub-panel-realtime-data {
    border-top: 2px solid #faad14;
}
.realtime-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(90deg, #faad14, #ffc53d);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.realtime-header i {
    font-size: 11px;
}

/* 底部状态栏 */
.sub-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #f5f5f8;
    border-top: 1px solid #e8e8ec;
    min-height: 34px;
}

.sub-panel-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

/* 流程箭头样式 */
.sp-flow-arrow {
    color: #999;
    font-size: 12px;
    font-weight: bold;
    margin: 0 2px;
}

.sub-panel-footer-session {
    font-size: 11px;
    color: #bbbbbb;
    font-family: 'Courier New', Consolas, monospace;
}

/* 底部状态标签 */
.sp-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.sp-tag i {
    font-size: 9px;
}

.sp-tag-active {
    background: rgba(82, 196, 26, 0.06);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.15);
}

.sp-tag-page {
    background: rgba(24, 144, 255, 0.06);
    color: #1890ff;
    border: 1px solid rgba(24, 144, 255, 0.15);
}

.sp-tag-info {
    background: rgba(24, 144, 255, 0.05);
    color: #1890ff;
    border: 1px solid rgba(24, 144, 255, 0.12);
}

.sp-tag-success {
    background: rgba(82, 196, 26, 0.05);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.12);
}

.sp-tag-danger {
    background: rgba(230, 57, 70, 0.05);
    color: #e63946;
    border: 1px solid rgba(230, 57, 70, 0.12);
}

.sp-tag-warn {
    background: rgba(250, 173, 20, 0.05);
    color: #d48806;
    border: 1px solid rgba(250, 173, 20, 0.12);
}

.sp-tag-pass {
    background: rgba(82, 196, 26, 0.05);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.12);
}

.sp-tag-fail {
    background: rgba(230, 57, 70, 0.05);
    color: #e63946;
    border: 1px solid rgba(230, 57, 70, 0.12);
}

.sp-tag-done {
    background: linear-gradient(135deg, rgba(82, 196, 26, 0.1), rgba(56, 158, 13, 0.1));
    color: #389e0d;
    border: 1px solid rgba(56, 158, 13, 0.25);
    font-weight: 600;
}

.sp-tag-offline {
    background: rgba(153, 153, 153, 0.05);
    color: #999999;
    border: 1px solid rgba(153, 153, 153, 0.15);
}

.sub-panel-empty {
    text-align: center;
    padding: 60px;
    color: #bbbbbb;
    background: #ffffff;
    border-radius: 10px;
    border: 1px dashed #d0d0d6;
}

.sub-panel-empty i {
    font-size: 48px;
    opacity: 0.2;
    display: block;
    margin-bottom: 16px;
}

/* 面板内复选框 */
.sub-panel .el-checkbox .el-checkbox__inner {
    background-color: #ffffff;
    border-color: #d0d0d6;
    width: 16px;
    height: 16px;
}

.sub-panel .el-checkbox .el-checkbox__inner::after {
    border-color: #fff;
    border-width: 2px;
    height: 8px;
    left: 4px;
    top: 1px;
    width: 4px;
}

.sub-panel .el-checkbox.is-checked .el-checkbox__inner {
    background-color: #e63946;
    border-color: #e63946;
}

.sub-panel .el-checkbox.is-checked .el-checkbox__inner::after {
    transform: rotate(45deg) scaleY(1);
}

.sub-panel .el-checkbox .el-checkbox__inner:hover {
    border-color: #e63946;
}

/* ==================== 新提交闪烁动画 ==================== */
@keyframes panel-flash {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(230, 57, 70, 0.1);
        border-color: rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(230, 57, 70, 0.5), 0 0 40px rgba(230, 57, 70, 0.3);
        border-color: rgba(230, 57, 70, 0.8);
    }
}

.sub-panel-flash {
    animation: panel-flash 0.8s ease-in-out infinite;
    border: 2px solid rgba(230, 57, 70, 0.5) !important;
}

/* ==================== 前台管理 - 卡片网格 ==================== */
.deploy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1400px) { .deploy-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .deploy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .deploy-grid { grid-template-columns: 1fr; } }

.deploy-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}
.deploy-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.deploy-card-header {
    padding: 16px 16px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.deploy-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    background: #1890ff;
}

.deploy-card-title {
    flex: 1;
    min-width: 0;
}
.deploy-card-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.deploy-card-title p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.deploy-card-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.deploy-card-status.active { background: #52c41a; box-shadow: 0 0 6px rgba(82,196,26,0.4); }
.deploy-card-status.inactive { background: #d9d9d9; }

.deploy-card-body {
    padding: 12px 16px;
    flex: 1;
}
.deploy-card-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}
.deploy-card-label {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 6px;
    font-weight: 500;
}
.deploy-card-domains {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.deploy-card-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999;
    transition: background 0.15s;
    min-width: 0;
}
.deploy-card-domain:hover {
    background: #f0f0f0;
}
.deploy-card-domain.green {
    background: #f6ffed;
    border-color: #b7eb8f;
    color: #389e0d;
}
.deploy-card-domain.green:hover {
    background: #e8f8e0;
}
.deploy-card-domain.gray {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #999;
}
.deploy-card-domain.jump {
    background: #f9f0ff;
    border-color: #d3adf7;
    color: #722ed1;
}
.deploy-card-domain.jump:hover {
    background: #f0e5ff;
}
.deploy-card-domain.red {
    background: #fff1f0;
    border-color: #ffccc7;
    color: #cf1322;
    text-decoration: line-through;
}
.deploy-card-domain.red:hover {
    background: #ffe8e6;
}
.deploy-card-domain a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}
.deploy-card-domain a:hover {
    text-decoration: underline;
}
.deploy-card-domain .copy-btn {
    flex-shrink: 0;
    cursor: pointer;
    color: #bbb;
    font-size: 11px;
    transition: color 0.15s;
}
.deploy-card-domain .copy-btn:hover {
    color: #1890ff;
}

.deploy-card-footer {
    padding: 10px 16px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.deploy-card-footer .footer-btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #595959;
    transition: all 0.15s;
    white-space: nowrap;
}
.deploy-card-footer .footer-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.deploy-card-footer .footer-btn.danger {
    color: #ff4d4f;
}
.deploy-card-footer .footer-btn.danger:hover {
    border-color: #ff4d4f;
    background: #fff1f0;
}
.deploy-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.deploy-card-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}
.deploy-card-badge.ssl { background: #e6f7ff; color: #1890ff; }
.deploy-card-badge.rotate { background: #f6ffed; color: #52c41a; }
.deploy-card-badge.pending { background: #fff7e6; color: #fa8c16; }

