/* ============================================================
   邑泊ERP 官网样式 — 支持4主题切换 + 电脑/平板/手机自适应
   主题：tech-blue 蓝白科技版 / dark 暗黑专业版 / warm 温色休闲版 / elegant 清风古雅版
   ============================================================ */
:root {
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* ---------- 主题变量 ---------- */
html[data-theme="tech-blue"] {
  --primary: #1a5fb4; --primary-dark: #124a91; --primary-light: #e8f1fc;
  --accent: #f59e0b;
  --bg: #f7fafd; --bg-alt: #eef4fb; --surface: #ffffff;
  --text: #1f2937; --text-muted: #6b7280; --border: #e5e7eb;
  --header-bg: #ffffff; --hero-bg1: #1a5fb4; --hero-bg2: #2f80ed; --hero-text: #ffffff;
  --footer-bg: #10243d; --footer-text: #b8c7d9;
}
html[data-theme="dark"] {
  --primary: #4f8ef7; --primary-dark: #2f6ee0; --primary-light: #1b2537;
  --accent: #fbbf24;
  --bg: #0f1520; --bg-alt: #141c2b; --surface: #1b2333;
  --text: #e5e9f0; --text-muted: #94a3b8; --border: #2a3550;
  --header-bg: #131a28; --hero-bg1: #101828; --hero-bg2: #1e2c4a; --hero-text: #e5e9f0;
  --footer-bg: #0a0f18; --footer-text: #8294ab;
  --shadow: 0 4px 20px rgba(0,0,0,.5); --shadow-lg: 0 10px 40px rgba(0,0,0,.6);
}
html[data-theme="warm"] {
  --primary: #d97706; --primary-dark: #b45309; --primary-light: #fdf3e3;
  --accent: #dc2626;
  --bg: #faf6f0; --bg-alt: #f5eee2; --surface: #ffffff;
  --text: #3d3229; --text-muted: #8a7b6b; --border: #e8ded0;
  --header-bg: #fffaf3; --hero-bg1: #d97706; --hero-bg2: #f59e0b; --hero-text: #ffffff;
  --footer-bg: #43301c; --footer-text: #d8c7b2;
}
html[data-theme="elegant"] {
  --primary: #1f5c50; --primary-dark: #17453c; --primary-light: #e9f3f0;
  --accent: #b45309;
  --bg: #f6f7f4; --bg-alt: #eef1ec; --surface: #ffffff;
  --text: #2f3b36; --text-muted: #6b7a72; --border: #dde3dc;
  --header-bg: #fbfcfa; --hero-bg1: #1f5c50; --hero-bg2: #2d7a6b; --hero-text: #f2f7f4;
  --footer-bg: #1d2b26; --footer-text: #a8bcb2;
  --font: "Kaiti SC", "KaiTi", "STKaiti", "Noto Serif SC", serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.7; font-size: 16px; transition: background .3s, color .3s;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; border: 2px solid transparent; cursor: pointer;
  transition: all .2s; font-size: .95rem; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 13px 30px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; padding: 4px 10px; border-radius: 8px; font-size: 1.15rem;
}
.logo-text { font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: 1px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 13px; color: var(--text); font-weight: 500; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }
.has-dropdown { position: relative; }
.nav-arrow { font-size: .7rem; opacity: .7; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  list-style: none; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 8px 12px; font-size: .92rem; }
.dd-icon { margin-right: 6px; color: var(--primary); }
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.theme-switcher select {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 8px; padding: 6px 8px; font-size: .82rem; cursor: pointer;
}
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu-toggle span {
  display: block; width: 24px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px;
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--hero-bg1), var(--hero-bg2));
  color: var(--hero-text); padding: 80px 0; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.25; margin-bottom: 18px; }
