:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --accent: #a855f7;
  --bg-dark: #0a2a6b;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: #f8fafc;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
.btn,
.exp-hot span {
  touch-action: manipulation;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #0a2a6b;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-4px) scale(0.92);
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-text-link {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

.logo-text-link:hover {
  color: #9fd0ff;
}

.logo-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-share {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(91, 140, 255, 0.9);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.logo-share-btn:hover .logo-share {
  background: #5b8cff;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #020617 0%, #06245c 45%, #0a2a6b 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(14, 165, 233, 0.4), transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(99, 102, 241, 0.35), transparent 45%),
    linear-gradient(135deg, #03205c 0%, #0a3d8f 50%, #0ea5e9 100%);
  opacity: 0.9;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(56deg) scale(1.7);
  transform-origin: center bottom;
  opacity: 0.5;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
  contain: layout style;
}

.hero-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(14, 165, 233, 0.55);
  top: -80px;
  left: -80px;
  animation: orbMove 14s ease-in-out infinite;
}

.hero-orb.orb-2 {
  width: 520px;
  height: 520px;
  background: rgba(99, 102, 241, 0.5);
  bottom: -140px;
  right: -120px;
  animation: orbMove 18s ease-in-out infinite reverse;
}

@keyframes orbMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.08); }
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-logo {
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
  animation: logoFloat 4s ease-in-out infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform;
  contain: layout style paint;
}

a.hero-logo:hover {
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.6);
  transform: scale(1.05);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-12px) scale(1.00);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(15px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 37px;
}

.section-head .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 简介 ---------- */
.intro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.intro-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- 业务卡片 ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.biz-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.biz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.biz-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.biz-card:hover::before {
  transform: scaleX(1);
}

.biz-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.biz-icon svg {
  width: 30px;
  height: 30px;
}

.biz-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.biz-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.biz-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.biz-link:hover {
  color: var(--primary-dark);
}

/* ---------- 业务页详情 ---------- */
.biz-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.biz-detail:not(:last-child) {
  margin-bottom: 37px;
}

.biz-detail-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.biz-detail h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
}

.biz-detail p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  margin-top: 16px;
}

.service-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 15px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ---------- 页头横幅 ---------- */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
  color: #fff;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.9;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 7px 22px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(10, 42, 107, 0.35);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(10, 42, 107, 0.3);
}

/* ---------- CTA ---------- */
.cta {
  padding: 53px 0;
}

.cta-card {
  background: var(--bg-dark);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.85;
}

.cta-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-card p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}

.cta-card .btn {
  position: relative;
  z-index: 2;
}

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  color: var(--text-muted);
  font-size: 15px;
  word-break: break-all;
}

.info-item a:hover {
  color: var(--primary);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-line .mini-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.qr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
  max-width: 500px;
}

.qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(2, 32, 71, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.qr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

.qr-wechat::before {
  background: linear-gradient(90deg, #07c160, #38e08a);
}

.qr-video::before {
  background: linear-gradient(90deg, #7b61ff, #3b82f6);
}

.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(2, 32, 71, .16);
}

.qr-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  background: #fff;
  border: 1px solid #eef1f6;
  aspect-ratio: 916 / 1214;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.qr-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.qr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .18);
}

.qr-video .qr-dot {
  background: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, .18);
}

/* ---------- 表单 ---------- */
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label .req {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: #f8fafc;
  transition: all 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  font-size: 14px;
}

