/* ============================================================
   大星网络 主题 - 组件样式
   - 主题色覆盖（按 body 的 page-template-* class 切换）
   - 业务卡片、痛点卡片、流程卡片、联系卡片
   - 联系弹窗
   ============================================================ */

/* ---------- 主题色覆盖 ---------- */
body.page-template-template-home             { --accent: #2563eb; --accent-dark: #1d4ed8; --accent-soft: #eff6ff; --accent-fog: #dbeafe; --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
body.page-template-template-xiaohongshu      { --accent: #ff2442; --accent-dark: #d6002a; --accent-soft: #fff0f3; --accent-fog: #ffd5dd; --gradient: linear-gradient(135deg, #ff4757 0%, #ff2442 100%); --fg: #1a0a0e; --muted: #7a4f57; --line: #f5dde0; }
body.page-template-template-wechatchannels   { --accent: #07c160; --accent-dark: #06ae56; --accent-soft: #e6f7ed; --accent-fog: #b6e8c9; --gradient: linear-gradient(135deg, #1aad66 0%, #07c160 100%); --fg: #0a1f12; --muted: #4a6b5a; --line: #d6eadd; }
body.page-template-template-wechatofficial   { --accent: #07c160; --accent-dark: #06ae56; --accent-soft: #e6f7ed; --accent-fog: #b6e8c9; --gradient: linear-gradient(135deg, #1aad66 0%, #07c160 100%); --fg: #0a1f12; --muted: #4a6b5a; --line: #d6eadd; }
body.page-template-template-brand            { --accent: #2563eb; --accent-dark: #1d4ed8; --accent-soft: #eff6ff; --accent-fog: #dbeafe; --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
body.page-template-template-animation        { --accent: #06b6d4; --accent-dark: #0891b2; --accent-soft: #ecfeff; --accent-fog: #a5f3fc; --gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%); --fg: #082f2e; --muted: #4a6b69; --line: #cdebe9; }
body.page-template-template-software         { --accent: #6366f1; --accent-dark: #4f46e5; --accent-soft: #eef2ff; --accent-fog: #c7d2fe; --gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 100%); --fg: #0f0f2a; --muted: #4f4f7a; --line: #dfe0f5; }
body.page-template-template-customer         { --accent: #7c3aed; --accent-dark: #6d28d9; --accent-soft: #f5f3ff; --accent-fog: #ddd6fe; --gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); --fg: #1a1033; --muted: #6b5f8a; --line: #e3dcf0; }
body.page-template-template-blog             { --accent: #f97316; --accent-dark: #ea580c; --accent-soft: #fff4ed; --accent-fog: #ffe2c8; --gradient: linear-gradient(135deg, #fb923c 0%, #f97316 100%); --fg: #2a1a0f; --muted: #7a6555; --line: #f3e3d3; }

/* ---------- 业务卡片 / 服务卡片 ---------- */
.biz-grid,
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}

.biz-card,
.service-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all .3s;
  position: relative; overflow: hidden;
}

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

.biz-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-fog);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

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

.biz-icon,
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 22px;
}

.biz-card h3,
.service-card h3 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}

.biz-en {
  font-size: 12px; color: var(--accent);
  font-weight: 600; letter-spacing: 1px;
  margin-bottom: 14px;
}

.biz-card p,
.service-card p {
  font-size: 14px; color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.biz-features { list-style: none; padding: 0; margin: 16px 0 0; }
.biz-features li {
  padding: 6px 0; font-size: 13px;
  color: var(--fg);
  position: relative; padding-left: 22px;
}
.biz-features li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--accent); font-weight: 700;
}

/* ---------- 痛点卡片 ---------- */
.pains-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 40px;
}

.pain-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all .3s;
  position: relative; overflow: hidden;
}

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

.pain-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-fog);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

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

.pain-num {
  display: inline-block;
  font-size: 32px; font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  font-feature-settings: 'tnum';
}

.pain-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pain-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 流程步骤 ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-top: 40px;
}

