/* 锦城物业管理系统 - 自定义样式 */
:root {
    --jc-primary: #1a5276;
    --jc-secondary: #2980b9;
    --jc-light: #eaf2f8;
    --jc-bg: #f4f6f9;
    --jc-border: #e0e6ed;
}

body { background-color: var(--jc-bg); font-size: 14px; }

/* ===== 导航栏 ===== */
.navbar { background-color: var(--jc-primary) !important; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.navbar-brand { font-weight: 600; letter-spacing: 1px; font-size: 16px; }

/* ===== 侧边栏 ===== */
.sidebar {
    min-height: calc(100vh - 56px);
    background: #fff;
    border-right: 1px solid var(--jc-border);
    display: flex;
    flex-direction: column;
}
.sidebar .nav-link { color: #444; padding: 9px 18px; border-left: 3px solid transparent; font-size: 13.5px; }
.sidebar .nav-link:hover { background: var(--jc-light); border-left-color: var(--jc-secondary); color: var(--jc-primary); }
.sidebar .nav-link.active { background: var(--jc-light); border-left-color: var(--jc-secondary); color: var(--jc-primary); font-weight: 600; }
.sidebar .nav-link i { width: 20px; margin-right: 8px; text-align: center; }
.sidebar .nav-group-title { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; padding: 12px 18px 4px; }
.sidebar-version { margin-top: auto; padding: 12px 18px; font-size: 11px; color: #bbb; border-top: 1px solid var(--jc-border); }

/* ===== 卡片 ===== */
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 6px; }
.card-header { border-bottom: 1px solid #f0f0f0; font-size: 13.5px; }
.stat-card { border-left: 4px solid var(--jc-secondary); transition: transform .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.stat-card .stat-label { color: #888; font-size: 12px; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 24px; font-weight: 700; color: #333; }
.stat-card .stat-trend { font-size: 11px; }
.stat-card .stat-trend.up { color: #27ae60; }
.stat-card .stat-trend.down { color: #e74c3c; }

/* ===== 表格 ===== */
.table th { background: #f8f9fa; font-weight: 600; white-space: nowrap; font-size: 12.5px; color: #555; }
.table td { vertical-align: middle; font-size: 13px; }
.table-toolbar { padding: 10px 15px; border-bottom: 1px solid #f0f0f0; }
.table-footer { padding: 8px 15px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #888; }

/* ===== 徽章 ===== */
.badge-status { font-size: 11.5px; font-weight: 500; }

/* ===== 页脚 ===== */
.jc-footer {
    color: #999; font-size: 12px; padding: 16px 0;
    border-top: 1px solid var(--jc-border);
    background: #fff; margin-top: 30px;
}
.jc-footer a { color: #777; text-decoration: none; }

/* ===== 公开页面头部 ===== */
.public-header {
    background: linear-gradient(135deg, var(--jc-primary) 0%, var(--jc-secondary) 60%, #3498db 100%);
    color: #fff; padding: 48px 0 60px;
}
.public-header h2 { font-weight: 700; letter-spacing: 2px; }
.public-header .subtitle { opacity: .85; font-size: 14px; }

/* ===== 登录页 ===== */
.login-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: flex; align-items: stretch; }
.login-left {
    background: linear-gradient(160deg, var(--jc-primary) 0%, #1f6f9f 50%, var(--jc-secondary) 100%);
    color: #fff; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center;
}
.login-left h3 { font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; }
.login-left p { opacity: .85; line-height: 1.9; font-size: 14px; }
.login-left .service-info { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; opacity: .8; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--jc-bg); }
.login-card { width: 100%; max-width: 400px; }
.login-card .card { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* 公告滚动条 */
.notice-ticker {
    background: #fffbe6; border-bottom: 1px solid #ffe58f;
    padding: 6px 0; font-size: 13px; overflow: hidden; white-space: nowrap;
}
.notice-ticker .ticker-content {
    display: inline-block; animation: ticker 30s linear infinite;
}
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ===== 公开门户横幅 ===== */
.portal-banner {
    background: linear-gradient(135deg, var(--jc-primary), var(--jc-secondary));
    color: #fff; padding: 30px 0; margin-bottom: 24px;
}
.portal-banner h4 { font-weight: 700; letter-spacing: 1px; }
.portal-banner .stats { font-size: 13px; opacity: .85; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: #e0e6ed; }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before {
    content: ''; position: absolute; left: -20px; top: 5px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--jc-secondary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--jc-secondary);
}
.timeline-item.done::before { background: #27ae60; box-shadow: 0 0 0 2px #27ae60; }
.timeline-item.pending::before { background: #ccc; box-shadow: 0 0 0 2px #ccc; }

/* ===== CSS条形图 ===== */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bar-chart .bar {
    flex: 1; background: linear-gradient(to top, var(--jc-secondary), #5dade2);
    border-radius: 3px 3px 0 0; position: relative; min-width: 20px; transition: opacity .2s;
}
.bar-chart .bar:hover { opacity: .8; }
.bar-chart .bar .bar-label { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #999; white-space: nowrap; }
.bar-chart .bar .bar-value { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #666; }

/* ===== 其他 ===== */
.text-muted-sm { font-size: 12px; color: #999; }
.cursor-pointer { cursor: pointer; }
.masked-field { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; color: #555; background: #f8f9fa; padding: 1px 6px; border-radius: 3px; }
