/* ==========================================================
   企易建站 —— 营销官网样式（商务蓝 B 端风格，移动端自适应）
   ========================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f5f7fb;
  --white: #ffffff;
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.m-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); font-weight: 600; }
.btn-white:hover { box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { padding: 15px 40px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- 头部 ---------------- */
.m-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.m-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.m-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--dark); }
.m-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.m-logo-light { color: #fff; }
.m-logo-light .m-logo-mark { background: rgba(255, 255, 255, .16); }

.m-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.m-nav-link { font-size: 15px; color: var(--text); position: relative; padding: 4px 0; }
.m-nav-link:hover { color: var(--primary); }
.m-nav-link.is-active { color: var(--primary); font-weight: 600; }
.m-nav-link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.m-header-actions { display: flex; align-items: center; gap: 12px; }
.m-menu-btn { display: none; flex-direction: column; gap: 5px; border: 0; background: none; cursor: pointer; padding: 8px; }
.m-menu-btn span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 84px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: 32px; color: var(--dark); margin-bottom: 14px; letter-spacing: -.5px; }
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-dark .section-head p { color: #94a3b8; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--primary); background: var(--primary-light); padding: 5px 14px;
  border-radius: 20px; margin-bottom: 16px;
}

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 48%, #3b82f6 100%);
  padding: 92px 0 104px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .20), transparent 42%),
                    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .12), transparent 38%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.25; letter-spacing: -1px; margin-bottom: 20px; font-weight: 700; }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, .88); margin-bottom: 32px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .9); }
.hero-points span::before { content: '✓ '; font-weight: 700; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 700; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .75); }