.hero-highlight { color: var(--accent); }
.hero-sub { font-size: 1.1rem; opacity: .92; margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero .btn-outline { border-color: var(--hero-text); color: var(--hero-text); }
.hero .btn-outline:hover { background: rgba(255,255,255,.15); color: var(--hero-text); }
.hero-stats { display: flex; list-style: none; gap: 40px; flex-wrap: wrap; }
.hero-stats li { text-align: center; }
.hero-stats strong { display: block; font-size: 1.9rem; }
.hero-stats span { font-size: .85rem; opacity: .85; }
.hero-visual { position: relative; height: 320px; }
.hero-core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 1.5rem; font-weight: 800; backdrop-filter: blur(4px); line-height: 1.3;
}
.hero-card {
  position: absolute; background: rgba(255,255,255,.95); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg); animation: float 4s ease-in-out infinite;
}
html[data-theme="dark"] .hero-card { background: var(--surface); color: var(--text); }
.hc-1 { top: 8%; left: 6%; } .hc-2 { top: 20%; right: 2%; animation-delay: 1s; }
.hc-3 { bottom: 18%; left: 0; animation-delay: 2s; } .hc-4 { bottom: 6%; right: 10%; animation-delay: 3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- 区块 ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 2rem; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); }
.section-more { text-align: center; margin-top: 36px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }
.card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 14px; }
.card-more { font-size: .88rem; font-weight: 600; color: var(--primary); }

/* SaaS推广带 */
.saas-promo { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; }
.saas-inner { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.saas-text { flex: 1.2; min-width: 300px; }
.saas-text h2 { font-size: 1.9rem; margin-bottom: 12px; }
.saas-text p { opacity: .92; margin-bottom: 22px; }
.tag-new { background: var(--accent); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 20px; vertical-align: middle; }
.saas-icons { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; min-width: 280px; }
.saas-chip {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; letter-spacing: 1px; transition: all .2s;
}
.saas-chip:hover { background: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); }

/* 行业方案卡 */
.solution-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; transition: all .25s; color: var(--text);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); color: var(--text); }
.sc-icon { display: block; font-size: 2.4rem; margin-bottom: 12px; }
.sc-name { font-weight: 600; }

