:root {
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-weak: #f3e8ff;
  --accent: #a3e635;
  --gold: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f5fd;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #ec4899 100%);
  --grad-deep: linear-gradient(135deg, #160a26 0%, #331463 55%, #6d1a81 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(1200px 400px at 85% -100px, rgba(236,72,153,.10), transparent 60%),
    radial-gradient(1000px 420px at -100px 30%, rgba(124,58,237,.08), transparent 60%),
    var(--bg);
  color: var(--ink); font-size: 16px; line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
/* 全站宽度自适应：流式容器，宽屏自动扩展，窄屏收紧留白 */
.container { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
h1 { font-size: 26px; font-weight: 700; } h2 { font-size: 22px; margin: 28px 0 14px; }
h3 { font-size: 17.5px; margin-bottom: 6px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .inner { display: flex; align-items: center; gap: 22px; height: 58px; }
.logo { font-weight: 800; font-size: 19px; color: var(--brand); white-space: nowrap; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-header nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-header nav a { padding: 6px 10px; border-radius: 8px; font-size: 15px; color: var(--muted); }
.site-header nav a:hover { background: var(--brand-weak); color: var(--brand); }
.site-header nav a.active { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.header-user a { font-size: 14.5px; }

.hero { background: var(--grad-deep); color: #fff; border-radius: 18px; padding: 52px 44px; margin-top: 22px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 240px at 90% -40px, rgba(236,72,153,.35), transparent 65%),
              radial-gradient(420px 200px at 0% 120%, rgba(124,58,237,.28), transparent 60%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 38px; margin-bottom: 10px; }
.hero p { max-width: 640px; opacity: .92; }
.hero .btn.gold { background: linear-gradient(135deg, #f59e0b, #f97316); color: #20180a; font-weight: 600; }
.hero.hero-img { position: relative; overflow: hidden; padding: 72px 44px; }
.hero.hero-img .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.5) saturate(.9); }
.hero.hero-img .hero-body { position: relative; z-index: 2; }

/* 卡片配图 */
.thumb { height: 150px; border-radius: 10px; margin: -6px -6px 10px; background-size: cover; background-position: center; transition: transform .25s ease, filter .25s ease; }
a.card:hover .thumb { filter: brightness(1.08); }
a.card { transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,60,100,.10); }
.mini-row { display: flex; gap: 12px; align-items: flex-start; }
.mini-row .mini-img { width: 74px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }

/* 计算器 */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card h3 { color: var(--brand); }
.calc-out { background: var(--brand-weak); border-radius: 10px; padding: 12px 14px; margin-top: 6px; font-size: 15px; min-height: 52px; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.section { margin-top: 26px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--brand); }
.card .desc { color: var(--muted); font-size: 14.5px; margin: 4px 0; }
.card .meta { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; background: var(--brand-weak); color: var(--brand); margin-right: 6px; }
.badge.gray { background: #eef0f3; color: var(--muted); }
.badge.green { background: #e4f3e9; color: var(--ok); }
.badge.gold { background: #f7ecd2; color: #8a6410; }
.badge.red { background: #f9e5e5; color: var(--danger); }
.price { font-size: 16px; font-weight: 700; color: #c0392b; }
.price.free { color: var(--ok); }

.btn { display: inline-block; border: 0; background: var(--grad); color: #fff; padding: 9px 20px; border-radius: 10px; font-size: 15px; cursor: pointer; box-shadow: 0 4px 14px rgba(124,58,237,.25); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 7px 20px rgba(124,58,237,.32); }
.btn.outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); box-shadow: none; }
.btn.gray { background: #e8ebef; color: var(--muted); box-shadow: none; }
.btn.gold { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 4px 14px rgba(245,158,11,.28); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 5px 13px; font-size: 13px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 13.5px; margin: 18px 0 12px; }
.crumbs a { color: var(--brand); }

.notice { background: #fdf6e3; border: 1px solid #ecd9a8; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.success { background: #e8f5ec; border: 1px solid #bfe3cb; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 8px 0; }
.error-box { background: #f9e5e5; border: 1px solid #e3bcbc; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; margin: 8px 0; color: var(--danger); }

input[type=text], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: #fff; margin: 4px 0 10px; font-family: inherit;
}
textarea { min-height: 90px; }
label { font-size: 13px; color: var(--muted); display: block; }
form .errorlist { color: var(--danger); font-size: 12.5px; margin-bottom: 8px; list-style: none; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { border-bottom: 1px solid var(--line); }
.tbl tbody th { border-top: 1px solid var(--line); width: 90px; }

.article h1 { margin-top: 24px; margin-bottom: 8px; }
.body p { margin: 8px 0; }
.article .card { padding: 22px 26px; }

.chap { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; overflow: hidden; }
.chap .no { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.chap .t { flex: 1; min-width: 200px; }

.wm-layer { position: relative; }
.wm { position: absolute; pointer-events: none; color: rgba(90, 100, 110, .18); transform: rotate(-18deg); font-size: 12px; white-space: nowrap; z-index: 5; }

.site-footer { background: #16212d; color: #a7b6c6; margin-top: 50px; padding: 36px 0; font-size: 14.5px; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.site-footer a { color: #c4d2e0; }
.site-footer a:hover { color: #fff; }

.ai-fab { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #14558c, #1a7ec2); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 85, 140, .35); z-index: 90; }
.ai-panel { position: fixed; right: 22px; bottom: 84px; width: 360px; max-width: calc(100vw - 40px); height: 460px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: none; flex-direction: column; overflow: hidden; z-index: 91; box-shadow: 0 12px 40px rgba(20, 40, 60, .18); }
.ai-panel.open { display: flex; }
.ai-panel .head { padding: 12px 16px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; }
.ai-panel .head .close { float: right; cursor: pointer; }
.ai-panel .msgs { flex: 1; overflow-y: auto; padding: 12px; background: #f7f9fb; }
.ai-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 8px; word-break: break-word; }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); }
.ai-msg.user { background: var(--brand); color: #fff; margin-left: auto; }
.ai-msg .src { margin-top: 6px; font-size: 12px; color: var(--muted); }
.ai-msg .src a { color: var(--brand); display: inline-block; margin-right: 6px; text-decoration: underline; }
.ai-panel .inputbar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.ai-panel .inputbar input { margin: 0; flex: 1; }

/* ============ 导航下拉（公司介绍） ============ */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-block; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(10,30,50,.14); min-width: 200px; padding: 6px; z-index: 60; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.drop-menu a:hover { background: var(--brand-weak); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  font-size: 18px; padding: 4px 10px; cursor: pointer; }
.nav-sub-toggle { display: none; }
.nav-mask { display: none; }

/* ============ 计算器一级目录 ============ */
.calc-cats { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: 58px; z-index: 40;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px); padding: 10px 0; margin-top: 14px;
  border-bottom: 1px solid var(--line); }
.calc-cats a { padding: 7px 14px; border-radius: 999px; background: var(--brand-weak); color: var(--brand);
  font-size: 14px; font-weight: 600; text-decoration: none; }
.calc-cats a:hover { background: var(--brand); color: #fff; }
.calc-cat-title { margin: 26px 0 4px; padding-left: 10px; border-left: 4px solid var(--brand); font-size: 19px; }

/* ============ 页面构建器前台模块微调 ============ */
.article .card.body img { border-radius: 10px; }
details.card summary { list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
.inline { display: inline; }

/* ============ 整站自适应（响应式增强） ============ */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header .inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 6px; }
  .nav-toggle { display: block; order: 3; margin-left: auto; font-size: 19px; line-height: 1;
    padding: 6px 12px; }
  .site-header nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; gap: 2px;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 10px 16px;
    max-height: calc(100dvh - 130px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { padding: 11px 12px; font-size: 15px; }
  .header-user { order: 2; margin-left: auto; }
  .header-user .btn.sm { padding: 5px 9px; }
  /* ---- 移动菜单手风琴：默认收起，点 ▾ 展开，需要哪部分开哪部分 ---- */
  .site-header nav .nav-drop { position: static; display: flex; flex-wrap: wrap; align-items: center; }
  .site-header nav .nav-drop > a { flex: 1 1 auto; }
  .site-header nav .nav-sub-toggle { display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 36px; flex: 0 0 40px; margin-left: 4px; border: 1px solid var(--line);
    border-radius: 8px; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer;
    transition: transform .18s ease; }
  .site-header nav .nav-drop.open .nav-sub-toggle { transform: rotate(180deg);
    color: var(--brand); border-color: var(--brand); }
  .site-header nav .drop-menu { display: none; position: static; box-shadow: none; border: none;
    border-left: 2px solid var(--line); border-radius: 0; background: transparent;
    padding: 2px 0 6px 14px; margin-left: 12px; flex-basis: 100%; }
  .site-header nav .nav-drop.open .drop-menu { display: block; }
  /* ---- 遮罩 + 锁滚：菜单面板清晰地浮在内容之上，点遮罩即收起 ---- */
  .nav-mask { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45);
    z-index: 45; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-locked .nav-mask { opacity: 1; pointer-events: auto; }
  body.nav-locked { overflow: hidden; }
  .hero { padding: 34px 22px !important; }
  .hero h1 { font-size: 25px !important; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .hero { padding: 26px 18px !important; border-radius: 12px; }
  .hero h1 { font-size: 22px !important; }
  .card { padding: 14px; }
  .calc-cats { top: 0; position: static; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .site-footer .cols { flex-direction: column; gap: 14px; }
  .header-user a:not(.btn) { display: none; }
  .ai-panel { width: calc(100vw - 24px) !important; right: 12px !important; }
}

/* 菜单 CTA 项（WP 菜单 css_class=menu-cta） */
nav a.menu-cta { background: var(--brand); color: #fff !important; font-weight: 700; border-radius: 999px; padding: 6px 16px; }
nav a.menu-cta:hover { background: #0d3a5c; }

/* ============ 科技感横幅（计算器等页面用） ============ */
.tech-hero { background: linear-gradient(135deg, #160a26 0%, #331463 55%, #6d1a81 100%); }
.tech-cat { padding-left: 12px; border-left: 4px solid; border-image: var(--grad) 1; }
.calc-tile .calc-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, #f3e8ff, #fce7f3); margin-bottom: 8px; }
a.calc-tile:hover .calc-ic { background: var(--grad); }

/* ============ 图片高级效果 ============ */
img.pb-img { cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.fx-shadow { box-shadow: 0 14px 36px rgba(15,23,42,.18) !important; }
.fx-zoom:hover { transform: scale(1.035); box-shadow: 0 18px 44px rgba(15,23,42,.22); }
.fx-glow { animation: pbGlow 2.6s ease-in-out infinite; }
@keyframes pbGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(236,72,153,.55), 0 0 22px rgba(236,72,153,.35); }
  50% { box-shadow: 0 0 0 2px rgba(124,58,237,.6), 0 0 34px rgba(124,58,237,.5); }
}
.fx-parallax { width: 100%; height: 380px; border-radius: 14px; background-size: cover; background-position: center;
  background-attachment: fixed; box-shadow: 0 14px 36px rgba(15,23,42,.18); }
@media (max-width: 900px) { .fx-parallax { background-attachment: scroll; height: 240px; } }

/* ============ 全站灯箱 ============ */
.pb-lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center;
  background: rgba(8, 12, 28, .88); backdrop-filter: blur(4px); cursor: zoom-out; }
.pb-lightbox.open { display: flex; }
.pb-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }

/* ============ Joomla 式组件：图片轮播 ============ */
.pb-carousel { position: relative; border-radius: 16px; overflow: hidden; background: #160a26; box-shadow: 0 14px 36px rgba(15,23,42,.2); }
.pb-slides { position: relative; }
.pb-slide { display: none; position: relative; }
.pb-slide.on { display: block; animation: pbFade .5s ease; }
@keyframes pbFade { from { opacity: 0; transform: scale(1.012); } to { opacity: 1; transform: none; } }
.pb-slide img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.pb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(8,12,28,.82)); }
.pb-cap b { font-size: 18px; display: block; }
.pb-cap span { opacity: .85; font-size: 13.5px; }
.pb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .15s; }
.pb-arrow:hover { background: rgba(255,255,255,.34); }
.pb-arrow.prev { left: 12px; } .pb-arrow.next { right: 12px; }
.pb-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 5; }
.pb-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s; }
.pb-dots i.on { background: var(--brand-2); width: 22px; border-radius: 5px; }

/* ============ Joomla 式组件：PPT 自动播放 ============ */
.pb-ppt { border-radius: 16px; overflow: hidden; background: #160a26; box-shadow: 0 14px 36px rgba(15,23,42,.2); }
.pb-ppt .pb-slide img { width: 100%; max-height: 620px; object-fit: contain; background: #160a26; }
.pb-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0f172a; color: #cbd5e1; font-size: 13px; }
.pb-bar button { border: 0; background: var(--grad); color: #fff; border-radius: 8px; padding: 5px 13px; cursor: pointer; font-size: 13px; }
.pb-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.pb-bar-fill { height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }

/* ============ Joomla 式组件：ParaView 结果循环播放器 ============ */
.pb-pv { border-radius: 16px; overflow: hidden; background: #05080f; box-shadow: 0 14px 36px rgba(15,23,42,.3); }
.pv-view { position: relative; background:
  conic-gradient(#0d1424 90deg, #0a101d 90deg 180deg, #0d1424 180deg 270deg, #0a101d 270deg) 0 0/28px 28px; }
.pv-frame { width: 100%; max-height: 620px; object-fit: contain; display: block; min-height: 300px; }
.pv-badge { position: absolute; top: 10px; left: 12px; padding: 3px 11px; border-radius: 999px; font-size: 12px;
  color: #f9a8d4; background: rgba(236,72,153,.14); border: 1px solid rgba(236,72,153,.4); backdrop-filter: blur(3px); }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0f172a; }
.pv-bar button { border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #fff;
  background: var(--grad); font-size: 14px; }
.pv-seek { accent-color: var(--brand-2); }
.pv-count { color: #cbd5e1; font-size: 12.5px; min-width: 64px; text-align: center; }
.pv-bar select { width: auto; margin: 0; padding: 4px 8px; background: #1e293b; color: #cbd5e1; border-color: #334155; }

/* ============ 编辑器工具条与实时预览 ============ */
.pb-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 8px; }
.pb-toolbar button { border: 1px solid var(--line); background: #f8fafc; border-radius: 7px; padding: 4px 10px;
  font-size: 12.5px; cursor: pointer; color: var(--ink); }
.pb-toolbar button:hover { background: var(--brand-weak); border-color: var(--brand); color: var(--brand); }
.pb-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; background: #fbfcfe;
  margin-top: 10px; max-height: 300px; overflow-y: auto; }
.pb-preview:empty::before { content: '（实时预览：输入内容后自动生成）'; color: var(--muted); font-size: 12.5px; }

/* ============ Astra 主题式视觉打磨层（参考 WordPress Astra：轻盈、留白、克制阴影、清晰层级） ============ */

/* 排版：更大更清晰的标题层级 */
body { font-size: 15px; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
h2 { font-size: 21px; font-weight: 700; margin: 30px 0 14px; letter-spacing: -.2px; }
h3 { font-size: 16.5px; font-weight: 600; }

/* eyebrow 小标签 + 区块标题组（Astra 经典结构） */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--brand); background: var(--brand-weak);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.sec-head { max-width: 720px; }
.sec-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 顶部导航：白底 sticky + 轻投影，链接改为 Astra 式色变而非底色块 */
.site-header { box-shadow: 0 1px 0 var(--line), 0 2px 12px rgba(15,23,42,.04); }
.site-header .inner { height: 64px; }
.site-header nav a { padding: 8px 13px; border-radius: 6px; color: var(--ink); font-weight: 500; }
.site-header nav a:hover { background: transparent; color: var(--brand); }
.site-header nav a.active { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

/* 按钮：Astra 式小圆角、充分内边距、柔和过渡 */
.btn { border-radius: 6px; padding: 9px 22px; font-weight: 500; transition: all .18s ease; }
.btn.sm { padding: 5px 13px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,.22); filter: none; }
.btn.outline:hover { box-shadow: 0 4px 12px rgba(124,58,237,.14); }
.btn.gray:hover { box-shadow: none; transform: none; }

/* 卡片：小圆角 + 极轻默认投影 + hover 浮起 */
.card { border-radius: 10px; box-shadow: 0 1px 3px rgba(15,23,42,.05); padding: 18px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.10); }
.panel { border-radius: 10px; }
.thumb { border-radius: 8px; margin: -6px -8px 12px; }

/* Hero：更大标题、更松弛的呼吸感 */
.hero { border-radius: 16px; padding: 64px 52px; }
.hero h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.hero p { font-size: 17px; max-width: 680px; }
.hero.hero-img { padding: 84px 52px; }
@media (max-width: 640px) { .hero { padding: 42px 26px; } .hero.hero-img { padding: 54px 26px; } }

/* 列表卡片图片悬浮轻微缩放（Astra 常见交互） */
a.card:hover .thumb { transform: scale(1.02); }

/* 页脚：干净的分隔与链接 hover */
footer.site-footer, .site-footer { }
.site-footer a:hover { color: var(--brand-2); }

/* ============ Joomla 式前台管理员编辑条 ============ */
.fe-admin-bar { position: fixed; left: 16px; bottom: 16px; z-index: 96; display: flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b); color: #cbd5e1; border-radius: 12px; padding: 7px 10px 7px 12px;
  font-size: 13px; box-shadow: 0 12px 34px rgba(15,23,42,.35); border: 1px solid rgba(255,255,255,.08); }
.fe-admin-bar .fe-tag { color: #f9a8d4; font-weight: 700; margin-right: 6px; }
.fe-admin-bar a { color: #e2e8f0; text-decoration: none; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.fe-admin-bar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.fe-admin-bar .fe-min { border: 0; background: rgba(255,255,255,.1); color: #cbd5e1; border-radius: 7px;
  width: 24px; height: 24px; cursor: pointer; margin-left: 4px; line-height: 1; }
.fe-admin-bar.min a, .fe-admin-bar.min .fe-tag { display: none; }
/* 模块旁的「编辑此组件」小徽章 */
.fe-chip-row { margin: 14px 0 -8px; }
.fe-chip { display: inline-block; font-size: 12px; color: var(--brand); background: var(--brand-weak); border: 1px dashed #c4b5fd;
  border-radius: 999px; padding: 3px 12px; opacity: .85; }
.fe-chip:hover { opacity: 1; background: #ede9fe; }
@media (max-width: 640px) {
  .fe-admin-bar { left: 10px; right: 74px; bottom: 12px; overflow-x: auto; }
  .fe-admin-bar a:not(:first-of-type) { display: none; }
}

/* ============ 资源库（图片/ParaView 序列） ============ */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.asset-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  transition: box-shadow .18s ease, transform .18s ease; }
.asset-card:hover { box-shadow: 0 10px 26px rgba(15,23,42,.10); transform: translateY(-2px); }
.asset-card img { width: 100%; height: 110px; object-fit: cover; display: block; background: #f1f5f9; }
.asset-info { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.asset-info b { font-size: 13px; }
.pv-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.pv-thumb { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pv-thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; background: #0b1026; }

/* ============ 全站左缘对齐：窄容器左边缘与顶部导航 logo 对齐（不再水平居中） ============
   说明：内容左缘 = 容器自身 padding-left(3vw)，与导航 logo 一致；
   仅在超宽屏（>1760px）时按剩余空间居中，不再额外加 3vw 外边距导致横向溢出。 */
.container.align-left {
  margin-left: max(0px, calc((100% - 1760px) / 2)) !important;
}

/* ============ 构建器模块外观属性：外观区块（背景/留白/全宽） ============ */
.pb-sec { padding: 13px 0; }
.pb-in { width: 100%; padding: 0 clamp(16px, 3vw, 48px); }
.pb-sec[style*="background"] { background-size: cover; background-position: center; }

/* ============ 课程中心：左侧分类栏 ============ */
.courses-layout { display: flex; gap: 26px; align-items: flex-start; }
.course-side {
  flex: 0 0 262px; position: sticky; top: 84px;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 12px; box-shadow: 0 6px 24px rgba(20,24,60,.06);
}
.course-side h3 { margin: 4px 8px 10px; font-size: 15px; }
.course-side a.side-link {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none;
  font-size: 14px; margin-bottom: 2px; transition: background .15s, color .15s;
}
.course-side a.side-link:hover { background: var(--brand-weak, #f5f3ff); }
.course-side a.side-link.on { background: var(--grad); color: #fff; font-weight: 600; }
.course-side a.side-link .n { font-size: 12px; opacity: .72; }
.course-side .side-group { margin: 12px 8px 6px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.course-side .side-sub {
  display: block; padding: 6px 12px 6px 22px; font-size: 13px; color: var(--muted);
  text-decoration: none; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.course-side .side-sub:hover { color: var(--brand); background: var(--brand-weak, #f5f3ff); }
.course-side .side-sub.on { color: var(--brand); font-weight: 600; }
.course-main { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .courses-layout { flex-direction: column; }
  .course-side { position: static; flex: none; width: 100%; }
}

/* ============ 模块排列栅格：相邻窄宽度模块自动拼行 ============ */
.pb-flow { display: flex; flex-wrap: wrap; align-items: stretch; }
.pb-sec { flex: 0 0 100%; max-width: 100%; position: relative; }
.pb-col-half     { flex: 0 0 50%;     max-width: 50%; }
.pb-col-third    { flex: 0 0 33.333%; max-width: 33.333%; }
.pb-col-twothird { flex: 0 0 66.666%; max-width: 66.666%; }
.pb-col-quarter  { flex: 0 0 25%;     max-width: 25%; }
.pb-sec .container, .pb-sec .pb-in { height: 100%; }
@media (max-width: 900px) {
  .pb-col-half, .pb-col-third, .pb-col-twothird, .pb-col-quarter { flex: 0 0 100%; max-width: 100%; }
}

/* ============ 前台模块编辑：工具条 + 弹窗 ============ */
/* 前台模块编辑工具条：绝对定位覆盖在模块右上角，独立类避免与 .container 的 height:100% 冲突 */
.pb-fe-bar {
  position: absolute; top: 6px; right: clamp(16px, 3vw, 48px); z-index: 6;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
  height: auto; margin: 0; padding: 2px 4px; border-radius: 10px;
  background: rgba(255,255,255,.88); box-shadow: 0 2px 10px rgba(20,24,60,.12);
}
.pb-fe-bar .fe-chip, .pb-fe-bar button.fe-chip { height: auto; min-height: 0; cursor: pointer; border-style: solid; }
.pb-fe-bar .inline { display: inline-flex; }
.pb-fe-bar button.fe-chip:hover { background: #ddd6fe; }
#fe-modal iframe { background: #fff; }

/* ============ hero 头图多图轮播 + 模块高度 ============ */
.pb-hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.pb-hero-slide.on { opacity: 1; }
/* 模块设置高度后：hero 横幅撑满并垂直居中 */
.pb-sec[style*="min-height"] .hero { height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* ============ 半宽/窄块拼行对齐：内容列 flex 拉伸，卡片等高 ============ */
.pb-sec .container, .pb-sec .pb-in { display: flex; flex-direction: column; }
.pb-sec .container > .card:last-child, .pb-sec .pb-in > .card:last-child,
.pb-sec .container > .card:only-of-type, .pb-sec .pb-in > .card:only-of-type { flex: 1 1 auto; }
.pb-sec .container > blockquote:last-child, .pb-sec .pb-in > blockquote:last-child { flex: 1 1 auto; }
.pb-col-half .card .desc, .pb-col-third .card .desc,
.pb-col-twothird .card .desc, .pb-col-quarter .card .desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 内容对齐 + 卡片化容器 ============ */
.pb-align-center { text-align: center; }
.pb-align-right { text-align: right; }
.pb-boxed { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 28px; box-shadow: 0 8px 28px rgba(20,24,60,.07); }

/* ============ 页面设计系统：Hero / 统计 / 条带 / 空状态 ============ */
.page-hero { position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #6d3ef2 0%, #8b5cf6 40%, #c026d3 100%);
  padding: 34px 36px 30px; margin: 22px 0 24px; box-shadow: 0 14px 34px rgba(109,62,242,.28); }
.page-hero::before, .page-hero::after { content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.14); }
.page-hero::before { width: 300px; height: 300px; right: -80px; top: -140px; }
.page-hero::after { width: 190px; height: 190px; right: 150px; bottom: -110px; background: rgba(255,255,255,.09); }
.page-hero .ph-emoji { position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
  font-size: 84px; opacity: .28; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.page-hero h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: .01em; position: relative; z-index: 1; }
.page-hero .ph-sub { margin: 0; font-size: 15px; opacity: .92; max-width: 640px; position: relative; z-index: 1; }
.ph-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.ph-chip { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 6px 15px; font-size: 13.5px; font-weight: 600; }
.ph-chip b { font-size: 15px; }
.ph-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.ph-actions .btn { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.ph-actions .btn.solid { background: #fff; color: var(--brand); border-color: #fff; }
.ph-actions .btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.ph-actions .btn.solid:hover { background: #fff; color: var(--brand-2, #a21caf); }

.sec-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.sec-title h2 { margin: 0; font-size: 20px; position: relative; padding-left: 14px; }
.sec-title h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2, #c026d3)); }
.sec-title .more { margin-left: auto; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.sec-title .more:hover { color: var(--brand); }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.feature-strip.cols3 { grid-template-columns: repeat(3, 1fr); }
.strip-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.strip-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,24,60,.09); }
.strip-item .si-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f1ecff, #fdf0ff); }
.strip-item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.strip-item .si-desc { font-size: 12.8px; color: var(--muted); line-height: 1.5; }

.empty-state { text-align: center; padding: 54px 20px; background: #fff; border: 1px dashed var(--line);
  border-radius: 16px; color: var(--muted); }
.empty-state .es-emoji { font-size: 44px; display: block; margin-bottom: 10px; }
.empty-state b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }

.trust-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.trust-strip .t-item { flex: 1; min-width: 180px; display: flex; gap: 10px; align-items: center;
  background: linear-gradient(135deg, #faf9ff, #fff); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; font-size: 13.8px; font-weight: 600; }
.trust-strip .t-item span.ti { font-size: 20px; }

.news-featured { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-left: 5px solid var(--brand); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px;
  text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.news-featured:hover { box-shadow: 0 10px 26px rgba(20,24,60,.1); transform: translateY(-2px); }
.news-featured .nf-badge { flex-shrink: 0; align-self: flex-start; background: var(--grad); color: #fff;
  border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.news-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px; margin-bottom: 10px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s; }
.news-item:hover { border-color: var(--brand); transform: translateX(3px); }
.news-item .nd { flex-shrink: 0; width: 58px; text-align: center; background: #f6f3ff; border-radius: 10px;
  padding: 7px 4px; }
.news-item .nd b { display: block; font-size: 18px; color: var(--brand); line-height: 1.15; }
.news-item .nd span { font-size: 11px; color: var(--muted); }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 22px; }
.cat-tile { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 10px 24px rgba(20,24,60,.09); }
.cat-tile.active { border-color: var(--brand); background: linear-gradient(135deg, #f5f2ff, #fdf4ff); }
.cat-tile .ct-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 21px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1ecff, #fdf0ff); }
.cat-tile b { display: block; font-size: 14.5px; }
.cat-tile .meta { font-size: 12.5px; }

.kb-row { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.kb-row:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(20,24,60,.08); transform: translateY(-2px); }
.kb-row .kr-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; font-size: 21px;
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1ecff, #fdf0ff); }

.col-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; position: relative;
  transition: transform .18s, box-shadow .18s; }
.col-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,24,60,.12); }
.col-cover { height: 120px; background-size: cover; background-position: center; position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 40px; color: rgba(255,255,255,.85); }
.col-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.col-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .feature-strip, .feature-strip.cols3, .cat-tiles { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 26px 22px; }
  .page-hero .ph-emoji { display: none; }
}
@media (max-width: 560px) {
  .feature-strip, .feature-strip.cols3, .cat-tiles { grid-template-columns: 1fr; }
}

/* ============ 知识库富文本排版（kb-rich）============ */
.kb-rich { line-height: 1.85; font-size: 15.5px; }
.kb-rich h2 { font-size: 1.28em; margin: 26px 0 10px; padding-left: 10px;
  border-left: 4px solid var(--brand, #14558c); line-height: 1.4; }
.kb-rich h3 { font-size: 1.08em; margin: 18px 0 8px; color: #1c4a75; }
.kb-rich p { margin: 10px 0; }
.kb-rich strong { color: #0f3a5f; }
.kb-rich ul, .kb-rich ol { padding-left: 1.5em; margin: 8px 0; }
.kb-rich li { margin: 5px 0; }

/* 配图 */
.kb-rich .fig { margin: 18px auto; text-align: center; max-width: 760px; }
.kb-rich .fig img { max-width: 100%; height: auto; border-radius: 10px;
  border: 1px solid #e3e8ef; box-shadow: 0 2px 10px rgba(20,60,100,.07); }
.kb-rich .fig figcaption, .kb-rich .figcap { font-size: .84em; color: #5a6b7d;
  margin-top: 8px; line-height: 1.55; text-align: center; }
.kb-rich img { max-width: 100%; height: auto; border-radius: 10px; }

/* 公式框 */
.kb-rich .formula { background: #f4f8fc; border: 1px solid #d7e4f2;
  border-left: 4px solid #14558c; border-radius: 8px;
  padding: 12px 16px; margin: 14px 0; font-family: 'Cambria Math', Georgia, serif;
  font-size: 1.06em; overflow-x: auto; }
.kb-rich .formula .fnote { display: block; font-family: inherit; font-size: .82em;
  color: #5a6b7d; margin-top: 6px; }
.kb-rich code { background: #eef2f7; border-radius: 4px; padding: 1px 6px;
  font-size: .92em; color: #9c3d10; }
.kb-rich pre { background: #1e2a38; color: #dce8f5; border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; }
.kb-rich pre code { background: none; color: inherit; padding: 0; }

/* 结论/警告提示框 */
.kb-rich .callout { border-radius: 8px; padding: 12px 16px; margin: 14px 0;
  font-size: .96em; line-height: 1.7; }
.kb-rich .callout .ct { font-weight: 700; display: block; margin-bottom: 4px; }
.kb-rich .callout.key { background: #eef7f4; border: 1px solid #bcded4; color: #1a5c4d; }
.kb-rich .callout.key .ct { color: #146553; }
.kb-rich .callout.warn { background: #fdf4ec; border: 1px solid #f0d4b4; color: #8a5a1c; }
.kb-rich .callout.warn .ct { color: #a4611a; }
.kb-rich .callout.err { background: #fdf0ee; border: 1px solid #efc4bc; color: #8f3524; }
.kb-rich .callout.err .ct { color: #b0301c; }

/* 数据表格 */
.kb-rich table { border-collapse: collapse; width: 100%; margin: 14px 0;
  font-size: .93em; }
.kb-rich th { background: #14558c; color: #fff; padding: 8px 10px;
  text-align: left; font-weight: 600; }
.kb-rich td { border: 1px solid #dde5ee; padding: 7px 10px; }
.kb-rich tr:nth-child(even) td { background: #f6f9fc; }
.kb-rich table b, .kb-rich table strong { color: #9c3d10; }

/* 双列对比卡 */
.kb-rich .cols { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.kb-rich .cols > div { flex: 1 1 260px; border: 1px solid #e0e7f0;
  border-radius: 10px; padding: 12px 14px; background: #fbfdff; }
.kb-rich .cols h4 { margin: 0 0 8px; font-size: .98em; color: #14558c; }

/* 步骤流 */
.kb-rich .steps { counter-reset: st; margin: 12px 0; padding: 0; list-style: none; }
.kb-rich .steps li { counter-increment: st; position: relative;
  padding: 8px 0 8px 40px; border-left: 2px solid #dbe6f2; margin-left: 14px; }
.kb-rich .steps li::before { content: counter(st); position: absolute; left: -14px;
  top: 8px; width: 26px; height: 26px; border-radius: 50%; background: #14558c;
  color: #fff; font-size: .82em; font-weight: 700; display: flex;
  align-items: center; justify-content: center; }
.kb-rich .steps li:last-child { border-left-color: transparent; }

/* ============ kb-rich 增补：压铸知识专题（原压铸知识培训站正文类） ============ */
.kb-rich .lede { font-size: 16.5px; color: #33475c; line-height: 1.72;
  border-left: 3px solid #14558c; padding-left: 14px; margin: 16px 0; }
.kb-rich .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 18px 0; }
.kb-rich .kpi { border: 1px solid #e3e8ef; border-radius: 9px; padding: 11px 13px; background: #fff; }
.kb-rich .kpi b { display: block; font-size: 21px; line-height: 1.2; color: #0f3a5f; }
.kb-rich .kpi span { font-size: 11.5px; color: #7a8794; display: block; margin-top: 2px; }
.kb-rich .kpi small { display: block; font-size: 11px; color: #8a97a5; margin-top: 3px; }
.kb-rich .keynums { background: #f4f8fc; border: 1px solid #d7e4f2; border-radius: 9px;
  padding: 12px 16px; margin: 14px 0; }
.kb-rich .keynums b { color: #9c3d10; }
.kb-rich .fml { margin: 16px 0; border: 1px solid #dfe6ee; border-radius: 9px;
  background: #fff; overflow: hidden; }
.kb-rich .fml .fml-top { display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: #f2f6fa; border-bottom: 1px solid #e6ecf3; font-size: 11.5px;
  color: #7a8794; letter-spacing: .04em; }
.kb-rich .fml .fml-body { padding: 14px 16px; font-family: Consolas, Menlo, monospace;
  font-size: 14.4px; color: #1f2d3d; overflow-x: auto; line-height: 1.7; }
.kb-rich .fml .fml-body .var { color: #b05c14; }
.kb-rich .fml .fml-note { padding: 0 16px 12px; font-size: 12.6px; color: #7a8794; }
.kb-rich .formula .var { color: #b05c14; }
.kb-rich .callout .co-t { font-weight: 700; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: #14558c; margin-bottom: 3px; display: block; }
.kb-rich .callout.bad { border-left: 3px solid #c0392b; background: #fdf0ee; }
.kb-rich .callout.bad .co-t { color: #b0301c; }
.kb-rich .callout.ok { border-left: 3px solid #1e8a4f; background: #eef7f2; }
.kb-rich .callout.ok .co-t { color: #146553; }
.kb-rich .checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.kb-rich .checklist li { display: flex; gap: 7px; align-items: flex-start; padding: 4px 0; color: #33475c; }
.kb-rich .checklist li .dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
  margin-top: 4px; font-size: 9px; color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; background: #7a8794; }
.kb-rich .checklist li .dot.ok { background: #1e8a4f; }
.kb-rich .checklist li .dot.bad { background: #c0392b; }
.kb-rich .checklist li .dot.warn { background: #b9770e; }
.kb-rich .table-wrap { overflow-x: auto; margin: 14px 0; }
.kb-rich table.data { width: 100%; border-collapse: collapse; font-size: 13.2px; background: #fff;
  border: 1px solid #e3e8ef; }
.kb-rich table.data th { background: #14558c; color: #fff; text-align: left; padding: 8px 10px;
  font-weight: 700; border-bottom: 1px solid #dfe6ee; white-space: nowrap; letter-spacing: .02em; }
.kb-rich table.data td { padding: 7px 10px; border-bottom: 1px solid #eef2f7; }
.kb-rich table.data tr:hover td { background: #f8fbfd; }
.kb-rich .three-stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px; margin: 14px 0; }
.kb-rich .three-stage > div { border: 1px solid #e3e8ef; border-radius: 9px; padding: 10px 13px; background: #fff; }
.kb-rich .src { font-size: .84em; color: #8a97a5; margin-top: 6px; }
.kb-rich .muted { color: #7a8794; }
.kb-rich .small { font-size: .88em; }
.kb-rich .var { color: #b05c14; font-style: italic; }

/* ============ v2 页面版式（2026-11）：全宽大气，主列+右栏 ============ */
.v2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.v2-main { min-width: 0; }
.v2-side { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.v2-side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.v2-side-card > h3 { margin: 0 0 10px; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.v2-side-card > h3::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--grad); }
.v2-side-link { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 9px; font-size: 13.5px; color: #344054; transition: .14s; }
.v2-side-link:hover { background: #f7f5fc; color: var(--brand); }
.v2-side-link + .v2-side-link { border-top: 1px dashed var(--line); border-radius: 0; }
.v2-side-link + .v2-side-link:hover { border-radius: 9px; }
.v2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.v2-cta { background: linear-gradient(135deg, #141b2e, #3b2a7a 55%, #6d3ef2); color: #fff; border: 0; }
.v2-cta .desc { color: rgba(255,255,255,.78); }
.v2-cta .btn { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.v2-cta .btn:hover { background: rgba(255,255,255,.26); }

/* 大 hero：比标准 page-hero 更高更有冲击力 */
.page-hero.v2 { padding: 46px 50px 40px; margin: 24px 0 26px; border-radius: 24px;
  background: linear-gradient(115deg, #4c1d95 0%, #6d3ef2 34%, #8b5cf6 62%, #c026d3 100%); }
.page-hero.v2 h1 { font-size: 34px; font-weight: 800; letter-spacing: .02em; }
.page-hero.v2 .ph-sub { font-size: 16px; max-width: 700px; }
.page-hero.v2 .ph-emoji { font-size: 128px; right: 76px; opacity: .22; }
.page-hero.v2::before { width: 420px; height: 420px; right: -110px; top: -200px; }
.page-hero.v2::after { width: 240px; height: 240px; right: 210px; bottom: -140px; }

@media (max-width: 1100px) {
  .v2-layout { grid-template-columns: 1fr; }
  .v2-side { position: static; }
  .page-hero.v2 { padding: 34px 30px 30px; }
  .page-hero.v2 h1 { font-size: 27px; }
  .page-hero.v2 .ph-emoji { font-size: 84px; right: 40px; }
}

/* 问题广场：全宽提问主卡（主角） */
.ask-hero { position: relative; overflow: hidden; margin: 0 0 28px; padding: 26px 30px 24px;
  border-radius: 20px; background: #fff; border: 1px solid #e4d9fb;
  box-shadow: 0 12px 34px rgba(109,62,242,.10); }
.ask-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #6d3ef2, #a855f7 55%, #d946ef); }
.ask-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; top: -130px; background: radial-gradient(circle, rgba(139,92,246,.10), transparent 70%); pointer-events: none; }
.ask-hero-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ask-emoji { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, #f3ecff, #faf5ff); border: 1px solid #e4d9fb; }
.ask-hero-title h2 { margin: 0; font-size: 21px; font-weight: 800; color: #1a1233; }
.ask-hero-title p { margin: 3px 0 0; font-size: 13px; color: #98a2b3; }
.ask-flag { margin-left: auto; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: #9333ea;
  background: linear-gradient(135deg, #f6f0ff, #fdf4ff); border: 1px solid #e9d5ff;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.ask-form { position: relative; z-index: 1; }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ask-field { display: flex; flex-direction: column; }
.ask-field.full { margin-bottom: 14px; }
.ask-field label { font-size: 13px; font-weight: 650; color: #475467; margin-bottom: 6px; }
.ask-field label i { color: #e11d48; font-style: normal; }
.ask-input { width: 100%; box-sizing: border-box; border: 1px solid #ddd0f5; border-radius: 10px;
  padding: 10px 13px; font-size: 14px; color: #1a1233; background: #fdfcff; transition: .14s; }
.ask-input:focus { outline: 0; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(109,62,242,.12); }
textarea.ask-input { resize: vertical; min-height: 96px; line-height: 1.65; }
.ask-file { padding: 8px 12px; }
.ask-file::file-selector-button { margin-right: 10px; border: 1px solid #ddd0f5; background: #f7f4fe;
  color: #6d3ef2; font-weight: 650; border-radius: 8px; padding: 6px 14px; cursor: pointer; transition: .14s; }
.ask-file::file-selector-button:hover { background: #efe8fe; }
.ask-hint { font-size: 12px; color: #98a2b3; margin-top: 6px; line-height: 1.6; }
.ask-submit { align-self: flex-start; background: linear-gradient(135deg, #6d3ef2, #9333ea);
  border: 0; color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 26px;
  border-radius: 10px; cursor: pointer; box-shadow: 0 6px 16px rgba(109,62,242,.30); transition: .15s; white-space: nowrap; }
.ask-submit:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(109,62,242,.38); }
.ask-login { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.ask-login-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(135deg, #f3ecff, #faf5ff); border: 1px solid #e4d9fb; }
.ask-login-txt b { font-size: 15.5px; color: #1a1233; }
.ask-login-txt p { margin: 4px 0 0; font-size: 13px; color: #98a2b3; }
.ask-login .ask-submit { margin-left: auto; text-decoration: none; display: inline-block; }

@media (max-width: 860px) {
  .ask-hero { padding: 20px 18px 18px; }
  .ask-grid { grid-template-columns: 1fr; }
  .ask-flag { display: none; }
  .ask-login { flex-wrap: wrap; }
  .ask-login .ask-submit { margin-left: 0; }
}

/* 资讯页 v2 卡片 */
.news-item { display: flex; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; transition: .16s; height: 100%; box-sizing: border-box; }
.news-item:hover { border-color: #c9b8f7; box-shadow: 0 6px 18px rgba(109,62,242,.10); transform: translateY(-2px); }
.news-item .nd { flex-shrink: 0; width: 58px; text-align: center; background: #f7f5fc; border-radius: 10px; padding: 8px 0 6px; align-self: flex-start; }
.news-item .nd b { display: block; font-size: 19px; color: var(--brand); line-height: 1.1; }
.news-item .nd span { font-size: 10.5px; color: #98a2b3; }
.news-item .desc { margin-top: 5px; }
.news-featured { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 28px; transition: .16s; position: relative; overflow: hidden; }
.news-featured::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.news-featured:hover { border-color: #c9b8f7; box-shadow: 0 10px 26px rgba(109,62,242,.13); }
.news-featured .nf-badge { align-self: flex-start; flex-shrink: 0; background: var(--grad); color: #fff; border-radius: 20px; padding: 5px 13px; font-size: 12px; font-weight: 700; }

/* ---- 顶部导航溢出收纳（» 双箭头）---- */
@media (min-width: 901px) {
  .site-header nav { flex-wrap: nowrap; min-width: 0; align-items: center; }
  /* 每个导航项保持固有单行宽度：文字绝不折行，整项参与溢出折叠 */
  .site-header nav > .nav-drop, .site-header nav > a { flex-shrink: 0; white-space: nowrap; }
  .site-header nav a { white-space: nowrap; }
  .nav-more { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
  .nav-more .nav-more-btn { display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px;
    background: none; color: var(--muted); font-size: 17px; font-weight: 700;
    letter-spacing: -2px; cursor: pointer; transition: .15s; }
  .nav-more .nav-more-btn:hover, .nav-more:hover .nav-more-btn { background: var(--brand-weak); color: var(--brand); }
  .nav-more .drop-menu { left: auto; right: 0; min-width: 200px; }
  .drop-menu a.sub { padding-left: 26px; font-size: 13.5px; }
}

/* ============================================================
   会员等级与权益页 /membership/  —— 2026-11-02
   ============================================================ */
.mb-wrap { padding-bottom: 44px; }
.mb-hero { margin-bottom: 22px; }
.mb-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; position: relative; z-index: 1; }
.mb-hero-chips .mb-chip {
  font-size: 12.5px; color: #fff; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px;
  backdrop-filter: blur(2px);
}
.mb-hero-btns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.mb-hero-btns .btn.gold { color: #20180a; font-weight: 700; }
.mb-ghost { color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.45); padding-bottom: 2px; }
.mb-ghost:hover { color: #fff; border-bottom-color: #fff; }

/* ---- 我的等级 ---- */
.mb-my {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; margin: 0 0 28px; box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.mb-my-ring {
  flex-shrink: 0; width: 116px; padding: 12px 8px 11px; border-radius: 14px;
  background: var(--c, #8a93a6); color: #fff; text-align: center; line-height: 1.3;
  box-shadow: inset 0 -18px 26px rgba(0,0,0,.12);
}
.mb-my-ring span { display: block; font-size: 11px; opacity: .85; letter-spacing: .04em; }
.mb-my-ring b { display: block; font-size: 17px; font-weight: 800; margin: 2px 0; }
.mb-my-ring small { display: block; font-size: 11px; opacity: .82; }
.mb-my-main { flex: 1 1 320px; min-width: 0; }
.mb-my-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-my-name { font-size: 15.5px; }
.mb-bar { height: 8px; border-radius: 999px; background: #eef0f5; overflow: hidden; margin: 11px 0 7px; }
.mb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .4s; }
.mb-my-tip { font-size: 12.5px; color: var(--muted); }
.mb-my-tip b { color: var(--brand); }
.mb-my-act { flex-shrink: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.mb-my-guest { align-items: flex-start; }
.mb-my-guest-l { flex: 1 1 340px; }
.mb-my-guest-l b { font-size: 16px; }
.mb-my-guest-l p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---- 区块 ---- */
.mb-sec { margin: 0 0 34px; }
.mb-sec-h { margin-bottom: 14px; }
.mb-sec-h h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: .01em; }
.mb-sec-h p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 980px; }
.mb-note { margin: 9px 0 0; font-size: 12px; color: #98a2b3; }

/* ---- 等级阶梯 ---- */
.mb-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mb-lv {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 14px 13px; position: relative; overflow: hidden;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.mb-lv::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, #8a93a6); }
.mb-lv:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.mb-lv.on { border-color: var(--c, var(--brand)); box-shadow: 0 8px 22px rgba(109,62,242,.14); }
.mb-lv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-lv-no {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c, #8a93a6); color: #fff; font-size: 11.5px; font-style: normal;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.mb-lv-top b { font-size: 14.5px; }
.mb-lv-top em {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff;
  background: var(--c, var(--brand)); border-radius: 999px; padding: 1px 7px;
}
.mb-lv-pts { margin: 9px 0 4px; font-size: 12.5px; color: var(--muted); }
.mb-lv-pts b { font-size: 19px; color: var(--c, var(--ink)); font-weight: 800; }
.mb-lv-pts span { display: block; font-size: 11.5px; color: #98a2b3; }
.mb-lv-ben { margin: 6px 0 10px; font-size: 12.5px; line-height: 1.6; color: #475467; flex: 1; }
.mb-lv-tag { margin-top: auto; }
.mb-tag {
  display: inline-block; font-size: 11px; color: #64748b; background: #f1f3f7;
  border-radius: 6px; padding: 2px 8px;
}
.mb-tag.gold { background: #f7ecd2; color: #8a6410; font-weight: 600; }

/* ---- 表格 ---- */
.mb-tbl-wrap {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.mb-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 640px; }
.mb-tbl th {
  background: #f8f9fc; padding: 11px 8px; text-align: center; font-weight: 700;
  font-size: 12.5px; color: #344054; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.mb-tbl th small { display: block; font-size: 11px; font-weight: 500; color: #98a2b3; margin-top: 1px; }
.mb-tbl th.mb-th-first { text-align: left; padding-left: 18px; min-width: 260px; }
.mb-tbl th.mb-th-vip { background: #f7f3ff; color: var(--brand); }
.mb-tbl td { padding: 11px 8px; text-align: center; border-bottom: 1px solid #f1f3f7; vertical-align: middle; }
.mb-tbl tbody tr:last-child td { border-bottom: 0; }
.mb-tbl tbody tr:hover td { background: #fcfbff; }
.mb-tbl td.mb-td-first { text-align: left; padding-left: 18px; }
.mb-tbl td.mb-td-first b { display: block; font-size: 13.5px; font-weight: 650; color: #1d2939; }
.mb-tbl td.mb-td-first small { display: block; font-size: 11.5px; color: #98a2b3; margin-top: 1px; }
.mb-y { font-style: normal; font-weight: 800; color: var(--ok); font-size: 15px; }
.mb-n { font-style: normal; color: #cbd5e1; font-size: 15px; }
.mb-txt { font-size: 12px; color: #64748b; }

/* ---- 三卡 ---- */
.mb-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.mb-card-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; font-size: 17px; margin-bottom: 8px;
}
.mb-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 750; }
.mb-card p { margin: 0; font-size: 13px; line-height: 1.72; color: #475467; }
.mb-card p b { color: var(--ink); }
.mb-card-meta { margin-top: 10px; font-size: 11.5px; color: #98a2b3; border-top: 1px dashed #eaecf0; padding-top: 9px; }

/* ---- 升级步骤 ---- */
.mb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb-step { background: #fbfaff; border: 1px solid #ede9fe; border-radius: 14px; padding: 16px 18px; position: relative; }
.mb-step i {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--grad); color: #fff; font-style: normal;
  font-size: 12.5px; font-weight: 700; margin-bottom: 8px;
}
.mb-step b { display: block; font-size: 14px; margin-bottom: 4px; }
.mb-step p { margin: 0; font-size: 12.5px; color: #475467; line-height: 1.7; }

/* ---- FAQ ---- */
.mb-faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mb-faq details { border-bottom: 1px solid #f1f3f7; }
.mb-faq details:last-child { border-bottom: 0; }
.mb-faq summary {
  cursor: pointer; list-style: none; padding: 13px 18px; font-size: 13.8px; font-weight: 650;
  color: #1d2939; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary::after { content: '＋'; color: #98a2b3; font-weight: 500; font-size: 15px; }
.mb-faq details[open] summary::after { content: '－'; }
.mb-faq details[open] summary { background: #fbfaff; }
.mb-faq p { margin: 0; padding: 0 18px 14px; font-size: 13px; line-height: 1.78; color: #475467; }
.mb-faq p b { color: var(--ink); }

/* ---- 底部 CTA ---- */
.mb-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #faf5ff, #f5f3ff 55%, #eef2ff);
  border: 1px solid #e9d5ff; border-radius: 18px; padding: 22px 26px;
}
.mb-cta b { font-size: 17px; font-weight: 800; }
.mb-cta p { margin: 5px 0 0; font-size: 13px; color: #667085; }
.mb-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mb-cta-btns .btn.gold { color: #20180a; font-weight: 700; }

@media (max-width: 1180px) {
  .mb-ladder { grid-template-columns: repeat(3, 1fr); }
  .mb-cards3, .mb-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mb-ladder { grid-template-columns: repeat(2, 1fr); }
  .mb-my { padding: 15px 16px; }
  .mb-my-ring { width: 100%; }
  .mb-my-act { width: 100%; }
  .mb-tbl th.mb-th-first, .mb-tbl td.mb-td-first { min-width: 190px; }
}