.hero-visual {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px; padding: 16px; backdrop-filter: blur(6px);
}
.browser-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.hero-mock { background: #fff; border-radius: 10px; overflow: hidden; color: var(--text); }
.hero-mock-nav { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.hero-mock-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.hero-mock-nav i { height: 6px; width: 44px; border-radius: 3px; background: var(--line); }
.hero-mock-hero { padding: 26px 20px; background: linear-gradient(120deg, #eff6ff, #dbeafe); }
.hero-mock-hero b { display: block; height: 12px; width: 62%; border-radius: 6px; background: #bfdbfe; margin-bottom: 10px; }
.hero-mock-hero b:nth-child(2) { width: 44%; }
.hero-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.hero-mock-grid div { height: 54px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all .25s;
}
.card:hover { border-color: #c7dbff; box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; color: var(--dark); }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 套餐卡 ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px;
  position: relative; transition: all .25s;
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan.is-recommend { border-color: var(--primary); box-shadow: 0 16px 40px rgba(37, 99, 235, .16); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12.5px; padding: 5px 16px; border-radius: 20px;
  font-weight: 600; white-space: nowrap;
}
.plan h3 { font-size: 20px; color: var(--dark); }
.plan-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 20px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.plan-price b { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1; }
.plan-price b small { font-size: 20px; }
.plan-price .unit { color: var(--muted); font-size: 13.5px; }
.plan-price del { color: #94a3b8; font-size: 13.5px; }
.plan-features { padding: 22px 0; display: flex; flex-direction: column; gap: 12px; min-height: 262px; }
.plan-features li { font-size: 14.5px; color: var(--text); padding-left: 24px; position: relative; }
.plan-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--primary);
  font-weight: 700; font-size: 13px;
}

/* ---------------- 模板卡 ---------------- */
.tpl-cover {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--soft); position: relative;
}
.tpl-cover img { width: 100%; height: 100%; object-fit: cover; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.tpl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #c7dbff; }
.tpl-info { padding: 16px 18px 18px; }
.tpl-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-info h3 .lvl { font-size: 12px; font-weight: 500; color: var(--primary); background: var(--primary-light); padding: 2px 9px; border-radius: 10px; }
.tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tpl-tags span { font-size: 12px; color: var(--muted); background: var(--soft); padding: 3px 9px; border-radius: 6px; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 筛选器 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.filter-bar .chip {
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--text); cursor: pointer; transition: all .2s;
}
.filter-bar .chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar .chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box { margin-left: auto; display: flex; gap: 8px; }
.search-box input {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font-size: 14px;
  font-family: inherit; outline: none; min-width: 200px;
}
.search-box input:focus { border-color: var(--primary); }

/* ---------------- 文章列表 ---------------- */
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.article-item {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: all .25s;
}
.article-item:hover { box-shadow: var(--shadow); border-color: #c7dbff; }
.article-item .date {
  flex: 0 0 62px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px;
}
.article-item .date b { display: block; font-size: 24px; color: var(--primary); line-height: 1.2; }
.article-item .date span { font-size: 12px; color: var(--muted); }
.article-item h3 { font-size: 16.5px; color: var(--dark); margin-bottom: 8px; }
.article-item p { color: var(--muted); font-size: 14px; }
.article-item .meta { margin-top: 10px; font-size: 12.5px; color: #94a3b8; display: flex; gap: 14px; }

/* ---------------- 步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.step h3 { font-size: 16px; margin: 12px 0 8px; color: var(--dark); }
.step p { font-size: 14px; color: var(--muted); }

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { font-size: 28px; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .85); }

/* ---------------- 正文详情 ---------------- */
.prose { font-size: 16px; line-height: 2; color: #334155; }
.prose p { margin-bottom: 18px; }
.prose h2 { font-size: 21px; margin: 30px 0 14px; color: var(--dark); }
.prose h3 { font-size: 18px; margin: 24px 0 12px; color: var(--dark); }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { list-style: disc; margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--primary); background: var(--soft);
  padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--muted); margin: 18px 0;
}

.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; color: var(--text);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- 提示条 ---------------- */
.notice-bar {
  background: var(--primary-light); border: 1px solid #c7dbff; color: #1e40af;
  padding: 14px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.8;
}

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .icon { font-size: 42px; margin-bottom: 12px; opacity: .5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .m-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow);
  }
  .m-nav.is-open { display: flex; }
  .m-nav-link { padding: 12px 0; border-bottom: 1px solid var(--soft); }
  .m-nav-link.is-active::after { display: none; }
  .m-menu-btn { display: flex; }
  .m-header-actions .btn-ghost { display: none; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 24px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .grid-3, .grid-2, .article-list { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .plan-features { min-height: auto; }
  .cta { padding: 36px 24px; border-radius: 16px; }
  .cta h2 { font-size: 22px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { flex: 1; min-width: 0; }
  .plan-price b { font-size: 34px; }
  .article-item .date { flex: 0 0 54px; padding-right: 12px; }
}

/* ============ 企业信息广场（square / post） ============ */
.sq-type { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.sq-type a { display: inline-block; padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; text-decoration: none; background: #fff; }
.sq-type a:hover { border-color: var(--primary); color: var(--primary); }
.sq-type a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sq-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.sq-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sq-card img { width: 100%; height: 160px; object-fit: cover; display: block; background: #f1f5f9; }
.sq-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sq-type-badge { align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 10px; background: #eff6ff; color: var(--primary); }
.sq-type-badge.t-job { background: #fff7ed; color: #c2410c; }
.sq-type-badge.t-product { background: #ecfdf5; color: #059669; }
.sq-type-badge.t-supply { background: #fdf2f8; color: #be185d; }
.sq-card h3 { font-size: 15px; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-card p { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sq-card .meta { margin-top: auto; font-size: 12px; color: #94a3b8; display: flex; justify-content: space-between; gap: 8px; }
.sq-empty { text-align: center; color: var(--muted); padding: 60px 0; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.sq-pager { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.sq-pager a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.sq-pager a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sq-post { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 42px; max-width: 860px; margin: 0 auto; }
.sq-post h1 { font-size: 26px; line-height: 1.45; margin: 10px 0 8px; }
.sq-post .sq-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.sq-post .sq-content { font-size: 15.5px; line-height: 1.9; color: var(--text); word-break: break-word; }
.sq-post .sq-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sq-post .sq-content h2, .sq-post .sq-content h3 { margin: 22px 0 10px; }
.sq-post .sq-content p { margin: 10px 0; }
.sq-post .sq-content ul, .sq-post .sq-content ol { padding-left: 24px; }
.sq-post .sq-content blockquote { margin: 14px 0; padding: 10px 16px; background: var(--soft); border-left: 3px solid var(--primary); border-radius: 6px; }
.sq-post .sq-extra { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.sq-post .sq-extra span { font-size: 13px; background: var(--soft); border-radius: 8px; padding: 6px 12px; color: var(--text); }
.sq-company { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); border-radius: 10px; padding: 14px 18px; margin-top: 26px; }
.sq-company b { font-size: 15px; }
.sq-company span { font-size: 13px; color: var(--muted); display: block; }
@media (max-width: 860px) {
  .sq-grid { grid-template-columns: 1fr; }
  .sq-post { padding: 22px 18px; }
}
