/* ==========================================================================
   火世网站模板库 · 总览页样式
   中性展示台：让两套行业模板各自的品牌色成为主角
   ========================================================================== */
:root {
  --ink: #16161A;
  --ink-2: #4A4B55;
  --ink-3: #86878F;
  --paper: #FBFBFC;
  --surface: #FFFFFF;
  --line: rgba(22,22,26,.10);
  --line-2: rgba(22,22,26,.16);
  --accent: #16161A;
  --radius: 18px;
  --radius-l: 26px;
  --shadow-1: 0 1px 2px rgba(22,22,26,.05), 0 10px 26px -14px rgba(22,22,26,.16);
  --shadow-2: 0 2px 6px rgba(22,22,26,.06), 0 22px 48px -20px rgba(22,22,26,.24);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
/* 行内图标的兜底尺寸：没有 width/height 属性的 SVG 默认会撑满容器宽度 */
.ico { width: 16px; height: 16px; flex: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.22; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #16161A; outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-tint { background: #F2F3F7; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.section-title { font-size: clamp(28px, 3.4vw, 42px); max-width: 20em; }
.section-desc { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 46em; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-title, .section-head.center .section-desc { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.mono { font-family: var(--mono); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .26s var(--ease), background .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c2c33; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(22,22,26,.7); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn .ico { width: 16px; height: 16px; }

/* 顶栏 */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,251,252,.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-name { font-size: 17px; font-weight: 700; }
.logo-sub { font-size: 10px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); background: rgba(22,22,26,.05); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { padding: 88px 0 76px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 62% at 78% 8%, rgba(91,75,232,.14), transparent 62%), radial-gradient(48% 48% at 12% 88%, rgba(180,85,45,.12), transparent 64%); }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -.035em; max-width: 17em; }
.hero h1 em { font-style: normal; color: var(--ink-3); }
.hero-desc { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--mono); font-size: 30px; letter-spacing: -.02em; }
.hero-stats span { font-size: 13.5px; color: var(--ink-3); }

/* 模板卡 */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px; }
.tpl { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .34s var(--ease), box-shadow .34s var(--ease); }
.tpl:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.tpl-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #EEE; }
.tpl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tpl:hover .tpl-media img { transform: scale(1.04); }
.tpl-tag { position: absolute; left: 16px; top: 16px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--tpl-accent, #16161A); }
.tpl-tag-demo { left: auto; right: 16px; background: #F5A524; color: #1A1206; letter-spacing: .04em; }
.tpl-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tpl-body h3 { font-size: 23px; }
.tpl-desc { color: var(--ink-2); font-size: 15px; flex: 1; }
.tpl-feats { display: flex; flex-direction: column; gap: 7px; }
.tpl-feats li { font-size: 13.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.tpl-feats li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 6px; border-left: 1.6px solid var(--tpl-accent, #16161A); border-bottom: 1.6px solid var(--tpl-accent, #16161A); transform: rotate(-45deg); }
.tpl-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tpl-meta span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: #F2F3F7; color: var(--ink-2); }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 20px; margin-top: 6px; border-top: 1px solid var(--line); }
.tpl-foot .note { font-size: 12.5px; color: var(--ink-3); }
.tpl-enter { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--tpl-accent, #16161A); }
.tpl-enter .ico { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.tpl:hover .tpl-enter .ico { transform: translateX(4px); }

/* 能力网格 */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cap h3 { font-size: 18px; margin-bottom: 10px; }
.cap p { font-size: 14.5px; color: var(--ink-2); }
.cap .badge { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 6px; background: #F2F3F7; color: var(--ink-2); margin-bottom: 14px; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .no { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.step h4 { margin: 12px 0 8px; font-size: 16.5px; }
.step p { font-size: 14px; color: var(--ink-2); }
.step code { font-family: var(--mono); font-size: 12.5px; background: #F2F3F7; padding: 2px 7px; border-radius: 5px; }

/* CTA */
.cta { border-radius: var(--radius-l); background: #16161A; color: #F2F2F4; padding: 56px 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(26px, 3.2vw, 36px); }
.cta p { margin-top: 14px; color: rgba(242,242,244,.68); max-width: 38em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { width: 100%; }
.cta-actions .btn-ghost { border-color: rgba(255,255,255,.26); color: #fff; }
.cta-actions .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.cta-note { font-size: 12.5px; color: rgba(242,242,244,.5); text-align: center; }

/* 页脚 */
.site-footer { background: #101014; color: rgba(242,242,244,.62); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 34em; }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.footer-contact span { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact .ico { width: 16px; height: 16px; flex: none; color: rgba(242,242,244,.8); }
.footer-contact a { color: rgba(242,242,244,.82); }
.footer-contact a:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: 13.5px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 12.5px; color: rgba(242,242,244,.45); }

html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }

@media (max-width: 1024px) {
  .section { padding: 78px 0; }
  .tpl-grid, .cap-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 42px 28px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .tpl-grid, .cap-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}

/* 模板成交入口：页脚「模板定制咨询」CTA（scripts/dev/apply-vendor-cta.js 注入） */
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin: 26px 0 22px;
  padding: 22px 26px;
  border: 1px solid rgba(127, 127, 127, .28);
  border-radius: 14px;
  background: rgba(127, 127, 127, .07);
}
.footer-cta-copy { flex: 1 1 420px; min-width: 0; }
.footer-cta-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .68;
}
.footer-cta-title { margin: 0 0 8px; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.4; }
.footer-cta-desc { margin: 0; font-size: 14px; line-height: 1.8; opacity: .78; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}
.footer-cta-btn-primary { background: var(--ink); color: #FFFFFF; }
.footer-cta-btn-ghost { border-color: currentColor; color: inherit; }
.footer-cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.footer-cta-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 768px) {
  .footer-cta { padding: 20px 18px; margin: 22px 0 18px; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-cta-btn { transition: none; }
  .footer-cta-btn:hover { transform: none; }
}
