/* ============================================
   舟山海缆巡检管理平台 - 全局样式
   主题色: 海缆蓝 #0066CC  | 风格: 稳重政务风
   ============================================ */

:root {
    /* 主色系 */
    --primary: #0066CC;
    --primary-light: #3399FF;
    --primary-dark: #004C99;
    --primary-50: #E6F0FF;
    --primary-100: #D1E4FF;
    --primary-200: #B3D4FF;

    /* 功能色 */
    --success: #389E0D;
    --success-bg: #F0FBE8;
    --warning: #D48806;
    --warning-bg: #FFFBE6;
    --danger: #CF1322;
    --danger-bg: #FFF1F0;
    --info: #1890FF;
    --info-bg: #E6F4FF;

    /* 中性色 */
    --bg: #F0F2F5;
    --bg-soft: #F7F9FC;
    --card-bg: #FFFFFF;
    --text: #1F2A44;
    --text-secondary: #4A5568;
    --text-muted: #8A94A6;
    --border: #E5E9F0;
    --border-soft: #F0F2F5;
    --divider: #EEF1F6;

    /* 布局 */
    --sidebar-width: 232px;
    --sidebar-collapsed: 64px;
    --top-bar-height: 60px;

    /* 阴影 */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 4px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-blue: 0 4px 14px rgba(0, 102, 204, 0.18);

    /* 过渡 */
    --t-fast: 0.15s ease;
    --t: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary-50); color: var(--primary-dark); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.3); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============================================
   登录页
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(51, 153, 255, 0.25), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(0, 76, 153, 0.3), transparent 40%),
        linear-gradient(135deg, #003D7A 0%, #0066CC 50%, #1A7FE0 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.login-box {
    width: 420px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 30, 80, 0.45);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}
.login-header {
    text-align: center;
    margin-bottom: 36px;
}
.login-logo {
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
}
.login-logo svg { width: 36px; height: 36px; color: #fff; }
.login-header h1 {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.login-header p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; }
.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}
.login-footer .divider {
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto 12px;
    border-radius: 1px;
}

/* ============================================
   表单
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    background: #fff; color: var(--text);
    font-family: inherit;
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    border-color: var(--primary-200);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}
.form-group input::placeholder { color: var(--text-muted); }

/* ============================================
   按钮
   ============================================ */