.process-step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all .3s;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.step-num {
  width: 48px; height: 48px; line-height: 48px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  text-align: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 联系我们区域 ---------- */
.contact-block {
  background: var(--gradient);
  color: #fff;
  border-radius: 32px;
  margin: 60px 24px;
  padding: 80px 0;
  text-align: center;
}

.contact-block .section-title { color: #fff; }
.contact-block .section-subtitle {
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px 20px;
  transition: all .3s;
}

.contact-card:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.contact-label {
  font-size: 12px; opacity: 0.8;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-value { font-size: 20px; font-weight: 700; margin-bottom: 8px; word-break: break-all; }
.contact-note { font-size: 13px; opacity: 0.85; line-height: 1.6; }

/* ---------- 联系弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  padding: 20px;
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 480px;
  padding: 40px 36px 32px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  font-size: 20px; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 24px; font-weight: 800;
  text-align: center;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.modal-sub {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

.modal-qr { display: flex; justify-content: center; margin-bottom: 24px; }

.modal-qr img {
  width: 200px; height: 200px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 8px;
  background: #fff;
}

.modal-info {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  padding: 18px 20px;
}

.modal-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}

.modal-row .label {
  flex: 0 0 56px;
  font-size: 12px; font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
}

.modal-row .value {
  flex: 1;
  color: #0f172a;
  font-weight: 500;
  word-break: break-all;
}

.modal-row .copy-btn {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.modal-row .copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal-hint {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 20px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .modal { padding: 32px 24px 24px; }
  .modal-title { font-size: 20px; }
  .modal-qr img { width: 160px; height: 160px; }
}

/* ---------- 文章卡片 (blog 页面用) ---------- */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}

.article-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all .3s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

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

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-fog);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

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

.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

.article-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.article-date { font-size: 12px; color: var(--muted); }

.article-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.article-card p { font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; }

.article-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600; font-size: 14px;
  transition: gap .2s;
}
.article-card:hover .article-link { gap: 12px; }

/* ---------- 数据条 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 60px 0;
  background: var(--accent-soft);
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}

.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- 案例卡片 ---------- */
.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 40px;
}

.case-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

.case-thumb {
  width: 100%; height: 200px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}

.case-body { padding: 24px; }

.case-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

/* ---------- 5 大节点生态闭环（视频号页专用） ---------- */
.ecology-flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: nowrap;
}

.eco-node {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px 16px 22px;
  text-align: center;
  transition: all .3s;
  flex: 1 1 0;
  min-width: 0;
}

.eco-node:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}

.eco-num {
  width: 52px; height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.eco-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}

.eco-node p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.eco-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  min-width: 28px;
}

@media (max-width: 900px) {
  .ecology-flow {
    flex-wrap: wrap;
    justify-content: center;
  }
  .eco-node { flex: 0 0 calc(50% - 30px); }
  .eco-arrow { display: none; }
}

@media (max-width: 480px) {
  .eco-node { flex: 0 0 100%; }
}

/* ---------- 服务页文章列表（带特色图） ---------- */
.service-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.article-card-thumb {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s;
  display: flex; flex-direction: column;
  position: relative;
}

.article-card-thumb:hover {
  transform: translateY(-6px);
  border-color: var(--accent-fog);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}

.article-card-thumb .article-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.article-card-thumb .article-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.article-card-thumb:hover .article-thumb img {
  transform: scale(1.05);
}

.article-card-thumb .article-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}

.article-card-thumb .article-meta { margin-bottom: 12px; }

.article-card-thumb h3 {
  font-size: 17px; font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-thumb p {
  font-size: 13px; color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-articles-more {
  text-align: center;
  margin-top: 48px;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: all .25s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.service-articles-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
  background: var(--accent-soft);
  border-radius: 18px;
  margin-top: 32px;
}

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

@media (max-width: 600px) {
  .service-articles { grid-template-columns: 1fr; }
}
/* ===================== 文章详情页（single.php） ===================== */

.sub-hero.post-hero {
  text-align: left;
  padding: 80px 0 40px;
}

.sub-hero.post-hero .post-back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .2s;
}

.sub-hero.post-hero .post-back:hover {
  color: var(--accent);
}

.post-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 800px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.post-meta .article-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.post-meta .article-author::before {
  content: "·";
  margin-right: 12px;
  color: var(--border);
}

.post-featured {
  padding: 0 0 40px;
}

.post-featured .post-thumb {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
}

.post-featured .post-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.post-content {
  padding: 20px 0 60px;
}

.post-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  margin: 1.6em 0 0.6em;
  line-height: 1.4;
  color: var(--text);
}

.post-body h1 { font-size: 28px; }
.post-body h2 {
  font-size: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.post-body h3 { font-size: 19px; }
.post-body h4 { font-size: 17px; color: var(--muted); }

.post-body p { margin: 0 0 1.2em; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { opacity: 0.8; }

.post-body ul, .post-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

.post-body li { margin-bottom: 0.4em; }

.post-body blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: normal;
}

.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.2em 0;
}

.post-body code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "SF Mono", Consolas, monospace;
}

.post-body pre {
  background: var(--bg);
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.2em 0;
}

.post-body pre code { background: none; padding: 0; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.post-body th, .post-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.post-body th { background: var(--accent-soft); font-weight: 700; }

.post-footer {
  max-width: 780px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 720px) {
  .sub-hero.post-hero { padding: 50px 0 24px; }
  .post-title { font-size: 26px; }
  .post-body { font-size: 15px; }
  .post-body h2 { font-size: 20px; }
  .post-body h3 { font-size: 17px; }
}
