/* =========================================================
   星雨WMS - 设计系统 v2.0
   现代SaaS风格 · 蓝白主调
   ========================================================= */

/* ---------- CSS变量 ---------- */
:root {
    /* 主色调 - 靛蓝紫 */
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --primary-hover: #6366F1;

    /* 辅助色 */
    --secondary: #6B7280;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* 中性色 */
    --dark: #111827;
    --text: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-placeholder: #D1D5DB;

    /* 背景 */
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-hover: #F9FAFB;
    --bg-light: #F3F4F6;

    /* 边框 */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    /* 圆角 */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 通用工具类 ---------- */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.text-info    { color: var(--info); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.font-bold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* =========================================================
   布局组件
   ========================================================= */

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

/* ---------- 侧边栏 ---------- */
.sidebar {
    width: 240px;
    background: #FFFFFF;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 16px;
}

.nav-section-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 2px 0;
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

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

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item .icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

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

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-submenu.open {
    max-height: 500px;
}

.nav-subitem {
    display: block;
    padding: 8px 12px 8px 42px;
    margin: 1px 0;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}

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

.nav-subitem.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* ---------- 顶栏 ---------- */
.topbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 280px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-page);
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.topbar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.topbar-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.topbar-icon:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.topbar-icon .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

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

/* ---------- 主内容 ---------- */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 28px 32px;
}

/* ---------- 页脚 ---------- */
.footer {
    padding: 16px 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-light);
    background: white;
}

/* =========================================================
   页面标题
   ========================================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.page-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* =========================================================
   卡片
   ========================================================= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-hover);
}

/* =========================================================
   KPI 卡片
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%); }
.stat-icon.bg-success { background: linear-gradient(135deg, var(--success) 0%, #34D399 100%); }
.stat-icon.bg-warning { background: linear-gradient(135deg, var(--warning) 0%, #FBBF24 100%); }
.stat-icon.bg-danger  { background: linear-gradient(135deg, var(--danger) 0%, #F87171 100%); }
.stat-icon.bg-info    { background: linear-gradient(135deg, var(--info) 0%, #60A5FA 100%); }
.stat-icon.bg-purple  { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); }

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

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-change {
    font-size: 12px;
    margin-top: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* =========================================================
   按钮
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #D97706;
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 4px 8px;
}

.btn-text:hover:not(:disabled) {
    background: var(--primary-light);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* =========================================================
   表格
   ========================================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: var(--bg-page);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s;
}

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

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .empty-state {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--text-muted);
}

/* =========================================================
   徽章 / 标签
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger  { background: var(--danger-light);  color: #991B1B; }
.badge-info    { background: var(--info-light);    color: #1E40AF; }
.badge-muted   { background: var(--bg-light);      color: var(--text-secondary); }

/* =========================================================
   表单
   ========================================================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text);
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder,
.form-textarea::placeholder {
    color: var(--text-placeholder);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* ---------- 输入框组 ---------- */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group-append {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
    font-size: 13px;
}

/* =========================================================
   筛选条
   ========================================================= */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.filter-bar .form-control,
.filter-bar .form-select {
    width: auto;
    min-width: 160px;
}

.filter-bar .filter-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 4px;
}

/* =========================================================
   分页
   ========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    list-style: none;
}

.pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   提示 / 弹窗
   ========================================================= */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success { background: var(--success-light); border-color: #A7F3D0; color: #065F46; }
.alert-warning { background: var(--warning-light); border-color: #FDE68A; color: #92400E; }
.alert-danger  { background: var(--danger-light);  border-color: #FECACA; color: #991B1B; }
.alert-info    { background: var(--info-light);    border-color: #BFDBFE; color: #1E40AF; }

/* =========================================================
   链接
   ========================================================= */
.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1024px) {
    .topbar-search input { width: 200px; }
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -240px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .content {
        padding: 16px;
    }
    .topbar {
        padding: 0 16px;
    }
    .topbar-search { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   实用组件
   ========================================================= */

/* 空状态 */
.empty-block {
    padding: 64px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-block .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 加载动画 */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* 链接列表 */
.link-list a {
    display: inline-block;
    margin-right: 12px;
}

/* 表格操作列 */
.table-actions {
    display: flex;
    gap: 4px;
}

.table-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
}

/* 详情页 */
.detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.detail-row .label {
    color: var(--text-secondary);
}

.detail-row .value {
    color: var(--text);
    font-weight: 500;
}

/* =========================================================
   Dashboard 专用样式
   ========================================================= */

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #818CF8 100%);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-banner h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    font-size: 14px;
    opacity: 0.92;
    margin: 0;
    position: relative;
    z-index: 1;
}

.welcome-banner .weather {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    font-size: 13px;
    opacity: 0.92;
    z-index: 1;
}

.welcome-banner .weather strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

/* 状态网格 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.status-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.status-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.status-card-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.status-card-title .dot.green { background: var(--success); }
.status-card-title .dot.orange { background: var(--warning); }

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.status-row:last-child { border-bottom: none; }

.status-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.status-value.primary { color: var(--primary); }
.status-value.success { color: var(--success); }
.status-value.warning { color: var(--warning); }
.status-value.danger  { color: var(--danger); }

/* KPI 大数字 */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-card .kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-card .kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.kpi-card .kpi-trend {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-card .kpi-trend.up { color: var(--success); }
.kpi-card .kpi-trend.down { color: var(--danger); }

.kpi-card .kpi-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.85;
}

/* 图表卡片 */
.chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

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

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.chart-container {
    position: relative;
    height: 300px;
}

.chart-container-sm { height: 240px; }

/* 响应式 */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .status-grid { grid-template-columns: 1fr; }
    .welcome-banner { padding: 20px; }
    .welcome-banner .weather { display: none; }
}
