/*
 * pcl2-tools global.css — SEO 视觉模块库
 * PCL2/Minecraft 主题色：绿色系 (#1d8c3b)
 */
:root {
  --primary:   #1d8c3b;
  --primary-dk:#166534;
  --primary-lt:#f0fdf4;
  --blue:      #1d8c3b;
  --blue-dk:   #166534;
  --green:     #16a34a;
  --red:       #dc2626;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--gray-700); background: #fff;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.breadcrumb { padding: 12px 20px; font-size: 13px; color: var(--gray-600); }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--gray-200); }

.breadcrumb + .section { padding-top: 0; }
.breadcrumb + .hero-v2 { padding-top: 0; }

/* ── Hero v2 ── */
.hero-v2 {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  padding: 56px 0 24px; text-align: center;
}
.hero-v2 .container { max-width: 980px; margin: 0 auto; }
.hero-v2 h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.3; font-weight: 700; color: #0f172a; }
.hero-v2 .hero-sub { margin: 0 auto 24px; max-width: 720px; font-size: 16px; line-height: 1.7; color: #475569; }
.hero-v2 .hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-v2 .hero-cta-meta { font-size: 13px; color: #64748b; margin: 8px 0 24px; }
.hero-v2 .hero-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 16px 0 0; }

.module-icon { display: inline-block; width: 64px; height: 64px; color: var(--primary); }
.module-icon svg { width: 100%; height: 100%; }

/* ── 按钮 ── */
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--primary); color: #fff;
  font-size: 17px; font-weight: 600; border-radius: 8px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(29, 140, 59, 0.25);
  transition: background .15s, transform .15s, box-shadow .15s;
  min-height: 48px; box-sizing: border-box; white-space: nowrap;
}
.cta-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.cta-primary:hover {
  background: var(--primary-dk); color: #fff; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 140, 59, 0.3); text-decoration: none;
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: #fff; color: var(--primary);
  font-size: 16px; font-weight: 500; border: 1.5px solid #cbd5e1;
  border-radius: 8px; text-decoration: none; transition: border-color .15s, color .15s;
  min-height: 48px; box-sizing: border-box; white-space: nowrap;
}
.cta-secondary svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-secondary:hover { border-color: var(--primary); color: var(--primary-dk); text-decoration: none; }

/* ── 信任标签 ── */
.trust-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.trust-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }

/* ── 内容布局 ── */
.section { padding: 60px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 40px 20px; align-items: start; }
.main-content { min-width: 0; }
.main-content h1 { font-size: 32px; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; line-height: 1.3; }
.main-content h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); }
.main-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--gray-900); }
.main-content p  { margin-bottom: 14px; }
.main-content ul, .main-content ol { padding-left: 20px; margin-bottom: 14px; }
.main-content li { margin-bottom: 6px; }
.lead { font-size: 17px; color: var(--gray-600); margin-bottom: 28px !important; }

/* ── 侧栏 ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a { font-size: 14px; color: var(--gray-600); }
.sidebar-card a:hover { color: var(--primary); }

/* ── 实体卡片 ── */
.entity-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px 28px; margin: 32px 0; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ec-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 16px; }
.ec-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.ec-row:last-child { border-bottom: none; }
.ec-label { font-size: 13px; color: #64748b; width: 120px; flex-shrink: 0; }
.ec-value { font-size: 14px; font-weight: 600; color: #0f172a; }

/* ── Hub 卡片网格 ── */
.hub-grid-v2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 40px; }
.hub-card-v2 { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-card-v2:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(29, 140, 59, 0.12); transform: translateY(-2px); }
.hub-card-icon { width: 44px; height: 44px; background: var(--primary-lt); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary); }
.hub-card-icon svg { width: 22px; height: 22px; }
.hub-card-v2 h3 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.hub-card-v2 h3 a { color: #0f172a; }
.hub-card-v2 h3 a:hover { color: var(--primary); text-decoration: none; }
.hub-card-v2 p { margin: 0 0 12px; font-size: 14px; color: #64748b; line-height: 1.6; }
.hub-card-arrow { font-size: 13px; color: var(--primary); font-weight: 500; }

.hub-grid-title { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.hub-grid-intro { font-size: 15px; color: #64748b; margin-bottom: 24px; }

/* ── FAQ v2 ── */
.faq-section-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 24px; text-align: center; }
.faq-list-v2 { max-width: 800px; margin: 0 auto; }
.faq-item-v2 { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px 24px; margin-bottom: 12px; }
.faq-item-v2:last-child { margin-bottom: 0; }
.faq-q { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 600; color: #0f172a; margin: 0 0 10px; line-height: 1.5; }
.faq-q-icon { display: inline-flex; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 4px; text-align: center; font-size: 12px; font-weight: 700; line-height: 22px; flex-shrink: 0; margin-top: 1px; justify-content: center; align-items: center; }
.faq-a p { margin: 0; padding-left: 30px; font-size: 14px; line-height: 1.7; color: #475569; }

/* ── CTA Section ── */
.cta-section-v2 { background: linear-gradient(135deg, #1d8c3b 0%, #166534 100%); border-radius: 12px; padding: 40px 32px; text-align: center; margin: 40px 0; color: #fff; }
.cta-section-v2 h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.cta-section-desc { margin: 0 0 20px; font-size: 14px; color: rgba(255,255,255,.85); }
.cta-section-meta { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 12px; }
.cta-section-v2 .cta-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.cta-section-v2 .cta-primary:hover { background: var(--primary-lt); color: var(--primary-dk); }

/* ── 元数据条 ── */
.meta-bar { padding: 8px 0 0; font-size: 13px; color: #64748b; }
.meta-date { display: inline-flex; align-items: center; gap: 4px; }

/* ── 警示卡片 ── */
.notice-card { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 16px 20px; border-radius: 6px; margin: 24px 0; font-size: 13px; line-height: 1.7; color: #78350f; display: flex; gap: 12px; align-items: flex-start; }
.notice-icon { flex-shrink: 0; width: 20px; height: 20px; color: #f59e0b; margin-top: 2px; }
.notice-icon svg { width: 20px; height: 20px; }
.notice-body { flex: 1; }
.notice-card strong { color: #b45309; }

/* ── 对比表格 ── */
.compare-table-wrap { overflow-x: auto; margin: 20px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th { background: var(--gray-100); color: var(--gray-900); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--gray-200); }
.compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.compare-table tr:hover td { background: var(--primary-lt); }

/* ── 步骤列表 ── */
.steps-v2 { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps-v2 li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.step-num { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.step-text { font-size: 15px; line-height: 1.6; color: #334155; flex: 1; }

/* ── 提示框 ── */
.tip-box { background: #eff6ff; border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 16px; margin: 16px 0; font-size: 14px; }

/* ── 页脚 ── */
.footer { background: var(--gray-900); color: #9ca3af; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 8px; }
.footer-col a   { font-size: 14px; color: #9ca3af; }
.footer-col a:hover { color: #fff; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .hero-v2 h1 { font-size: 28px; }
  .hero-v2 .hero-sub { font-size: 15px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hub-grid-v2 { grid-template-columns: 1fr; }
  .main-content h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .hero-v2 { padding: 40px 0 16px; }
  .cta-primary { font-size: 15px; padding: 12px 24px; }
}
