/* ===== 基础 ===== */
:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --border: #e5e7eb;
  --card-hover: #f9fafb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  /* 无背景图时：主题色系柔光渐变（FlatNas 起始页质感） */
  background:
    radial-gradient(1100px 700px at 15% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 620px at 105% 110%, var(--accent-soft), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}
body.home-body { display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
/* 玻璃拟态（FlatNas）：面板半透明 + 背景模糊，颜色随主题 */
.glass {
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

/* ===== 顶部栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; flex: 0 0 auto; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* 搜索框（位于首页时间下方居中） */
.search-wrap { max-width: 640px; margin: 2px auto 24px; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px; transition: box-shadow .2s, border-color .2s; box-shadow: 0 10px 32px rgba(0, 0, 0, .07); }
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.engine-pick { position: relative; flex: 0 0 auto; }
.engine-cur { border: none; background: var(--panel); color: var(--text); border-radius: 999px; padding: 8px 18px; font-size: 13px; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-weight: 500; text-align: center; cursor: pointer; display: flex; align-items: center; gap: 7px; outline: none; }
.engine-cur::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); }
.engine-list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 70; display: none; }
.engine-list.open { display: block; }
.engine-list button { display: block; width: 100%; border: none; background: transparent; color: var(--text); font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 13px; text-align: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.engine-list button:hover { background: var(--card-hover); }
.engine-list button.cur { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.search-wrap input { flex: 1; border: none; background: transparent; padding: 9px 14px; outline: none; color: var(--text); font-size: 15px; }
.search-wrap button { border: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 22px; font-weight: 600; cursor: pointer; }

.top-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; margin-left: auto; }
.btn { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 10px; padding: 7px 14px; font-size: 13px; transition: .15s; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { opacity: .9; color: #fff; }
.btn.danger { color: #dc2626; border-color: #f0a8a8; }
.btn.danger:hover { background: #fee2e2; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }

/* 主题选择器（固定在视口右侧、顶栏正下方展开） */
.theme-btn-wrap { position: relative; display: inline-flex; }
.theme-pop {
  position: fixed; top: 64px; right: 24px; left: auto;
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px; z-index: 60; min-width: 180px;
  display: none; flex-direction: column; gap: 6px;
}
.theme-pop.open { display: flex; }
.theme-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.theme-item:hover { background: var(--card-hover); }
.theme-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); }
.theme-check { display: inline-flex; align-items: center; margin-left: auto; color: var(--text); }
.theme-check .ico-svg { width: 15px; height: 15px; }

/* 登录弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-mask.open { display: flex; }
.modal { background: var(--panel); background: color-mix(in srgb, var(--panel) 92%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-radius: 16px; padding: 26px; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal h3 { margin-bottom: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.tip { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.tip button { color: var(--accent); background: none; border: none; font-size: 12px; }

/* 主体导航 */
.home-body .main { max-width: 1280px; margin: 0 auto; padding: 24px; width: 100%; flex: 1; }
/* 起始页 Hero：大时钟 + 日期（FlatNas 仪表盘感） */
.hero { text-align: center; padding: 26px 0 22px; }
.hero-clock { font-size: 60px; font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--text); }
.hero-date { margin-top: 10px; font-size: 15px; color: var(--muted); letter-spacing: 1px; }
.greet { margin-top: 10px; font-size: 15px; color: var(--muted); }
.greet b { color: var(--text); }
.cat-section { margin-bottom: 30px; }
/* 分类背景图（FlatNas 分组背景：背景图 + 暗遮罩 + 玻璃卡片） */
.cat-section.has-bg { position: relative; padding: 20px 20px 22px; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; }
.cat-section.has-bg::before { content: ''; position: absolute; inset: 0; background: rgba(10, 16, 28, 0.45); }
.cat-section.has-bg > * { position: relative; z-index: 1; }
.cat-section.has-bg .cat-head h2 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cat-section.has-bg .cat-head .ic { color: #fff; }
.cat-section.has-bg .cat-head .ic-hasbg { border: 1px solid rgba(255,255,255,.35); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.cat-section.has-bg .head-actions .ic-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
.cat-section.has-bg .head-actions .ic-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.cat-section.has-bg .link-card { border-color: rgba(255,255,255,.18); }
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cat-head .ic { color: var(--text); }
.cat-head h2 { font-size: 16px; font-weight: 650; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.link-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--accent-soft), 0 12px 28px rgba(0,0,0,.08); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--card-hover); }
.link-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; transition: transform .18s; }
.link-card:hover .link-ico { transform: scale(1.05); }
.link-meta { overflow: hidden; }
.link-meta .nm { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-meta .ds { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* ===== 页脚访客统计（FlatNas）：单行、贴页面最底部 ===== */
.site-footer { max-width: 1280px; margin: 0 auto; padding: 16px 24px 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.site-footer b { color: var(--text); font-variant-numeric: tabular-nums; }
.site-footer .dot { opacity: .7; }
.site-footer { flex-direction: column; gap: 6px; }
.footer-icp { font-size: 12px; line-height: 1; }
.footer-icp a { color: var(--muted); text-decoration: none; }
.footer-icp a:hover { color: var(--text); text-decoration: underline; }

/* ===== AI 对话 ===== */
.chat-fab { position: fixed; right: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; border: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 24px; display: flex; align-items: center; justify-content: center; z-index: 90; }
.chat-panel { position: fixed; right: 24px; bottom: 92px; width: 380px; max-width: calc(100vw - 48px); height: 520px; max-height: calc(100vh - 140px); background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.22); display: none; flex-direction: column; z-index: 95; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.chat-head .right { display: flex; align-items: center; gap: 8px; }
.chat-head select { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 12px; background: var(--panel); color: var(--text); }
.chat-close { background: none; border: none; font-size: 18px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
.msg.noProvider { color: var(--muted); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; outline: none; background: var(--panel); color: var(--text); }
.chat-input button { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 0 16px; font-weight: 600; }

/* ===== 后台 ===== */
.admin-body { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-right: 1px solid var(--border); padding: 20px 14px; }
.sidebar .brand { margin-bottom: 22px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 14px; border: none; background: none; border-radius: 10px; color: var(--text); font-size: 14px; }
.sidebar nav button.active, .sidebar nav button:hover { background: var(--accent-soft); color: var(--text); }
.admin-main { flex: 1; padding: 24px; overflow-x: auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-title h1 { font-size: 20px; }
.table-wrap { background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--border); border-radius: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; background: var(--card-hover); }
tr:last-child td { border-bottom: none; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.pub { background: #d1fae5; color: #065f46; }
.badge.pri { background: #fee2e2; color: #991b1b; }
.badge.admin { background: #ede9fe; color: #5b21b6; }
.badge.user { background: #e0e7ff; color: #3730a3; }
.muted { color: var(--muted); }
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--panel); background: color-mix(in srgb, var(--panel) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stat-card .num { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-card .lb { color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 6px; }
.vars-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vars-editor label { font-size: 12px; color: var(--muted); }
.vars-editor input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); }
.switch-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
textarea.ta { min-height: 70px; resize: vertical; }

@media (max-width: 720px) {
  .sidebar { width: 64px; }
  .sidebar .brand span, .sidebar nav button span { display: none; }
  .topbar { flex-wrap: wrap; padding: 10px 12px; }
  .hero { padding: 18px 0 10px; }
  .hero-clock { font-size: 40px; letter-spacing: 2px; }
  .search-wrap { margin: 0 auto 16px; }
  .link-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .link-card { padding: 13px 14px; gap: 11px; }
  .link-ico { width: 46px; height: 46px; }
  .link-card .ico-img { width: 46px; height: 46px; }
}

/* ===== 图片图标 / 图标上传与裁剪 ===== */
.ico-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; background: var(--bg); }
.link-card .ico-img { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; }
.cat-head .ico-img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.ico-preview { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; background: var(--bg); }
.ico-preview .ico-img, .ico-preview img { width: 100%; height: 100%; object-fit: cover; }
.crop-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto 12px; overflow: hidden; background: #111; border-radius: 12px; touch-action: none; user-select: none; }
.crop-stage img { display: block; width: 100%; height: auto; }
.crop-box { position: absolute; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; }
.crop-handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 3px; cursor: nwse-resize; }
.crop-preview-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.crop-preview-row canvas { width: 128px; height: 128px; border: 1px solid var(--border); border-radius: 10px; }
.crop-hint { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 8px; }

/* ===== 背景图预览 ===== */
.bg-preview { position: relative; width: 100%; height: 140px; border: 1px dashed var(--border); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.bg-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand .logo-img { height: 38px; width: auto; border-radius: 8px; display: block; object-fit: contain; }

/* ===== 前台登录用户添加（悬浮按钮） ===== */
.fab-add { position: fixed; left: 24px; bottom: 24px; z-index: 89; display: flex; flex-direction: column; align-items: flex-start; }
.fab-add-main { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s, box-shadow .15s; }
.fab-add-main:hover { box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.fab-add-main .ico-svg { width: 26px; height: 26px; }
.fab-add.open .fab-add-main { transform: rotate(45deg); }
.fab-add-menu { display: none; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.fab-add.open .fab-add-menu { display: flex; animation: fabIn .18s ease-out; }
@keyframes fabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fab-add-item { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: .15s; }
.fab-add-item:hover { color: var(--text); border-color: var(--accent); }
.fab-add-item .b-ico .ico-svg { width: 16px; height: 16px; }
.cat-head { position: relative; }
.head-actions { display: flex; gap: 6px; margin-left: auto; opacity: 0; transition: opacity .15s; }
.cat-section:hover .head-actions, .cat-section:focus-within .head-actions { opacity: 1; }
.link-card { position: relative; }
.link-ops { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.link-card:hover .link-ops, .link-card:focus-within .link-ops { opacity: 1; }
.ic-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); border-radius: 8px; cursor: pointer; transition: .15s; }
.ic-btn:hover { color: var(--text); border-color: var(--accent); }
.ic-btn.danger:hover { color: #dc2626; border-color: #f0a8a8; }
.ic-btn .ico-svg { width: 14px; height: 14px; }

/* ===== 线性 SVG 图标 ===== */
.ico-svg { display: block; }
.link-ico .ico-svg, .cat-head .ic .ico-svg { width: 26px; height: 26px; }
.ico-preview .ico-svg { width: 20px; height: 20px; }
#icopick .btn, #homeIcopick .btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; }
#icopick .btn .ico-svg, #homeIcopick .btn .ico-svg { width: 18px; height: 18px; display: block; }
.b-ico { display: inline-flex; align-items: center; }
.b-ico .ico-svg, .top-actions .btn .ico-svg { width: 15px; height: 15px; }
.chat-fab .ico-svg { width: 24px; height: 24px; }
.chat-close .ico-svg { width: 16px; height: 16px; }
.s-ico { display: inline-flex; align-items: center; }
.s-ico .ico-svg { width: 18px; height: 18px; }
.userbox-ico { display: inline-flex; align-items: center; margin-right: 4px; }
.userbox-ico .ico-svg { width: 15px; height: 15px; }

/* ===== 背景图文字自适应 ===== */
/* 蒙层位于内容之下、背景图之上，弱化图片对比度保证可读 */
body.bg-dark::before, body.bg-light::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body.bg-dark::before { background: rgba(8, 12, 20, 0.52); }
body.bg-light::before { background: rgba(255, 255, 255, 0.55); }
/* 暗色背景：文字/面板翻转为亮色系 */
body.bg-dark {
  --bg: rgba(255, 255, 255, 0.07);
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --panel: rgba(15, 23, 42, 0.8);
  --border: rgba(255, 255, 255, 0.16);
  --card-hover: rgba(255, 255, 255, 0.07);
  --accent-soft: rgba(255, 255, 255, 0.12);
}
/* 亮色背景：面板加半透明白，保持深色文字对比 */
body.bg-light {
  --panel: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --card-hover: rgba(0, 0, 0, 0.03);
  --accent-soft: rgba(79, 70, 229, 0.08);
}


/* ===== 前台添加/编辑弹窗分组样式 ===== */
.hm-section { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.hm-section:last-of-type { border-bottom: none; }
.hm-title { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; margin-bottom: 12px; }
.hm-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hm-inline input[type="text"] { flex: 1; }
.hm-color { width: 52px; height: 34px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.hm-icon-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hm-icon-btns { display: flex; flex-direction: column; gap: 8px; }
.hm-icon-btns .btn { justify-content: flex-start; }
.hm-hint { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.hm-icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hm-ic { display: flex; align-items: center; justify-content: center; padding: 9px 0; border-radius: 10px; }
.hm-ic:hover { border-color: var(--accent); }


/* ===== 禁止浏览器自动填充（防止黄色高亮/自动填入） ===== */
.search-wrap input:-webkit-autofill,
.search-wrap input:-webkit-autofill:hover,
.search-wrap input:-webkit-autofill:focus,
.home-body input:-webkit-autofill,
.home-body input:-webkit-autofill:hover,
.home-body input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--panel) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
