/* 热建CMS 授权中心 通用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: #f4f6fa; color: #1f2937; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: #0f172a; color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 800; color: #fff; }
.brand span { color: #f97316; }
.topbar nav a { color: #cbd5e1; margin-left: 22px; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover, .topbar nav a.active { color: #fff; border-bottom-color: #f97316; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; padding: 70px 0; text-align: center; }
.hero h1 { font-size: 38px; margin-bottom: 14px; }
.hero p { font-size: 16px; color: #cbd5e1; max-width: 720px; margin: 0 auto; }
.hero-actions { margin-top: 26px; }
.btn { display: inline-block; padding: 11px 26px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; font-size: 15px; }
.btn-primary { background: #f97316; color: #fff; }
.btn-primary:hover { background: #ea580c; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #64748b; margin-left: 12px; }
.btn-block { width: 100%; }
.btn-small { padding: 6px 12px; font-size: 13px; }

/* 区块 */
section { padding: 56px 0; }
.features h2, .howto h2, .faq h2 { text-align: center; font-size: 28px; margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: #475569; font-size: 14px; }

/* 步骤 */
.steps { list-style: none; max-width: 720px; margin: 0 auto; }
.steps li { display: flex; align-items: flex-start; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.steps span { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 14px; }

/* FAQ */
.faq { background: #fff; border-top: 1px solid #e5e7eb; }
.faq details { max-width: 720px; margin: 0 auto 12px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: #475569; margin-top: 8px; }

/* 页面面板 */
.page { padding: 40px 0 60px; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px; max-width: 720px; margin: 0 auto; }
.panel h1 { font-size: 26px; margin-bottom: 8px; }
.muted { color: #6b7280; font-size: 14px; margin-bottom: 20px; }

/* 表单 */
.apply-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; color: #374151; }
.apply-form input[type=text] { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.apply-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.apply-form .btn-block { margin-top: 4px; }

/* 提示 */
.tip { margin-top: 20px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #1e40af; }
.tip ul { margin: 8px 0 0 18px; }

/* 告警 */
.alert { border-radius: 8px; padding: 16px 18px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.codebox { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.codebox code { flex: 1; background: #0f172a; color: #7dd3fc; padding: 12px; border-radius: 8px; font-size: 16px; word-break: break-all; letter-spacing: .5px; }
.codebox button { padding: 8px 16px; border: none; background: #2563eb; color: #fff; border-radius: 6px; cursor: pointer; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.table th, .table td { border-bottom: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; }
.table th { background: #f8fafc; font-weight: 600; }
.table code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* 状态徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #a16207; }
.badge-blacklisted { background: #fee2e2; color: #b91c1c; }
.badge-cancelled { background: #e5e7eb; color: #374151; }

/* 页脚 */
.footer { background: #0f172a; color: #94a3b8; padding: 24px 0; text-align: center; font-size: 13px; }
.footer p { margin: 4px 0; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .topbar .container { height: auto; padding: 10px 20px; }
  .topbar nav a { margin-left: 12px; }
}
