/* 智能体可信身份注册与管理公共服务平台 — 门户/工作台样式（v2 政务风） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1f2328; line-height: 1.7; }
a { color: #1a5fb4; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══ 顶部（门户）══ */
.topbar { background: linear-gradient(135deg, #0d1b2a 0%, #16324f 60%, #1a4a6e 100%); color: #fff; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 64px; gap: 24px; }
.topbar .brand { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.topbar .brand small { display: block; font-size: 11px; font-weight: 400; color: #9db8d4; letter-spacing: 2px; }
.topbar .nav { display: flex; gap: 2px; flex: 1; }
.topbar .nav a { color: #c9d8e8; padding: 7px 14px; border-radius: 6px; font-size: 14px; }
.topbar .nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.topbar .nav a.active { background: rgba(127,208,255,.18); color: #7fd0ff; }
.topbar .login-btn { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 7px 18px; border-radius: 20px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.topbar .login-btn:hover { background: rgba(255,255,255,.25); }

/* ══ 管理工作台顶栏 ══ */
.wb-topbar { background: #0d1b2a; color: #fff; }
.wb-topbar .topbar-inner { height: 56px; }
.wb-topbar .brand { font-size: 15px; }
.wb-topbar .nav a { font-size: 13px; padding: 6px 12px; }

/* 主容器 */
main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; margin-bottom: 6px; }
.sub { color: #57606a; font-size: 14px; margin-bottom: 20px; }

/* ══ 门户 Hero ══ */
.hero { background: linear-gradient(135deg, #0d1b2a, #1a4a6e); color: #fff; border-radius: 14px; padding: 44px 40px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(127,208,255,.22), transparent 65%); }
.hero h1 { font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; }
.hero p { font-size: 15px; color: #c9d8e8; max-width: 760px; line-height: 2; }
.hero .tags { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .tag { background: rgba(127,208,255,.15); border: 1px solid rgba(127,208,255,.35); color: #7fd0ff; padding: 5px 14px; border-radius: 20px; font-size: 12px; }

/* 门户布局 */
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }

/* 卡片 */
.card { background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card h2 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #1a5fb4; display: flex; justify-content: space-between; align-items: center; }
.card h2 .more { font-size: 12px; font-weight: 400; color: #1a5fb4; }
.card h3 { font-size: 14px; margin: 14px 0 8px; color: #333; }

/* 统计 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: 16px; text-align: center; }
.stat .num { font-size: 28px; font-weight: 700; color: #1a5fb4; }
.stat .lbl { font-size: 12px; color: #57606a; margin-top: 2px; }

/* 新闻列表 */
.news-item { padding: 12px 2px; border-bottom: 1px solid #eef1f5; display: flex; gap: 12px; align-items: baseline; }
.news-item:last-child { border-bottom: 0; }
.news-item .date { color: #8a94a6; font-size: 12px; white-space: nowrap; }
.news-item a { color: #1f2328; font-size: 14px; }
.news-item a:hover { color: #1a5fb4; }
.news-item .flag { background: #e8f1fb; color: #1a5fb4; font-size: 11px; padding: 1px 8px; border-radius: 4px; white-space: nowrap; }

/* 服务入口 */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.svc { border: 1px solid #dde3ea; border-radius: 10px; padding: 16px; cursor: pointer; background: #fff; transition: all .15s; }
.svc:hover { border-color: #1a5fb4; box-shadow: 0 3px 10px rgba(26,95,180,.12); transform: translateY(-1px); }
.svc .ico { font-size: 22px; margin-bottom: 6px; }
.svc .t { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.svc .d { font-size: 12px; color: #57606a; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
th, td { border: 1px solid #dde3ea; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f4f6f9; font-weight: 600; }
tr:nth-child(even) td { background: #fafbfc; }

/* 表单 */
label { display: block; font-size: 13px; color: #444; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 8px 12px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 14px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #1a5fb455; }
textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; min-height: 80px; }
button { background: #1a5fb4; color: #fff; border: 0; border-radius: 6px; padding: 9px 22px; font-size: 14px; cursor: pointer; }
button:hover { background: #124a8f; }
button.sec { background: #57606a; }
button.danger { background: #cf222e; }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; }

/* 徽章 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.b-l0 { background: #eaeef2; color: #57606a; }
.b-l1 { background: #ddf4ff; color: #0969da; }
.b-l2 { background: #dafbe1; color: #1a7f37; }
.b-l3 { background: #fff8c5; color: #9a6700; }
.b-l4 { background: #ffebe9; color: #cf222e; }
.b-ok { background: #dafbe1; color: #1a7f37; }
.b-bad { background: #ffebe9; color: #cf222e; }
.b-warn { background: #fff8c5; color: #9a6700; }

/* 消息 */
.msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin: 8px 0; }
.msg.ok { background: #dafbe1; color: #1a7f37; }
.msg.err { background: #ffebe9; color: #cf222e; }
.muted { color: #8a94a6; font-size: 12px; }
pre { background: #f4f6f9; border: 1px solid #dde3ea; border-radius: 6px; padding: 10px; font-size: 12px; overflow-x: auto; }

/* 登录 */
.login-wrap { max-width: 400px; margin: 60px auto; }
.login-card { background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 30px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }

/* 工作台布局：侧边条线 + 主区 */
.wb-layout { display: flex; gap: 18px; align-items: flex-start; }
.wb-side { width: 220px; flex-shrink: 0; background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 14px 0; position: sticky; top: 76px; }
.wb-side .sec-title { font-size: 11px; color: #8a94a6; padding: 8px 18px 4px; letter-spacing: 1px; }
.wb-side a { display: block; padding: 9px 18px; font-size: 13px; color: #333; border-left: 3px solid transparent; }
.wb-side a:hover { background: #f4f6f9; text-decoration: none; color: #1a5fb4; }
.wb-side a.active { border-left-color: #1a5fb4; background: #eef4fc; color: #1a5fb4; font-weight: 600; }
.wb-main { flex: 1; min-width: 0; }

footer { text-align: center; color: #9aa5b5; font-size: 12px; padding: 30px 0 40px; }
