/* ============================================================
   广州睿洋科技有限公司 — 明亮现代科技风
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef4fb;
  --text: #17233b;
  --muted: #5d6b82;
  --accent: #2f6bff;
  --accent-2: #00b8d9;
  --grad: linear-gradient(120deg, #2f6bff 0%, #00b8d9 100%);
  --border: #e3e9f2;
  --radius: 16px;
  --shadow: 0 10px 34px rgba(47, 107, 255, .10);
  --shadow-lg: 0 18px 50px rgba(47, 107, 255, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 始终为竖向滚动条预留空间，避免短页面（如新闻页）内容整体右移 */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text); background: var(--bg);
  /* 兜底：禁止任何元素造成横向滚动 */
  overflow-x: hidden;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* 键盘可达性 */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid rgba(47,107,255,.65); outline-offset: 2px; }

/* ---------- 动画定义 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide-icon, .slide-badge::before { animation: none !important; }
  .slide { transition: opacity .3s ease; transform: none !important; }
  .slide-inner { transition: none; }
  .slide.active .slide-inner { transition-delay: 0s; }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--grad); color: #fff; border-radius: 12px;
  font-size: 14px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(47,107,255,.35);
}
.logo-text { font-size: 16px; line-height: 1.25; display: flex; flex-direction: column; }
.logo-text small { font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: 10px; font-size: 15px; color: var(--muted);
  transition: all .2s; position: relative;
}
.nav a:hover { color: var(--accent); background: var(--bg-tint); transform: translateY(-1px); }
.nav a.active { color: var(--accent); background: rgba(47,107,255,.1); font-weight: 600; }
/* 企业邮箱入口：做成描边按钮，和普通导航区分开 */
.nav a.nav-mail {
  color: var(--accent); border: 1px solid rgba(47,107,255,.35); margin-left: 6px;
}
.nav a.nav-mail:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页幻灯片 ---------- */
.carousel {
  position: relative; overflow: hidden; color: var(--text);
  /* 底部预留一条净空带，专门放指示圆点，避免与文案/按钮重叠 */
  padding-bottom: 64px;
  /* 干净的冷白底，氛围光晕与丝带交给 canvas 层 */
  background: linear-gradient(168deg, #fbfdff 0%, #f2f7ff 46%, #f5fbfd 100%);
}
/* --- 极光丝带画布（流动光带 + 信号光点，鼠标视差） --- */
.carousel-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none;
}
.carousel-track { position: relative; z-index: 4; height: min(78vh, 640px); min-height: 480px; }
.carousel { --cw-dir: 1; }
.slide {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  /* visibility 延迟到淡出结束再隐藏，切换才有完整的交叉过渡 */
  transition: opacity .9s ease, transform .9s ease, visibility 0s linear .9s;
}
.slide.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s ease, transform .9s ease, visibility 0s; }

/* 过渡特效：淡入淡出（默认）/ 左右滑动 / 缩放推进 */
.t-fade .slide { transform: scale(1.04); }
.t-fade .slide.active { transform: scale(1); }
.t-slide .slide {
  transform: translateX(calc(var(--cw-dir) * 7%)) scale(.985);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1), visibility 0s linear .9s;
}
.t-slide .slide.leaving { transform: translateX(calc(var(--cw-dir) * -7%)) scale(.985); }
.t-slide .slide.active { transform: translateX(0) scale(1); transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .9s cubic-bezier(.4,0,.2,1), visibility 0s; }
.t-zoom .slide {
  transform: scale(1.14);
  transition: opacity .85s ease, transform 1s cubic-bezier(.2,.7,.3,1), visibility 0s linear .9s;
}
.t-zoom .slide.leaving { transform: scale(.95); }
.t-zoom .slide.active { transform: scale(1); transition: opacity .85s ease, transform 1s cubic-bezier(.2,.7,.3,1), visibility 0s; }
.slide::before {
  content: ""; position: absolute; inset: 0; opacity: .9;
  /* 顶部一层白纱，衬托丝带并提升层次 */
  background: radial-gradient(ellipse 130% 70% at 50% -12%, rgba(255,255,255,.92), rgba(255,255,255,0) 62%);
}
/* 幻灯片背景半透明，让底层丝带柔和透出 */
.slide-s1 { background: linear-gradient(135deg, rgba(246,250,255,.42) 0%, rgba(230,242,255,.33) 55%, rgba(240,250,252,.37) 100%); }
.slide-s2 { background: linear-gradient(135deg, rgba(242,252,249,.42) 0%, rgba(230,246,255,.33) 55%, rgba(244,247,255,.37) 100%); }
.slide-s3 { background: linear-gradient(135deg, rgba(248,246,255,.42) 0%, rgba(238,246,255,.33) 55%, rgba(234,250,250,.37) 100%); }
/* 文字块底部柔光：保证光带经过时标题依然清晰 */
.slide-inner { position: relative; }
.slide-inner::before {
  content: ""; position: absolute; inset: -26% -30%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.92) 0%, rgba(255,255,255,.66) 42%, rgba(255,255,255,0) 74%);
  filter: blur(6px);
  pointer-events: none;
}
.slide-inner > * { position: relative; z-index: 1; }
/* 文字独立淡出淡入，避免幻灯片切换时新旧文字重影 */
.slide-inner { opacity: 0; transition: opacity .35s ease; }
.slide.active .slide-inner { opacity: 1; transition-delay: .2s; }

.slide-inner { position: relative; max-width: 780px; text-align: center; padding: 0 24px; }
.slide-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 26px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(47,107,255,.25);
  box-shadow: 0 4px 14px rgba(47,107,255,.12);
  backdrop-filter: blur(4px);
  animation: fadeUp .8s ease both;
}
.slide-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); animation: pulseDot 2s infinite;
}
.slide h1 { font-size: clamp(30px, 5.2vw, 54px); font-weight: 700; line-height: 1.28; letter-spacing: .5px; animation: fadeUp .8s .12s ease both; }
.slide h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide p { margin-top: 20px; font-size: clamp(15px, 2vw, 18px); color: #46536d; animation: fadeUp .8s .22s ease both; }
.slide-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s .32s ease both; }
/* 图标独立成行居中，不再与徽章挤在同一行 */
.slide-icon {
  display: block; width: max-content; margin: 0 auto 16px;
  font-size: 42px; line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(47,107,255,.18));
  animation: floatY 5.5s ease-in-out infinite;
}

/* 轮播控制 */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,.9); color: var(--text); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: all .25s; box-shadow: var(--shadow);
}
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.carousel-arrow.prev { left: 26px; }
.carousel-arrow.next { right: 26px; }
.carousel-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(47,107,255,.28); transition: all .3s;
}
.carousel-dots button:hover { background: rgba(47,107,255,.5); }
.carousel-dots button.active { width: 28px; background: var(--grad); }

