/* 法智云 共享样式 - 2026-06-23 重构 */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  background:#f0f2f5; color:#1a1a2e; font-size:14px;
}
.top-nav {
  background:linear-gradient(135deg,#1a1a2e,#16213e); color:#fff; padding:8px 16px;
  display:flex; align-items:center; gap:4px; flex-wrap:wrap; position:sticky; top:0; z-index:100;
}
.top-nav .brand { font-size:15px; font-weight:700; margin-right:8px; white-space:nowrap; }
.top-nav a {
  color:#a0aec0; text-decoration:none; font-size:11px; padding:3px 7px;
  border-radius:4px; transition:all .2s; white-space:nowrap;
}
.top-nav a:hover,.top-nav a.active { color:#fff; background:rgba(255,255,255,.12); }
.top-nav .spacer { flex:1; }
.top-nav .auth-btn {
  background:rgba(255,255,255,.1); color:#a0aec0; border:1px solid rgba(255,255,255,.15);
  padding:2px 8px; border-radius:4px; font-size:11px; cursor:pointer; transition:all .2s; white-space:nowrap;
}
.top-nav .auth-btn:hover { background:rgba(255,255,255,.2); color:#fff; }

.container { max-width:1000px; margin:0 auto; padding:16px; }
.card { background:#fff; border-radius:12px; padding:20px; margin-bottom:14px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.card h2 { font-size:16px; margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid #1a1a2e; }

.btn { display:inline-block; padding:8px 20px; border:none; border-radius:6px; font-size:13px; cursor:pointer; transition:all .2s; }
.btn-primary { background:#1a1a2e; color:#fff; }
.btn-primary:hover { opacity:.9; }
.btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.btn-sm { background:#edf2f7; color:#2d3748; padding:4px 12px; border:none; border-radius:4px; font-size:12px; cursor:pointer; }
.btn-sm:hover { background:#e2e8f0; }

.form-input { width:100%; padding:8px 10px; border:1px solid #e2e8f0; border-radius:6px; font-size:13px; font-family:inherit; }
.form-input:focus { outline:none; border-color:#1a1a2e; }
textarea.form-input { resize:vertical; }
.form-row { margin-bottom:10px; }
.form-row label { display:block; font-size:12px; color:#4a5568; margin-bottom:3px; font-weight:600; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.module-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.module-card {
  background:#fff; border-radius:14px; padding:24px; box-shadow:0 1px 3px rgba(0,0,0,.06);
  cursor:pointer; transition:all .25s ease; text-decoration:none; color:inherit;
  display:block; border:1px solid #edf2f7;
}
.module-card:hover { transform:translateY(-3px); box-shadow:0 12px 24px rgba(0,0,0,.1); border-color:#cbd5e0; }
.module-card .icon { font-size:36px; margin-bottom:10px; display:block; }
.module-card h3 { font-size:16px; font-weight:700; margin-bottom:6px; }
.module-card p { font-size:13px; color:#64748b; line-height:1.5; }
.module-card .tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; margin-top:8px; }
.tag-online { background:#dcfce7; color:#166534; }

.section-title { font-size:17px; font-weight:700; color:#1a1a2e; margin:28px 0 14px; padding-left:12px; border-left:4px solid #1a1a2e; }
.section-title small { font-weight:400; font-size:12px; color:#94a3b8; margin-left:6px; }

.alert { padding:10px 14px; border-radius:6px; margin-bottom:12px; font-size:13px; }
.alert-info { background:#dbeafe; color:#1e40af; border:1px solid #bfdbfe; }
.alert-warn { background:#fef3c7; color:#92400e; border:1px solid #fde68a; }
.alert-error { background:#fee2e2; color:#991b1b; border:1px solid #fecaca; }
.alert-success { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }

.q-card { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:14px; margin-bottom:10px; }

.tab-btn{padding:6px 14px;border:1px solid #e2e8f0;background:#fff;border-radius:6px 6px 0 0;cursor:pointer;font-size:12px;color:#64748b}
.tab-btn.active{background:#1a1a2e;color:#fff;border-color:#1a1a2e}

.spinner{display:inline-block;width:14px;height:14px;border:2px solid #e2e8f0;border-top-color:#1a1a2e;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:4px}
@keyframes spin{to{transform:rotate(360deg)}}

.hidden{display:none}

@media(max-width:640px) { .module-grid { grid-template-columns:1fr; } }