.mail-bright {
  color: #d97706;
  font-weight: 800;
  background: linear-gradient(120deg, #ffd84d, #ffb020);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 176, 32, 0.4));
}

.tel-bright {
  color: var(--accent);
  font-weight: 700;
}

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-phone-hint {
  color: #10b981;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-phone-hint.show {
  display: block;
}

.form-phone-hint.warn {
  color: #f59e0b;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 27px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-about .logo-text {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-about .logo-text-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.9;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  font-size: 14px;
  padding: 4px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* 栏1：关于我们 - 精致化设计 */
.footer-about {
  position: relative;
}

.footer-about .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-about .logo-icon img {
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.footer-about .logo-icon img:hover {
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.footer-about .logo-text-link {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s;
}
.footer-about .logo-text-link:hover {
  opacity: 0.85;
  -webkit-text-fill-color: #fff;
}

.footer-about .footer-desc {
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
  position: relative;
  padding-left: 12px;
  border-left: 2px solid rgba(14, 165, 233, 0.4);
}

/* 栏2：快速导航 - 精致化设计 */
.footer-links h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 1px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
  margin-bottom: 2px;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(14, 165, 233, 0.1);
  border-left-color: var(--primary);
  padding-left: 14px;
}

.footer-links a::before {
  content: attr(data-icon);
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* 栏3：联系方式 */
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: left;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-qr-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-qr-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  transition: border-color 0.2s, transform 0.2s;
}

.footer-qr-img:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.footer-qr-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* 响应式 */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-qr-row {
    gap: 12px;
    margin-top: 12px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .biz-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  }

  /* 平板/移动端：栅格化编号徽章，减少分栏造成的割裂感 */
  .biz-detail-num {
    display: inline-flex;
    align-items: center;
    background: var(--gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 1.5px;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
  }

  .biz-detail h3 {
    font-size: 22px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* iPad 竖屏（768px）及以上：保持 2 列卡片与信息区块的合理布局 */
@media (min-width: 641px) and (max-width: 992px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
  }

  .qr-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 460px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .hero-actions .btn {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-inner {
    height: 72px;
  }

  .logo {
    flex: 1;
    min-width: 0;
    gap: 10px;
  }

  .logo-icon {
    width: 52px;
    height: 52px;
  }

  .logo-share {
    font-size: 10px;
    padding: 3px 9px;
  }

  .logo-text,
  .logo-text-link {
    font-size: 14px;
    flex: 1;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-dark);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 14px 12px;
  }

  .section {
    padding: 43px 0;
  }

  .intro-card {
    padding: 32px 24px;
  }

  .cta-card {
    padding: 48px 24px;
  }
}

/* 移动导航遮罩 + 滚动锁 */
.nav-backdrop {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 23, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 9998;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* 回到顶部悬浮按钮（手机端） */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2a6b, #2563eb);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 42, 107, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .back-top {
    display: flex;
  }
}

/* 手机端（≤640px）：单列堆叠 + 输入框字号防 iOS 自动放大 */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .qr-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 90px 20px 60px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .intro-card {
    padding: 28px 20px;
  }

  .intro-card h3 {
    font-size: 20px;
  }

  .biz-card {
    padding: 30px 22px;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-form h3 {
    font-size: 20px;
  }

  .contact-item {
    padding: 16px;
  }

  .page-hero {
    padding: 72px 0 44px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .biz-detail {
    padding: 24px 20px;
    border-radius: 18px;
    gap: 16px;
  }

  .biz-detail h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  .biz-detail-num {
    font-size: 11px;
    padding: 5px 14px;
  }

  .biz-detail p {
    font-size: 14px;
    line-height: 1.75;
  }

  .service-list li {
    font-size: 13.5px;
    padding-left: 22px;
    margin-bottom: 8px;
  }

  .service-list li::before {
    width: 8px;
    height: 8px;
    top: 8px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: stretch;
    border-radius: 16px;
  }

  .news-cover {
    aspect-ratio: auto;
    min-height: 120px;
    border-radius: 16px 0 0 16px;
  }

  .news-body {
    padding: 14px 16px;
  }

  .news-body h3 {
    font-size: 15px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-body p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* ================================================================
   资讯 · 动态信息（业务板块页内区块 + 详情渲染 + 后台编辑器）
   ================================================================ */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.news-tabs .news-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s;
}

.news-tabs .news-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.news-tabs .news-tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.35s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.news-card:hover .news-cover img {
  transform: scale(1.06);
}

.news-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-dark);
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-cover .news-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}

.news-cover .news-date {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(10, 42, 107, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.news-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  text-align: center;
  margin-top: 36px;
}

.news-more .btn {
  min-width: 170px;
}

.news-empty,
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 60px 20px;
  font-size: 15px;
}

@media (min-width: 641px) and (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板（641-992px）：资讯 Tab 与卡片间距精緻化 */
@media (min-width: 641px) and (max-width: 992px) {
  .news-tabs {
    gap: 10px;
    margin-bottom: 28px;
  }

  .news-grid {
    gap: 24px;
  }
}

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

  .news-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }

  .news-tabs .news-tab {
    padding: 8px 18px;
    font-size: 13px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 34% 1fr;
    align-items: stretch;
    border-radius: 16px;
  }

  .news-cover {
    aspect-ratio: auto;
    min-height: 132px;
    border-radius: 16px 0 0 16px;
  }

  .news-cover .news-cat {
    top: 8px;
    left: 8px;
    font-size: 11px;
    padding: 3px 10px;
  }

  .news-cover .news-date {
    right: 8px;
    bottom: 6px;
    font-size: 11px;
    padding: 2px 10px;
  }

  .news-body {
    padding: 14px 16px;
    justify-content: center;
  }

  .news-body h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .news-body p {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .news-more {
    margin-top: 28px;
  }

  .news-more .btn {
    min-width: 0;
    width: 100%;
    max-width: 300px;
  }
}

/* ---------- 服务端渲染 图文详情页 ---------- */
.art-container {
  max-width: 860px;
}

.art-crumb {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.art-crumb a {
  color: var(--primary);
}

.art-crumb a:hover {
  text-decoration: underline;
}

.art-head {
  text-align: center;
  margin-bottom: 24px;
}

.art-cat {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.art-head h1 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.4;
}

.art-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}

.art-cover {
  margin-bottom: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.art-cover img {
  width: 100%;
  display: block;
}

.art-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
  overflow-wrap: break-word;
  word-break: break-word;
}

.art-body .art-p,
.art-body p {
  margin-bottom: 18px;
}

.art-body .art-p > div,
.art-body .art-p > p,
.art-body blockquote > div,
.art-body blockquote > p {
  margin-bottom: 18px;
}

.art-body .art-p > div:last-child,
.art-body .art-p > p:last-child,
.art-body blockquote > div:last-child,
.art-body blockquote > p:last-child {
  margin-bottom: 0;
}

.art-h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 28px 0 14px;
}

.art-quote {
  border-left: 4px solid var(--primary);
  background: #f1f5f9;
  padding: 14px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: var(--text-muted);
}

.art-list {
  margin: 16px 0 20px;
  padding-left: 22px;
}

.art-list li {
  margin-bottom: 8px;
}

.art-img {
  margin: 22px 0;
}

.art-img img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.art-img figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

/* 正文表格 / 代码 / 预排版：移动端防横向溢出 */
.art-body .art-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
}

.art-body table.art-table,
.art-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.art-body table.art-table th,
.art-body table th,
.art-body table.art-table td,
.art-body table td {
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  vertical-align: top;
}

.art-body table.art-table th,
.art-body table th {
  background: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}

.art-body table.art-table tr:nth-child(even) td {
  background: #fcfdfe;
}

.art-body pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.7;
  margin: 20px 0;
}

.art-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}

.art-body :not(pre) > code {
  background: #f1f5f9;
  color: #be185d;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  word-break: break-word;
}

.art-body img {
  max-width: 100%;
  height: auto;
}

.art-actions {
  text-align: center;
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.art-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.art-meta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.art-meta-upd {
  color: var(--primary);
}

.art-company-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 60px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(14, 165, 233, 0.12);
}

.art-company-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.art-company-info {
  flex: 1;
  min-width: 0;
}

.art-company-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s;
}

.art-company-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.art-company-logo-link {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.art-company-logo-link:hover {
  transform: scale(1.08);
}

.art-company-slogan {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.art-company-url {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 6px;
  transition: all 0.2s;
}

.art-company-url:hover {
  background: rgba(14, 165, 233, 0.15);
  text-decoration: underline;
}

.art-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--cg-border);
}

.art-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s;
}

.art-tag:hover {
  background: var(--primary);
  color: #fff;
}

/* 文章页底部区域 — 精致简约风格 */
.art-company-footer {
  margin-top: 48px;
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #1e40af 100%);
  border-radius: var(--radius);
  color: #fff;
}

.art-company-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 50% at 92% 100%, rgba(255, 255, 255, 0.10), transparent 60%);
}

.art-company-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 70%);
}

.art-company-footer > * {
  position: relative;
  z-index: 1;
}

.art-footer-section {
  margin-bottom: 0;
}

.art-footer-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.art-footer-section-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 60, 140, 0.18);
}

/* 联系信息卡片网格 */
.art-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.art-contact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(15, 60, 150, 0.16);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.art-contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(15, 60, 150, 0.24);
}

.art-contact-card-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.art-contact-card-icon--mail {
  background: rgba(2, 132, 199, 0.35);
  color: #e0f2fe;
}

.art-contact-card-body {
  min-width: 0;
}

.art-contact-card-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
  letter-spacing: 1.5px;
}