/* 自动切换进度：右下角小圆环 —— 直径减半、去掉白色底板，只留透明描边环 */
.carousel-ring {
  position: absolute; right: 26px; bottom: 24px; z-index: 6;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* 右侧有联系浮标时让开，避免叠在一起 */
body:has(.cw) .carousel-ring,
body:has(.float) .carousel-ring { right: 108px; }
.carousel-ring svg {
  width: 22px; height: 22px; display: block;
  transform: rotate(-90deg);   /* 从 12 点方向开始走 */
}
.ring-track { fill: none; stroke: rgba(47, 107, 255, .13); stroke-width: 4.4; }
.ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 4.4; stroke-linecap: round;
  stroke-dasharray: 113.1; stroke-dashoffset: 113.1;
  animation: ringFill var(--cw-interval, 5500ms) linear forwards;
  filter: drop-shadow(0 0 2px rgba(47, 107, 255, .35));
}
@keyframes ringFill { from { stroke-dashoffset: 113.1; } to { stroke-dashoffset: 0; } }
/* 减弱动效偏好：不做填充动画，只留底环 */
@media (prefers-reduced-motion: reduce) {
  .ring-fill { animation: none; stroke-dashoffset: 0; opacity: .45; }
}
/* 窄屏：浮标改到底部横排，圆环回到轮播右下角 */
@media (max-width: 760px) {
  .carousel-ring,
  body:has(.cw) .carousel-ring { right: 14px; bottom: 16px; width: 20px; height: 20px; }
  .carousel-ring svg { width: 20px; height: 20px; }
}

/* ---------- 背景光带：整页铺满模式（后台可切换） ---------- */
body.page-bg {
  background: linear-gradient(168deg, #fbfdff 0%, #f2f7ff 46%, #f5fbfd 100%);
}
body.page-bg .carousel-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; opacity: .9;
}
body.page-bg .carousel { background: transparent; }
body.page-bg .section { background: transparent; }
body.page-bg .section-alt { background: rgba(244, 248, 255, .55); }
body.page-bg .stats-band { background: rgba(240, 246, 255, .5); }
body.page-bg .site-footer { background: rgba(251, 252, 254, .82); }
@media (max-width: 760px) {
  body.page-bg .carousel-canvas { opacity: .62; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; transition: all .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(47,107,255,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(47,107,255,.45); }
.btn-soft { background: #fff; color: var(--accent); border: 1px solid rgba(47,107,255,.35); }
.btn-soft:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(47,107,255,.28); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }

/* 首页板块：幻彩玻璃 —— 接近全透明的底 + 大面积模糊 + 渐变彩边 */
.section-panel { padding: 22px 0; }
.carousel + .section-panel { padding-top: 54px; }
.section-panel:last-of-type { padding-bottom: 76px; }
.panel {
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, .085) 0%,
      rgba(173, 216, 255, .06) 32%,
      rgba(216, 180, 254, .055) 58%,
      rgba(167, 243, 208, .05) 80%,
      rgba(255, 205, 220, .045) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 54px) clamp(20px, 3.6vw, 48px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 0 30px rgba(255, 255, 255, .06),
    0 30px 70px -48px rgba(23, 35, 59, .38);
}
/* 只在 1px 边框上渲染流动幻彩，中间保持通透 */
.panel::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  pointer-events: none; padding: 1px;
  background: linear-gradient(115deg,
      rgba(94, 158, 255, .7), rgba(184, 138, 255, .5) 32%,
      rgba(96, 220, 214, .55) 61%, rgba(255, 178, 214, .52) 84%,
      rgba(94, 158, 255, .65));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel-stats { background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(220,238,255,.035) 55%, rgba(255,226,245,.045)); }
