:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --bg: #f1f5f9;
    --panel: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15,23,42,.08), 0 4px 16px rgba(15,23,42,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.uc-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.uc-sidebar {
    width: 230px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}
.uc-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.uc-logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.uc-logo-text { color: #fff; font-weight: 700; font-size: 15px; }
.uc-logo-sub { font-size: 11px; color: #64748b; }
.uc-nav { flex: 1; padding: 12px 0; }
.uc-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px;
    color: #cbd5e1; font-size: 14px;
    border-left: 3px solid transparent;
    transition: background .2s;
}
.uc-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.uc-nav a.active {
    background: rgba(37,99,235,.15);
    border-left-color: var(--primary);
    color: #fff;
}
.uc-sidebar-footer { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.uc-sidebar-footer a { color: #94a3b8; font-size: 12.5px; }

/* 主区域 */
.uc-main {
    flex: 1;
    margin-left: 230px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.uc-header {
    background: var(--panel);
    padding: 16px 28px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.uc-header h1 { font-size: 18px; font-weight: 700; }
.uc-header-user { display: flex; align-items: center; gap: 10px; }
.uc-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.uc-content { flex: 1; padding: 24px 28px; }
.uc-footer {
    margin-left: 230px;
    padding: 14px 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12.5px;
    background: var(--panel);
    border-top: 1px solid var(--border);
}

/* 按钮 */
.uc-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.uc-btn:hover { background: var(--primary-dark); }
.uc-btn-outline {
    background: transparent;
    color: var(--text) !important;
    border: 1px solid var(--border);
}
.uc-btn-outline:hover { background: #f8fafc; }
.uc-btn-success { background: var(--success); }
.uc-btn-success:hover { background: #15803d; }
.uc-btn-danger { background: var(--danger); }
.uc-btn-danger:hover { background: #b91c1c; }
.uc-btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.uc-btn-block { display: block; width: 100%; text-align: center; }

/* 面板 */
.uc-panel {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.uc-panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.uc-panel-title {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.uc-panel-title h2 { margin-bottom: 0; }

/* 统计卡片 */
.uc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.uc-stat {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex; align-items: center; gap: 14px;
}
.uc-stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.uc-stat-icon.blue { background: #dbeafe; }
.uc-stat-icon.green { background: #dcfce7; }
.uc-stat-icon.orange { background: #fef3c7; }
.uc-stat-icon.purple { background: #ede9fe; }
.uc-stat-info h3 { font-size: 22px; font-weight: 700; }
.uc-stat-info p { color: var(--text-light); font-size: 12.5px; }

/* 表格 */
.uc-table-wrap { overflow-x: auto; }
.uc-table { width: 100%; border-collapse: collapse; }
.uc-table th, .uc-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.uc-table th { background: #f8fafc; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.uc-table tbody tr:hover { background: #f8fafc; }
.uc-table .cell-sub { color: var(--text-light); font-size: 12.5px; }

/* 标签 */
.uc-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.uc-tag-orange { background: #fef3c7; color: #b45309; }
.uc-tag-blue { background: #dbeafe; color: #1d4ed8; }
.uc-tag-red { background: #fee2e2; color: #b91c1c; }
.uc-tag-green { background: #dcfce7; color: #15803d; }
.uc-tag-gray { background: #f1f5f9; color: #64748b; }

/* 表单 */
.uc-form-item { margin-bottom: 18px; }
.uc-form-item label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.uc-form-item .uc-required { color: var(--danger); }
.uc-input, .uc-select, .uc-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.uc-input:focus, .uc-select:focus, .uc-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.uc-textarea { min-height: 90px; resize: vertical; }
.uc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 768px) { .uc-form-grid { grid-template-columns: 1fr; } }
.uc-form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 需求单选 */
.uc-needs { display: grid; gap: 12px; }
.uc-need-option {
    position: relative;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: border-color .2s, background .2s;
}
.uc-need-option:hover { border-color: #93c5fd; }
.uc-need-option.checked { border-color: var(--primary); background: #eff6ff; }
.uc-need-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.uc-need-label { font-weight: 600; font-size: 14px; }
.uc-need-desc { color: var(--text-light); font-size: 12.5px; }

/* 提示框 */
.uc-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; }
.uc-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.uc-alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.uc-alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.uc-alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

/* 状态步骤 */
.uc-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.uc-step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.uc-step .dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: #e2e8f0; color: var(--text-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.uc-step.done .dot { background: var(--success); color: #fff; }
.uc-step.active .dot { background: var(--primary); color: #fff; }
.uc-step.done, .uc-step.active { color: var(--text); font-weight: 600; }
.uc-step-arrow { color: var(--border); }

/* 空状态 */
.uc-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.uc-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 登录/注册页 */
.uc-auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff, #f8fafc);
    padding: 24px;
}
.uc-auth-card {
    width: 100%; max-width: 400px;
    background: var(--panel);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 36px 32px;
}
.uc-auth-logo {
    text-align: center; margin-bottom: 24px;
}
.uc-auth-logo .icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff; font-size: 24px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.uc-auth-logo h1 { font-size: 20px; font-weight: 700; }
.uc-auth-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.uc-auth-footer { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-light); }

/* 移动端适配 */
@media (max-width: 900px) {
    .uc-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .uc-sidebar.open { transform: translateX(0); }
    .uc-main { margin-left: 0; }
    .uc-footer { margin-left: 0; }
    .uc-content { padding: 16px; }
    .uc-header { padding: 12px 16px; }
}