.art-contact-card-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.art-contact-card-value:hover {
  opacity: 0.85;
}

.art-contact-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* 分隔线 */
.art-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  margin: 26px 0;
}

/* 二维码行 */
.art-qr-row {
  display: flex;
  justify-content: center;
  gap: 58px;
}

.art-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.art-qr-img-wrap {
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 60, 150, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.art-qr-card:hover .art-qr-img-wrap {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(20, 60, 150, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.art-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.art-qr-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.art-qr-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.4px;
}

.art-qr-tip {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.2px;
}

/* 品牌区域 */
.art-footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.art-footer-logo-link {
  display: block;
  flex-shrink: 0;
}

.art-footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(15, 60, 150, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.art-footer-logo-link:hover .art-footer-logo {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(15, 60, 150, 0.42);
}

.art-footer-brand-text {
  flex: 1;
  min-width: 0;
}

.art-footer-brand-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.art-footer-brand-name:hover {
  opacity: 0.88;
}

.art-footer-brand-desc {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 9px;
}

.art-footer-brand-url {
  font-size: 12px;
  color: #dbeafe;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}
.art-footer-brand-url:hover {
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .art-company-footer {
    padding: 24px 18px;
  }
  .art-contact-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .art-qr-row {
    gap: 36px;
  }
  .art-qr-img-wrap {
    width: 144px;
    height: 144px;
  }
  .art-footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .art-actions {
    flex-direction: column;
    align-items: center;
  }
  .art-card {
    padding: 22px 16px 20px;
    border-radius: 14px;
  }
  .art-head h1 {
    font-size: 22px;
  }
  .art-company-bar {
    min-height: 52px;
    padding: 12px 14px;
  }
  .art-qr-row {
    flex-wrap: wrap;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .art-card {
    padding: 20px 14px;
  }
  .art-qr-img-wrap {
    width: 124px;
    height: 124px;
  }
  .art-qr-row {
    gap: 18px;
  }
  .art-quote {
    padding: 12px 14px;
  }
  .art-company-footer {
    padding: 20px 14px;
  }
}

/* ================================================================
   业务板块双区切换：主营业务服务 | 资讯 · 动态信息
   ================================================================ */
.func-switch-wrap {
  padding: 8px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.func-switch {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 96px;
}

.func-switch-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 300px;
  padding: 44px 30px 40px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  transition: all 0.4s;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.func-switch-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.func-switch-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(168, 85, 247, 0.06));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.func-switch-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.func-switch-btn:hover::before {
  transform: scaleX(1);
}

.func-switch-ic {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.32);
  transition: transform 0.4s;
}

.func-switch-btn:hover .func-switch-ic {
  transform: translateY(-3px) scale(1.05);
}

.func-switch-ic svg {
  width: 30px;
  height: 30px;
}

.func-switch-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.func-switch-sub {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 230px;
}

.func-switch-btn.active {
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(10, 42, 107, 0.28);
  transform: translateY(-6px);
}

.func-switch-btn.active::before {
  transform: scaleX(1);
}

.func-switch-btn.active::after {
  opacity: 1;
}

.func-switch-btn.active .func-switch-ic {
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.42);
}

.func-switch-btn.active .func-switch-title {
  color: var(--primary-dark);
}

.func-switch-sep {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.func-switch-sep::before {
  content: "";
  display: block;
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, transparent, #cbd5e1 30%, #cbd5e1 70%, transparent);
}

.func-switch-sep::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 13px;
  line-height: 1;
  background: #fff;
  padding: 3px 5px;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
  border-radius: 999px;
}

.func-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.func-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .func-view {
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
}

@media (max-width: 992px) {
  .func-switch {
    gap: 32px;
  }

  .func-switch-btn {
    width: 280px;
    padding: 38px 24px 34px;
  }
}

/* iPad / 平板与小型笔记本：双卡并排精緻化 */
@media (min-width: 641px) and (max-width: 992px) {
  .func-switch-wrap {
    padding: 6px 0 48px;
    position: relative;
  }

  .func-switch-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.15), rgba(168, 85, 247, 0.15), transparent);
  }

  .func-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .func-switch-btn {
    width: 100%;
    min-height: 180px;
    padding: 28px 20px 26px;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
  }

  .func-switch-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  }

  .func-switch-ic {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .func-switch-ic svg {
    width: 26px;
    height: 26px;
  }

  .func-switch-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .func-switch-sub {
    font-size: 12.5px;
    max-width: 200px;
  }

  .func-switch-sep {
    display: none;
  }

  .func-switch-btn.active {
    transform: translateY(-4px);
  }

  .func-switch-btn[data-view="service"].active {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.2);
  }

  .func-switch-btn[data-view="news"].active {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.2);
  }
}

/* 手机（≤640px）：两按钮「左右分栏独立卡片」样式，中间留有间距 */
@media (max-width: 640px) {
  .func-switch-wrap {
    padding: 0 0 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
  }

  .func-switch-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), rgba(168, 85, 247, 0.2), transparent);
  }

  .func-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 0 4px;
  }

  .func-switch-btn {
    width: auto;
    max-width: none;
    min-height: 148px;
    padding: 24px 16px 22px;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
    position: relative;
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

  .func-switch-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
  }

  .func-switch-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.04), rgba(168, 85, 247, 0.04));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
  }

  .func-switch-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  }

  .func-switch-btn:hover::before {
    transform: scaleX(1);
  }

  .func-switch-btn:hover::after {
    opacity: 1;
  }

  .func-switch-ic {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f0f9ff, #f5f3ff);
    color: #64748b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .func-switch-ic::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    pointer-events: none;
  }

  .func-switch-ic svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
  }

  .func-switch-title {
    font-size: 15px;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.35s ease;
  }

  .func-switch-sub {
    font-size: 11px;
    max-width: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #94a3b8;
    transition: color 0.35s ease;
  }

  .func-switch-sep {
    display: none;
  }

  .func-switch-btn[data-view="service"].active {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.22), 0 4px 12px rgba(14, 165, 233, 0.1);
    background: linear-gradient(180deg, #ffffff, #f0f9ff);
  }

  .func-switch-btn[data-view="service"].active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  }

  .func-switch-btn[data-view="service"].active::after {
    opacity: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(56, 189, 248, 0.03));
  }

  .func-switch-btn[data-view="service"].active .func-switch-ic {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4);
    transform: scale(1.1);
  }

  .func-switch-btn[data-view="service"].active .func-switch-ic::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
  }

  .func-switch-btn[data-view="service"].active .func-switch-title {
    color: #0369a1;
  }

  .func-switch-btn[data-view="service"].active .func-switch-sub {
    color: #0ea5e9;
  }

  .func-switch-btn[data-view="news"].active {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.22), 0 4px 12px rgba(168, 85, 247, 0.1);
    background: linear-gradient(180deg, #ffffff, #faf5ff);
  }

  .func-switch-btn[data-view="news"].active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #a855f7, #c084fc);
  }

  .func-switch-btn[data-view="news"].active::after {
    opacity: 1;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(139, 92, 246, 0.03));
  }

  .func-switch-btn[data-view="news"].active .func-switch-ic {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
    transform: scale(1.1);
  }

  .func-switch-btn[data-view="news"].active .func-switch-ic::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
  }

  .func-switch-btn[data-view="news"].active .func-switch-title {
    color: #7c3aed;
  }

  .func-switch-btn[data-view="news"].active .func-switch-sub {
    color: #a855f7;
  }

  .func-switch-btn:not(.active) {
    opacity: 0.72;
  }

  .func-switch-btn:not(.active) .func-switch-ic {
    filter: grayscale(0.3) saturate(0.7);
  }

  .func-switch-btn:not(.active) .func-switch-ic::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  }
}

