/* ==========================================================
   活码 —— 全站样式
   ========================================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --warn: #d97706;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 16px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
code {
    background: #eef2f7; border-radius: 4px; padding: 1px 6px;
    font-family: Consolas, Monaco, monospace; font-size: 13px;
}

/* ---------- 通用容器 ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.sub-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; color: #334155; border-left: 3px solid var(--primary); padding-left: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 登录 / 注册 ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eff6ff 0%, #f1f5f9 60%, #e0f2fe 100%);
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px 28px;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.auth-brand p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.brand-mark {
    width: 56px; height: 56px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}
.auth-links {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; font-size: 13px;
}

/* ---------- 表单 ---------- */
.form .field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.input { resize: vertical; min-height: 96px; font-family: inherit; }
select.input { appearance: auto; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn-primary {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { display: block; width: 100%; margin-top: 8px; }

/* ---------- 提示 ---------- */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #166534; border-color: #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-info { background: var(--primary-light); color: #1e40af; border-color: #bfdbfe; }

/* ---------- 顶部导航 ---------- */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand { font-size: 17px; font-weight: 700; color: var(--text); }
.navbar-brand:hover { text-decoration: none; }
.navbar-right { display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 14px; color: var(--muted); }

/* ---------- 后台布局 ---------- */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px; display: flex; gap: 24px; align-items: flex-start; }
.sidebar {
    width: 180px; flex-shrink: 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px; position: sticky; top: 76px;
}
.side-item {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--text); font-size: 14px; margin-bottom: 4px;
}
.side-item:hover { background: #f1f5f9; text-decoration: none; }
.side-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.admin-main { flex: 1; min-width: 0; }
.page-head { margin-bottom: 16px; }
.page-head h2 { font-size: 20px; }
@media (max-width: 860px) {
    .admin-wrap { flex-direction: column; }
    .sidebar { width: 100%; position: static; display: flex; gap: 6px; }
    .side-item { flex: 1; text-align: center; margin-bottom: 0; }
}

/* ---------- 统计卡片 ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.stat-num { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-mini { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.stat-mini b { color: var(--text); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { background: #f8fafc; font-weight: 600; color: #334155; }
.table tr:hover td { background: #f8fafc; }
.ua-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--success-bg); color: #166534; }
.badge-off { background: var(--danger-bg); color: #991b1b; }

/* ---------- 工具栏 / 分页 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form .input { width: 220px; }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pager-item {
    padding: 5px 11px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 13px; color: var(--text); background: #fff;
}
.pager-item:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pager-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-item.disabled { color: #cbd5e1; cursor: not-allowed; }
.pager-info { margin-left: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 二维码 ---------- */
.qr-box {
    display: flex; justify-content: center; margin: 14px 0;
    padding: 12px; background: #fff; border: 1px dashed var(--border); border-radius: 12px;
}
.qr-link { display: flex; gap: 8px; margin-bottom: 8px; }
.qr-link .input { font-size: 12px; color: var(--muted); }

/* ---------- 分享页 ---------- */
.share-body { background: #eef2f7; min-height: 100vh; }
.share-shell { max-width: 640px; margin: 0 auto; padding: 32px 16px 60px; }
.share-card {
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
    padding: 28px 24px; overflow: hidden;
}
.share-card.center { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.share-head { margin-bottom: 16px; }
.share-owner { font-size: 13px; color: var(--muted); }
.share-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; border-radius: 50%;
    background: var(--danger-bg); color: var(--danger);
}
.share-icon.warn { background: #fffbeb; color: var(--warn); }
.share-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.share-text { font-size: 15px; color: #334155; margin-bottom: 18px; word-break: break-word; }
.share-music { margin-bottom: 18px; padding: 14px; background: #f8fafc; border-radius: 10px; }
.music-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.share-music audio { width: 100%; }
.share-video { margin-bottom: 18px; padding: 14px; background: #f8fafc; border-radius: 10px; }
.video-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.share-video video { display: block; width: 100%; max-height: 420px; border-radius: 8px; background: #000; }
.share-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.share-figure { margin: 0; border-radius: 10px; overflow: hidden; background: #f1f5f9; }
.share-figure img { display: block; width: 100%; height: auto; }
.share-footer {
    margin-top: 24px; padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center; font-size: 12px; color: #94a3b8;
}
.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; }
.share-preview { padding: 4px 0; }

/* ---------- 内容预览（后台/用户页） ---------- */
.share-preview .share-title { font-size: 18px; }
.share-preview .share-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ---------- 用户页 ---------- */
.user-page .qr-card { text-align: center; }
.tip-box {
    background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; font-size: 14px;
}
.tip-box b { display: block; margin-bottom: 6px; }
.tip-box ul { margin-left: 18px; color: #475569; }
.tip-box li { margin-bottom: 4px; }

/* ---------- 媒体管理 ---------- */
.media-current { background: #f8fafc; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.media-current audio { width: 100%; margin: 8px 0; }
.img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.img-manage-item { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.img-manage-item img { display: block; width: 100%; height: 110px; object-fit: cover; }
.img-manage-item form { position: absolute; top: 6px; right: 6px; }
.img-manage-item .btn-sm { background: rgba(255,255,255,.92); }

/* ---------- 安装页 ---------- */
.install-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ==========================================================
   活码编辑器（前台用户页）
   ========================================================== */
.page-title { font-size: 22px; font-weight: 700; }

.editor-top {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 18px;
}
.editor-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-top-actions .qr-link { margin: 0; }
.editor-top-actions .qr-link .input { width: 300px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .editor-layout { grid-template-columns: 1fr; } }

.editor-left { min-width: 0; }

.add-components { padding: 14px 18px; }
.add-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.add-btn {
    padding: 10px 20px; font-size: 14px;
    background: #fff; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
    transition: all .15s;
}
.add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.component { position: relative; }
.comp-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.comp-name { font-size: 14px; font-weight: 600; color: #334155; }
.comp-remove {
    width: 26px; height: 26px; border: none; border-radius: 50%;
    background: #f1f5f9; color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1;
}
.comp-remove:hover { background: var(--danger-bg); color: var(--danger); }

.music-current { margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.music-current audio { width: 100%; }
.video-current { margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.video-current video { display: block; width: 100%; max-height: 260px; border-radius: 8px; background: #000; }

.img-manage .img-manage-item .img-remove { position: static; display: block; margin-top: 6px; width: 100%; }

/* 手机预览 */
.editor-right { position: sticky; top: 76px; }
@media (max-width: 980px) { .editor-right { position: static; } }
.phone-wrap { display: flex; justify-content: center; }
.phone-frame {
    width: 320px; border-radius: 36px;
    background: #0f172a;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.phone-frame-inner {
    background: #fff; border-radius: 26px; overflow: hidden;
    display: flex; flex-direction: column; height: 560px;
}
.phone-top {
    padding: 14px 16px 12px; text-align: center;
    border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: 15px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.phone-screen {
    flex: 1; overflow-y: auto; padding: 16px;
    background: #fff;
}
.phone-text { font-size: 14px; color: #334155; margin-bottom: 12px; word-break: break-word; }
.phone-music { margin-bottom: 12px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.phone-music .music-title { font-size: 13px; margin-bottom: 6px; }
.phone-music audio { width: 100%; }
.phone-video { margin-bottom: 12px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.phone-video .video-title { font-size: 13px; margin-bottom: 6px; }
.phone-video video { display: block; width: 100%; max-height: 220px; border-radius: 6px; background: #000; }
.phone-images { display: grid; grid-template-columns: 1fr; gap: 10px; }
.phone-images img { display: block; width: 100%; border-radius: 8px; }
.phone-bottom {
    padding: 10px; text-align: center; font-size: 11px; color: #94a3b8;
    border-top: 1px solid var(--border); background: #f8fafc;
}

/* 统计卡可编辑输入 */
.stat-card-edit { padding: 14px 18px; }
.stat-input {
    width: 120px; margin: 0 auto; display: block;
    text-align: center; font-size: 26px; font-weight: 700; color: var(--primary);
    border: 1px solid var(--border); border-radius: 10px; padding: 4px 8px;
}
.stat-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* 保存成功二维码弹窗 */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 23, 42, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
    width: 100%; max-width: 340px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    padding: 22px 24px;
    animation: modal-in .18s ease-out;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.modal-head h3 { font-size: 17px; }
.modal-close {
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: #f1f5f9; color: var(--muted); font-size: 14px; cursor: pointer;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-box .qr-box { padding: 10px; }
.modal-box .qr-link { margin: 4px 0 14px; }

/* 活码列表页 */
.code-list { display: flex; flex-direction: column; gap: 14px; }
.code-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 16px; align-items: center;
    padding: 16px 20px;
}
@media (max-width: 860px) { .code-row { grid-template-columns: 1fr; } }
.code-qr img { display: block; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.code-info { min-width: 0; }
.code-name { font-size: 16px; font-weight: 700; color: var(--text); }
.code-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; background: #f1f5f9; color: #475569;
}
.tag-ok { background: var(--success-bg); color: #166534; }
.tag-off { background: var(--danger-bg); color: #991b1b; }
.code-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 44px 20px; }
.input-sm { padding: 6px 10px; font-size: 13px; }
.qr-link .input-sm { width: 260px; }
@media (max-width: 600px) { .qr-link .input-sm { width: 180px; } }

/* 后台工具栏标题 */
.toolbar-title { margin-left: 12px; font-size: 14px; color: var(--muted); }
.toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* 分享页音乐兜底播放按钮（自动播放被浏览器拦截时显示） */
.share-music { position: relative; }
.music-play-hint {
    display: block; width: 100%; margin-top: 10px;
    padding: 12px; border: 1px dashed var(--primary);
    background: var(--primary-light); color: var(--primary);
    border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; text-align: center; transition: all .15s;
}
.music-play-hint:hover { background: #dbeafe; }

/* 编辑器右侧预览区标题 */
.phone-label {
    text-align: center; font-size: 13px; color: var(--muted);
    margin-bottom: 8px;
}
.phone-label b { color: var(--primary); }

/* 活码类型选择 */
.type-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.type-item {
    position: relative;
    border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 14px; cursor: pointer;
    display: block; transition: all .15s; background: #fff;
}
.type-item input { position: absolute; opacity: 0; }
.type-item span { font-size: 15px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; }
.type-item small { font-size: 12px; color: var(--muted); display: block; line-height: 1.5; }
.type-item:hover { border-color: var(--primary); }
.type-item.on { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.type-item.on span { color: var(--primary); }
.type-tip { margin-top: 10px; font-size: 13px; }

/* 特殊类型组件（网址 / Wi-Fi / 电话） */
.comp-extra { display: none; }

/* 手机预览：特殊类型卡片 */
.phone-special {
    margin-bottom: 12px; padding: 16px;
    border-radius: 12px; font-size: 15px; line-height: 1.9;
    color: #334155; text-align: center;
    background: linear-gradient(180deg, #eff6ff, #f8fafc);
    border: 1px dashed #93c5fd;
    word-break: break-all;
}
.phone-special b { color: var(--primary); font-size: 16px; }
/* 手机预览：内容型标题行 */
.phone-title {
    font-size: 20px; font-weight: 700; color: var(--text);
    margin-bottom: 12px; line-height: 1.4; word-break: break-word;
}

/* 分享页：Wi-Fi / 电话 说明卡 */
.wifi-info {
    background: #f8fafc; border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.wifi-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.wifi-row:last-child { border-bottom: none; }
.wifi-row span { color: var(--muted); }
.wifi-row b { color: var(--text); word-break: break-all; max-width: 70%; text-align: right; }

/* ========== 类型选择页 ========== */
.type-pick {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin-top: 8px;
}
.type-pick-card {
    display: block; padding: 24px 20px; border-radius: 14px;
    background: #fff; border: 1px solid var(--border);
    text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.type-pick-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37,99,235,.10);
}
.type-pick-icon { font-size: 34px; margin-bottom: 10px; }
.type-pick-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.type-pick-desc { font-size: 13px; color: var(--muted); line-height: 1.7; min-height: 40px; }
.type-pick-go { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* 编辑页标题旁的类型徽标 */
.type-badge {
    display: inline-block; vertical-align: 2px; margin-left: 8px;
    padding: 2px 10px; border-radius: 999px;
    background: var(--primary-light); color: var(--primary);
    font-size: 12px; font-weight: 700;
}

/* ========== 分享页：电话卡 ========== */
.tel-card {
    background: #f8fafc; border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 16px; margin-bottom: 16px; text-align: center;
}
.tel-num {
    font-size: 26px; font-weight: 700; color: var(--text);
    letter-spacing: 1px; margin-bottom: 14px; word-break: break-all;
}
.btn-call {
    display: inline-block; margin-bottom: 10px;
    background: var(--primary); color: #fff;
    padding: 12px 28px; border-radius: 999px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-call:hover { background: #1d4ed8; }
.btn-outline {
    display: inline-block; background: #fff; color: var(--primary);
    border: 1px solid var(--primary); padding: 10px 20px;
    border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-outline:hover { background: var(--primary-light); }

/* 分享页底部公告（后台可配置，支持超链接） */
.share-notice {
    margin-top: 18px; padding: 12px 14px;
    border-top: 1px dashed var(--border);
    font-size: 13px; color: var(--muted);
    line-height: 1.7; word-break: break-word;
    text-align: center;
}
.share-notice a {
    color: var(--primary); text-decoration: none;
}

/* 用户页公告横幅（后台可配置，独立于分享页公告） */
.user-notice {
    margin-bottom: 18px; padding: 12px 16px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 10px;
    font-size: 14px; color: var(--text);
    line-height: 1.7; word-break: break-word;
}
.user-notice a {
    color: var(--primary); text-decoration: none; font-weight: 600;
}

/* 公共备案号页脚（首页/注册页/分享页底部，后台可配置） */
.beian-footer {
    position: fixed; left: 0; right: 0; bottom: 0;
    padding: 10px 16px 12px;
    text-align: center; font-size: 12px; color: #94a3b8;
    background: rgba(255,255,255,.85);
    border-top: 1px solid var(--border);
    line-height: 1.8; z-index: 50;
}
.beian-footer a {
    color: #94a3b8; text-decoration: none;
}
.beian-footer a:hover { color: var(--primary); }
.beian-sep {
    display: inline-block; width: 4px; height: 4px;
    border-radius: 50%; background: #cbd5e1; margin: 0 8px;
    vertical-align: middle;
}