.btn-primary {
    background: var(--primary); color: #fff; border: none; padding: 9px 20px;
    border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
    transition: all var(--t-fast); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-blue); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #C4CDD9; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-default {
    background: #fff; color: var(--text-secondary); border: 1px solid var(--border);
    padding: 9px 20px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
    transition: all var(--t-fast); font-family: inherit;
}
.btn-default:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-danger {
    background: var(--danger); color: #fff; border: none; padding: 9px 20px;
    border-radius: var(--radius-sm); cursor: pointer; transition: all var(--t-fast);
    font-family: inherit;
}
.btn-danger:hover { background: #A30F1C; box-shadow: 0 4px 12px rgba(207, 19, 34, 0.25); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-link {
    color: var(--primary); cursor: pointer; font-size: 13px;
    background: none; border: none; padding: 0; transition: color var(--t-fast);
    font-family: inherit;
}
.btn-link:hover { color: var(--primary-dark); text-decoration: underline; }
.btn-logout { color: var(--danger); }
.btn-logout:hover { color: #A30F1C; }

/* ============================================
   顶部栏
   ============================================ */
.top-bar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--top-bar-height);
    background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; z-index: 100; box-shadow: var(--shadow-xs);
}
.top-left { display: flex; align-items: center; gap: 16px; }
.top-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}
.top-logo svg { width: 22px; height: 22px; color: #fff; }
.menu-toggle {
    font-size: 20px; cursor: pointer; padding: 6px 8px; color: var(--text-secondary);
    border-radius: var(--radius-sm); transition: background var(--t-fast);
}
.menu-toggle:hover { background: var(--bg-soft); color: var(--primary); }
.app-title {
    font-size: 16px; font-weight: 600; color: var(--text);
    letter-spacing: 0.3px;
}
.top-right { display: flex; align-items: center; gap: 20px; }
.user-info {
    color: var(--text-secondary); font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
}
.user-info::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--success); display: inline-block;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar {
    position: fixed; top: var(--top-bar-height); left: 0; bottom: 0;
    width: var(--sidebar-width); background: #fff;
    border-right: 1px solid var(--border); z-index: 99;
    overflow-y: auto; transition: transform var(--t);
    padding-bottom: 24px;
}
.sidebar.collapsed { transform: translateX(-100%); }
.sidebar-nav { padding: 16px 12px; }
.nav-group-title {
    font-size: 11px; color: var(--text-muted);
    font-weight: 600; padding: 14px 16px 6px;
    letter-spacing: 1px; text-transform: uppercase;
}
.nav-group-title:first-child { padding-top: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    color: var(--text-secondary); text-decoration: none;
    transition: all var(--t-fast);
    border-left: 3px solid transparent;
    font-size: 14px; border-radius: var(--radius-sm);
    margin-bottom: 2px; cursor: pointer;
    position: relative;
}
.nav-item:hover {
    background: var(--primary-50); color: var(--primary);
}
.nav-item.active {
    background: linear-gradient(90deg, var(--primary-50) 0%, rgba(230, 240, 255, 0.4) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.nav-item.active::after {
    content: ''; position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.nav-icon {
    width: 20px; height: 20px; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-text { white-space: nowrap; }

/* ============================================
   主内容区
   ============================================ */
.main-content {
    margin-top: var(--top-bar-height);
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: calc(100vh - var(--top-bar-height));
    transition: margin-left var(--t);
}
.main-content.full { margin-left: 0; }

/* ============================================
   页面标题
   ============================================ */
.page-header {
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.page-title {
    font-size: 18px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.page-title::before {
    content: ''; width: 4px; height: 18px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-left: 4px; font-weight: 400; }

/* ============================================
   卡片
   ============================================ */
.card {
    background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: box-shadow var(--t);
}
.card-hover:hover { box-shadow: var(--shadow-md); }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px solid var(--divider);
}
.card-title {
    font-size: 15px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.card-title-icon {
    width: 28px; height: 28px;
    background: var(--primary-50); color: var(--primary);
    border-radius: 6px; display: inline-flex;
    align-items: center; justify-content: center;
}
.card-title-icon svg { width: 16px; height: 16px; }

/* ============================================
   统计卡片
   ============================================ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px; margin-bottom: 20px;
}
.stat-card {
    background: #fff; border-radius: var(--radius-lg); padding: 20px 22px;
    box-shadow: var(--shadow); border: 1px solid var(--border-soft);
    display: flex; flex-direction: column;
    transition: all var(--t); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--text-muted); opacity: 0.7;
}
.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: var(--success); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.warning::before { background: var(--warning); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-label {
    font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.stat-card .stat-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-50); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.stat-card.primary .stat-icon { background: var(--primary-50); color: var(--primary); }
.stat-card.success .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.danger .stat-icon { background: var(--danger-bg); color: var(--danger); }
.stat-card.warning .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-value {
    font-size: 30px; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
    line-height: 1.2;
}
.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card .stat-sub {
    font-size: 12px; color: var(--text-muted); margin-top: 6px;
}

/* ============================================
   表格
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    background: var(--bg-soft);
    padding: 11px 14px; text-align: left;
    font-weight: 600; color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    position: sticky; top: 0;
}
tbody td {
    padding: 11px 14px; border-bottom: 1px solid var(--divider);
    color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t-fast); }
tbody tr:nth-child(even) { background: rgba(247, 249, 252, 0.5); }
tbody tr:hover { background: var(--primary-50); }

/* ============================================
   标签
   ============================================ */
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 500; line-height: 18px;
    letter-spacing: 0.2px;
}
.tag-blue { background: var(--primary-50); color: var(--primary); }
.tag-green { background: var(--success-bg); color: var(--success); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-orange { background: var(--warning-bg); color: var(--warning); }
.tag-gray { background: #F0F2F5; color: var(--text-muted); }

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 6px; margin-top: 16px;
}
.pagination button {
    padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; cursor: pointer; font-size: 13px; color: var(--text-secondary);
    transition: all var(--t-fast); min-width: 32px;
    font-family: inherit;
}
.pagination button:hover:not(:disabled):not(.active) {
    border-color: var(--primary); color: var(--primary);
}
.pagination button.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    font-weight: 500;
}
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination span { font-size: 13px; color: var(--text-muted); margin: 0 6px; }

/* ============================================
   搜索栏
   ============================================ */
.search-bar {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
    align-items: center; padding: 14px; background: var(--bg-soft);
    border-radius: var(--radius); border: 1px solid var(--border-soft);
}
.search-bar input, .search-bar select {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; background: #fff; color: var(--text);
    transition: all var(--t-fast); font-family: inherit;
}
.search-bar input:hover, .search-bar select:hover { border-color: var(--primary-200); }
.search-bar input:focus, .search-bar select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ============================================
   弹窗
   ============================================ */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
.modal-dialog {
    position: relative; background: #fff;
    border-radius: var(--radius-lg);
    max-width: 600px; width: 90%; margin: 80px auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 宽弹窗（详情页）自动扩展 body 高度 */
.modal-dialog[style*="960"] .modal-body,
.modal-dialog[style*="max-width:960"] .modal-body,
.modal-dialog[style*="max-width: 960"] .modal-body {
    max-height: 72vh;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; border-bottom: 1px solid var(--divider);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--text); }
.modal-close {
    font-size: 22px; cursor: pointer; color: var(--text-muted);
    width: 28px; height: 28px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm); transition: all var(--t-fast);
    line-height: 1;
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; }

/* 详情弹窗专用样式 */
.detail-info-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-bottom: 16px;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 12px; color: var(--text-muted); }
.info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.info-remark { margin: 8px 0 16px; padding: 10px 14px; background: var(--bg-soft); border-radius: var(--radius); font-size: 13px; color: var(--text-secondary); }
.detail-section {
    margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--divider);
}
.detail-section-title {
    font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.wp-input {
    border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
    padding: 4px 8px; font-size: 13px; outline: none; transition: border-color var(--t-fast);
}
.wp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-50); }

.modal-footer {
    padding: 14px 24px; border-top: 1px solid var(--divider);
    display: flex; justify-content: flex-end; gap: 12px;
    background: var(--bg-soft);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
    position: fixed; top: 80px; right: 24px; padding: 12px 20px;
    border-radius: var(--radius); font-size: 14px; z-index: 2000;
    box-shadow: var(--shadow-lg); min-width: 240px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; align-items: center; gap: 8px;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: none; }
}
.toast.success { background: #F6FFED; color: var(--success); border: 1px solid #B7EB8F; }
.toast.error { background: #FFF2F0; color: var(--danger); border: 1px solid #FFCCC7; }
.toast.info { background: #E6F7FF; color: var(--info); border: 1px solid #91D5FF; }

/* ============================================
   进度条
   ============================================ */
.progress-bar {
    height: 6px; background: #F0F2F5;
    border-radius: 3px; overflow: hidden;
    display: inline-block; vertical-align: middle;
    min-width: 80px;
}
.progress-bar .progress {
    height: 100%; border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-green { background: var(--success); }
.progress-blue { background: var(--primary); }
.progress-red { background: var(--danger); }
.progress-orange { background: var(--warning); }

/* ============================================
   空状态 / 加载态
   ============================================ */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state .empty-icon {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.empty-state .empty-icon svg { width: 38px; height: 38px; }
.empty-state p { font-size: 14px; margin-top: 4px; }

.loading-state {
    text-align: center; padding: 40px; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--primary-50);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-sm { width: 14px; height: 14px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #F0F2F5 25%, #E5E9F0 37%, #F0F2F5 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.skeleton-row { height: 38px; margin-bottom: 8px; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-content { margin-left: 0; padding: 16px; }
    .stat-cards { grid-template-columns: 1fr; gap: 12px; }
    .modal-dialog { width: 95%; margin: 20px auto; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-bar input, .search-bar select { width: 100%; }
    .app-title { font-size: 14px; }
    .top-right .user-info { display: none; }
    .card, .stat-card { padding: 16px; }
}

/* ============================================
   工具类
   ============================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 600; }
.font-20 { font-size: 20px; }
.font-16 { font-size: 16px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }

.error-msg {
    color: var(--danger); font-size: 13px; margin-top: 8px;
    padding: 10px 14px; background: var(--danger-bg);
    border-radius: var(--radius-sm); border: 1px solid #FFCCC7;
}

.text-center-loaded { text-align: center; padding: 20px; color: var(--text-muted); }