@media (max-width: 480px) {
  .func-switch {
    gap: 12px;
    padding: 0 2px;
  }

  .func-switch-btn {
    min-height: 128px;
    padding: 20px 10px 18px;
    border-radius: 18px;
  }

  .func-switch-btn::after {
    inset: 0;
  }

  .func-switch-ic {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    margin-bottom: 10px;
  }

  .func-switch-ic svg {
    width: 22px;
    height: 22px;
  }

  .func-switch-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .func-switch-sub {
    display: none;
  }

  .func-switch-btn[data-view="service"].active .func-switch-ic,
  .func-switch-btn[data-view="news"].active .func-switch-ic {
    transform: scale(1.06);
  }
}

/* 两按钮各自「选中态」差异化视觉：service=科技蓝 / news=偏紫 */
.func-switch-btn[data-view="service"].active {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 22px 50px rgba(14, 165, 233, 0.3);
}

.func-switch-btn[data-view="service"].active::before {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.func-switch-btn[data-view="service"].active .func-switch-ic {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.45);
}

.func-switch-btn[data-view="service"].active .func-switch-title {
  color: #0369a1;
}

.func-switch-btn[data-view="news"].active {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 22px 50px rgba(168, 85, 247, 0.3);
}

.func-switch-btn[data-view="news"].active::before {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}

.func-switch-btn[data-view="news"].active .func-switch-ic {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.45);
}

.func-switch-btn[data-view="news"].active .func-switch-title {
  color: #7c3aed;
}

/* 未选中态：略降层次，突出当前选中 */
.func-switch-btn:not(.active) {
  opacity: 0.78;
}

.func-switch-btn:not(.active) .func-switch-title {
  color: var(--text-muted);
}

.func-switch-btn:not(.active) .func-switch-ic {
  filter: saturate(0.85);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
  .func-switch-btn:not(.active) {
    opacity: 0.62;
  }
}

/* ---------- 后台编辑器（admin.html，独立无依赖） ---------- */
.ab-root {
  --cg-primary: #0ea5e9;
  --cg-primary-dark: #0369a1;
  --cg-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%);
  --cg-bg: #f1f5f9;
  --cg-card: #ffffff;
  --cg-text: #0f172a;
  --cg-muted: #64748b;
  --cg-border: #e2e8f0;
  --cg-radius: 12px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cg-bg);
  color: var(--cg-text);
}

.ab-root * {
  box-sizing: border-box;
}

.ab-hidden {
  display: none !important;
}

.ab-topbar {
  background: var(--cg-gradient);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ab-topbar h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ab-topbar .ab-user {
  font-size: 13px;
  opacity: 0.9;
}

.ab-main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px 60px;
}

.ab-card {
  background: var(--cg-card);
  border-radius: var(--cg-radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #edf2f7;
  margin-bottom: 20px;
  overflow: hidden;
}

.ab-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ab-card-head h2 {
  font-size: 15px;
  font-weight: 700;
}

/* 编辑器卡片 */
.ab-editor-card {
  padding: 0;
  overflow: hidden;
}

.ab-editor-card-head {
  padding: 16px 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.ab-editor-card-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #6366f1, #818cf8);
  border-radius: 0 2px 2px 0;
}

.ab-editor-card-head::after {
  display: none;
}

.ab-editor-card-head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.ab-editor-head-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}

.ab-editor-card-head h2 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}

.ab-editor-card-sub {
  color: #94a3b8;
  font-size: 12px;
  margin: 2px 0 0;
  font-weight: 400;
}

.ab-btn-back {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  backdrop-filter: none;
  z-index: 1;
  font-weight: 600;
  border-radius: 10px;
}

.ab-btn-back:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: scale(1.03);
}

.ab-btn-back svg {
  transition: transform 0.15s;
}

.ab-btn-back:hover svg {
  transform: translateX(-2px);
}

/* 元信息区 */
.ab-editor-meta {
  padding: 16px 24px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f5;
}

.ab-editor-meta-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
}

.ab-editor-meta-field {
  margin-bottom: 14px;
}

.ab-editor-meta-field:last-child {
  margin-bottom: 0;
}

.ab-editor-meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.ab-editor-meta-label-icon {
  width: 22px;
  height: 22px;
  background: #f1f5f9;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.ab-editor-meta-field input[type="text"],
.ab-editor-meta-field select,
.ab-editor-meta-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}

.ab-editor-meta-field input[type="text"]:focus,
.ab-editor-meta-field select:focus,
.ab-editor-meta-field textarea:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
  outline: none;
}

.ab-editor-meta-field textarea {
  resize: vertical;
  min-height: 48px;
}

.ab-required {
  color: #ef4444;
  font-weight: 700;
}

.ab-optional {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  background: #e2e8f0;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
}

/* 编辑器面板 */
.ab-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ab-editor-left,
.ab-editor-right {
  min-width: 0;
  min-height: 0;
}

.ab-editor-left {
  padding: 0;
  background: #fff;
  border-right: 1px solid #f0f2f5;
}

.ab-editor-right {
  position: relative;
  background: #f8fafc;
}

/* 面板标题栏 */
.ab-editor-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f5;
}

.ab-editor-panel-head-left {
  background: #fafbfc;
  border-left: 3px solid #6366f1;
}

.ab-editor-panel-head-right {
  background: #fafbfc;
  border-left: 3px solid #0ea5e9;
}

