/* ============================================================
   方炽GEOCMS —— 前台样式（移动优先，断点 768px / 1024px）
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #7c3aed;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --shadow-hover: 0 6px 16px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.08);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* 保留可见焦点样式（无障碍） */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main { flex: 1 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }

/* 语言切换器 */
.lang-switch { margin-left: 4px; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: .85rem; padding: 6px 26px 6px 10px; border-radius: 999px;
  cursor: pointer; line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.lang-switch select:hover { border-color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 联系我们：表单 + 联系信息 两栏 */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-info {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 84px;
}
.contact-info h3 { margin: 0 0 12px; font-size: 1.1rem; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { position: static; }
}
.nav-links a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(124,58,237,.10), transparent),
    radial-gradient(700px 360px at 10% 0%, rgba(37,99,235,.12), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.3; margin-bottom: 14px; letter-spacing: -.5px; }
.hero p { color: var(--text-light); font-size: 1.05rem; max-width: 620px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: .95rem;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-hover); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 区块标题 ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; }
.section-head span { color: var(--text-light); font-size: .9rem; }

/* ---------- 文章卡片网格 ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.08rem; line-height: 1.5; color: var(--text); }
.card:hover .card-title { color: var(--primary); }
.card-summary { color: var(--text-light); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--text-light); flex-wrap: wrap; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem;
  background: var(--primary-soft); color: var(--primary); font-weight: 500;
}
.tag-dark { background: #0f172a; color: #fff; }

/* ---------- 分类药丸 ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cat-bar a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-light); font-size: .9rem; background: #fff; }
.cat-bar a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cat-bar a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 搜索框 ---------- */
.search-box { display: flex; gap: 10px; margin-bottom: 24px; }
.search-box input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .95rem; background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* ---------- 文章详情页 ---------- */
.article-layout { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 36px 0 56px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }

.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.4; margin: 12px 0; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }

