/* ============================================================
   洋帆跨境 OCEANSAIL - 全站样式
   ============================================================ */
:root {
  --navy: #0a1c3d;
  --navy-2: #10264e;
  --primary: #2e6bff;
  --primary-dark: #1f4fd8;
  --violet: #7a3cff;
  --cyan: #00c6a7;
  --bg: #ffffff;
  --bg-alt: #f4f7fe;
  --text: #1c2b46;
  --muted: #5b6b85;
  --border: #e3e9f5;
  --grad: linear-gradient(135deg, #2e6bff 0%, #7a3cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(46,107,255,.08), rgba(122,60,255,.08));
  --shadow: 0 10px 30px rgba(20, 46, 110, .08);
  --shadow-lg: 0 24px 60px rgba(20, 46, 110, .16);
  --radius: 14px;
  --radius-lg: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .2em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); line-height: 1.35; }
.section-desc { color: var(--muted); margin-top: 12px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; max-width: 1200px; text-align: left; }
.section-head-row .eyebrow { margin-bottom: 6px; }
.section-head-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; transition: all .25s ease; white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(46,107,255,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,107,255,.42); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--primary); border-color: rgba(46,107,255,.4); }
.btn-outline:hover { background: rgba(46,107,255,.06); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(10,28,61,.2); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 28, 61, .92); backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,28,61,.35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text em { font-style: normal; font-size: .62rem; letter-spacing: .34em; opacity: .65; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .nav-drop > a {
  color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  transition: all .2s ease;
}
.main-nav > a:hover, .nav-drop > a:hover, .main-nav > a.active, .nav-drop > a.active {
  color: #fff; background: rgba(255,255,255,.12);
}
.caret { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 190px; opacity: 0; visibility: hidden; transition: all .22s ease;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--text); font-size: .92rem;
}
.drop-menu a:hover { background: var(--grad-soft); color: var(--primary); }
.header-cta { flex: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; margin-left: auto; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s ease; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(122,60,255,.35), transparent 60%),
              radial-gradient(900px 500px at 5% 110%, rgba(0,198,167,.18), transparent 55%),
              var(--navy);
}
.page-hero { padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 96px 0 110px; }
.hero-tag {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #cfe0ff;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.3; letter-spacing: .01em; }
.grad-text {
  background: linear-gradient(90deg, #6ea8ff, #b38bff 55%, #4ee1c3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: 1.06rem; color: rgba(255,255,255,.78); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; display: block; background: linear-gradient(90deg,#6ea8ff,#4ee1c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.6); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.orb-a { width: 420px; height: 420px; background: rgba(46,107,255,.45); top: -120px; right: -80px; }
.orb-b { width: 320px; height: 320px; background: rgba(122,60,255,.4); bottom: -120px; left: 20%; }
.orb-c { width: 260px; height: 260px; background: rgba(0,198,167,.28); top: 30%; left: -100px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; }

/* Hero 右侧模拟卡片 */
.hero-visual { position: relative; min-height: 380px; }
.mock-card {
  position: absolute; background: rgba(255,255,255,.97); color: var(--text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px;
  animation: float 6s ease-in-out infinite;
}
.mock-a { width: min(380px, 100%); top: 30px; left: 0; }
.mock-b { width: 250px; right: 0; bottom: 0; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mock-head { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-head span { width: 9px; height: 9px; border-radius: 50%; background: #e3e9f5; }
.mock-head span:first-child { background: #ff8f8f; }
.mock-title { font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.mock-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: .85rem; }
.mock-row em { font-style: normal; width: 60px; color: var(--muted); flex: none; }
.mock-row .bar { flex: 1; height: 8px; border-radius: 99px; background: #eef2fb; overflow: hidden; }
.mock-row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.mock-row b { width: 40px; text-align: right; color: var(--primary); }
.mock-foot { margin-top: 14px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; }
.mock-badge { display: inline-block; font-size: .78rem; font-weight: 700; color: #0aa06e; background: rgba(10,160,110,.12); padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.mock-order { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: .92rem; }
.mock-line { font-size: .86rem; color: var(--muted); margin: 6px 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.35); }
.breadcrumb b { color: #fff; font-weight: 600; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-hero .hero-sub { margin-top: 14px; }
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- 网格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- 解决方案 ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow); transition: all .28s ease;
  display: flex; flex-direction: column;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(46,107,255,.35); }

/* 首页带图方案卡 */
.sol-card.sol-rich { padding: 0; overflow: hidden; }
.sol-cover { display: block; height: 170px; overflow: hidden; background: var(--grad-soft); }
.sol-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sol-rich:hover .sol-cover img { transform: scale(1.06); }
.cover-fallback-mini { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; font-size: 1.2rem; color: var(--primary); opacity: .55; letter-spacing: .1em; }
.sol-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sol-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.sol-body > p { color: var(--muted); font-size: .92rem; }
.sol-body .check-list { margin: 14px 0 18px; flex: 1; }

.sol-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--grad-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.sol-icon svg { width: 30px; height: 30px; }
.sol-card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 10px; }
.sol-card > p { color: var(--muted); font-size: .93rem; flex: none; }
.check-list { margin: 16px 0 20px; flex: 1; }
.check-list li { position: relative; padding-left: 26px; margin: 8px 0; font-size: .92rem; color: var(--text); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(46,107,255,.12);
  color: var(--primary); font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.link-more { font-weight: 700; font-size: .95rem; }
.link-more span { display: inline-block; transition: transform .2s ease; }
.sol-card:hover .link-more span { transform: translateX(4px); }
.sol-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.sol-mini { flex-direction: row; align-items: center; gap: 20px; }
.sol-mini h3 { margin-bottom: 6px; }
.sol-mini p { font-size: .9rem; color: var(--muted); }
.sol-mini .btn { flex: none; }

/* ---------- 系统能力 / 优势 / 服务 ---------- */
.sys-card, .why-card, .svc-card, .pain-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: all .25s ease;
}
.sys-card:hover, .why-card:hover, .svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sys-emoji { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.sys-card h3, .why-card h3, .svc-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.sys-card p, .why-card p, .svc-card p, .pain-card p { font-size: .9rem; color: var(--muted); }
.why-card { border-top: 3px solid transparent; }
.why-card:hover { border-top-color: var(--primary); }
.why-card strong {
  font-size: 1rem; background: var(--grad-soft); color: var(--primary);
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* 痛点卡片 */
.pain-card { border-left: 4px solid #ff7d7d; background: #fff; }
.pain-card:hover { box-shadow: var(--shadow); }
.pain-mark {
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,125,125,.12); color: #e04b4b;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.pain-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }

/* 方案亮点 */
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.feature-card h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature-card .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); flex: none; }
.feature-card p { font-size: .9rem; color: var(--muted); }

/* 方案页 hero 图文 */
.sol-hero { padding-bottom: 84px; }
.sol-hero-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.sol-hero-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); margin: 0;
}
.sol-hero-figure img { width: 100%; height: 400px; object-fit: cover; display: block; }
.figure-fallback {
  height: 400px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(46,107,255,.55), rgba(122,60,255,.55));
  color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: .1em;
}
.figure-badges {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.figure-badges span {
  background: rgba(10,28,61,.72); backdrop-filter: blur(6px); color: #fff;
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
/* 亮点图文分栏 */
.feature-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.feature-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); }
.feature-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-figure .figure-fallback { position: absolute; inset: 0; height: 100%; }
.figure-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 24px 24px;
  background: linear-gradient(transparent, rgba(10,28,61,.88)); color: #fff;
}
.figure-name { font-weight: 800; font-size: 1.15rem; }
.figure-note { font-size: .88rem; color: rgba(255,255,255,.78); margin-top: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.steps span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(46,107,255,.3);
}
.steps h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.steps p { font-size: .88rem; color: var(--muted); }

/* ---------- 新闻卡片 ---------- */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card > a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.news-cover { height: 170px; background: #eef2fb; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.cover-fallback { display: flex; align-items: center; justify-content: center; background: var(--grad-soft); }
.cover-date { font-size: 1.5rem; font-weight: 800; color: var(--primary); opacity: .6; letter-spacing: .05em; }
.news-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.tag { background: rgba(46,107,255,.1); color: var(--primary); font-weight: 600; padding: 2px 10px; border-radius: 99px; font-size: .76rem; }
.views { margin-left: auto; }
.news-body h3 { font-size: 1.02rem; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.news-summary { font-size: .88rem; color: var(--muted); }

/* 客户评价 */
.quote-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.quote-card::before {
  content: "❝"; position: absolute; top: 14px; right: 22px; font-size: 2.4rem;
  color: rgba(46,107,255,.15); line-height: 1;
}
.quote-card p { font-size: .95rem; color: var(--text); }
.quote-card footer { margin-top: 16px; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow { width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .25s ease; flex: none; margin-top: -4px; }
.faq-item[open] .faq-arrow { transform: rotate(225deg); margin-top: 4px; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .93rem; }
.related-sol { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .25s ease; color: inherit; }
.related-sol:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(46,107,255,.35); }
.related-sol h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 8px; }
.related-sol p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  padding: 72px 0; text-align: center; color: #fff;
  background: radial-gradient(800px 400px at 20% 0%, rgba(122,60,255,.5), transparent 60%),
              radial-gradient(700px 380px at 85% 100%, rgba(0,198,167,.35), transparent 55%),
              var(--navy);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 12px 0 28px; color: rgba(255,255,255,.75); }

/* ---------- 新闻页布局 ---------- */
.news-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.news-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; min-width: 0; }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }
.side-box h3 { font-size: 1rem; color: var(--navy); margin-bottom: 14px; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; min-width: 0;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-list a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.cat-list a:hover { background: var(--bg-alt); }
.cat-list a.active { background: var(--grad-soft); color: var(--primary); font-weight: 700; }
.cat-list a i { font-style: normal; font-size: .78rem; color: var(--muted); float: right; }
.cat-list a.active i { color: var(--primary); }

/* 后台:文章分类管理 */
.cat-add-form { display: flex; gap: 10px; margin-bottom: 6px; }
.cat-add-input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: .94rem; }
.cat-add-input:focus { outline: none; border-color: var(--primary); }
.cat-rename-form { display: flex; gap: 8px; align-items: center; }
.cat-name-input { flex: 1; min-width: 0; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .92rem; }
.cat-name-input:focus { outline: none; border-color: var(--primary); }
.cat-sort-cell { display: flex; align-items: center; gap: 6px; }
.cat-sort-cell form { display: inline; }
.cat-order { font-size: .8rem; color: var(--muted); margin-left: 4px; }
.cat-zero { color: var(--muted); font-size: .88rem; }
.mini-btn:disabled { opacity: .38; cursor: not-allowed; }
.admin-table td .cat-rename-form + span { display: none; }
.side-cta { background: linear-gradient(160deg, #0d2247, #1a3a76); color: #fff; border: none; }
.side-cta h3 { color: #fff; }
.side-cta p { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.filter-tip { background: var(--grad-soft); border-radius: 10px; padding: 10px 16px; font-size: .9rem; margin-bottom: 20px; color: var(--text); }
.pagination { display: flex; gap: 8px; margin-top: 30px; justify-content: center; }
.pagination a, .pagination .current {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: .92rem;
}
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-state .btn { margin-top: 16px; }

/* ---------- 文章页 ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.article-main {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 38px 42px; box-shadow: var(--shadow);
}
.article-cover { border-radius: var(--radius); margin-bottom: 26px; }
.article-lead {
  background: var(--grad-soft); border-left: 4px solid var(--primary);
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--text); font-size: .97rem; margin-bottom: 24px;
}
.article-content { font-size: 1rem; color: var(--text); }
.article-content h2 {
  font-size: 1.3rem; color: var(--navy); margin: 34px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--primary); line-height: 1.4;
}
.article-content h3 { font-size: 1.1rem; color: var(--navy); margin: 26px 0 10px; }
.article-content p { margin: 12px 0; color: #33445f; }
.article-content ul, .article-content ol { margin: 14px 0; padding-left: 4px; }
.article-content li { position: relative; padding-left: 24px; margin: 8px 0; color: #33445f; }
.article-content ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--primary);
}
.article-content ol { counter-reset: oli; }
.article-content ol li { counter-increment: oli; }
.article-content ol li::before {
  content: counter(oli) "."; position: absolute; left: 2px; font-weight: 700; color: var(--primary); font-size: .9rem;
}
.article-content blockquote {
  margin: 18px 0; padding: 14px 18px; background: var(--bg-alt);
  border-left: 4px solid var(--violet); border-radius: 0 10px 10px 0; color: var(--muted);
}
.article-content a { text-decoration: underline; }
.article-content img { border-radius: 12px; margin: 16px 0; }
.article-content strong { color: var(--navy); }
.article-share { margin-top: 34px; border-top: 1px dashed var(--border); padding-top: 22px; }
.article-share p { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.share-note { font-size: .88rem; color: var(--muted); background: var(--bg-alt); padding: 12px 16px; border-radius: 10px; }
.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.related-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--text); font-size: .92rem; line-height: 1.55; }
.related-list a:hover { color: var(--primary); }
.related-list time { font-size: .78rem; color: var(--muted); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.about-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin-bottom: 18px; }
.about-copy p { color: var(--muted); margin: 10px 0; }
.about-copy strong { color: var(--text); }
.about-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.about-nums div { background: var(--grad-soft); border-radius: 12px; padding: 16px 10px; text-align: center; }
.about-nums strong { display: block; font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-nums span { font-size: .8rem; color: var(--muted); }
.about-values { display: flex; flex-direction: column; gap: 16px; }
.about-values article { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.about-values span { font-size: 1.6rem; }
.about-values h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.about-values p { font-size: .9rem; color: var(--muted); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list span { font-size: 1.4rem; }
.contact-list b { color: var(--navy); display: block; font-size: .95rem; }
.contact-list p { color: var(--muted); font-size: .92rem; }
.contact-tips { margin-top: 30px; background: var(--grad-soft); border-radius: var(--radius); padding: 20px 22px; }
/* 联系页二维码卡片 */
.contact-qr-card { margin-top: 26px; display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 22px rgba(16,27,51,.06); }
.contact-qr-frame { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: #f4f7fe; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.contact-qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-qr-empty { color: var(--muted); font-size: .8rem; border-style: dashed; }
.contact-qr-text b { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.contact-qr-text p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.contact-tips h3 { font-size: .98rem; color: var(--navy); margin-bottom: 10px; }
.contact-tips li { position: relative; padding-left: 20px; margin: 6px 0; font-size: .9rem; color: var(--muted); }
.contact-tips li::before { content: "·"; position: absolute; left: 6px; font-weight: 900; color: var(--primary); }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-form h2 { color: var(--navy); margin-bottom: 20px; font-size: 1.3rem; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .2s ease; background: #fff; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,107,255,.12);
}
.form-field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { text-align: center; padding: 50px 20px; }
.form-success h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { font-size: .9rem; margin: 14px 0; }
.footer-contact { line-height: 2; }
.footer-col h4 { color: #fff; font-size: .98rem; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.62); font-size: .9rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-bottom p { margin: 0; }

/* 浮动咨询按钮 */
.float-cta {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 28px rgba(46,107,255,.4);
  transition: transform .2s ease;
}
.float-cta:hover { transform: translateY(-3px); color: #fff; }
.float-cta svg { width: 18px; height: 18px; }

/* 移动端底部快捷操作栏(参考行业惯例:电话 + 产品 + 主 CTA),桌面隐藏 */
.mobile-bar { display: none; }
.contact-form { scroll-margin-top: 84px; }

/* ============================================================
   后台管理
   ============================================================ */
.admin-body { background: #eef2f9; }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(900px 500px at 85% 0%, rgba(122,60,255,.3), transparent 60%), var(--navy);
}
.login-card {
  width: min(400px, 100%); background: #fff; border-radius: var(--radius-lg);
  padding: 36px 32px; box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo svg { width: 46px; height: 46px; margin: 0 auto 10px; display: block; }
.login-logo h1 { font-size: 1.2rem; color: var(--navy); }
.login-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 10px 14px; border-radius: 9px; font-size: .88rem; margin-bottom: 14px; }
.login-tip { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 14px; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px; flex: none; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
}
.admin-side-title { font-weight: 800; font-size: 1rem; padding: 0 10px 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-side nav a { color: rgba(255,255,255,.75); padding: 11px 12px; border-radius: 9px; font-size: .94rem; }
.admin-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side nav a.active { background: var(--grad); color: #fff; font-weight: 600; }
.admin-logout { color: rgba(255,255,255,.55); padding: 11px 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.admin-logout:hover { color: #ff9a9a; }
.admin-main { flex: 1; padding: 28px 32px; min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-header h2 { font-size: 1.4rem; color: var(--navy); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card b { font-size: 1.9rem; color: var(--navy); display: block; line-height: 1.2; }
.stat-card span { font-size: .85rem; color: var(--muted); }

.admin-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.admin-panel h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 14px; }
.admin-panel h3 small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h3 { margin-bottom: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .84rem; padding: 10px 8px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: #f8faff; }
.admin-table td a { color: var(--navy); font-weight: 500; }
.admin-table td a:hover { color: var(--primary); }
.empty-row { text-align: center; color: var(--muted); padding: 30px 0 !important; }
.status { padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.status.pub { background: rgba(10,160,110,.12); color: #0a8f61; }
.status.draft { background: rgba(230,162,60,.15); color: #b97d1d; }
.mini-btn {
  display: inline-block; padding: 5px 12px; border-radius: 8px; font-size: .8rem;
  background: rgba(46,107,255,.1); color: var(--primary); border: none; font-weight: 600;
}
.mini-btn:hover { background: rgba(46,107,255,.18); }
.mini-btn.danger { background: rgba(220,53,69,.1); color: #c0392b; }
.mini-btn.danger:hover { background: rgba(220,53,69,.18); }
.actions { display: flex; gap: 8px; align-items: center; }
.actions form { display: inline; }
.admin-search { display: flex; gap: 10px; margin-bottom: 18px; max-width: 420px; }
.admin-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.form-ok { background: rgba(10,160,110,.1); color: #0a8f61; border: 1px solid rgba(10,160,110,.25); padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.form-err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.form-warn { background: #fff8e6; color: #8a5a00; border: 1px solid #ffdf9e; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; line-height: 1.65; }
/* 后台:账号安全 */
.pwd-form { max-width: 620px; }
.pwd-tips ul { list-style: none; }
.pwd-tips li { position: relative; padding-left: 20px; margin: 8px 0; font-size: .9rem; color: var(--muted); line-height: 1.65; }
.pwd-tips li::before { content: "·"; position: absolute; left: 6px; font-weight: 900; color: var(--primary); }
.pwd-tips code { background: #eef2f9; border-radius: 4px; padding: 1px 6px; font-size: .85rem; color: var(--navy); }
/* 404 页面 */
.err-hero { text-align: center; }
.err-code { font-size: 5.4rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; letter-spacing: -2px; }
.err-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.err-sub-title { font-size: 1.15rem; color: var(--navy); margin: 8px 0 20px; }
.err-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 40px; }
.err-link-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.err-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.err-link-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.err-link-card b { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.err-link-card p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.err-post-list { list-style: none; }
.err-post-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.err-post-list a { color: var(--navy); font-size: .95rem; }
.err-post-list a:hover { color: var(--primary); }
.err-post-list span { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.tips-list li { position: relative; padding-left: 24px; margin: 10px 0; font-size: .92rem; color: var(--muted); }
.tips-list li::before { content: "💡"; position: absolute; left: 0; }

/* 文章编辑 */
.editor-grid { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f4f7fe;
  border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0;
}
.editor-toolbar button {
  min-width: 34px; height: 32px; padding: 0 8px; border: none; background: transparent;
  border-radius: 7px; font-size: .9rem; color: var(--navy);
}
.editor-toolbar button:hover { background: rgba(46,107,255,.14); color: var(--primary); }
.tb-sep { width: 1px; background: var(--border); margin: 4px 4px; }
.editor-area {
  min-height: 460px; max-height: 70vh; overflow-y: auto; padding: 20px 22px;
  border: 1px solid var(--border); border-radius: 0 0 10px 10px; background: #fff;
  outline: none; font-size: 1rem; line-height: 1.8;
}
.editor-area:empty::before { content: attr(data-placeholder); color: #a5b1c6; }
.editor-area:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,107,255,.1); }
.editor-area h2 { font-size: 1.35rem; margin: 18px 0 10px; }
.editor-area h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.editor-area p { margin: 10px 0; }
.editor-area ul, .editor-area ol { padding-left: 26px; margin: 10px 0; }
.editor-area blockquote { border-left: 4px solid var(--violet); background: var(--bg-alt); padding: 10px 16px; margin: 12px 0; border-radius: 0 8px 8px 0; }
.editor-area img { border-radius: 10px; margin: 12px 0; max-width: 100%; }
.editor-area a { text-decoration: underline; }
.field-tip { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.cover-preview {
  height: 130px; background: #f4f7fe; border: 1px dashed var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px;
  color: var(--muted); font-size: .85rem;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
/* 封面选择弹窗 */
.cover-picker-mask { position: fixed; inset: 0; background: rgba(16, 27, 51, .55); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cover-picker { background: #fff; border-radius: 14px; width: 100%; max-width: 720px; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(16, 27, 51, .3); }
.cover-picker-tip { padding: 0 20px 12px; margin: 0; font-size: .82rem; color: var(--muted); }
.cover-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.cover-picker-head h3 { font-size: 1.05rem; color: var(--navy); }
.cover-picker-close { cursor: pointer; font-size: 1.1rem; color: var(--muted); line-height: 1; padding: 4px 8px; border-radius: 6px; }
.cover-picker-close:hover { background: #f1f5fb; color: var(--navy); }
.cover-picker-grid { padding: 18px 22px 24px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cover-picker-item { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .15s, transform .15s; background: #f4f7fe; }
.cover-picker-item:hover { border-color: var(--violet); transform: translateY(-2px); }
.cover-picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-picker-badge { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(16, 27, 51, .72); color: #fff; font-size: .78rem; text-align: center; padding: 5px 0; }
.editor-right .admin-panel { margin-bottom: 18px; }
.editor-footer { position: sticky; bottom: 0; background: linear-gradient(transparent, #eef2f9 30%); padding: 18px 0 6px; }
.thumb { width: 40px; height: 28px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.cover-actions { display: flex; gap: 10px; }
/* 后台:二维码设置 */
.qr-setting { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.qr-setting-preview { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 12px; background: #f4f7fe; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: .82rem; }
.qr-setting-preview img { width: 100%; height: 100%; object-fit: contain; }
.qr-setting-fields { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-table code { background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; font-size: .8rem; color: var(--primary); }

/* 方案区块编辑器 */
.blocks-panel { display: flex; flex-direction: column; }
.blocks-wrap { display: flex; flex-direction: column; gap: 14px; min-height: 60px; }
.blocks-wrap:empty::after {
  content: "还没有内容区块,从下方选择类型添加"; color: #a5b1c6; font-size: .88rem;
  text-align: center; padding: 26px 0; border: 1px dashed var(--border); border-radius: 10px;
}
.block-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fbfcff; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.block-type {
  font-size: .78rem; font-weight: 700; color: var(--primary);
  background: rgba(46,107,255,.1); padding: 3px 12px; border-radius: 99px;
}
.block-ops { display: flex; gap: 6px; }
.op-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border);
  background: #fff; color: var(--navy); font-size: .85rem; font-weight: 700;
}
.op-btn:hover { border-color: var(--primary); color: var(--primary); }
.op-btn.danger:hover { border-color: #d64541; color: #d64541; background: #fdf1f1; }
.block-add-bar { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 14px; }
.add-label { font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: 10px; }
.add-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.add-btns .btn { padding: 7px 14px; font-size: .85rem; }
.img-line { display: flex; gap: 8px; }
.img-line input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; min-width: 0; }
.blk-img-preview { display: none; width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.field-hint { color: var(--muted); font-weight: 400; font-size: .78rem; margin-left: 4px; }
.seo-panel { border-top: 3px solid rgba(0,198,167,.5); }

/* ---------- 前台:自由区块渲染 ---------- */
.text-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.text-split.no-image { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.text-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.text-figure img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.text-paragraphs p { margin: 0 0 16px; color: #33445f; font-size: 1.02rem; line-height: 1.9; }
.text-split.no-image .text-paragraphs p { font-size: 1.05rem; }
.stats-section { background: var(--navy); color: #fff; }
.stats-section .section-head h2 { color: #fff; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item {
  text-align: center; padding: 30px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.stat-item strong {
  display: block; font-size: 2.1rem; font-weight: 800;
  background: linear-gradient(90deg, #6ea8ff, #4ee1c3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-item span { font-size: .88rem; color: rgba(255,255,255,.65); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); }
.section-head h2:only-child { margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 70px 0 90px; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-extra { grid-template-columns: 1fr; }
  .sol-hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .sol-hero-figure img { height: 300px; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-figure { min-height: 280px; }
  .text-split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .news-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .news-side .side-box { flex: 1 1 260px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-qr-card { gap: 16px; padding: 18px; }
  .contact-qr-frame { width: 108px; height: 108px; }
  .editor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .text-split, .text-split.no-image { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-nums { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  /* 关键修复:header 的 backdrop-filter 会把 fixed 子菜单的定位限制在头部内,
     导致抽屉塌缩、子菜单显示为幽灵空块。移动端改用纯色背景。 */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0a1c3d; }
  /* 汉堡按钮变 X */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* 全屏抽屉菜单:盖住头部以下全部内容,不再露出页面 */
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 12px 16px calc(30px + env(safe-area-inset-bottom)); gap: 2px;
    display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; animation: navIn .2s ease; }
  body.nav-locked { overflow: hidden; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .main-nav > a { padding: 14px 14px; font-size: 1rem; border-radius: 12px; }
  .nav-drop > a { justify-content: space-between; width: 100%; padding: 14px 14px; font-size: 1rem; border-radius: 12px; }
  .nav-drop > a .caret { transition: transform .2s ease; flex: none; }
  .nav-drop.open > a { color: #fff; background: rgba(255,255,255,.12); }
  .nav-drop.open > a .caret { transform: rotate(180deg); }
  /* 子菜单完全由 .open 类驱动,触屏上不再依赖 hover/focus(修复幽灵空块) */
  .drop-menu, .nav-mega .mega-menu {
    position: static !important; transform: none !important;
    opacity: 1 !important; visibility: visible !important;
    display: none !important; box-shadow: none !important;
    border-radius: 12px; width: 100% !important; left: 0 !important; top: 0 !important;
  }
  .nav-drop.open > .drop-menu, .nav-mega.open > .mega-menu { display: block !important; animation: navIn .18s ease; }
  .drop-menu { background: rgba(255,255,255,.07); padding: 6px; margin: 6px 0 4px; }
  .drop-menu a { color: rgba(255,255,255,.85); padding: 13px 12px; font-size: .95rem; border-radius: 9px; }
  .drop-menu a:hover, .drop-menu a:active { background: rgba(255,255,255,.09); color: #fff; }
  .nav-mega .mega-menu { background: #fff; padding: 14px 12px; margin: 6px 0 4px; }
  .nav-mega .mega-title { font-size: .88rem; padding-bottom: 8px; margin-bottom: 6px; }
  .nav-mega .mega-col a { padding: 11px 8px; font-size: .92rem; color: var(--text); }
  .mega-viewall { display: block; text-align: center; margin-top: 12px; padding: 12px; border-top: 1px solid var(--border); color: var(--primary); font-weight: 700; font-size: .95rem; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-main { padding: 26px 20px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; }
  .admin-side-title { border: none; padding: 0 10px; margin: 0; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .admin-side nav a { padding: 8px 10px; font-size: .85rem; }
  .admin-logout { border: none; padding: 8px 10px; }
  .admin-main { padding: 18px; }
  .float-cta span { display: none; }
  .float-cta { padding: 14px; }
  /* ---- 底部快捷操作栏 ---- */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: 4px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(16, 27, 51, .07);
  }
  .mb-item {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--navy); font-size: .68rem; font-weight: 600; line-height: 1;
    padding: 4px 9px; border-radius: 8px;
  }
  .mb-item svg { width: 21px; height: 21px; }
  .mb-item:active { color: var(--primary); }
  .mb-cta {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem;
    padding: 13px 10px; border-radius: 999px;
    box-shadow: 0 8px 18px rgba(46, 107, 255, .35);
  }
  .mb-cta svg { width: 17px; height: 17px; flex: none; }
  .mb-cta:active { transform: scale(.97); }
  /* 悬浮咨询球与底栏功能重复,移动端隐藏 */
  .float-cta { display: none !important; }
  /* 给页面留出底栏高度并留少量余量,避免遮挡页脚 */
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 产品中心 mega menu ---------- */
.nav-mega .mega-menu {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(6px);
  top: 62px; width: min(880px, 94vw);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px 26px; opacity: 0; visibility: hidden; transition: all .22s ease; z-index: 99;
}
.nav-mega:hover .mega-menu, .nav-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-title { font-weight: 800; color: var(--navy); font-size: .95rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.mega-col a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.mega-col a:hover { background: var(--grad-soft); color: var(--primary); }
.mega-viewall { display: block; margin-top: 14px; padding: 12px 8px 0; border-top: 1px solid var(--border); color: var(--primary); font-weight: 700; font-size: .92rem; }
.mega-viewall:hover { color: var(--navy); }

/* ---------- 首页:产品矩阵 ---------- */
.prod-group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-group { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.prod-group-title { font-weight: 800; color: var(--navy); font-size: 1.05rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.prod-group ul { list-style: none; }
.prod-group a { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 10px; color: var(--text); font-size: .93rem; transition: background .15s, color .15s; }
.prod-group a:hover { background: var(--grad-soft); color: var(--primary); }
.prod-group li:last-child { margin-bottom: 0; }

/* ---------- 首页/案例页:案例卡 ---------- */
.case-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.case-cover { position: relative; display: block; height: 190px; overflow: hidden; background: var(--grad-soft); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-industry { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--primary); font-size: .78rem; font-weight: 800; padding: 5px 13px; border-radius: 999px; }
.case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.case-body h3 { font-size: 1.04rem; line-height: 1.45; }
.case-body h3 a { color: var(--navy); }
.case-body h3 a:hover { color: var(--primary); }
.case-body > p { color: var(--muted); font-size: .9rem; }
.case-client { color: var(--primary); font-size: .84rem; font-weight: 700; }
.case-data { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.case-data strong { color: var(--primary); font-size: 1.5rem; }
.case-data span { color: var(--muted); font-size: .84rem; margin-right: auto; }
.case-data-row { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.case-data-pill { background: var(--grad-soft); border-radius: 12px; padding: 8px 14px; }
.case-data-pill strong { color: var(--primary); font-size: 1.15rem; margin-right: 6px; }
.case-data-pill span { color: var(--muted); font-size: .8rem; }
.case-data-row .link-more { margin-left: auto; }
.case-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card-wide { flex-direction: row; }
.case-card-wide .case-cover { width: 42%; flex: none; height: auto; min-height: 230px; }
.case-card-wide .case-body { padding: 24px 26px; }

/* ---------- 案例详情 ---------- */
.hero-client { margin-top: 14px; color: rgba(255,255,255,.85); font-size: .95rem; }
.case-result-band { display: grid; grid-template-columns: repeat(4, 1fr); background: linear-gradient(135deg, var(--primary), #1f4fd6); border-radius: 18px; padding: 34px 20px; box-shadow: var(--shadow-lg); }
.case-result-band .stat-item { text-align: center; padding: 6px 12px; }
.case-result-band .stat-item strong { display: block; font-size: 2.2rem; color: #fff; }
.case-result-band .stat-item span { color: rgba(255,255,255,.85); font-size: .9rem; }
.case-hero-figure { margin: 0 0 34px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.case-hero-figure img { width: 100%; height: 420px; object-fit: cover; display: block; }
.case-article { max-width: 860px; margin: 0 auto; }
.case-article p { color: #41546f; margin-bottom: 14px; font-size: 1.02rem; line-height: 1.9; }
.case-article .lead { font-size: 1.12rem; font-weight: 700; color: var(--navy); }

/* ---------- 产品中心落地页 ---------- */
.prod-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-page-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.prod-page-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.prod-icon { font-size: 1.9rem; display: inline-block; margin-bottom: 14px; }
.prod-page-card h3 { color: var(--navy); font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; }
.prod-page-card h3 em { font-style: normal; color: var(--primary); opacity: 0; transition: opacity .2s; }
.prod-page-card:hover h3 em { opacity: 1; }
.prod-page-card p { color: var(--muted); font-size: .89rem; margin-top: 9px; }

@media (max-width: 960px) {
  .prod-group-grid, .prod-page-grid { grid-template-columns: 1fr 1fr; }
  .case-list-grid { grid-template-columns: 1fr; }
  .case-card-wide { flex-direction: column; }
  .case-card-wide .case-cover { width: 100%; height: 190px; }
  .case-result-band { grid-template-columns: 1fr 1fr; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .prod-group-grid, .prod-page-grid { grid-template-columns: 1fr; }
  .case-result-band { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mega-grid { grid-template-columns: 1fr; }
}

/* ============================= 产品详情页 ============================= */
.prod-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.prod-tag {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(46,107,255,.10); border: 1px solid rgba(46,107,255,.25);
  color: var(--primary); font-size: .84rem; font-weight: 600; letter-spacing: .02em;
}
.prod-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 300px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(46,107,255,.14), rgba(122,60,255,.10));
  border: 1px dashed rgba(46,107,255,.35);
}
.prod-fallback-icon { font-size: 4.2rem; line-height: 1; }
.prod-fallback-name { font-size: 1.3rem; font-weight: 800; color: var(--primary); letter-spacing: .04em; }
.prod-sol-link {
  display: inline-block; padding: 10px 20px; border-radius: 12px;
  background: rgba(255,255,255,.92); color: var(--primary);
  font-size: .9rem; font-weight: 700; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.prod-sol-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,107,255,.18); }
@media (max-width: 768px) {
  .prod-fallback { min-height: 200px; }
  .prod-tag { font-size: .78rem; padding: 6px 13px; }
}

/* ============================= 移动端 UI 优化 ============================= */
@media (max-width: 720px) {
  /* 首页 hero:留白收紧 + 数据改 2×2 网格(避免孤行) + 按钮全宽易点 */
  .hero-inner { padding: 44px 0 60px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 32px; }
  .hero-stats strong { font-size: 1.42rem; }
  .hero-stats span { font-size: .78rem; }
  .hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; text-align: center; margin: 0; }

  /* 区块节奏收紧 */
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 1.42rem; }
  .section-head { margin-bottom: 26px; }

  /* 首页产品矩阵:分组内产品 2 列,卡内边距收紧 */
  .prod-group-grid { gap: 14px; }
  .prod-group { padding: 18px 14px; border-radius: 14px; }
  .prod-group-title { font-size: .96rem; padding-bottom: 9px; margin-bottom: 6px; }
  .prod-group ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 4px; }
  .prod-group a { padding: 9px 6px; font-size: .85rem; gap: 5px; }

  /* 产品中心落地页卡片:紧凑化,提升滑动效率 */
  .prod-page-grid { gap: 12px; }
  .prod-page-card { padding: 15px 14px; border-radius: 13px; }
  .prod-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .prod-page-card h3 { font-size: .95rem; }
  .prod-page-card p { margin-top: 5px; font-size: .84rem; }

  /* 案例卡收紧 */
  .case-body { padding: 16px 15px 18px; }
  .case-card-wide .case-body { padding: 18px 15px; }
  .case-cover { height: 170px; }
  .case-result-band { padding: 20px 14px; }
  .case-result-band .stat-item strong { font-size: 1.55rem; }
  .case-hero-figure img { height: 220px; }

  /* 页脚:2 列布局,品牌列占整行,缩短滚动长度 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding-bottom: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col h4 { margin-bottom: 8px; font-size: .92rem; }
  .footer-col a { padding: 5px 0; font-size: .85rem; }
  .footer-bottom { padding: 14px 0; font-size: .78rem; }

  /* 触控目标加大 */
  .faq-item summary { padding: 15px 2px; }
  .drop-menu a { padding: 13px 12px; }
  .mega-col a { padding: 11px 8px; }

  /* 浮动咨询按钮不遮挡内容 */
  .float-cta { right: 14px; bottom: 16px; }

  /* 文章/详情排版 */
  .article-main { padding: 22px 16px; }
  .page-hero { padding: 40px 0 46px; }
}

/* ---------- 页脚移动端二次紧凑(针对真机反馈) ---------- */
@media (max-width: 720px) {
  .site-footer { padding: 34px 0 0; }
  .footer-brand .logo { margin-bottom: 2px; }
  .footer-brand .logo-mark { width: 26px; height: 26px; }
  .footer-brand .logo-text { font-size: 1.02rem; }
  .footer-brand .logo-text em { font-size: .68rem; letter-spacing: .18em; }
  .footer-brand p { margin: 8px 0; font-size: .85rem; line-height: 1.6; }
  .footer-contact { line-height: 1.8; font-size: .88rem; }
  .footer-grid { gap: 16px 12px; padding-bottom: 18px; }
  .footer-col h4 { font-size: .88rem; margin-bottom: 5px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-col a { padding: 4px 0; font-size: .82rem; line-height: 1.5; }
}