.ab-editor-panel-badge {
  width: 24px;
  height: 24px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* 块工具栏 */
.ab-editor-blockbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f2f5;
  border-bottom: 1px solid #e0e7ff;
}

.ab-blockbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ab-blockbar-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
}

.ab-blockbar-btn:active {
  transform: scale(0.97);
}

.ab-blockbar-btn svg {
  flex-shrink: 0;
}

.ab-blockbar-divider {
  width: 1px;
  height: 20px;
  background: #d4d4e0;
  margin: 0 4px;
  flex-shrink: 0;
}

.ab-blockbar-ai {
  color: #7c3aed !important;
  border-color: #ddd6fe !important;
  background: #faf5ff !important;
}

.ab-blockbar-ai:hover {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15) !important;
}

/* 块编辑区 */
.ab-blocks {
  margin: 0;
  padding: 14px 18px;
  min-height: 300px;
}

/* 预览区 */
.ab-preview {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ab-preview-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ab-preview-win-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.ab-preview-win {
  padding: 7px 20px;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(14, 116, 144, 0.3);
  transition: all 0.2s;
}

.ab-preview-win:hover {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.45);
}

.ab-preview-body::-webkit-scrollbar {
  width: 6px;
}

.ab-preview-body::-webkit-scrollbar-track {
  background: transparent;
}

.ab-preview-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.ab-preview-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 底部操作栏 */
.ab-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  gap: 16px;
}

.ab-editor-foot-left {
  flex: 1;
  min-width: 0;
}

.ab-editor-foot-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ab-btn-publish {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #a855f7 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
  padding: 8px 20px !important;
}

.ab-btn-publish:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* 登录 */
.ab-login-box {
  width: 100%;
  max-width: min(360px, 92vw);
  box-sizing: border-box;
  margin: 12vh auto 0;
  background: var(--cg-card);
  border-radius: var(--cg-radius);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  padding: 36px 28px;
  text-align: center;
}

.ab-login-box h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ab-login-box p {
  color: var(--cg-muted);
  font-size: 13px;
  margin-bottom: 26px;
}

.ab-login-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  margin-bottom: 16px;
}

.ab-login-box input:focus {
  outline: none;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* 表单 */
.ab-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cg-text);
}

.ab-form input[type="text"],
.ab-form input[type="url"],
.ab-form select,
.ab-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
}

.ab-form input:focus,
.ab-form select:focus,
.ab-form textarea:focus {
  outline: none;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.ab-form textarea {
  resize: vertical;
  min-height: 80px;
}

.ab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ab-cover {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ab-cover-preview {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--cg-border);
  background: #f8fafc;
  flex-shrink: 0;
}

.ab-cover-fields {
  flex: 1;
}

.ab-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  transition: all 0.25s;
}

.ab-btn:hover {
  transform: translateY(-1px);
}

.ab-btn-primary {
  background: var(--cg-gradient);
  color: #fff;
}

@keyframes ab-spin {
  to { transform: rotate(360deg); }
}
.ab-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.85;
}
.ab-btn-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ab-spin 0.7s linear infinite;
}

.ab-btn-ghost {
  background: #f1f5f9;
  color: var(--cg-text);
  border: 1px solid var(--cg-border);
}

.ab-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ab-btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.ab-btn-sm {
  font-size: 12.5px;
  padding: 6px 12px;
}

/* 列表 */
.ab-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
}

.ab-toolbar input {
  flex: 1;
  min-width: 180px;
  padding: 9px 12px;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  font-size: 14px;
}

.ab-seg {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}

.ab-seg button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cg-muted);
}

.ab-seg button.active {
  background: #fff;
  color: var(--cg-text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.ab-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
}

.ab-item:hover {
  background: #fafbfc;
}

.ab-thumb {
  width: 110px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--cg-border);
  background: #f8fafc;
}

.ab-item-info {
  min-width: 0;
}

.ab-item-info .ab-t {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-item-info .ab-s {
  font-size: 13px;
  color: var(--cg-muted);
  margin-top: 4px;
}

.ab-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.ab-badge.bs-pub {
  background: #ecfdf5;
  color: #059669;
}

.ab-badge.bs-draft {
  background: #fef3c7;
  color: #b45309;
}

.ab-badge.bs-dyn {
  background: #eff6ff;
  color: #2563eb;
}

.ab-badge.bs-info {
  background: #f5f3ff;
  color: #7c3aed;
}

.ab-item-ops {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ab-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px;
  font-size: 13px;
  color: var(--cg-muted);
}

.ab-pager button {
  border: 1px solid var(--cg-border);
  background: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.ab-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 文字格式工具栏 */
.ab-format-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 10px;
  margin-bottom: 8px;
}

.ab-fmt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cg-muted);
  white-space: nowrap;
}

.ab-fmt-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--cg-border);
  border-radius: 6px;
  padding: 2px;
}

.ab-fmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--cg-text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.ab-fmt-btn:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--cg-primary);
}

.ab-fmt-btn:active {
  background: rgba(14, 165, 233, 0.2);
}

.ab-fmt-btn-bold {
  font-weight: 800;
  font-size: 14px;
  min-width: 32px;
  transition: all 0.15s ease;
}

.ab-fmt-btn-bold:hover {
  background: rgba(14, 165, 233, 0.15);
  transform: scale(1.05);
}

.ab-fmt-btn-bold.active {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}

.ab-fmt-btn-group .ab-fmt-btn.active {
  background: var(--cg-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.35);
}

.ab-fmt-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--cg-border);
  margin: 0 4px;
  vertical-align: middle;
}

.ab-fmt-select {
  padding: 6px 10px;
  border: 1px solid var(--cg-border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: var(--cg-text);
  cursor: pointer;
  min-width: 90px;
}

.ab-fmt-select:focus {
  outline: none;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.12);
}

.ab-fmt-color-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ab-fmt-color-btn {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ab-fmt-color-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--cg-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  transition: border-color 0.2s;
}

.ab-fmt-color-btn:hover .ab-fmt-color-icon {
  border-color: var(--cg-primary);
}

.ab-fmt-color-btn input[type="color"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.ab-fmt-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  margin-bottom: 12px;
  min-height: 32px;
}

.ab-fmt-preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cg-muted);
  white-space: nowrap;
}

