/* 砺薪 SalaryMotive 主样式 */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --bg: #f8fafc;
    --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
    --radius: 12px;
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: #1e293b;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* 主内容容器撑满剩余空间，让 footer 在内容少时贴底、内容多时跟随其后 */
body > .container {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* 顶部导航 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-brand .logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(245,158,11,.4);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.85) !important;
    padding: .5rem 1rem;
    border-radius: 8px;
    transition: all .2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}

/* 卡片 */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    background: white;
    transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-header {
    background: white;
    border-bottom: 1px solid var(--light);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}
.card-body { padding: 1.25rem; }

/* 统计卡片 */
.stat-card {
    border-left: 4px solid var(--primary);
    padding: 1.2rem;
}
.stat-card .stat-label {
    font-size: .85rem;
    color: var(--gray);
    margin-bottom: .25rem;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger  { border-left-color: var(--danger); }
.stat-card.info    { border-left-color: var(--info); }

/* 等级徽章 */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 2px 6px rgba(99,102,241,.3);
}
.level-badge .lv-num { font-size: 1rem; font-weight: 800; }

/* 经验进度条 */
.exp-progress {
    background: var(--light);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.exp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 999px;
    transition: width .4s ease;
}

/* 徽章 */
.badge-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* 排名 */
.rank-medal {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: white;
    background: var(--gray);
}
.rank-1 { background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 2px 8px rgba(245,158,11,.4); }
.rank-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); }
.rank-3 { background: linear-gradient(135deg, #fbcfa4, #ea580c); }

/* 按钮 */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* 落地页 */
.landing-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    color: white;
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: "";
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.1), transparent 60%);
    border-radius: 50%;
}
.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.landing-hero p {
    font-size: 1.25rem;
    opacity: .9;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.landing-features { padding: 4rem 0; }
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* 薪资组成 */
.salary-component {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px dashed var(--light);
}
.salary-component:last-child { border-bottom: none; }
.salary-component .label { color: var(--gray); font-size: .9rem; }
.salary-component .value { font-weight: 600; }

.salary-total {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}
.salary-total .total-label { color: #166534; font-size: .9rem; }
.salary-total .total-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #15803d;
    line-height: 1.2;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    min-height: 320px;
}

/* 表格 */
.table thead th {
    background: var(--light);
    border: none;
    font-weight: 600;
    color: var(--gray);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.table tbody td { vertical-align: middle; }

/* 工作流卡片 */
.work-card {
    transition: transform .2s;
}
.work-card:hover { transform: translateY(-2px); }

/* 状态标签 */
.status-pending  { background: #fef3c7; color: #92400e; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; }
.status-approved { background: #d1fae5; color: #065f46; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; }
.status-rejected { background: #fee2e2; color: #991b1b; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}
.empty-state .icon { font-size: 4rem; opacity: .4; margin-bottom: 1rem; }

/* 响应式 */
@media (max-width: 768px) {
    .landing-hero h1 { font-size: 2.2rem; }
    .landing-hero p { font-size: 1rem; }
    .stat-card .stat-value { font-size: 1.4rem; }
}