/* ---------- 文章卡 ---------- */
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-meta { display: flex; justify-content: space-between; align-items: center; }
.news-cat-tag {
  background: var(--primary-light); color: var(--primary); font-size: .78rem;
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.news-date { color: var(--text-muted); font-size: .8rem; }
.news-card h3 { font-size: 1.02rem; line-height: 1.5; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-desc { color: var(--text-muted); font-size: .88rem; flex: 1; }
.news-read-more { font-size: .88rem; font-weight: 600; }

/* ---------- 面包屑/页面头 ---------- */
.breadcrumb { padding: 16px 20px 0; font-size: .88rem; color: var(--text-muted); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.page-head { padding: 30px 20px 6px; }
.page-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.page-sub { color: var(--text-muted); }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 20px 0; }
.cat-tab {
  padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .9rem;
}
.cat-tab.active, .cat-tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 文章详情 ---------- */
.article-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 30px 20px 60px;
  align-items: start;
}
.article-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.article-cat-link {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.article-h1 { font-size: 1.8rem; line-height: 1.4; margin-bottom: 14px; }
.article-meta-bar { display: flex; gap: 18px; color: var(--text-muted); font-size: .86rem; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.article-body { padding-top: 24px; font-size: 1.02rem; }
.article-tags-footer {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem;
}
.tag-link { background: var(--bg-alt); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; color: var(--text); }
.tag-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.article-nav-item {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; color: var(--text); transition: all .2s;
}
.article-nav-item:hover { border-color: var(--primary); color: var(--text); }
.article-nav-item.next { text-align: right; }
.article-nav-label { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.article-nav-title { font-size: .92rem; font-weight: 600; }
.related-section { margin-top: 44px; }
.related-section h2 { font-size: 1.25rem; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--primary); }
.related-card {
  display: block; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; font-size: .9rem; color: var(--text);
  line-height: 1.6; transition: all .2s;
}
.related-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Markdown 正文 */
.markdown-body h2 { font-size: 1.35rem; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.markdown-body h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.markdown-body p { margin-bottom: 14px; }
.markdown-body ul, .markdown-body ol { padding-left: 26px; margin-bottom: 14px; }
.markdown-body li { margin-bottom: 6px; }
.markdown-body blockquote {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; color: var(--text);
}
.markdown-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.markdown-body th { background: var(--bg-alt); font-weight: 600; }
.markdown-body img { border-radius: var(--radius); margin: 14px 0; box-shadow: var(--shadow); }
.markdown-body code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.markdown-body pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 18px 0; }
.markdown-body pre code { background: none; padding: 0; }
.markdown-body .kb-link { border-bottom: 1px dashed var(--primary); }
.markdown-body .mermaid { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 18px 0; text-align: center; }

/* ---------- 侧栏 ---------- */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.sidebar-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 14px; }
.hot-list { list-style: none; counter-reset: hot; }
.hot-list li { counter-increment: hot; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { color: var(--text); font-size: .9rem; display: block; line-height: 1.5; }
.hot-list a:hover { color: var(--primary); }
.hot-list li::before {
  content: counter(hot); display: inline-block; width: 20px; height: 20px; line-height: 20px;
  text-align: center; background: var(--primary-light); color: var(--primary);
  border-radius: 5px; font-size: .75rem; font-weight: 700; margin-right: 8px;
}
.kb-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-cloud a {
  background: var(--bg-alt); border: 1px solid var(--border); padding: 5px 12px;
  border-radius: 18px; font-size: .85rem; color: var(--text);
}
.kb-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cta-box { border: 2px solid var(--primary); background: var(--primary-light); }
.cta-box p { font-size: .88rem; margin-bottom: 14px; color: var(--text); }

/* ---------- 广告位 ---------- */
.ad-slot {
  border: 2px dashed var(--border); border-radius: var(--radius); text-align: center;
  color: var(--text-muted); padding: 26px; margin: 22px 0; background: var(--bg-alt);
}
.ad-slot .ad-icon { font-size: 1.6rem; }
.ad-slot .ad-title { font-weight: 600; font-size: .88rem; margin-top: 6px; color: var(--text); }
.ad-slot .ad-size { font-size: .78rem; }
.ad-wide { padding: 40px 26px; }
.ad-sidebar { padding: 70px 26px; }

/* ---------- 知识库 ---------- */
.kb-group { margin-bottom: 44px; }
.kb-group-title { font-size: 1.4rem; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--primary); }
.kb-card h3 { color: var(--primary); }
.kb-summary {
  background: var(--primary-light); border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; font-size: 1rem;
}
.kb-relations { display: flex; flex-wrap: wrap; gap: 12px; }
.kb-node {
  background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary);
  padding: 8px 18px; border-radius: 24px; font-weight: 600; transition: all .2s;
}
.kb-node:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.kb-article-list { list-style: none; }
.kb-article-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kb-article-list a { color: var(--text); }
.kb-article-list a:hover { color: var(--primary); }

/* ---------- SaaS页 ---------- */
.saas-hero {
  background: linear-gradient(135deg, var(--hero-bg1), var(--hero-bg2));
  color: var(--hero-text); padding: 70px 0; text-align: center;
}
.saas-hero h1 { font-size: 2.4rem; margin-bottom: 14px; }
.saas-hero .hero-sub { margin: 0 auto 26px; }
.saas-hero .hero-actions { justify-content: center; }
.saas-card { display: flex; flex-direction: column; }
.saas-code {
  display: inline-block; align-self: flex-start; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; letter-spacing: 1px; padding: 6px 14px; border-radius: 8px; margin-bottom: 12px; font-size: .95rem;
}
.saas-desc { flex: 1; }
.saas-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.feat-chip { background: var(--bg-alt); border: 1px solid var(--border); font-size: .76rem; padding: 3px 10px; border-radius: 14px; color: var(--text-muted); }
.saas-actions { display: flex; gap: 10px; }

/* ---------- 标签云/搜索 ---------- */
.tag-cloud-page { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 9px 18px; color: var(--text); font-size: .95rem; transition: all .2s;
}
.tag-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-chip span { opacity: .65; font-size: .82em; }
.search-form { display: flex; gap: 10px; margin-bottom: 30px; max-width: 560px; }
.search-form input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 1rem;
}
.search-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.search-item h3 a { color: var(--text); font-size: 1.05rem; }
.search-item h3 a:hover { color: var(--primary); }
.search-item p { color: var(--text-muted); font-size: .9rem; margin: 6px 0; }
.empty-tip { text-align: center; color: var(--text-muted); padding: 50px 0; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pg-item { padding: 8px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .9rem; }
.pg-item:hover { border-color: var(--primary); color: var(--primary); }
.pg-current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- CTA带/页脚 ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.7rem; margin-bottom: 6px; }
.cta-inner p { opacity: .9; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.footer-logo .logo-mark { background: rgba(255,255,255,.15); }
.footer-logo .logo-text { color: #fff; }
.footer-about p { font-size: .9rem; margin: 12px 0; }
.footer-contact { line-height: 1.9; }
.footer-contact a { color: var(--footer-text); }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--footer-text); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: .84rem; }
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 后台 ---------- */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10243d, #1a5fb4);
}
.admin-login-box {
  background: #fff; border-radius: var(--radius-lg); padding: 44px; width: 380px;
  box-shadow: var(--shadow-lg); color: #1f2937;
}
.admin-login-box h1 { text-align: center; margin-bottom: 26px; font-size: 1.5rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem;
}
.form-error { color: #dc2626; font-size: .88rem; margin-bottom: 12px; }
.admin-page { padding: 40px 20px 70px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-header h1 { font-size: 1.7rem; }
.admin-msg {
  background: var(--primary-light); border: 1px solid var(--primary); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 22px;
}
.admin-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.stat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 34px; text-align: center; flex: 1; min-width: 130px;
}
.stat-box strong { display: block; font-size: 1.9rem; color: var(--primary); }
.stat-box span { color: var(--text-muted); font-size: .88rem; }
.admin-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px; margin-bottom: 22px;
}
.admin-panel h2 { font-size: 1.2rem; margin-bottom: 12px; }
.admin-panel p { margin-bottom: 12px; color: var(--text-muted); font-size: .94rem; }
.admin-panel code { background: var(--bg-alt); padding: 2px 8px; border-radius: 4px; }
.admin-last { color: var(--text) !important; }
.admin-panel ul { padding-left: 22px; }
.admin-panel li { margin-bottom: 6px; font-size: .92rem; }
.inline-form { display: flex; gap: 10px; }
.inline-form input {
  flex: 1; max-width: 320px; padding: 9px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text);
}

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