.ab-fmt-preview-text {
  font-size: 14px;
  color: var(--cg-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* 块内文字格式工具栏 — 下拉菜单式 */
.ab-fmt-bar {
  position: relative;
  margin-bottom: 6px;
}

/* 触发按钮 */
.ab-fmt-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.ab-fmt-trigger:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #f5f3ff;
}
.ab-fmt-trigger-icon {
  font-size: 13px;
}
.ab-fmt-trigger-label {
  font-weight: 600;
}
.ab-fmt-trigger-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

/* 下拉面板 */
.ab-fmt-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.ab-fmt-dropdown.open {
  display: block;
}

/* 下拉面板头部 */
.ab-fmt-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f0f2f5;
}
.ab-fmt-dd-title {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
}
.ab-fmt-dd-close {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}
.ab-fmt-dd-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* 下拉行 */
.ab-fmt-dd-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f2f5;
}
.ab-fmt-dd-row:last-child {
  border-bottom: none;
}

.ab-fmt-dd-row .ab-fmt-select {
  min-width: 80px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.ab-fmt-dd-colors {
  gap: 4px;
}

.ab-fmt-dd-btns {
  justify-content: space-between;
}

.ab-fmt-dd-actions {
  display: flex;
  gap: 6px;
}
.ab-fmt-dd-actions .ab-btn {
  font-size: 12px;
}

/* 色板按钮 */
.ab-fmt-swatches {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  max-width: 228px;
}

.ab-fmt-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s;
}

.ab-fmt-swatch:hover {
  transform: scale(1.18);
}

.ab-fmt-swatch.active {
  box-shadow: 0 0 0 2px var(--cg-primary);
  transform: scale(1.12);
}

/* 颜色输入 */
.ab-fmt-hex {
  width: 92px;
  padding: 5px 8px;
  border: 1px solid var(--cg-border);
  border-radius: 6px;
  font-size: 12px;
  font-family: Consolas, Monaco, monospace;
  color: var(--cg-text);
  background: #fff;
}

.ab-fmt-hex:focus {
  outline: none;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.12);
}

/* 颜色图标按钮 */
.ab-fmt-color-icon {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.ab-block {
  border: 1px solid var(--cg-border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  overflow: hidden;
}

.ab-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.ab-block-head .ab-bt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cg-muted);
  flex: 1;
}

.ab-block-wordcount {
  font-size: 11px;
  color: var(--cg-muted);
  margin-left: 8px;
}

.ab-word-count-status {
  padding: 6px 12px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
  color: var(--cg-muted);
  margin-bottom: -1px;
}

.ab-word-count-tips {
  margin-top: 4px;
  font-size: 11px;
}

.ab-block-body {
  padding: 12px;
}

.ab-ops {
  display: flex;
  gap: 6px;
}

.ab-ops button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--cg-border);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--cg-muted);
}

.ab-ops button:hover {
  border-color: var(--cg-primary);
  color: var(--cg-primary);
}

.ab-ops button[data-ai-rewrite]:hover,
.ab-ops button[data-ai-expand]:hover,
.ab-ops button[data-ai-summarize]:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}

.ab-ops button.ob-del:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.ab-block textarea,
.ab-block input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--cg-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.ab-block textarea {
  min-height: 42px;
  max-height: 400px;
  resize: none;
  overflow-y: auto;
}

/* 块内插入/删除操作栏（列表式） */
.ab-block-addbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px dashed var(--cg-border);
  background: #fcfcfd;
}

.ab-addbar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cg-primary);
  margin-right: 2px;
  white-space: nowrap;
}

.ab-addbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ab-addbar-vse {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--cg-border);
  margin: 0 2px;
}

.ab-addbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cg-primary);
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.45);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ab-addbar-btn:hover {
  color: #fff;
  border-color: var(--cg-primary);
  background: var(--cg-primary);
}

.ab-addbar-del {
  color: var(--cg-primary);
}

.ab-addbar-del:hover {
  color: #fff;
  border-color: var(--cg-primary);
  background: var(--cg-primary);
}

/* 预览同步高亮 */
.ab-preview-body [data-pv].pv-active {
  outline: 2px solid var(--cg-primary);
  outline-offset: 3px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.06);
}

/* 预览内嵌前台卡片适配 */
.ab-preview-body .art-card {
  box-shadow: none;
  padding: 22px 24px;
}

.ab-preview-body .art-crumb span {
  color: var(--primary);
}

.ab-lists {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-list-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ab-list-row input {
  flex: 1;
}

.ab-h3-input {
  font-weight: 600;
  font-size: 15px;
  min-height: 40px;
  margin-bottom: 8px;
}

.ab-list-row textarea {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  resize: vertical;
  font-family: inherit;
}

/* 块内所见即所得编辑器（contenteditable） */
.ab-edit {
  display: block;
  width: 100%;
  min-height: 42px;
  max-height: 600px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  line-height: 1.75;
  color: var(--cg-text);
  font-family: inherit;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ab-edit:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.ab-edit:empty:before {
  content: attr(data-placeholder) "（支持加粗 B、字体、字号、颜色、对齐；回车另起一段）";
  color: #94a3b8;
  pointer-events: none;
}

.ab-edit br {
  line-height: inherit;
}

.ab-h3-input {
  font-weight: 600;
  font-size: 15px;
  min-height: 40px;
  margin-bottom: 8px;
}

.ab-h3-input.ab-edit {
  min-height: 44px;
}

.ab-list-row .ab-edit {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.6;
}

.ab-img-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-img-field img.ab-iprev {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--cg-border);
  object-fit: contain;
}

.ab-img-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ab-caption-input {
  width: 100%;
}

.ab-msg {
  font-size: 13px;
  color: var(--cg-muted);
  flex: 1;
}

.ab-msg.er {
  color: #dc2626;
}

.ab-msg.ok {
  color: #16a34a;
}

.ab-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cg-text);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ab-toast.show {
  opacity: 1;
}