.article-content { font-size: 1.02rem; color: #374151; }
.article-content h2 { font-size: 1.3rem; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.article-content li { margin-bottom: 8px; }
.article-content code {
  background: #f1f5f9; color: #b91c1c; padding: 2px 6px; border-radius: 5px;
  font-family: Consolas, Monaco, monospace; font-size: .9em;
}
.article-content pre {
  background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 10px;
  overflow-x: auto; margin: 0 0 18px;
}
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content img { border-radius: 10px; margin: 18px 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary); background: var(--primary-soft);
  padding: 12px 18px; margin: 0 0 18px; border-radius: 0 8px 8px 0; color: #1e40af;
}

.article-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 侧边栏 ---------- */
.sidebar-block { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.sidebar-block h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-block li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.sidebar-block li:last-child { border-bottom: 0; }
.sidebar-block li a { color: var(--text); display: flex; gap: 10px; align-items: baseline; }
.sidebar-block li a:hover { color: var(--primary); text-decoration: none; }
.rank-num { flex: none; width: 20px; height: 20px; border-radius: 5px; background: #e5e7eb; color: #4b5563; font-size: .75rem; display: grid; place-items: center; }
.rank-1 { background: #dc2626; color: #fff; }
.rank-2 { background: #f59e0b; color: #fff; }
.rank-3 { background: #10b981; color: #fff; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 15px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-light); font-size: .9rem;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .95rem; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group .hint { font-size: .82rem; color: var(--text-light); margin-top: 5px; }
.form-error { color: #b91c1c; font-size: .84rem; margin-top: 5px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.badge-locked { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-ok { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-err { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.field-msg { font-size: .82rem; margin-top: 5px; min-height: 1em; }
.field-msg.is-ok { color: #15803d; }
.field-msg.is-err { color: #b91c1c; }
.form-control.is-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.form-control.is-valid { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }

.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .93rem; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0 24px; margin-top: auto; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-tags { grid-column: 1 / -1; border-top: 1px solid #1e293b; padding-top: 22px; margin-top: 6px; }
.footer-tags h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-tags .tag { background: #1e293b; color: #cbd5e1; }
.footer-tags .tag:hover { background: var(--primary); color: #fff; text-decoration: none; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer li { padding: 5px 0; font-size: .9rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid #1e293b; font-size: .85rem; color: #94a3b8; text-align: center; }

/* ---------- 响应式：移动端导航 ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 36px 0; }
}

/* ---------- 单页封面 ---------- */
.page-cover { width:100%; max-height:360px; object-fit:cover; border-radius:var(--radius); margin-bottom:18px; }

/* ---------- 打印样式 ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .hero-actions { display: none; }
}

/* ============================================================
   组件扩展：面包屑 / TL;DR / 要点 / FAQ / 来源 / 标签云 / 搜索 / 评论 / 单页
   ============================================================ */

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ---------- 一句话结论 TL;DR ---------- */
.tldr-box {
  background: var(--primary-soft); border: 1px solid #dbeafe; border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 26px;
}
.tldr-label { color: var(--primary-dark); display: block; font-size: .82rem; letter-spacing: .5px; margin-bottom: 6px; }
.tldr-box p { margin: 0; color: #1e40af; font-size: 1.02rem; line-height: 1.7; }

/* ---------- 核心要点 ---------- */
.key-points { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.key-points h3 { font-size: 1.05rem; margin-bottom: 10px; }
.key-points ul { margin: 0; padding-left: 22px; list-style: disc; }
.key-points li { margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { margin: 30px 0; }
.faq h2 { font-size: 1.3rem; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 16px; color: #374151; }

/* ---------- 参考来源 ---------- */
.sources-box { margin: 26px 0; font-size: .9rem; }
.sources-box h3 { font-size: 1rem; margin-bottom: 8px; }
.sources-box ul { padding-left: 22px; list-style: decimal; color: var(--text-light); }
.sources-box li { margin-bottom: 5px; }

/* ---------- AIGEO：交给 AI 的操作条 ---------- */
.aigeo-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 26px 0; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.aigeo-actions-label { font-size: .9rem; color: #475569; }
.aigeo-actions-msg { font-size: .85rem; color: #15803d; margin-left: 4px; }

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud--sm .tag { font-size: .78rem; }
.tag-lg { background: var(--primary-soft); color: var(--primary); padding: 6px 14px; }

/* ---------- 搜索结果页 ---------- */
.search-bar { display: flex; gap: 10px; margin-bottom: 26px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; background: #fff; }
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-list { display: flex; flex-direction: column; gap: 4px; }
.search-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.search-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-item-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.search-item-title:hover { color: var(--primary); text-decoration: none; }
.search-item-snippet { color: var(--text-light); font-size: .92rem; margin: 6px 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 500; }
.badge-on { background: #dcfce7; color: #15803d; }
.badge-page { background: #fef9c3; color: #a16207; }

/* ---------- 评论区 ---------- */
.comments { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 30px; }
.comments h2 { font-size: 1.3rem; margin-bottom: 18px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-list .comment { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; background: #fff; }
.comment-replies { margin-top: 14px; padding-left: 20px; border-left: 2px solid var(--border); }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-weight: 600; }
.comment-head time { font-size: .8rem; color: var(--text-light); }
.comment-body { margin: 0; color: #374151; white-space: pre-wrap; }
.comment-reply-link { display: inline-block; margin-top: 8px; font-size: .85rem; cursor: pointer; }
.comment-form { margin-top: 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.comment-form h3 { font-size: 1.05rem; margin-bottom: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- 单页（关于等）---------- */
.article-layout--single { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .article-layout--single { grid-template-columns: minmax(0, 1fr) 280px; } }
.page-article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; }
.page-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.muted { color: var(--text-light); }

/* ---------- GEO 服务落地页（geo-service.php） ---------- */
.geo-hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(124,58,237,.12), transparent),
    radial-gradient(700px 360px at 10% 0%, rgba(37,99,235,.14), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.geo-hero h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.25; margin-bottom: 16px; letter-spacing: -.5px; }
.geo-hero h1 .accent { background: linear-gradient(120deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.geo-hero p.lead { color: var(--text-light); font-size: 1.08rem; max-width: 680px; margin-bottom: 26px; }
.geo-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.model-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(4, 1fr); } }
.model-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.model-logo { width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.25rem; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.model-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.model-company { color: var(--text-light); font-size: .84rem; margin-bottom: 10px; }
.model-note { color: #475569; font-size: .85rem; line-height: 1.6; }
.model-more { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), #f5f3ff); border-style: dashed; }
.model-more .model-logo { background: linear-gradient(135deg, var(--primary), #7c3aed); }
.model-more h3 { color: var(--primary); }

.adv-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adv-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.adv-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.adv-card .adv-tag { display: inline-block; font-size: .76rem; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.adv-card p { color: var(--text-light); font-size: .92rem; line-height: 1.7; }

.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: geo-step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: var(--shadow); }
.step-num { position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(37,99,235,.35); }
.step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.step p { color: var(--text-light); font-size: .9rem; line-height: 1.7; }

.faq-list { display: grid; gap: 14px; max-width: 880px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--text); }
.faq-item h3::before { content: "Q"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 6px; background: var(--primary); color: #fff; font-size: .76rem; font-weight: 800; vertical-align: middle; }
.faq-item p { color: var(--text-light); font-size: .94rem; line-height: 1.75; margin: 0; }

.cta-band { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; border-radius: 18px; padding: 44px 28px; text-align: center; box-shadow: var(--shadow-hover); }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-white { background: #fff; color: var(--primary); }
.cta-band .btn-white:hover { background: #f1f5f9; color: var(--primary-dark); text-decoration: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* 生态兼容矩阵 / 开发者接入 / 信任背书 */
.compat-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compat-table th, .compat-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.compat-table thead th { background: var(--primary); color: #fff; font-size: .85rem; letter-spacing: .3px; }
.compat-table tbody tr:last-child td { border-bottom: none; }
.compat-table tbody th { color: var(--primary); font-weight: 700; white-space: nowrap; width: 1%; }
.compat-table tbody td { color: #475569; line-height: 1.7; }

.dev-steps { margin: 0; padding-left: 22px; color: var(--text-light); }
.dev-steps li { margin-bottom: 12px; line-height: 1.8; font-size: .95rem; }
.dev-steps b { color: var(--text); }
.dev-steps code, .compat-table code { background: var(--primary-soft); color: var(--primary); padding: 1px 6px; border-radius: 6px; font-size: .85em; }

.trust-band { background: linear-gradient(135deg, #f8fafc, #f5f3ff); border: 1px solid var(--border); border-radius: 18px; padding: 36px 28px; text-align: center; box-shadow: var(--shadow); }
.trust-band .trust-logo { font-size: 2.4rem; margin-bottom: 8px; }
.trust-band h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text); }
.trust-band p { color: var(--text-light); max-width: 640px; margin: 0 auto; line-height: 1.85; font-size: .95rem; }
.trust-band a { color: var(--primary); font-weight: 600; }

/* ===== 前台账户入口 / 会员中心 / 注册登录 ===== */
.nav-account { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-account-link { font-size: .9rem; color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 8px; }
.nav-account-link:hover { background: var(--bg-soft); }
.nav-account-cta { background: var(--primary); color: #fff; }
.nav-account-cta:hover { color: #fff; opacity: .92; }

/* 注册 / 登录 / 找回 现代分栏卡片 */
.auth-wrap { max-width: 440px; margin: 48px auto; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-wrap h1 { font-size: 1.4rem; margin-bottom: 6px; }
.auth-wrap .sub { color: var(--text-light); font-size: .9rem; margin-bottom: 22px; }
.auth-wrap .form-group { margin-bottom: 16px; }
.auth-wrap label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.auth-wrap .form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .95rem; }
.auth-wrap .btn-block { width: 100%; padding: 12px; font-size: 1rem; }
.auth-wrap .alt { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--text-light); }
.auth-wrap .alt a { color: var(--primary); }

.auth-split {
  max-width: 940px; display: grid; grid-template-columns: 1fr; overflow: hidden; padding: 0;
  box-shadow: 0 30px 60px -22px rgba(79,70,229,.40);
}
@media (min-width: 760px) {
  .auth-split { grid-template-columns: 0.95fr 1.05fr; }
}
.auth-aside {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 130% at 0% 0%, #7c3aed 0%, var(--primary) 45%, #4338ca 100%);
  color: #fff; padding: 54px 42px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.auth-aside::before, .auth-aside::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.auth-aside::before { width: 230px; height: 230px; right: -80px; top: -80px; }
.auth-aside::after { width: 170px; height: 170px; left: -60px; bottom: -60px; background: rgba(255,255,255,.08); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h1 { color: #fff; font-size: 2.05rem; margin: 0; letter-spacing: .5px; }
.auth-aside .sub { color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.7; margin: 0; }
.auth-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 10px; }
.auth-brand::before { content: ""; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.25); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.auth-tips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-tips li { font-size: .95rem; color: rgba(255,255,255,.95); line-height: 1.6; }
.auth-form-side { padding: 46px 42px; display: flex; flex-direction: column; gap: 18px; justify-content: center; background: #fff; }
.auth-form-side h2 { font-size: 1.5rem; margin: 0 0 2px; }
.auth-form-side .sub { color: var(--text-light); font-size: .92rem; margin: 0 0 10px; }
.auth-block { display: flex; flex-direction: column; gap: 4px; }
.auth-sep { border: none; border-top: 1px dashed var(--border); margin: 4px 0; }
.auth-links { display: flex; gap: 18px; font-size: .9rem; }
.auth-links a { color: var(--text-light); }
.auth-links a:hover { color: var(--primary); text-decoration: none; }
.auth-split .form-control { padding: 12px 14px; font-size: 1rem; }
.auth-split .btn-block { padding: 14px; font-size: 1.05rem; font-weight: 600; }

/* 后台：重置密钥后一次性显示新密钥 */
.rekey-view { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-size: .92rem; }
.rekey-view input { width: auto; max-width: 360px; font-family: monospace; background: #fff; }
.rekey-view .rekey-hint { color: #6b7280; font-size: .82rem; }

/* 找回密码：置中窄卡片 */
.auth-split.auth-center { max-width: 760px; }
.auth-split.auth-center .auth-aside { padding: 36px 30px; }

.member-layout { display: flex; gap: 24px; align-items: flex-start; max-width: 1100px; margin: 28px auto; padding: 0 16px; }
.member-side { width: 200px; flex: none; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.member-side a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; margin-bottom: 4px; }
.member-side a.active, .member-side a:hover { background: var(--bg-soft); color: var(--primary); font-weight: 600; }
.member-main { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.member-main h2 { margin: 0 0 16px; font-size: 1.2rem; }
.welcome-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark, #1f6feb)); color: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.welcome-title { margin: 0 0 8px; font-size: 1.25rem; color: #fff; font-weight: 700; }
.welcome-line { margin: 0; font-size: .98rem; line-height: 1.7; color: rgba(255,255,255,.92); }
.welcome-line strong, .welcome-col strong { color: #fff; }
.welcome-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.welcome-col { font-size: .98rem; line-height: 1.7; color: rgba(255,255,255,.92); background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 560px) { .welcome-cols { grid-template-columns: 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--bg-soft); border-radius: 12px; padding: 16px; }
.stat-card .num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: .85rem; color: var(--text-light); }
.key-box { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.key-box code { flex: 1; background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; font-size: .85rem; overflow-x: auto; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 220px; }
.copy-hint { font-size: .85rem; color: var(--text-light); margin-top: 6px; }
.agent-card { background: var(--bg-soft); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.agent-card .code { font-weight: 700; color: var(--primary); }

/* 会员套餐卡片 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 20px -18px rgba(30,41,59,.28); transition: box-shadow .15s, transform .15s, border-color .15s; }
.plan-card:hover { box-shadow: 0 14px 30px -20px rgba(37,99,235,.4); transform: translateY(-2px); border-color: #c7d2fe; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-weight: 800; font-size: 1.12rem; color: #0f172a; }
.plan-price { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.plan-price small { font-size: .9rem; font-weight: 600; color: #64748b; }
.plan-sub { font-size: .82rem; color: #94a3b8; }
.plan-divider { border: none; border-top: 1px dashed #e2e8f0; margin: 2px 0; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; color: #334155; font-size: .9rem; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.plan-feats li::before { content: '✓'; color: var(--primary, #2563eb); font-weight: 800; flex: 0 0 auto; }
.plan-feats li b { color: #0f172a; }
.plan-desc { color: #94a3b8; font-size: .84rem; line-height: 1.55; border-top: 1px dashed #e2e8f0; padding-top: 10px; margin-top: 2px; }
.plan-card .btn { margin-top: auto; }

/* 套餐购买二次确认弹层 */
.plan-mask { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.plan-mask.open { display: flex; }
.plan-dialog { background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.5); }
.plan-dialog h3 { margin: 0 0 4px; font-size: 1.15rem; color: #0f172a; }
.plan-dialog .dlg-sub { color: #94a3b8; font-size: .85rem; margin: 0 0 16px; }
.plan-dlg-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eef2f7; font-size: .92rem; color: #475569; }
.plan-dlg-row b { color: #0f172a; }
.plan-dlg-row:last-child { border-bottom: none; }
.plan-dlg-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; border-radius: 10px; padding: 10px 12px; font-size: .88rem; line-height: 1.55; margin: 14px 0; }
.plan-dlg-warn b { color: #dc2626; }
.plan-agree { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: #334155; line-height: 1.5; margin-bottom: 14px; }
.plan-agree input { margin-top: 3px; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--primary, #2563eb); }
.plan-dlg-btns { display: flex; gap: 10px; }
.plan-dlg-btns .btn { flex: 1; }
@media (max-width: 640px) { .plan-dialog { padding: 20px; } }

/* ---------- 充值页 ---------- */
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { border: 1px solid var(--border, #e2e8f0); background: #fff; color: var(--text, #1e293b); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.chip:hover, .chip.active { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
/* 收款码：用网格强制并排、占满整行，绝不横向滚动/左右拖动；图片尺寸由网格决定，不受原图固有宽度影响 */
.qr-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding: 4px 2px 10px; overflow: hidden; }
.qr-item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 12px; padding: 10px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
/* object-fit 必须是 contain：cover 会裁掉二维码边缘，导致扫码失败；图片始终填满单元格且不溢出 */
.qr-item img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 6px; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; box-sizing: border-box; }
.qr-item span { font-size: .86rem; font-weight: 600; color: #334155; }
.qr-item input { margin-top: 2px; width: 18px; height: 18px; }
.qr-item:hover { border-color: #c7d2fe; }
.qr-item:has(input:checked) { border-color: var(--primary, #2563eb); background: var(--bg-soft, #f8fafc); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
/* 窄屏下两个收款码仍并排占满一行、不横向滚动 */
@media (max-width: 480px) { .qr-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .qr-item { padding: 8px; } }

/* 充值页步骤分栏：金额+凭证 一栏，收款码 一栏，纵向整行堆叠、分区清晰 */
.recharge-block { width: 100%; background: var(--bg-soft, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: 14px 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.recharge-block .rb-title { font-weight: 700; font-size: .9rem; color: #0f172a; }
.recharge-block .rb-field { display: flex; flex-direction: column; gap: 6px; }
.recharge-block label { font-size: .84rem; color: #475569; }

/* ---------- 会员管理：添加会员面板 ---------- */
.add-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 8px 24px -18px rgba(79,70,229,.35); }
.add-box > summary { list-style: none; user-select: none; }
.add-box > summary::-webkit-details-marker { display: none; }
.add-box[open] > summary { margin-bottom: 4px; }
.add-box label { display: block; font-size: .82rem; margin-bottom: 4px; color: #475569; }
.add-box .checkbox-label { font-size: .85rem; }

/* ============================================================
   首页（index.php）大气版样式
   ============================================================ */

/* ---------- 大气 Hero（左右分栏） ---------- */
.home-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(1100px 460px at 85% -35%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(900px 420px at 6% -12%, rgba(37,99,235,.18), transparent 60%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(600px 600px at 20% 20%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(520px 520px at 80% 30%, rgba(124,58,237,.12), transparent 60%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 40%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 35%, #000 40%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.glow-a { width: 280px; height: 280px; right: 8%; top: -60px; background: radial-gradient(circle, rgba(124,58,237,.5), transparent 70%); }
.glow-b { width: 320px; height: 320px; left: -80px; bottom: -140px; background: radial-gradient(circle, rgba(37,99,235,.42), transparent 70%); }

.hero-split {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto; text-align: center;
}
.hero-copy { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(37,99,235,.25); color: var(--primary);
  font-size: .82rem; font-weight: 600; margin-bottom: 22px; box-shadow: 0 6px 18px rgba(37,99,235,.10);
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.22; margin-bottom: 20px;
  letter-spacing: -.8px; font-weight: 800; color: #0f172a;
}
.hero-title .accent {
  background: linear-gradient(120deg, #2563eb, #7c3aed 60%, #db2777);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: #475569; font-size: 1.1rem; line-height: 1.85; max-width: 560px; margin: 0 auto 30px; }

.home-hero .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 34px; }

.hero-search {
  display: flex; align-items: center; gap: 6px; max-width: 380px; flex: 1 1 280px; margin: 0;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(37,99,235,.18);
  box-shadow: 0 12px 34px rgba(37,99,235,.12);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14), 0 16px 40px rgba(37,99,235,.18);
  transform: translateY(-1px);
}
.hero-search-ic { color: #94a3b8; flex: none; margin-right: 2px; transition: color .2s; }
.hero-search:focus-within .hero-search-ic { color: var(--primary); }
.hero-search input {
  flex: 1; min-width: 0; padding: 12px 4px; border: 0; background: transparent; font-size: 1.02rem; color: #0f172a;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: #94a3b8; }
.hero-search .btn {
  flex: none; border-radius: 999px; padding: 10px 20px; border: 0;
  background: linear-gradient(120deg, #2563eb, #7c3aed 58%, #db2777);
  color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(124,58,237,.30);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-search .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(124,58,237,.38); filter: brightness(1.06); }
.hero-search .btn:active { transform: translateY(0); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }
.home-hero .hero-cta { margin-bottom: 0; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.7); border: 1px solid rgba(37,99,235,.28); color: var(--primary); backdrop-filter: blur(6px); }
.hero-cta .btn-ghost:hover { border-color: var(--primary); background: #fff; text-decoration: none; }

/* ---------- 精选 / 最新 区块微调 ---------- */
.home-featured { background: var(--bg-soft); border-bottom: 1px solid var(--border); }

/* ---------- 热门 + 分类双栏 ---------- */
.home-popular { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.home-popular-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .home-popular-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.rank-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.rank-title { flex: 1; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item:hover .rank-title { color: var(--primary); }
.rank-views { flex: none; font-size: .82rem; color: var(--text-light); }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  font-size: .92rem; color: var(--text); box-shadow: var(--shadow); transition: all .18s;
}
.cat-chip:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.cat-count { font-size: .76rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 1px 9px; }
.cat-all { display: inline-block; margin-top: 18px; }

/* ---------- 移动端 Hero 适配 ---------- */
@media (max-width: 768px) {
  .home-hero { padding: 56px 0 52px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-search { max-width: 100%; }
}

/* ---------- 授权续费提醒条（前台）---------- */
.license-renew-bar {
  background: #fff7e6; color: #8a6d00; font-size: .9rem; line-height: 1.6;
  padding: 10px 16px; text-align: center; border-bottom: 1px solid #ffe2a8;
}