.panel .section-head { margin-bottom: 44px; }
.panel .empty-state { background: rgba(255, 255, 255, .82); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .kicker, .about-intro .kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* 精选产品：按可用宽度自动排列，避免最后一行只剩一张卡时大片留白 */
.grid-3.grid-fit { grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: all .3s cubic-bezier(.2,.7,.3,1);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(47,107,255,.4); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,107,255,.12), rgba(0,184,217,.12));
  color: var(--accent); font-size: 23px; margin-bottom: 18px;
  transition: transform .3s;
}
.card:hover .icon { transform: scale(1.1) rotate(-6deg); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* 产品卡 */
.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-thumb {
  aspect-ratio: 16/10; display: grid; place-items: center;
  background:
    linear-gradient(rgba(47,107,255,.045) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(47,107,255,.045) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(150deg, #eef4ff, #e1f4fa);
  color: var(--accent);
  font-size: 15px; letter-spacing: 2px; position: relative; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }

/* 无产品图时的占位：型号 + 分类，做成“芯片铭牌”，避免整块空白 */
.thumb-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 7px; padding: 18px; text-align: center;
}
.thumb-empty::before {
  content: ""; position: absolute; width: 118px; height: 118px; border-radius: 50%;
  border: 1px solid rgba(47,107,255,.18);
  box-shadow: 0 0 0 14px rgba(47,107,255,.045), 0 0 0 34px rgba(47,107,255,.028);
  transition: transform .5s ease;
}
.product-card:hover .thumb-empty::before { transform: scale(1.05); }
.thumb-empty .t-model {
  position: relative; font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 17px; font-weight: 700; letter-spacing: 1.5px; color: #2255cf;
}
.thumb-empty .t-cat { position: relative; font-size: 12px; letter-spacing: 3px; color: #6b7a94; }
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body .tag {
  align-self: flex-start; font-size: 12px; color: var(--accent);
  background: rgba(47,107,255,.09); padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.product-body h3 { font-size: 17px; }
.product-body .model { color: var(--muted); font-size: 13px; font-family: monospace; }
.product-body p { color: var(--muted); font-size: 14px; margin-top: 8px; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.price { color: var(--accent); font-weight: 700; }
.more-link { color: var(--muted); font-size: 14px; transition: all .2s; }
.product-card:hover .more-link, a:hover > .more-link { color: var(--accent); transform: translateX(3px); display: inline-block; }

/* 新闻卡 */
.news-card h3 { font-size: 16px; margin-bottom: 6px; }
.news-card .date { font-size: 13px; color: var(--accent); font-family: monospace; }
.news-card p { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* 卡片摘要多行截断（后台粘贴长文时保持卡片等高） */
.clamp-2, .clamp-3 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* ---------- 数字统计（亮色带） ---------- */
.stats-band {
  background: linear-gradient(120deg, #f0f6ff, #e8fafe);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-size: 42px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 页面头（亮色 + 丝带背景动画） ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, #fbfdff 0%, #f2f7ff 46%, #f5fbfd 100%);
  color: var(--text); padding: 76px 0 80px; text-align: center;
  border-bottom: 1px solid var(--border);
}
/* 与首页同款的柔光丝带，作为标题栏背景 */
.page-hero .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .45; z-index: 1;
  background-image:
    linear-gradient(rgba(47,107,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); animation: fadeUp .7s ease both; }
.page-hero p { color: var(--muted); margin-top: 10px; animation: fadeUp .7s .12s ease both; }

/* ---------- 产品详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4/3; display: grid; place-items: center; position: relative;
  background:
    linear-gradient(rgba(47,107,255,.045) 1px, transparent 1px) 0 0 / 100% 30px,
    linear-gradient(90deg, rgba(47,107,255,.045) 1px, transparent 1px) 0 0 / 30px 100%,
    linear-gradient(150deg, #eef4ff, #e1f4fa);
  color: var(--accent); letter-spacing: 2px;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img .thumb-empty::before { width: 168px; height: 168px; }
.detail-img .thumb-empty .t-model { font-size: 24px; }
.detail-img .thumb-empty .t-cat { font-size: 13px; letter-spacing: 4px; }
.detail-info h1 { font-size: 28px; margin-bottom: 8px; }
.detail-info .model { color: var(--muted); font-family: monospace; }
.detail-info .desc { margin-top: 20px; color: #33405a; white-space: pre-line; }
.detail-meta { margin-top: 24px; padding: 22px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.detail-meta .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.detail-meta .row span:first-child { color: var(--muted); }

/* ---------- 新闻详情 ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; font-family: monospace; }
.article .content { color: #2a3447; }

/* ---------- 联系表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; }
input, textarea, select {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; transition: all .2s; width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47,107,255,.12); transform: translateY(-1px);
}
textarea { resize: vertical; min-height: 120px; }
/* 反垃圾：真人看不见、爬虫会填写的诱饵字段 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { max-width: 1180px; margin: 16px auto 0; padding: 0 24px; }
.flash-msg { padding: 12px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 8px; animation: fadeUp .4s ease both; }
.flash-msg.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash-msg.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- 页脚（亮色） ---------- */
.site-footer { background: #fbfcfe; border-top: 1px solid var(--border); color: #4a5872; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 60px 24px 44px; }
.site-footer h4 { color: var(--text); font-size: 15px; margin-bottom: 16px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: all .2s; }
.site-footer a:hover { color: var(--accent); transform: translateX(3px); }
.social-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border: 1px solid var(--border); border-radius: 12px; font-size: 13px; background: #fff;
  transition: all .25s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-tint); transform: translateY(-2px); box-shadow: var(--shadow); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 全站快捷联系浮标：常显联系方式（无需点击展开） ---------- */
.cw { position: fixed; right: 20px; bottom: 92px; z-index: 95; }
.cw[data-side="left"] { right: auto; left: 20px; }

.cw-box {
  width: 200px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 44px -18px rgba(23, 35, 59, .32), 0 2px 6px rgba(23, 35, 59, .05);
  animation: cwIn .32s ease both;
}
.cw[data-side="left"] .cw-box { animation-name: cwInLeft; }
@keyframes cwIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes cwInLeft { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.cw-title {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 10px; margin-bottom: 6px;
  border-bottom: 1px solid #f0f4fa;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.cw-title-ic {
  width: 22px; height: 22px; flex: none; border-radius: 7px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(47,107,255,.3);
}

.cw-list { display: flex; flex-direction: column; gap: 3px; }
.cw-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 9px; border-radius: 11px; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cw-item:hover, .cw-item:focus-visible {
  background: #f3f8ff; border-color: rgba(47,107,255,.18); transform: translateX(-2px);
}
.cw-ic {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, #eef4ff, #e9f8fd);
  border: 1px solid #e3ecfb;
}
.cw-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cw-txt b { font-size: 13px; font-weight: 600; color: var(--text); }
.cw-txt small {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 二维码：悬停条目时从外侧弹出 */
.cw-qr {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) scale(.92); transform-origin: right center;
  width: 148px; height: 148px; object-fit: contain; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cw[data-side="left"] .cw-qr {
  right: auto; left: calc(100% + 12px); transform-origin: left center;
}
.cw-item:hover .cw-qr, .cw-item:focus-visible .cw-qr {
  opacity: 1; visibility: visible; transform: translateY(-50%) scale(1);
}

/* 移动端：底部常驻一条横排联系入口 */
@media (max-width: 760px) {
  .cw, .cw[data-side="left"] {
    left: 0; right: 0; bottom: 0;
    padding: 0 10px max(10px, env(safe-area-inset-bottom));
  }
  .cw-box {
    width: auto; padding: 8px; border-radius: 16px;
    box-shadow: 0 -8px 26px -14px rgba(23, 35, 59, .3);
    animation: none;
  }
  .cw-title { display: none; }
  .cw-list {
    flex-direction: row; gap: 6px;
    justify-content: center;
    justify-content: safe center;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  .cw-list::-webkit-scrollbar { display: none; }
  .cw-item {
    flex: 0 1 auto; min-width: 64px; max-width: 116px;
    flex-direction: column; gap: 4px;
    padding: 7px 12px; text-align: center;
  }
  .cw-item:hover { transform: none; background: transparent; border-color: transparent; }
  .cw-txt { align-items: center; flex: none; }
  .cw-txt b { font-size: 11.5px; white-space: nowrap; }
  .cw-txt small { display: none; }
  .cw-ic { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .cw-qr { display: none; }
  /* 只在真的有浮标的页面给底部常驻条留出空间 */
  body:has(.cw):not(.admin-body) { padding-bottom: 96px; }
}

/* ---------- 后台 ---------- */
.admin-body { background: var(--bg-soft); min-height: 100vh; }

/* 后台登录页：全屏丝带背景 + 玻璃卡片 */
.admin-login-body {
  display: grid; place-items: center;
  padding: 36px 20px;
  background: linear-gradient(168deg, #fbfdff 0%, #f2f7ff 46%, #f5fbfd 100%);
}
.admin-login-card {
  position: relative; z-index: 2;
  width: min(400px, 92vw); max-width: none;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 64px -32px rgba(23, 35, 59, .38), 0 2px 8px rgba(23, 35, 59, .05);
}
.admin-topbar {
  background: #fff; color: var(--text); padding: 0 24px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.admin-topbar .brand { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.admin-topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-topbar nav a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: all .2s; }
.admin-topbar nav a:hover, .admin-topbar nav a.active { color: var(--accent); background: var(--bg-tint); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .25s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .num { font-size: 30px; font-weight: 700; color: var(--accent); }
.stat-card.warn .num { color: #d97706; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
th { background: var(--bg-soft); font-weight: 600; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafcff; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.badge.on { background: #ecfdf5; color: #047857; }
.badge.off { background: #f1f5f9; color: #64748b; }
.badge.blue { background: rgba(47,107,255,.09); color: var(--accent); }

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.admin-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 820px; }

/* ---------- 快捷联系浮标：后台 ---------- */
.wgt-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 940px; }
.wgt-wrap .admin-form { max-width: none; }
.wgt-wide { padding-bottom: 24px; }
.wgt-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; background: #fcfdff;
}
.wgt-card:last-of-type { margin-bottom: 0; }
.wgt-card.is-off { opacity: .7; }
.wgt-card.is-new { background: #f7fbff; border-style: dashed; margin-top: 18px; }
.wgt-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wgt-ic {
  width: 32px; height: 32px; flex: none; border-radius: 9px; background: #eef4ff;
  display: grid; place-items: center; font-size: 16px;
}
.wgt-qr {
  width: 40px; height: 40px; object-fit: contain; margin-left: auto;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
.wgt-tip { font-size: 12px; color: #b45309; margin-left: auto; }
.wgt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wgt-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #46536d; }
.wgt-grid input, .wgt-grid select { padding: 8px 10px; font-size: 13px; border-radius: 8px; transform: none; }
.wgt-grid input[type=file] { padding: 6px; font-size: 12px; background: #fff; }
.wgt-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed #eef2f8; padding-top: 12px; }
.wgt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.wgt-check input { width: auto; }
@media (max-width: 900px) {
  .wgt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wgt-grid { grid-template-columns: 1fr; }
  .wgt-qr { margin-left: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stats-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3.grid-fit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .detail-wrap, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .carousel-track { min-height: 460px; }
}
@media (max-width: 520px) {
  .grid-3.grid-fit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 20px 20px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; animation: fadeUp .3s ease both; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .carousel { padding-bottom: 54px; }
  .carousel-track { min-height: 452px; height: auto; }
  .carousel-arrow { display: none; }
  .carousel-dots { bottom: 18px; }
  .slide-icon { font-size: 34px; margin-bottom: 12px; }
  .slide-badge { margin-bottom: 20px; }
  .page-hero { padding: 52px 0; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 24px 30px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 400px) {
  .logo-text small { display: none; }
}

/* ============================================================
   前台富文本内容排版（后台编辑器产出的 HTML）
   ============================================================ */
.rich-content { white-space: normal; line-height: 1.9; color: #2a3447; word-break: break-word; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 14px; }
.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5, .rich-content h6 {
  margin: 26px 0 12px; line-height: 1.4; font-weight: 700; color: #16233a;
}
.rich-content h1 { font-size: 24px; }
.rich-content h2 { font-size: 21px; }
.rich-content h3 { font-size: 18px; }
.rich-content h4 { font-size: 16px; }
.rich-content ul, .rich-content ol { margin: 0 0 14px; padding-left: 24px; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin-bottom: 6px; }
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; display: block; }
.rich-content blockquote {
  margin: 16px 0; padding: 12px 18px; border-left: 3px solid var(--accent);
  background: rgba(47,107,255,.05); border-radius: 0 8px 8px 0; color: #3a465c;
}
.rich-content a { color: var(--accent); text-decoration: underline; }
.rich-content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.rich-content th { background: #f4f8ff; font-weight: 600; }
.rich-content pre {
  background: #f4f7fc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.7;
  font-family: ui-monospace, Consolas, "Courier New", monospace; margin: 16px 0;
  white-space: pre-wrap;
}
.rich-content code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .92em; }
.rich-content :not(pre) > code { background: rgba(47,107,255,.08); padding: 2px 6px; border-radius: 5px; }
.rich-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.rich-content .w-e-image-container { max-width: 100%; }
/* 产品详情页描述区：更紧凑一点 */
.detail-info .desc.rich-content { line-height: 1.85; font-size: 14.5px; margin: 16px 0; white-space: normal; }

/* ============================================================
   通用：筛选条 / 空状态 / 面包屑 / 错误页 / 关于页
   ============================================================ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-bar .count { margin-left: auto; font-size: 13.5px; color: var(--muted); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  color: var(--muted); border: 1px dashed var(--border);
  border-radius: var(--radius); background: #fbfdff;
}
.empty-state .es-icon { font-size: 26px; display: block; margin-bottom: 10px; }

.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #c3ccdb; }

/* 关于页：介绍文字通栏 + 三张卡并排，避免卡片被挤成窄条 */
.about-intro { max-width: 860px; margin: 0 auto 52px; text-align: center; }
.about-intro h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }
.about-intro p { color: var(--muted); }
.about-intro p + p { margin-top: 14px; }

/* 错误页 */
.error-page { padding: 96px 0 110px; text-align: center; }
.error-code {
  font-size: clamp(64px, 12vw, 112px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; letter-spacing: 2px;
}
.error-page h1 { font-size: 22px; margin: 18px 0 10px; }
.error-page p { color: var(--muted); }
.error-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   后台富文本编辑器容器（wangEditor 5）
   ============================================================ */
.rich-editor-wrap {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: #fff; position: relative; z-index: 2;
}
.rich-editor-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,255,.10); }
.rich-editor-wrap .rich-toolbar { border-bottom: 1px solid var(--border); }
.rich-editor-wrap #richEditor { height: 420px; overflow-y: hidden; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.form-hint b { color: var(--accent); }
/* 工具栏下拉/弹层需浮在表单之上 */
.w-e-toolbar { z-index: 8 !important; }
.w-e-bar-item-group .w-e-bar-item-menus-container { z-index: 9 !important; }
.w-e-modal { z-index: 1000 !important; }
@media (max-width: 640px) {
  .rich-editor-wrap #richEditor { height: 320px; }
}

/* ============================================================
   富文本附件：前台下载卡片
   ============================================================ */
.rich-content .ry-file {
  display: flex; align-items: center; gap: 14px;
  max-width: 580px; margin: 16px 0; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rich-content .ry-file:hover {
  transform: translateY(-2px); border-color: rgba(47,107,255,.38);
  box-shadow: 0 10px 26px rgba(47,107,255,.14);
}
.ry-file-kind {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff;
  background: var(--grad); box-shadow: 0 6px 14px rgba(47,107,255,.26);
}
.ry-file-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ry-file-name {
  font-size: 14.5px; font-weight: 600; color: #16233a;
  line-height: 1.45; word-break: break-all;
}
.ry-file-sub { font-size: 12.5px; color: var(--muted); }
.ry-file-dl {
  flex: none; font-size: 12.5px; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(47,107,255,.35); border-radius: 999px; padding: 5px 14px;
  transition: background .2s ease, color .2s ease;
}
.rich-content .ry-file:hover .ry-file-dl { background: var(--accent); color: #fff; }
.rich-content .ry-file.is-missing {
  display: inline-flex; opacity: .75; background: #f6f7f9;
  border-style: dashed; cursor: default; max-width: none;
}
.rich-content .ry-file.is-missing .ry-file-kind { background: #b7c1d2; box-shadow: none; }
.rich-content .ry-file.is-missing .ry-file-name { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) {
  .rich-content .ry-file { gap: 11px; padding: 11px 13px; }
  .ry-file-kind { width: 40px; height: 40px; font-size: 11px; border-radius: 9px; }
  .ry-file-name { font-size: 13.5px; }
  .ry-file-dl { padding: 5px 11px; }
}

/* ============================================================
   后台编辑器：附件相关
   ============================================================ */
/* 编辑器正文里的附件链接 */
.rich-editor-wrap #richEditor a[href^="/file/"] {
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed rgba(47,107,255,.55);
}
/* 表单内的附件工具条 */
.rich-file-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 12px;
  border: 1px dashed var(--border); border-radius: 10px; background: #fafcff;
}
.rich-file-bar .btn { flex: none; }

/* 附件管理弹层 */
.ry-modal-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(18,30,52,.45); display: flex; align-items: center; justify-content: center;
  padding: 18px; animation: ryFade .18s ease;
}
@keyframes ryFade { from { opacity: 0; } to { opacity: 1; } }
.ry-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 680px;
  max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 26px 70px rgba(12,24,48,.28);
}
.ry-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.ry-modal-head h3 { font-size: 16px; color: #16233a; }
.ry-modal-head .ry-modal-close {
  border: none; background: #f2f5fa; color: var(--muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; font-size: 16px; line-height: 1;
}
.ry-modal-head .ry-modal-close:hover { background: #e8eef8; color: #16233a; }
.ry-modal-body { padding: 8px 18px 18px; overflow-y: auto; }
.ry-modal-tip { font-size: 12.5px; color: var(--muted); padding: 12px 0 6px; }
.ry-file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid #eef2f8;
}
.ry-file-row:last-child { border-bottom: none; }
.ry-file-row .ry-file-kind { width: 38px; height: 38px; font-size: 11px; border-radius: 9px; }
.ry-file-row .ry-file-body { flex: 1; min-width: 0; }
.ry-file-row .ry-file-name { font-size: 14px; }
.ry-file-row .ry-file-sub { font-size: 12px; }
.ry-file-row .ry-btn-del {
  flex: none; border: 1px solid #ffd9d9; background: #fff5f5; color: #d64545;
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ry-file-row .ry-btn-del:hover { background: #d64545; color: #fff; border-color: #d64545; }
.ry-file-row .ry-btn-insert {
  flex: none; border: 1px solid rgba(47,107,255,.3); background: #f2f7ff; color: var(--accent);
  border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
}
.ry-file-row .ry-btn-insert:hover { background: var(--accent); color: #fff; }
.ry-empty { padding: 26px 0; text-align: center; color: var(--muted); font-size: 13.5px; }

/* 轻提示（附件上传 / 删除反馈） */
.ry-toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
  z-index: 1300; max-width: 84vw; padding: 11px 20px; border-radius: 10px;
  background: rgba(22,35,58,.94); color: #fff; font-size: 13.5px; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(12,24,48,.28); animation: ryToastIn .22s ease;
}
.ry-toast.is-error { background: rgba(198,54,54,.95); }
.ry-toast.is-out { opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .25s ease; }
@keyframes ryToastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 后台概览：邮件中心快捷入口 ---------- */
.mail-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.mq-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .22s;
}
.mq-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf5; }
.mq-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--bg-tint); color: var(--accent); display: grid; place-items: center; font-size: 17px;
}
.mq-body { display: flex; flex-direction: column; line-height: 1.35; }
.mq-body b { font-size: 21px; color: var(--accent); }
.mq-body span { font-size: 12.5px; color: var(--muted); }
.mq-arrow { margin-left: auto; color: #c3ccdb; }
.mq-tip { margin-left: auto; font-size: 11.5px; color: #b45309; background: #fffbeb; border-radius: 999px; padding: 2px 9px; }
@media (max-width: 900px) {
  .mail-quick { grid-template-columns: 1fr; }
}

/* 后台顶栏：窄屏改为品牌固定 + 导航横向滚动，避免换行挤压 */
@media (max-width: 900px) {
  .admin-topbar { height: 62px; padding: 0 12px; gap: 10px; overflow: hidden; }
  .admin-topbar .brand { flex: none; font-size: 14px; white-space: nowrap; gap: 8px; }
  .admin-topbar .brand .logo-mark { width: 26px !important; height: 26px !important; font-size: 11px !important; }
  .admin-topbar nav {
    flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
    scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 0;
  }
  .admin-topbar nav::-webkit-scrollbar { display: none; }
  .admin-topbar nav a { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
}

/* ==================================================================
   后台：仪表盘 / GEO / 操作日志（2026-11 新增）
   ================================================================== */
.a-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.a-kpi{background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px 19px;
  display:flex;align-items:center;gap:14px;transition:all .22s}
.a-kpi:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.a-kpi__ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;
  flex:none;font-size:19px;line-height:1}
.a-kpi__ic--blue{background:rgba(47,107,255,.1)}
.a-kpi__ic--cyan{background:rgba(6,182,212,.13)}
.a-kpi__ic--green{background:rgba(16,185,129,.13)}
.a-kpi__ic--orange{background:rgba(245,158,11,.15)}
.a-kpi__num{font-size:25px;font-weight:700;line-height:1.15;color:var(--text);
  font-variant-numeric:tabular-nums}
.a-kpi__label{font-size:12.5px;color:var(--muted);margin-top:3px}
.a-grid{display:grid;grid-template-columns:1.62fr 1fr;gap:20px;align-items:start}
.a-card{background:#fff;border:1px solid var(--border);border-radius:14px;
  margin-bottom:20px;overflow:hidden}
.a-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.a-card__head h3{font-size:15px;margin:0;display:flex;align-items:center;gap:7px}
.a-card__head small{color:var(--muted);font-size:12.3px}
.a-card__body{padding:18px 20px}
.a-card__body--flush{padding:0}
.a-card .table-wrap{border:none;border-radius:0}

/* 趋势柱状图 */
.a-chart{display:flex;align-items:flex-end;gap:6px;height:178px;padding-top:18px}
.a-chart__col{flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;height:100%;gap:7px;min-width:0}
.a-chart__bar{width:100%;max-width:34px;min-height:3px;border-radius:6px 6px 3px 3px;
  background:linear-gradient(180deg,#7aa5ff,#2f6bff);position:relative;transition:filter .2s}
.a-chart__bar:hover{filter:brightness(1.1)}
.a-chart__bar.is-zero{background:#e6eefc}
.a-chart__bar b{position:absolute;top:-16px;left:50%;transform:translateX(-50%);
  font-size:10.5px;color:#2f6bff;font-weight:700;font-variant-numeric:tabular-nums}
.a-chart__x{font-size:10.5px;color:var(--muted);white-space:nowrap}

/* 排行 */
.a-rank__row{display:flex;align-items:center;gap:11px;padding:10px 20px;
  border-bottom:1px solid var(--border);font-size:13.4px}
.a-rank__row:last-child{border-bottom:none}
.a-rank__row:hover{background:#fafcff}
.a-rank__no{width:20px;height:20px;border-radius:6px;background:var(--bg-tint);
  color:var(--muted);font-size:11.5px;font-weight:700;display:grid;place-items:center;flex:none}
.a-rank__row:nth-child(1) .a-rank__no{background:#2f6bff;color:#fff}
.a-rank__row:nth-child(2) .a-rank__no{background:#6b93ff;color:#fff}
.a-rank__row:nth-child(3) .a-rank__no{background:#9db6ff;color:#fff}
.a-rank__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:var(--text)}
.a-rank__bar{width:76px;height:6px;border-radius:99px;background:var(--bg-tint);
  overflow:hidden;flex:none}
.a-rank__bar i{display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#7aa5ff,#2f6bff)}
.a-rank__hits{width:44px;text-align:right;font-size:12.4px;color:var(--muted);
  font-variant-numeric:tabular-nums}

/* 表单 */
.a-field{margin-bottom:15px}
.a-field label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--text)}
.a-field input[type=text],.a-field input[type=url],.a-field input[type=password],
.a-field textarea,.a-field select{width:100%;padding:10px 13px;border:1px solid var(--border);
  border-radius:10px;font-size:13.5px;background:#fff;color:var(--text);
  font-family:inherit;transition:all .2s}
.a-field input:focus,.a-field textarea:focus,.a-field select:focus{outline:none;
  border-color:var(--accent);box-shadow:0 0 0 3px rgba(47,107,255,.1)}
.a-field textarea{resize:vertical;min-height:70px;line-height:1.7}
.a-field small{display:block;font-size:11.8px;color:var(--muted);margin-top:5px;line-height:1.6}
.a-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.a-check{display:flex;align-items:flex-start;gap:9px;font-size:13px;cursor:pointer;line-height:1.55}
.a-check input{margin-top:2px;flex:none;width:16px;height:16px;accent-color:#2f6bff}
.a-bots{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:8px}
.a-bots label{padding:9px 11px;background:#f8fbff;border:1px solid #e6eefb;
  border-radius:9px;display:flex;gap:8px;font-size:12.4px;cursor:pointer;line-height:1.45}
.a-bots label:hover{border-color:#c9dcff}
.a-bots input{margin-top:2px;flex:none;width:15px;height:15px;accent-color:#2f6bff}
.a-pre{max-height:200px;overflow:auto;background:#f7f9fc;border:1px solid var(--border);
  border-radius:9px;padding:11px;font-size:11.4px;line-height:1.65;white-space:pre-wrap;
  word-break:break-all;margin:0;color:#41506b}
.a-alert{padding:12px 16px;border-radius:10px;font-size:13.4px;margin-bottom:18px;
  background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.a-alert--warn{background:#fffbeb;color:#b45309;border-color:#fde68a}
.a-tip{font-size:13px;color:var(--muted);line-height:1.8;margin:0}
.a-tag{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11.5px;
  font-weight:600;background:#f1f5f9;color:#64748b}
.a-tag--ok{background:#ecfdf5;color:#047857}
.a-tag--fail{background:#fef2f2;color:#b91c1c}
.a-pager{display:flex;gap:8px;align-items:center;justify-content:center;padding:16px}
.a-pager a,.a-pager span{padding:6px 12px;border-radius:8px;font-size:13px;
  border:1px solid var(--border);color:var(--muted);background:#fff;transition:all .2s}
.a-pager a:hover{border-color:var(--accent);color:var(--accent)}
.a-pager .on{background:var(--accent);color:#fff;border-color:var(--accent)}

@media (max-width:1024px){
  .a-kpis{grid-template-columns:repeat(2,1fr)}
  .a-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .a-kpis{grid-template-columns:1fr;gap:12px}
  .a-row{grid-template-columns:1fr}
  .a-chart{height:140px;gap:3px}
  .a-chart__x{font-size:9.5px;transform:rotate(-45deg);transform-origin:center}
  .a-chart__bar b{display:none}
  .a-kpi__num{font-size:22px}
  .a-rank__bar{display:none}
}


/* ===== 修复：后台搜索/筛选按钮被 flex 压缩后文字换行 ===== */
.btn{white-space:nowrap}
.admin-head form{flex-wrap:nowrap}
.admin-head form .btn,.admin-head .btn{flex:0 0 auto}
@media (max-width:720px){
  .admin-head form{flex-wrap:wrap}
  .admin-head form input{min-width:0;flex:1 1 140px}
}

/* ===== 修复：窄列中状态标签被压缩成竖排 ===== */
.a-tag,.badge{white-space:nowrap}

/* ============================================================
   2026-11-18 迭代：LOGO / 搜索 / 产品下拉 / 语言切换 / 悬浮工具条
   ============================================================ */

/* 上传的网站 LOGO */
.logo-img { display: block; width: auto; max-width: 168px; height: 44px; object-fit: contain; }

/* 顶栏右侧工具区 */
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-search-btn, .lang-switch__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 36px; padding: 0 9px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .22s;
}
.nav-search-btn:hover, .lang-switch__btn:hover {
  color: var(--accent); border-color: rgba(47,107,255,.4);
  background: var(--bg-tint); transform: translateY(-1px);
}
.lang-switch__btn span { white-space: nowrap; }

/* 顶栏下拉搜索条 */
.header-search {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: 0 14px 30px rgba(23,35,59,.10);
  max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: max-height .3s ease, opacity .25s ease, visibility .25s;
  z-index: 99;
}
.header-search.is-open { max-height: 108px; opacity: 1; visibility: visible; }
.header-search form { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.header-search form > svg { color: var(--muted); flex: 0 0 auto; }
.header-search input {
  flex: 1 1 auto; min-width: 0; padding: 11px 16px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
.header-search input:focus { outline: 2px solid rgba(47,107,255,.28); border-color: var(--accent); }
.header-search__close {
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.header-search__close:hover { color: var(--accent); }

/* 产品中心下拉（对齐 zhongk 的导航交互） */
.nav-item { position: relative; }
.nav-caret {
  display: inline-block; width: 6px; height: 6px; margin-left: 5px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s;
}
.has-drop:hover .nav-caret { transform: rotate(225deg) translateY(-1px); }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; box-shadow: 0 18px 42px rgba(23,35,59,.16);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .22s ease; z-index: 120;
}
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop a {
  display: block; padding: 9px 13px; border-radius: 9px; font-size: 14px;
  color: var(--text); white-space: nowrap;
}
.nav-drop a:hover { color: var(--accent); background: var(--bg-tint); transform: none; }
.nav-drop .nav-drop__all {
  color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--border);
  border-radius: 9px 9px 0 0; margin-bottom: 4px;
}

/* 首页半透明模块框：加高、留白更舒展 */
.panel { padding: clamp(46px, 6vw, 78px) clamp(20px, 3.6vw, 48px); }
.panel .section-head { margin-bottom: 50px; }
.panel-stats { min-height: 190px; display: flex; align-items: center; }
.panel-stats .stats-grid { width: 100%; }

/* 仪表盘数据块改为可点击链接 */
a.a-kpi { text-decoration: none; color: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; }
a.a-kpi:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(47,107,255,.14); }
a.a-kpi:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 搜索结果页 */
.search-page .search-summary { font-size: 14px; color: var(--muted); margin: 14px 0 26px; }
.search-page .search-group { margin-bottom: 30px; }
.search-page .search-group h3 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.search-page .search-hit {
  display: block; padding: 13px 18px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; margin-bottom: 10px; color: var(--text);
  transition: all .2s;
}
.search-page .search-hit:hover { border-color: var(--accent); color: var(--accent); transform: translateX(3px); }
.search-page .search-hit small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.search-page .search-empty { text-align: center; padding: 70px 20px; color: var(--muted); }

/* 悬浮工具条（与 zhongk 一致：竖排圆角图标按钮 + 左侧悬停气泡） */
.float {
  position: fixed; right: 22px; bottom: 34px; z-index: 800;
  display: flex; flex-direction: column; gap: 10px;
}
.float__item { position: relative; }
.float__btn {
  width: 52px; height: 52px; border-radius: 15px; background: #fff;
  box-shadow: 0 8px 24px rgba(23,35,59,.16); display: grid; place-items: center;
  color: var(--accent); border: 1px solid var(--border); cursor: pointer;
  transition: all .28s ease; position: relative; padding: 0;
}
.float__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.float__btn svg { pointer-events: none; }
.float__qr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; opacity: 0; }
.float__pop {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) scale(.9);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(23,35,59,.22); padding: 14px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all .28s ease;
  /* 所有账号浮框固定同一尺寸，内容长短不再撑开大小 */
  width: 210px; height: 236px; min-width: 210px; max-width: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; overflow: hidden; text-align: center;
}
.float__item:hover .float__pop,
.float__item:focus-within .float__pop {
  opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); pointer-events: auto;
}
.float__pop img { width: 150px; height: 150px; object-fit: contain; flex: 0 0 auto; border-radius: 8px; }
.float__pop span {
  display: block; font-size: 12.5px; color: var(--muted); margin: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.45;
}
.float__btn--top { opacity: 0; visibility: hidden; transform: translateY(10px); }
.float__btn--top.is-show, .float__btn--top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* 旧的常显联系框与独立返回顶部按钮已停用，避免叠加遮挡 */
.cw, .back-top { display: none !important; }

@media (max-width: 640px) {
  .nav-tools { gap: 5px; margin-left: 2px; }
  .lang-switch__btn span { display: none; }
  .nav-drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--accent);
    border-radius: 0; margin: 2px 0 4px 10px; padding: 2px 0 2px 8px;
    min-width: 0; display: none;
  }
  .nav.open .nav-item:hover .nav-drop, .nav-drop:focus-within { display: block; }
  .float { right: 12px; bottom: 16px; gap: 8px; }
  .float__btn { width: 44px; height: 44px; border-radius: 13px; }
  .logo-img { max-width: 120px; height: 38px; }
}

/* 修复：产品中心（含下拉的 div 包裹项）与其它菜单垂直对齐 */
.nav .nav-item { display: flex; align-items: center; }
@media (max-width: 760px) {
  .nav .nav-item { display: block; }
}

/* ============================================================
   2026-11-18 迭代：社交账号 / 友情链接 / 自定义轮播 / 分组式站点设置
   ============================================================ */

/* 后台顶栏：菜单增多后自适应换行，不再被固定高度裁切 */
.admin-topbar { height: auto; min-height: 62px; padding: 10px 24px; flex-wrap: wrap; gap: 8px; }
.admin-topbar nav a { white-space: nowrap; padding: 6px 11px; font-size: 13.2px; }

[hidden] { display: none !important; }

/* 分组式站点设置 */
.setting-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.setting-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s;
}
.setting-tabs a:hover { color: var(--accent); border-color: rgba(47,107,255,.4); }
.setting-tabs a.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px rgba(47,107,255,.28); }
.setting-tabs em { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--bg-tint); color: var(--muted); }
.setting-tabs a.is-active em { background: rgba(255,255,255,.25); color: #fff; }
.setting-item { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: start; }
.setting-item:last-child { border-bottom: none; }
.setting-item__label strong { display: block; font-size: 14px; }
.setting-item__label code { display: inline-block; margin-top: 5px; font-size: 11.5px; color: var(--muted); background: var(--bg-tint); padding: 2px 8px; border-radius: 6px; }
.setting-item__label .form-hint { display: block; margin-top: 6px; font-size: 12px; }
.setting-item__ctrl input[type=text], .setting-item__ctrl textarea { width: 100%; }
.setting-img { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-tint); border-radius: 10px; }
.setting-img img { max-height: 56px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 8px; padding: 5px; border: 1px solid var(--border); }
.setting-img-empty { display: inline-block; padding: 9px 14px; background: var(--bg-tint); border-radius: 9px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .setting-item { grid-template-columns: 1fr; gap: 9px; } }

/* 前台页脚友情链接 */
.footer-friends { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 24px 0; font-size: 13px; }
.footer-friends__label { font-weight: 700; color: var(--muted); }
.footer-friends a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--border); }
.footer-friends a:hover { color: var(--accent); border-color: var(--accent); }

/* 二维码固定尺寸：服务端已统一 430×430 居中白底，此处再兜底居中显示 */
.float__qr-fixed { display: block; width: 150px; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; }
.float__pop--text { width: 210px; min-width: 210px; height: 236px; text-align: center; }
.float__pop--text small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.float__pop--text strong { font-size: 16px; color: var(--text); white-space: nowrap; }
.copy-btn { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; cursor: pointer; user-select: none; white-space: nowrap; }
.copy-btn:hover { filter: brightness(1.08); }

/* 自定义轮播：背景图支持 + 第 4 张以后的通用底纹 */
.slide.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.slide.has-bg::before { background: linear-gradient(90deg, rgba(6,16,36,.55), rgba(6,16,36,.18)); opacity: 1; }
.slide-bg-mask { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.slide.has-bg .slide-inner::before { background: radial-gradient(ellipse at center, rgba(6,16,36,.55) 0%, rgba(6,16,36,.28) 48%, rgba(6,16,36,0) 76%); }
.slide.has-bg .slide-inner h1, .slide.has-bg .slide-inner .slide-badge { color: #fff; }
.slide.has-bg .slide-inner p { color: rgba(255,255,255,.9); }
.slide.has-bg .slide-inner .slide-badge { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.slide-s4, .slide-s5, .slide-s6, .slide-s7, .slide-s8, .slide-s9, .slide-s10 {
  background: linear-gradient(135deg, rgba(246,250,255,.42) 0%, rgba(230,242,255,.33) 55%, rgba(240,250,252,.37) 100%);
}


/* ---- 公众号同步中心 ---- */
.wx-status{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.wx-stat{background:#fff;border:1px solid var(--border);border-radius:12px;padding:15px 17px}
.wx-stat b{display:block;font-size:16px;margin-bottom:4px;color:var(--text);line-height:1.4}
.wx-stat small{color:var(--muted);font-size:12px}
.wx-ok{color:#047857}.wx-bad{color:#b91c1c}
.wx-note{background:#f8fafc;border:1px dashed var(--border);border-radius:12px;padding:14px 18px;font-size:13px;line-height:1.9;color:var(--muted)}
.wx-note code{background:#eef2ff;color:#3730a3;padding:1px 6px;border-radius:4px}
.wx-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.setting-item__ctrl select{min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:14px}
@media (max-width:760px){.wx-status{grid-template-columns:repeat(2,1fr)}}


/* ==================== 首页 / 联系我们：地图模块（合规零密钥） ==================== */
.map-block { margin-top: 6px; }
.map-block__grid { display: grid; grid-template-columns: 1fr 1.32fr; gap: 26px; align-items: stretch; }
.map-info { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.map-info__row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.7; }
.map-info__ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(47,107,255,.10); color: var(--accent); font-size: 16px; }
.map-info__row strong { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.map-info__row a { color: var(--accent); text-decoration: none; }
.map-frame {
  position: relative; width: 100%; min-height: 300px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 40px -30px rgba(23,35,59,.5);
}
.map-frame img, .map-frame iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.map-frame img { object-fit: cover; }
.map-frame iframe { position: absolute; inset: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.85), rgba(232,241,255,.5));
}
.map-placeholder__ic { font-size: 40px; line-height: 1; opacity: .65; }
.map-placeholder strong { font-size: 16px; }
.map-placeholder span { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.7; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map-caption { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .map-block__grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 260px; }
  .map-frame img, .map-frame iframe { min-height: 260px; }
}

/* ==================== 后台：左侧菜单 + 右侧内容（对标 zhongk） ==================== */
.a-layout { display: flex; min-height: 100vh; }
.a-side {
  width: 236px; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0;
  overflow-y: auto; z-index: 60;
  background: #0C1E38; color: rgba(255,255,255,.72);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.a-side::-webkit-scrollbar { width: 6px; }
.a-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.a-side__brand { padding: 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.a-side__logo { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: rgba(255,255,255,.10); color: #fff; font-weight: 700; font-size: 14px; }
.a-side__logo img { width: 100%; height: 100%; object-fit: contain; }
.a-side__brand strong { display: block; color: #fff; font-size: 14.5px; line-height: 1.3; }
.a-side__brand small { font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.4); }
.a-side__group { padding: 16px 20px 7px; font-size: 11px; letter-spacing: .14em;
  color: rgba(255,255,255,.34); font-weight: 700; }
.a-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px;
  font-weight: 500; border-left: 3px solid transparent; transition: .22s; }
.a-ic { width: 16px; flex-shrink: 0; text-align: center; font-size: 15px; opacity: .75; }
.a-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.a-nav a.is-active { background: linear-gradient(90deg, rgba(11,92,213,.5), rgba(11,92,213,0));
  border-left-color: #00C2FF; color: #fff; font-weight: 600; }
.a-nav a.is-active .a-ic { opacity: 1; color: #00C2FF; }
.a-nav .badge { margin-left: auto; }
.a-side__foot { padding: 18px 20px 26px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11.5px; color: rgba(255,255,255,.34); line-height: 1.8; }
.a-main { flex: 1; margin-left: 236px; min-width: 0; display: flex; flex-direction: column; }
.a-topbar { background: #fff; border-bottom: 1px solid var(--border); height: 62px;
  display: flex; align-items: center; padding: 0 26px; gap: 16px; position: sticky; top: 0; z-index: 50; }
.a-topbar h1 { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-topbar__toggle { display: none; width: 38px; height: 38px; border-radius: 9px;
  background: var(--bg-soft); color: var(--text); align-items: center; justify-content: center; font-size: 18px; }
.a-topbar__right { display: flex; align-items: center; gap: 10px; }
.a-topbar__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 8px;
  font-size: 13.4px; color: var(--muted); border: 1px solid var(--border); }
.a-topbar__link:hover { border-color: var(--accent); color: var(--accent); }
.a-user { display: flex; align-items: center; gap: 9px; padding: 6px 13px 6px 6px;
  border-radius: 100px; background: var(--bg-soft); }
.a-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.a-user span { font-size: 13.4px; font-weight: 600; }
.a-content { padding: 24px 26px 44px; flex: 1; }
/* 页面标题已移到顶栏，隐藏内容区重复的大标题（保留标题栏右侧操作按钮） */
.a-content .admin-head h1 { display: none; }
.a-content .admin-head { margin-bottom: 18px; }
.a-mask { position: fixed; inset: 0; background: rgba(7,24,47,.45); z-index: 55;
  opacity: 0; visibility: hidden; transition: .3s; }
.a-mask.is-open { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .a-side { transform: translateX(-100%); }
  .a-side.is-open { transform: none; }
  .a-main { margin-left: 0; }
  .a-topbar__toggle { display: flex; }
  .a-content { padding: 18px 16px 40px; }
  .a-topbar { padding: 0 16px; }
  .a-topbar__link span { display: none; }
}