/* 认证弹窗（修改密码 / 忘记密码 / 重新登录提示） */
.ab-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.ab-modal {
  background: var(--cg-card);
  width: 100%;
  max-width: 420px;
  border-radius: var(--cg-radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  padding: 26px 26px 22px;
}

.ab-modal h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ab-modal .ab-modal-desc {
  color: var(--cg-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.ab-modal input[type="text"],
.ab-modal input[type="password"] {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  margin-bottom: 12px;
}

.ab-modal input:focus {
  outline: none;
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.ab-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.ab-login-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 10px;
}

.ab-login-links a {
  color: var(--cg-primary);
  cursor: pointer;
  text-decoration: none;
}

.ab-login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .ab-editor {
    grid-template-columns: 1fr;
  }

  .ab-editor-left {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .ab-editor-right {
    position: static;
    background: #f8fafc;
  }

  .ab-preview {
    position: static;
    height: auto;
    min-height: 0;
  }

  .ab-preview-body {
    flex: none;
    min-height: 0;
    max-height: calc(100vh - 200px);
  }

  .ab-editor-meta-row {
    grid-template-columns: 1fr;
  }

  .ab-editor-foot {
    flex-direction: column;
    gap: 10px;
  }

  .ab-editor-foot-right {
    width: 100%;
    justify-content: flex-end;
  }

  .ab-item {
    grid-template-columns: 84px 1fr;
  }

  .ab-item-ops {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ab-thumb {
    width: 84px;
    height: 54px;
  }

  .ab-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ab-cover {
    flex-direction: column;
  }
}

/* ---------- AI 智能生成弹窗 ---------- */
.ab-modal-ai {
  max-width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 92vh;
  overflow-y: auto;
  z-index: 1101;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(14, 165, 233, 0.08);
}

.ab-modal-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  user-select: none;
  margin: -20px -20px 20px -20px;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  position: relative;
  overflow: hidden;
}

.ab-modal-drag-handle::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ab-modal-drag-handle::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ab-ai-header {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.ab-ai-header-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.ab-ai-header h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

.ab-ai-header-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin: 2px 0 0;
}

.ab-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ab-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.05);
}

/* ---------- AI Sections ---------- */
.ab-ai-section {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.ab-ai-section:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ab-ai-section-create {
  display: block;
}

.ab-ai-section-reprint {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-color: #fbbf24;
}

.ab-ai-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.ab-ai-label-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  flex-shrink: 0;
}

.ab-ai-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.ab-ai-optional {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ---------- Mode Grid ---------- */
.ab-ai-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ab-ai-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ab-ai-mode::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 10px;
}

.ab-ai-mode:hover {
  border-color: #818cf8;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.ab-ai-mode:active {
  transform: translateY(0);
}

.ab-ai-mode.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ab-ai-mode.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.ab-ai-mode-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s;
  flex-shrink: 0;
}

.ab-ai-mode.active .ab-ai-mode-icon {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.ab-ai-mode-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ab-ai-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  transition: color 0.25s;
}

.ab-ai-mode.active .ab-ai-mode-title {
  color: #4f46e5;
}

.ab-ai-mode-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.ab-ai-mode.active .ab-ai-mode-desc {
  color: #6366f1;
}

/* ---------- Template & Model Grids ---------- */
.ab-ai-tpl-grid,
.ab-ai-model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-ai-tpl,
.ab-ai-model {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ab-ai-tpl:hover,
.ab-ai-model:hover {
  border-color: #818cf8;
  color: #6366f1;
  background: #f5f3ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.ab-ai-tpl.active,
.ab-ai-model.active {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ab-ai-tpl.active::after,
.ab-ai-model.active::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Topic & Extra Inputs ---------- */
.ab-ai-topic {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  min-height: 80px;
  resize: vertical;
  transition: all 0.2s;
  background: #fff;
  line-height: 1.6;
}

.ab-ai-topic:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fafafe;
}

.ab-ai-topic::placeholder {
  color: #94a3b8;
}

.ab-ai-section input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}

.ab-ai-section input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fafafe;
}

.ab-ai-section input[type="text"]::placeholder {
  color: #94a3b8;
}

/* ---------- Reprint Content Editor ---------- */
.ab-reprint-editor-wrap {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.ab-reprint-editor-wrap:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.ab-reprint-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 8px;
}

.ab-reprint-toolbar-label {
  font-size: 12px;
  color: #94a3b8;
  margin-right: 4px;
}

.ab-paste-mode-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ab-paste-mode-btn.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

.ab-reprint-editor {
  width: 100%;
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.ab-reprint-editor::-webkit-scrollbar {
  width: 6px;
}

.ab-reprint-editor::-webkit-scrollbar-track {
  background: transparent;
}

.ab-reprint-editor::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 3px;
}

.ab-reprint-editor:empty::before {
  content: none;
}

.ab-reprint-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  color: #94a3b8;
  font-size: 13px;
}

.ab-reprint-placeholder-hint {
  font-size: 11px;
  color: #cbd5e1;
}

.ab-reprint-editor:has(> *) + .ab-reprint-placeholder,
.ab-reprint-editor:not(:empty) + .ab-reprint-placeholder {
  display: none;
}

/* Rendered content inside editor */
.ab-reprint-editor img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 6px;
  margin: 6px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.ab-reprint-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}

.ab-reprint-editor table th,
.ab-reprint-editor table td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: left;
}

.ab-reprint-editor table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.ab-reprint-editor table td {
  background: #fff;
  color: #475569;
}

.ab-reprint-editor h1,
.ab-reprint-editor h2,
.ab-reprint-editor h3,
.ab-reprint-editor h4,
.ab-reprint-editor h5,
.ab-reprint-editor h6 {
  font-weight: 700;
  color: #1e293b;
  margin: 10px 0 6px;
  line-height: 1.4;
}

.ab-reprint-editor h1 { font-size: 18px; }
.ab-reprint-editor h2 { font-size: 16px; }
.ab-reprint-editor h3 { font-size: 15px; }

.ab-reprint-editor p {
  margin: 4px 0;
}

.ab-reprint-editor blockquote {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 0 6px 6px 0;
  color: #92400e;
  font-style: italic;
}

.ab-reprint-editor ul,
.ab-reprint-editor ol {
  padding-left: 22px;
  margin: 6px 0;
}

.ab-reprint-editor li {
  margin: 2px 0;
}

.ab-reprint-editor hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 10px 0;
}

.ab-reprint-editor strong,
.ab-reprint-editor b {
  font-weight: 700;
  color: #1e293b;
}

.ab-reprint-editor a {
  color: #2563eb;
  text-decoration: underline;
}

.ab-reprint-editor svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.ab-reprint-editor figure {
  margin: 10px 0;
  text-align: center;
}

.ab-reprint-editor figcaption {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.ab-reprint-editor caption {
  caption-side: top;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 0;
}

.ab-reprint-editor form,
.ab-reprint-editor fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin: 8px 0;
}

.ab-reprint-editor legend {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  padding: 0 6px;
}

.ab-reprint-editor label {
  font-size: 13px;
  color: #334155;
  margin-right: 6px;
}