/* ============================================================
   响应式：平板 <=992px / 手机 <=640px
   ============================================================ */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .header-cta { display: none; }
  /* 平板菜单折叠 */
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .theme-switcher { margin-left: auto; }
  .mobile-menu-toggle { margin-left: 0; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--surface); padding: 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s; z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav > ul > li > a { font-size: 1.05rem; padding: 12px 14px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 3px solid var(--border);
    margin-left: 16px; padding: 0 0 0 8px; display: none; background: transparent;
  }
  .has-dropdown.open .dropdown { display: block; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 54px 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.4rem; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .article-main { padding: 24px 18px; }
  .article-h1 { font-size: 1.4rem; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-inner { justify-content: center; text-align: center; }
  .search-form { flex-direction: column; }
  .page-head h1 { font-size: 1.5rem; }
  .admin-stats { gap: 10px; }
  .stat-box { padding: 14px 18px; min-width: 100px; }
  .inline-form { flex-direction: column; }
  .inline-form input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================== 联系表单 ===================== */
.contact-form { margin: 1.5rem 0 2rem; }
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
.contact-form .form-field { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .65rem .85rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form textarea { resize: vertical; }
.contact-form .form-tip {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .9rem;
}
.contact-form .form-tip a { color: var(--primary); }
@media (max-width: 640px) {
  .contact-form .form-grid { grid-template-columns: 1fr; }
}

/* ===================== 后台线索表 ===================== */
.inquiry-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.inquiry-table th, .inquiry-table td {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.inquiry-table th { color: var(--text-muted); font-weight: 600; }
.inquiry-table td.inquiry-msg { white-space: normal; max-width: 320px; color: var(--text-muted); }

/* ===================== 关于我们页 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-h2 { font-size: 1.8rem; line-height: 1.35; margin: 8px 0 20px; }
.about-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.about-visual img {
  width: 100%;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border);
  min-height: 300px;
  object-fit: cover;
  background: var(--surface);
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 999px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header h2 { font-size: 1.75rem; margin: 12px 0 0; }
.section-header .section-sub { color: var(--text-muted); margin-top: 10px; font-size: .95rem; }
.accent-line {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary)));
  border-radius: 2px;
  margin: 16px auto 0;
}
.value-card { text-align: center; padding: 34px 26px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.value-icon { font-size: 2.6rem; margin-bottom: 14px; }

/* 时间线 */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px; top: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}
.timeline-year { font-weight: 700; color: var(--primary); font-size: 1rem; }
.timeline-body h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.timeline-body p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* 管理团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  padding: 30px 20px;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.08)); }
.team-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  background: var(--primary-light);
  border-radius: 50%;
}
.team-card strong { display: block; font-size: 1.02rem; }
.team-role { color: var(--primary); font-size: .82rem; margin-top: 4px; }
.team-bio { color: var(--text-muted); font-size: .8rem; margin-top: 8px; line-height: 1.6; }