.ab-reprint-editor input[type="text"],
.ab-reprint-editor input[type="search"],
.ab-reprint-editor input[type="email"],
.ab-reprint-editor input[type="tel"],
.ab-reprint-editor input[type="number"],
.ab-reprint-editor input[type="url"],
.ab-reprint-editor input[type="password"],
.ab-reprint-editor input[type="date"],
.ab-reprint-editor input:not([type]),
.ab-reprint-editor select,
.ab-reprint-editor textarea {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  background: #f8fafc;
  color: #1e293b;
  max-width: 100%;
  box-sizing: border-box;
}

.ab-reprint-editor input[type="checkbox"],
.ab-reprint-editor input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: #0ea5e9;
  vertical-align: middle;
  margin: 0 3px 0 0;
}

.ab-reprint-editor button {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  background: #f1f5f9;
  color: #1e293b;
  cursor: default;
}

.ab-reprint-editor select {
  padding-right: 22px;
}

.ab-reprint-editor option {
  font-size: 12px;
}

.ab-reprint-editor mark {
  background: #fef08a;
  color: #713f12;
  padding: 0 2px;
  border-radius: 2px;
}

.ab-reprint-editor ins {
  text-decoration: none;
  background: #dcfce7;
  color: #166534;
  padding: 0 2px;
  border-radius: 2px;
}

.ab-reprint-editor del,
.ab-reprint-editor s,
.ab-reprint-editor strike {
  color: #94a3b8;
  text-decoration: line-through;
}

.ab-reprint-editor small {
  font-size: 11px;
  color: #64748b;
}

.ab-reprint-editor big {
  font-size: 16px;
}

.ab-reprint-editor u {
  text-decoration: underline;
}

.ab-reprint-editor pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 8px 0;
}

.ab-reprint-editor code,
.ab-reprint-editor kbd,
.ab-reprint-editor samp {
  font-family: Consolas, "Courier New", monospace;
  background: #f1f5f9;
  color: #be185d;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.ab-reprint-editor pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.ab-reprint-editor ruby rt {
  font-size: 10px;
  color: #94a3b8;
}

.ab-reprint-editor sub,
.ab-reprint-editor sup {
  font-size: 10px;
  line-height: 0;
}

.ab-reprint-editor dl {
  margin: 8px 0;
}

.ab-reprint-editor dt {
  font-weight: 600;
  color: #1e293b;
}

.ab-reprint-editor dd {
  margin: 2px 0 6px 22px;
  color: #475569;
}

/* ---------- Reprint Preview Meta ---------- */
.ab-reprint-preview {
  margin-top: 10px;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  overflow: hidden;
}

.ab-reprint-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  font-size: 12px;
  color: #92400e;
  flex-wrap: wrap;
}

.ab-reprint-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ab-reprint-meta-item svg {
  color: #d97706;
}

.ab-reprint-meta-item strong {
  color: #b45309;
  font-weight: 700;
}

.ab-reprint-badge {
  background: rgba(251, 191, 36, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ---------- Progress ---------- */
.ab-ai-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #4338ca;
  font-weight: 500;
}

.ab-ai-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #c7d2fe;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: ab-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ---------- Generate Button ---------- */
.ab-ai-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}

.ab-ai-generate-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ab-ai-generate-btn:hover {
  background: linear-gradient(135deg, #5b54e8, #8b5cf6);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.ab-ai-generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ---------- Unavailable Models ---------- */
.ab-ai-unavailable {
  opacity: 0.4;
  cursor: not-allowed !important;
  text-decoration: line-through;
}

.ab-ai-unavailable:hover {
  border-color: var(--cg-border) !important;
  color: var(--cg-muted) !important;
  background: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- 找回密码弹窗（可拖拽） ---------- */
.ab-modal-forgot {
  max-width: 420px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1101;
}

.ab-ai-stream {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--cg-primary-dark);
}

.ab-ai-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid #bae6fd;
  border-top-color: var(--cg-primary);
  border-radius: 50%;
  animation: ab-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.ab-ai-stream {
  margin-bottom: 12px;
}

.ab-ai-stream label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cg-text);
}

.ab-ai-stream-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cg-text);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-orb,
  .hero-logo,
  .exp-glow {
    animation: none !important;
  }
}

.section,
.func-view,
.cta,
.contact-grid,
.news-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

/* ================================================================
   移动端自适应与视觉精致化 · 统一补充（2026-08-17）
   ================================================================ */
@media (max-width: 768px) {
  .section-head h2 { font-size: 24px; }
  .biz-card h3 { font-size: 18px; line-height: 1.5; }
  .intro-card p { font-size: 15px; }
  .news-body h3 { font-size: 17px; }
  .contact-form h3 { font-size: 20px; }
  .hero-badge { margin-bottom: 16px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; line-height: 1.32; }
  .hero p { font-size: 15px; margin-bottom: 30px; }
  .hero-content { padding: 96px 16px 56px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 14px; }
  .biz-icon { width: 56px; height: 56px; }
  .biz-card { padding: 24px 18px; }
  .biz-card h3 { font-size: 17px; }
  .contact-form h3 { font-size: 19px; }
  .form-group label { font-size: 14px; }
  .qr-cap { font-size: 14px; }
  .news-tabs .news-tab { font-size: 15px; padding: 6px 14px; }
  .news-body h3 { font-size: 16px; }
  .footer-links h4,
  .footer-contact h4 { font-size: 15px; }
  .footer-desc { font-size: 13px; line-height: 1.7; }
}

@media (max-width: 480px) {
  .section { padding: 34px 0; }
  .hero { min-height: 78vh; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 13px; }
  .biz-card { padding: 22px 16px; }
  .news-card { padding: 12px; }
  .news-body h3 { font-size: 15px; }
  .news-body p { font-size: 13px; }
  .intro-card { padding: 26px 18px; }
  .intro-card p { font-size: 14px; }
}

/* 后台编辑器触控目标加大（沿用 ≤900 一列布局） */
@media (max-width: 900px) {
  .ab-btn-sm,
  .ab-blockbar-btn,
  .ab-seg button,
  .ab-ai-model {
    min-height: 40px;
  }
  .ab-btn-sm { padding: 10px 16px; font-size: 13.5px; }
  .ab-blockbar-btn { padding: 8px 12px; font-size: 12.5px; }
  .ab-seg button { padding: 9px 18px; }
  .ab-ai-model { padding: 10px 20px; font-size: 13px; }
}

/* 触屏设备(手机/平板)去粘滞 hover 影响 */
@media (hover: none) and (pointer: coarse) {
  .biz-card:hover, .news-card:hover, .cta-card:hover, .qr-card:hover { transform: none !important; }
  .exp-hot span:hover { transform: none !important; }
  .art-qr-card:hover .art-qr-img-wrap { transform: none !important; }
}