/* 资质荣誉 */
.award-tile {
  text-align: center;
  background: var(--primary-light);
  border-radius: var(--radius, 14px);
  padding: 26px 16px;
}
.award-icon { font-size: 2rem; margin-bottom: 8px; }
.award-name { font-size: .9rem; font-weight: 600; }
.award-org { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.legal-h3 { margin-bottom: 10px; }

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 30px; }
}
.about-h1 { font-size: 2.1rem; line-height: 1.3; margin: 0 0 10px; }
.about-sub { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 18px; }

/* ===================== 解决方案页 ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sol-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-alt) 100%);
}
.sol-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: center;
}
.sol-hero h1 { font-size: 2.2rem; line-height: 1.3; margin: 14px 0 12px; }
.sol-sub { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 6px; }
.sol-hero img {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
}
.module-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.module-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }
.sol-case { max-width: 760px; margin: 0 auto; text-align: center; }
.sol-quote {
  font-size: 1.08rem;
  line-height: 1.8;
  border: none;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--radius, 14px) var(--radius, 14px) 0;
  padding: 22px 26px;
  margin: 0;
  text-align: left;
}
.sol-quote-author { color: var(--text-muted); margin: 14px 0 28px; font-size: .92rem; }
.stat-grid { margin-top: 6px; }
.stat-tile {
  background: var(--primary-light);
  border-radius: var(--radius, 14px);
  padding: 22px 12px;
}
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.sol-article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sol-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.08)); border-color: var(--primary); }
.sol-article-card h3 { font-size: 1.02rem; margin: 8px 0 12px; }
.sol-article-cat {
  display: inline-block;
  font-size: .75rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 999px;
}
.sol-article-more { color: var(--primary); font-size: .88rem; font-weight: 600; }
.sol-card { display: block; padding: 30px 26px; }
.sol-card p { color: var(--text-muted); font-size: .92rem; }
.sol-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.sol-tags span {
  font-size: .75rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
}
@media (max-width: 992px) {
  .sol-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}
.product-feats { margin: 12px 0 16px; padding-left: 1.2em; }
.product-feats li { color: var(--text-muted); font-size: .9rem; margin-bottom: 4px; }
.career-keys { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; letter-spacing: .05em; }
.career-tip { margin-top: 18px; color: var(--text-muted); font-size: .95rem; }
.career-tip a { color: var(--primary); }
/* ===================== 验证码与表单提示 ===================== */
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row input { max-width: 180px; }
.captcha-row img { cursor: pointer; border-radius: 8px; border: 1px solid var(--border); height: 52px; user-select: none; }
.captcha-hint { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.admin-msg.msg-err { background: #fdecea; color: #b3261e; border-color: #f5c6c2; }
.ads-on { color: #1e7e34; }
.ads-off { color: #b3261e; }
