/* ============================================================
   造页坊 ZAOYE FANG — Design System v3（按截图 1:1 贴近 book-store）
   - 纯白底 + 亮橙强调 + 卡片式 Hero + 四列书封卡 + 灰底作者区 + 不对称博客 + 深色页脚
   ============================================================ */

:root {
  --bg:           #ffffff;
  --bg-alt:       #f5f5f5;    /* 作者区等灰底 */
  --bg-soft:      #fafafa;
  --surface:      #ffffff;
  --ink:          #1a1a1a;
  --ink-2:        #4b4b4b;
  --muted:        #737373;
  --line:         rgba(0,0,0,.1);
  --line-2:       rgba(0,0,0,.05);

  /* 参考站：亮橙 */
  --accent:       #f97316;
  --accent-soft:  #fb923c;
  --accent-deep:  #ea580c;
  --accent-ink:   #7c2d12;

  --serif: "Playfair Display", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --r: 14px;
  --r-sm: 10px;
  --maxw: 1200px;

  --sh-1: 0 10px 28px rgba(0,0,0,.08);
  --sh-2: 0 20px 50px rgba(0,0,0,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 按钮 ===================== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .2s; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: #333; color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
/* HERO 两个按钮：字体对齐导航栏汉字，悬停均为橙色 */
.hero-actions .btn { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.hero-actions .btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* 圆形箭头按钮（Hero 卡片右上角） */
.btn-round { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: .2s; }
.btn-round:hover { background: var(--accent); color: #fff; }

/* 圆形加购按钮（卡片右下角） */
.btn-cart { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: .2s; }
.btn-cart:hover { background: var(--accent-deep); }

/* ===================== 顶栏 ===================== */

/* ===================== 导航 ===================== */
.nav { background: #fff; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo { height: 46px; width: auto; }
.seal { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 0; align-items: stretch; flex: 1; justify-content: center; }
.nav-links a { flex: 0 0 14%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-2); padding: 0; border-radius: 0; transition: .2s; }
.nav-links a .nav-cn { font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; }
.nav-links a .nav-en { font-size: 10px; letter-spacing: 1.5px; opacity: .65; line-height: 1.2; text-align: center; }
.nav-links a:hover { background: var(--accent); color: #fff; }
.nav-links a:hover .nav-en { opacity: .9; }
.nav-links a.active { background: #333333; color: #fff; }
.nav-links a:active { background: #222222; color: #fff; }
.nav-icons { display: flex; align-items: center; gap: 16px; }
.brand { align-self: center; }
.nav-icons a { color: var(--ink-2); transition: .2s; }
.nav-icons a:hover { color: var(--accent); }
.nav-icons a.nav-cta { margin-left: 6px; background: #333333; color: #fff; border-color: transparent; }
.nav-icons a.nav-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===================== 区块标题 ===================== */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head .eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; color: var(--ink); line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head-row h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.section-head-row .link-more { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.section-head-row .link-more:hover { background: var(--accent-deep); }

/* ===================== HERO：参考站的三卡片网格 ===================== */
.hero { padding: 50px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 5; }
.hero-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 58px); line-height: 1.2; font-weight: 900; color: var(--ink); text-shadow: 0 2px 14px rgba(255,255,255,.75); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 420px; margin: 18px 0 28px; font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* HERO 右栏：三张模板图不规则斜向随意摆放（其中一张探入左栏、被大字压住） */
.hero-gallery { position: relative; min-height: 520px; overflow: visible; }
.hero-shot { position: absolute; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.16); transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s; cursor: pointer; }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-shot.s1 { width: 56%;  top: -12px; left: 36px;   height: 300px; transform: rotate(-9deg); z-index: 3; }
.hero-shot.s2 { width: 54%;  top: 170px; right: -26px; height: 270px; transform: rotate(7deg);  z-index: 2; }
.hero-shot.s3 { width: 52%;  top: 60px;  left: -150px; height: 320px; transform: rotate(-4deg); z-index: 1; }
/* 悬停：明显的左右位移 + 浮起阴影；s3 保持在大字下层，不抢到文字上面 */
.hero-shot.s1:hover { transform: rotate(-9deg) translateX(-30px); z-index: 10; box-shadow: 0 26px 60px rgba(0,0,0,.22); }
.hero-shot.s2:hover { transform: rotate(7deg) translateX(30px); z-index: 10; box-shadow: 0 26px 60px rgba(0,0,0,.22); }
.hero-shot.s3:hover { transform: rotate(-4deg) translateX(-30px); box-shadow: 0 26px 60px rgba(0,0,0,.22); }

@media (max-width: 768px) {
  .hero-gallery { position: static; min-height: 0; display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
  .hero-shot { position: relative; width: 100% !important; height: 220px !important; top: auto !important; left: auto !important; right: auto !important; transform: none !important; }
}

/* ===================== 书封（更丰富的 CSS 插画感） ===================== */
.cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg,#475569,#1e293b); box-shadow: 0 10px 22px rgba(0,0,0,.18); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; color: #fff; }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0,0,0,.22); }
.cover .csh { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: rgba(255,255,255,.3); }
.cover .cdec { position: absolute; right: -35px; bottom: -35px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.16); }
.cover .cdec2 { position: absolute; left: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cover .ct { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.18; position: relative; z-index: 2; padding-left: 4px; }
.cover .cm { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; position: relative; z-index: 2; padding-left: 4px; }
.cover .illu { position: absolute; inset: 0; z-index: 1; opacity: .35; }
.cover .illu::after { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.35); right: 20px; top: 30px; }

.cover.c1 { background: linear-gradient(135deg,#f59e0b,#b45309); }
.cover.c2 { background: linear-gradient(135deg,#0ea5e9,#0369a1); }
.cover.c3 { background: linear-gradient(135deg,#84cc16,#4d7c0f); }
.cover.c4 { background: linear-gradient(135deg,#ef4444,#991b1b); }
.cover.c5 { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.cover.c6 { background: linear-gradient(135deg,#10b981,#047857); }
.cover.c7 { background: linear-gradient(135deg,#06b6d4,#0e7490); }
.cover.c8 { background: linear-gradient(135deg,#ec4899,#be185d); }
.cover.c9 { background: linear-gradient(135deg,#64748b,#334155); }

/* ===================== 作品卡（四列，对齐参考站畅销书卡） ===================== */
.grid-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work { background: var(--surface); border-radius: var(--r); transition: .25s; position: relative; }
.work:hover { transform: translateY(-5px); }
.work-thumb { position: relative; padding: 18px 18px 0; }
.work .cover { box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.work-badge { position: absolute; top: 28px; left: 28px; z-index: 3; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.work-badge.sale { background: #dc2626; }
.work-cart { position: absolute; right: 26px; bottom: -19px; z-index: 4; }
.work-body { padding: 22px 18px 18px; }
.work-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 4px; }
.work-author { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-price { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--accent); }
.work-price small { font-size: 12px; color: var(--muted); font-family: var(--sans); font-weight: 400; text-decoration: line-through; margin-left: 4px; }
.work-rating { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }

/* ===================== 作者区（灰底，左文右肖像） ===================== */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lead-copy { max-width: 440px; }
.lead-copy .eyebrow { margin-bottom: 12px; }
.lead-copy h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.12; margin-bottom: 14px; }
.lead-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.lead-quote { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.lead-quote .mark { color: var(--accent); }
.lead-name { font-weight: 700; font-size: 15px; }
.lead-role { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.lead-portrait { display: flex; align-items: center; justify-content: center; gap: 30px; }
.portrait { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#fde68a,#fbbf24); position: relative; box-shadow: var(--sh-2); }
.portrait svg { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 180px; height: 180px; fill: var(--ink); opacity: .8; }
.lead-dots { display: flex; gap: 8px; }
.lead-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lead-dots span.active { background: var(--accent); }

/* ===================== 最佳评分（更紧凑，对齐参考站） ===================== */
.grid-rated { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.rated { display: flex; gap: 12px; align-items: flex-start; }
.rated .cover { width: 70px; flex: none; border-radius: 4px; }
.rated-info h4 { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.rated-info .cat { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rated-info .pr { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--accent); }
.rated-info .stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; margin-top: 4px; }

/* ===================== 博客（1 大 + 4 小，不对称网格） ===================== */
.grid-blog { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.blog-main { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3.6; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.blog-main .ph { position: absolute; inset: 0; z-index: 0; }
.blog-main .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
.blog-main .content { position: relative; z-index: 2; }
.blog-main .cat { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.blog-main h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.blog-main p { font-size: 14px; opacity: .9; }
.blog-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.blog-mini { display: flex; gap: 12px; align-items: flex-start; }
.blog-mini .thumb { width: 80px; height: 80px; border-radius: var(--r-sm); flex: none; overflow: hidden; }
.blog-mini h4 { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.blog-mini .date { font-size: 12px; color: var(--muted); }

/* ===================== 流程 / 模板 / 报价（造页坊逻辑补充） ===================== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.step { text-align: center; }
.step-no { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; background: var(--bg-alt); color: var(--accent); font-weight: 700; }
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

.grid-tpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.tpl { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; transition: .25s; }
.tpl:hover { box-shadow: var(--sh-1); transform: translateY(-5px); }
.tpl .cover { width: 100%; }
.tpl-info { margin-top: 12px; }
.tpl-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.tpl-cat { font-size: 12px; color: var(--muted); }

.grid-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.plan { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 30px 26px; display: flex; flex-direction: column; transition: .25s; }
.plan:hover { box-shadow: var(--sh-1); }
.plan.featured { border-color: var(--accent); }
.plan-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; width: fit-content; }
.plan-mode { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.plan-amt .cny { font-size: 20px; color: var(--accent); font-family: var(--serif); }
.plan-amt .num { font-family: var(--serif); font-size: 42px; font-weight: 700; }
.plan-amt .note { font-size: 13px; color: var(--muted); }
.plan ul { flex: 1; margin-bottom: 20px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 10px; color: var(--ink-2); }
.plan li svg { flex: none; color: var(--accent); margin-top: 2px; }

/* ===================== 深色页脚 ===================== */
.footer { background: var(--ink); color: #d4d4d4; padding: 60px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; border-bottom: 1px solid #333; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #a3a3a3; font-size: 14px; margin-top: 14px; line-height: 1.65; max-width: 280px; }
.footer-col { text-align: right; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: #a3a3a3; font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-icons { display: flex; gap: 12px; margin-top: 18px; }
.footer-icons a { width: 38px; height: 38px; border-radius: 50%; background: #333; color: #fff; display: grid; place-items: center; transition: .2s; }
.footer-icons a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #737373; flex-wrap: wrap; gap: 12px; }

/* ===================== 列表页 / 详情页 ===================== */
.page-head { padding: 50px 0 24px; text-align: center; }
.page-head .eyebrow { color: var(--muted); }
.page-head h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-top: 8px; }
.page-head p { color: var(--muted); margin-top: 10px; }
.filterbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.filter.active, .filter:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.result-count { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.pagination a.active, .pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.crumbs { padding: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.detail-info h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; margin: 8px 0 14px; }
.detail-info .work-author { font-size: 14px; }
.detail-price { font-family: var(--serif); font-size: 32px; color: var(--accent); font-weight: 700; margin: 18px 0; }
.detail-price small { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.detail-desc { color: var(--ink-2); line-height: 1.8; margin-bottom: 20px; }
.detail-specs { display: grid; gap: 10px; margin-bottom: 24px; }
.detail-specs li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.detail-specs li svg { flex: none; color: var(--accent); margin-top: 2px; }
.detail-gallery .cover { width: 100%; max-width: 360px; margin: 0 auto; }
.detail-thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.detail-thumbs .t { width: 70px; height: 95px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.detail-thumbs .t.active, .detail-thumbs .t:hover { border-color: var(--accent); }

/* ===================== 作品库 / 详情页 补充（与 v3 同系统） ===================== */
.detail-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; margin: 18px 0; }
.detail-meta .k { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.detail-meta .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.detail-info .work-cat { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.spec h4 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin: 4px 0 12px; }
.spec ul { display: grid; gap: 10px; margin-bottom: 22px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.spec li svg { flex: none; color: var(--accent); margin-top: 2px; }
.detail-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.related { margin-top: 64px; }
.cta { background: var(--ink); color: #fff; padding: 64px 0; text-align: center; }
.cta .wrap { max-width: 760px; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.cta h2 em { font-style: italic; color: var(--accent-soft); }
.cta p { color: #a3a3a3; font-size: 15px; max-width: 520px; margin: 0 auto 24px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===================== 动画 ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-card.large { grid-row: span 1; }
  .lead { grid-template-columns: 1fr; }
  .grid-blog { grid-template-columns: 1fr; }
  .grid-works, .grid-rated { grid-template-columns: repeat(3, 1fr); }
  .grid-tpl { grid-template-columns: repeat(2, 1fr); }
  .grid-price { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-works, .grid-rated { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ===================== 本周精选：真实模板卡（指向 buildwebsite-clone） ===================== */
.grid-picks .work { overflow: hidden; box-shadow: var(--sh-1); cursor: pointer; }
.grid-picks .work-thumb {
  position: relative; display: block; padding: 0;
  height: 422px; overflow: hidden; border-radius: var(--r) var(--r) 0 0;
  background: var(--bg-soft);
}
.grid-picks .work-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.grid-picks .work-badge { top: 12px; left: 12px; z-index: 4; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.grid-picks .work-overlay {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0;
  background: linear-gradient(180deg, rgba(234,88,12,0) 35%, rgba(234,88,12,.62));
  transition: opacity .3s ease;
}
.grid-picks .work-overlay-txt {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent-deep); font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transform: translateY(12px);
  transition: transform .3s ease; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
/* 悬停：卡片上浮 + 图片放大 + 浮层淡入 */
.grid-picks .work:hover { transform: translateY(-8px); box-shadow: var(--sh-2); }
.grid-picks .work:hover .work-img { transform: scale(1.08); }
.grid-picks .work:hover .work-overlay { opacity: 1; }
.grid-picks .work:hover .work-overlay-txt { transform: translateY(0); }
/* 点击：轻微下压的按压感 */
.grid-picks .work:active { transform: translateY(-3px) scale(.985); }
/* 高光扫过 */
.grid-picks .work-thumb::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 55%; height: 100%; z-index: 3;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.grid-picks .work:hover .work-thumb::after { animation: picks-sheen .85s ease; }
@keyframes picks-sheen { to { left: 130%; } }
/* 点击水波纹 */
.work-ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); animation: picks-ripple .6s ease-out; pointer-events: none; z-index: 3;
}
@keyframes picks-ripple { to { transform: scale(2.4); opacity: 0; } }
.grid-picks .work-title a { color: var(--ink); }
.grid-picks .work-title a:hover { color: var(--accent); }
.grid-picks .work-body { padding: 18px 18px 20px; text-align: center; }
.grid-picks .work-author { margin-bottom: 0; font-size: 13px; text-align: center; }
.grid-picks .work-author a { color: var(--muted); text-decoration: none; }
.grid-picks .work-author a:hover { color: var(--accent); }

/* 本周精选：逐个加载 stagger 入场动效 */
#works .work.reveal { transform: translateY(42px) scale(.95); opacity: 0; transition: .7s cubic-bezier(.2,.7,.2,1); }
#works .work.reveal.in { transform: none; opacity: 1; }
#works .grid-picks .work:nth-child(1) { transition-delay: 0ms; }
#works .grid-picks .work:nth-child(2) { transition-delay: 90ms; }
#works .grid-picks .work:nth-child(3) { transition-delay: 180ms; }
#works .grid-picks .work:nth-child(4) { transition-delay: 270ms; }
#works .grid-picks .work:nth-child(5) { transition-delay: 360ms; }
#works .grid-picks .work:nth-child(6) { transition-delay: 450ms; }
#works .grid-picks .work:nth-child(7) { transition-delay: 540ms; }
#works .grid-picks .work:nth-child(8) { transition-delay: 630ms; }

/* ===================== 本次增强：建站流程 / 模板库 ===================== */
/* 1) 三个栏目 eyebrow（建站流程 / 模板库 / 本周精选）统一为 0.8× 建站流程字号：24px → 19.2px */
#process .eyebrow,
#templates .eyebrow,
#works .eyebrow { font-size: 19.2px; letter-spacing: 1px; font-weight: 700; }

/* 2) 建站流程：五点 stagger 入场 + 更酷炫鼠标互动 */
#process .steps .step:nth-child(1) { transition-delay: 0ms; }
#process .steps .step:nth-child(2) { transition-delay: 90ms; }
#process .steps .step:nth-child(3) { transition-delay: 180ms; }
#process .steps .step:nth-child(4) { transition-delay: 270ms; }
#process .steps .step:nth-child(5) { transition-delay: 360ms; }
#process .step.reveal { transform: translateY(26px) scale(.92); }
#process .step.reveal.in { transform: none; }
#process .step {
  position: relative; cursor: pointer; overflow: hidden;
  padding: 26px 14px 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s;
}
/* 鼠标滑过时的流光扫过 */
#process .step::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(249,115,22,.22), transparent);
  transform: skewX(-20deg); transition: left .75s ease; pointer-events: none; z-index: 1;
}
#process .step.in:hover {
  transform: translateY(-14px) scale(1.05); border-color: var(--accent);
  box-shadow: 0 26px 52px rgba(249,115,22,.32);
}
#process .step.in:hover::after { left: 130%; }
#process .step-no {
  position: relative; z-index: 2;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), background .45s, color .45s, box-shadow .45s;
}
#process .step.in:hover .step-no {
  background: linear-gradient(135deg, var(--accent), #fb923c); color: #fff;
  transform: scale(1.28) rotate(360deg);
  box-shadow: 0 16px 34px rgba(249,115,22,.55);
}
#process .step h4 { position: relative; z-index: 2; transition: color .35s, letter-spacing .35s; }
#process .step.in:hover h4 { color: var(--accent-deep); letter-spacing: 1px; }
#process .step p { position: relative; z-index: 2; transition: transform .4s, opacity .4s; }
#process .step.in:hover p { transform: translateY(-2px); }

/* 3) 模板库：真实预览图封面 + 入场 stagger + 悬停互动 */
#templates .grid-tpl { margin-top: 40px; }

/* 强制每张卡片为垂直堆叠（图片在上、文字在下） */
#templates .tpl {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 14px;
  transition: .25s;
}
#templates .tpl-shot {
  width: 100% !important;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
#templates .tpl-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
#templates .tpl-shot.tpl-ph {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,#475569,#1e293b);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
}
#templates .tpl-info {
  width: 100% !important;
  flex-shrink: 0;
  margin-top: 12px;
}
#templates .tpl-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color .3s;
}
#templates .tpl-cat {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
}

/* 悬停动效 */
#templates .tpl:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
#templates .tpl:hover .tpl-shot img { transform: scale(1.08); }
#templates .tpl-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: .35s ease;
  pointer-events: none;
  z-index: 3;
}
#templates .tpl-overlay span {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
#templates .tpl:hover .tpl-overlay { opacity: 1; transform: translateY(0); }
#templates .tpl:hover .tpl-info h3 { color: var(--accent-deep); }
#templates .tpl-cat:hover { color: var(--accent); }

/* ===================== 所有模板按钮（模板库底部，参照 HERO 的「本周精选」按钮） ===================== */
.all-tpl-btn {
  /* 字体：与 hero 的 .hero-actions .btn 一致 */
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  /* 动效：与 hero 按钮一致 —— .2s 过渡，悬停底色由深灰过渡到主题橙 */
  transition: background-color .2s ease, color .2s ease, transform .15s ease !important;
}
.all-tpl-btn:hover {
  /* 背景：参照 hero 本周精选，悬停变主题橙 */
  background: var(--accent);
  color: #fff;
}
.all-tpl-btn:active {
  transform: translateY(1px);
}
.all-tpl-btn:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .45);
  outline-offset: 3px;
}

/* ===================== 我们的服务（浅色栏目，背景参照「建站流程」） ===================== */
.services-section {
  background: var(--bg);
  color: var(--ink);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
/* 微妙暖色光晕 */
.services-section::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,.06) 0%, transparent 70%);
  pointer-events: none;
}
.services-section .section-head {
  margin-bottom: 56px;
  max-width: 760px;   /* 放宽容器，让标题在桌面端可单行显示 */
}
/* 标题强制单行（不换行） */
.services-section .section-head h2 { white-space: nowrap; }
.grid-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
/* 四块服务卡片：浅底深字，随背景清晰可读 */
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 36px 26px 30px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
/* 酷炫悬停：上浮 + 主题橙辉光 + 边框高亮 + 图标弹起 + 水印点亮 */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(249,115,22,.18);
  border-color: rgba(249,115,22,.45);
  background: #fffaf5;
}
.service-num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 900;
  color: rgba(0,0,0,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color .35s ease;
}
.service-card:hover .service-num { color: rgba(249,115,22,.16); }
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  transition: transform .45s cubic-bezier(.34,1.4,.64,1);
}
.service-icon svg {
  width: 100%; height: 100%;
  transition: transform .45s ease;
}
.service-card:hover .service-icon { transform: scale(1.14) rotate(-5deg); }
.service-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: .3px;
  transition: color .3s;
}
.service-card:hover h4 { color: var(--accent-deep); }
.service-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  transition: color .3s;
}
/* 高光扫过（悬停时从左到右掠过） */
.service-card::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 55%; height: 100%; z-index: 4;
  background: linear-gradient(120deg, transparent, rgba(249,115,22,.12), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.service-card:hover::after { animation: svc-sheen .9s ease; }
@keyframes svc-sheen { 0% { left: -65%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
/* 响应式：小屏变两列 */
@media (max-width: 960px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-services { grid-template-columns: 1fr; }
  .services-section { padding: 60px 0 70px; }
  /* 小屏宽度不足以单行显示，放行换行避免横向溢出 */
  .services-section .section-head h2 { white-space: normal; }
}


/* ===================== 模板库卡片：与本精选一致的阴影 + 酷炫鼠标交互 ===================== */
#templates .grid-tpl { margin-top: 40px; }

/* 卡片本体：基础盒模型（原内联 !important 提取为类）+ 阴影/交互（--sh-1）；入场 stagger 延迟用 --rd 变量 */
#templates .tpl-card {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--surface, #fff);
  border: 1px solid var(--line-2, #e5e7eb);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .3s ease, opacity .6s ease;
  transition-delay: var(--rd, 0ms);
}
/* 链接包裹（图片+文字）与分类链接：原内联 !important 提取为类 */
#templates .tpl-card > a { display: block; text-decoration: none; color: inherit; }
#templates .tpl-card > a:last-child { display: block; margin-top: 6px; font-size: 12px; color: var(--muted, #888); text-decoration: none; }
/* 图片容器：内联 border-radius:6px / background:#f1f5f9 与变量默认值(10px/#fafafa)不同，显式覆盖保持一致 */
#templates .tpl-card .tpl-shot { border-radius: 6px; background: #f1f5f9; }
/* 模板区“所有模板”按钮容器 */
#templates .tpl-more { text-align: center; margin-top: 40px; }

/* 图片容器 */
#templates .tpl-shot {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  transform: translateZ(0);
}
#templates .tpl-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

/* 文字区 */
#templates .tpl-info { width: 100%; margin-top: 12px; }
#templates .tpl-info h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--ink); transition: color .3s; }
#templates .tpl-info span { font-size: 12px; color: var(--muted); transition: color .3s; }

/* 悬停：上浮 + 阴影加深(与本精选 --sh-2 一致) + 图片放大 + 浮层淡入 */
#templates .tpl-card:hover {
  transition-delay: 0s !important;            /* 悬停不延迟 */
  transform: translateY(-8px);
  box-shadow: var(--sh-2);
}
#templates .tpl-card:hover .tpl-shot img { transform: scale(1.08); }
#templates .tpl-card:hover .tpl-info h3 { color: var(--accent-deep); }

/* 浮层“查看模板 →” */
#templates .tpl-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); transition: .35s ease; pointer-events: none; z-index: 3;
}
#templates .tpl-overlay span {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
#templates .tpl-card:hover .tpl-overlay { opacity: 1; transform: translateY(0); }

/* 高光扫过（悬停时从左扫到右） */
#templates .tpl-shot::after {
  content: ""; position: absolute; top: 0; left: -65%; width: 55%; height: 100%; z-index: 4;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
#templates .tpl-card:hover .tpl-shot::after { animation: tpl-sheen .85s ease; }
@keyframes tpl-sheen { 0% { left: -65%; opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* 鼠标高光（跟随光标，JS 注入 --mx / --my） */
#templates .tpl-shot::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.35), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
#templates .tpl-card:hover .tpl-shot::before { opacity: 1; }

/* 按下：轻微回弹 */
#templates .tpl-card:active { transform: translateY(-3px) scale(.985); }

/* 点击水波纹（JS 注入 .tpl-ripple，挂在 .tpl-shot 内） */
.tpl-ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.55);
  transform: scale(0); animation: tpl-ripple .6s ease-out; pointer-events: none; z-index: 5;
}
@keyframes tpl-ripple { to { transform: scale(2.4); opacity: 0; } }

/* ===================== 客户真实评价（浅灰底，参照建站笔记 .section alt） ===================== */
/* eyebrow 与「建站流程」保持一致：19.2px / 700 / 字距 1px / 灰 */
#reviews .section-head { margin-bottom: 48px; }
#reviews .section-head .eyebrow,
#services .section-head .eyebrow { font-size: 19.2px; letter-spacing: 1px; font-weight: 700; color: var(--muted); }
#pricing .section-head .eyebrow { font-size: 19.2px; letter-spacing: 1px; font-weight: 700; color: var(--muted); }

/* 享受服务 → 客户感言 之间的 50px 间隙，底色用享受服务栏（白） */
.reviews-gap { height: 50px; background: var(--bg); }

.reviews-viewport {
  overflow: hidden;
  position: relative;
}
.reviews-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.review-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* 每页显示 2 行 × 3 列 = 6 张 */
@keyframes reviewIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.review-card {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: reviewIn .6s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .4s ease;
}
/* 顶部橙色细线：hover 时从左展开 */
.review-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
/* 第 2/3 列错峰入场 */
.review-card:nth-child(2) { animation-delay: .08s; }
.review-card:nth-child(3) { animation-delay: .16s; }
.review-card:nth-child(4) { animation-delay: .08s; }
.review-card:nth-child(5) { animation-delay: .16s; }
.review-card:nth-child(6) { animation-delay: .24s; }
.review-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -14px rgba(249,115,22,.42);
}
.review-card:hover::before { transform: scaleX(1); }
/* 引号图标 */
.review-quote {
  position: absolute; top: 18px; right: 22px;
  font-family: Georgia, serif; font-size: 42px; line-height: 1;
  color: var(--accent); opacity: .25;
  pointer-events: none; user-select: none;
}
.review-card:hover .review-quote { opacity: .45; }
/* 评论文案 */
.review-text {
  font-size: 14px; line-height: 1.75; color: var(--ink-2);
  flex: 1; margin-bottom: 18px;
}
/* 作者区 */
.review-author {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--line);
  flex-shrink: 0;
  transition: transform .35s ease, border-color .35s ease;
}
.review-card:hover .review-avatar { transform: scale(1.08); border-color: var(--accent); }
.review-meta { display: flex; flex-direction: column; }
.review-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.review-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* 星级 */
.review-stars { font-size: 15px; color: var(--accent); letter-spacing: 2px; }

/* 轮播指示器 */
.reviews-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 32px;
}
.reviews-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line); cursor: pointer;
  transition: background .3s, transform .3s;
  border: none; padding: 0;
}
.reviews-dot.active { background: var(--accent); transform: scale(1.25); }
.reviews-dot:hover { background: var(--accent-soft); }

/* 响应式 */
@media (max-width: 960px) {
  .review-page { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .review-page { grid-template-columns: 1fr; }
  .review-card { padding: 22px 18px 18px; }
}

/* ===== merged from moban-listing.css ===== */
.section-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }


.page-hero {
  background: var(--bg);
  padding: 72px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
}
.section-tag {
  display: inline-block;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700; color: var(--ink); line-height: 1.15;
}
.page-hero-desc { color: var(--muted); font-size: 16px; margin-top: 14px; }


.blog-filter { padding: 30px 0 6px; }
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.filter-btn {
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0,0,0,.10);
  color: var(--accent); border-color: var(--line-2);
}
.filter-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 7px 18px rgba(249,115,22,.28);
}
.filter-btn.active:hover { color: #fff; transform: translateY(-2px); }


.templates-gallery { padding: 28px 0 8px; }
.templates-full-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.template-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  transition: .25s;
}
.template-card:hover { transform: translateY(-5px); box-shadow: var(--sh-1); }

.template-card-preview-link { display: block; }
.template-preview {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--bg-alt);
}
.template-preview img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
  transition: transform .4s ease;
}
.template-card:hover .template-preview img { transform: scale(1.04); }

.template-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.28); opacity: 0; transition: .3s;
}
.template-card:hover .template-overlay { opacity: 1; }
.template-overlay .btn {
  background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.template-overlay .btn:hover { background: var(--accent-deep); }

.template-info { padding: 14px 16px 16px; }
.template-card-title-link h3 {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: .2s;
}
.template-card:hover .template-card-title-link h3 { color: var(--accent); }
.template-type { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.template-type:hover { color: var(--accent); }


.search-pagination { padding: 24px 0 90px; }
.search-pagination .section-container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.search-pagination .btn { min-width: 42px; justify-content: center; }
.search-pagination .btn-primary { background: var(--accent); color: #fff; }
.search-pagination .btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.search-pagination .btn-outline:hover { background: var(--ink); color: #fff; }


@media (max-width: 1000px) {
  .templates-full-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .templates-full-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 50px 0 36px; }
}

/* ===== merged from template-detail.css ===== */
:root {
  --nav-height: 68px;             
  --font-display: var(--display);
  --white:   var(--ink);          
  --silver:  var(--muted);        
  --slate:   var(--muted);        
  --mist:    var(--ink-2);        
  --amber:   var(--accent);       
  --amber-soft: var(--accent-soft);
  --ink-mid: var(--line);         
  --ink-light: var(--bg-alt);     
}


.td-content {
    padding: calc(var(--nav-height) + 48px) 0 80px;
}

.td-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.td-content .breadcrumb a {
    color: var(--muted);
}

.td-content .breadcrumb a:hover {
    color: var(--amber);
}

.td-content .breadcrumb-sep {
    color: rgba(0, 0, 0, 0.2);
    font-size: 11px;
}


.td-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

.td-main {
    min-width: 0;
}


.td-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.td-name {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.td-desc {
    font-size: 15px;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 28px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(249, 115, 22, 0.38) rgba(0, 0, 0, 0.04);
}

.td-desc::-webkit-scrollbar {
    width: 8px;
}

.td-desc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
}

.td-desc::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.38);
    border-radius: 999px;
}

.td-desc::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.56);
}


.td-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    border: 1px solid var(--ink-mid);
    border-radius: 12px;
    overflow: hidden;
}

.td-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.td-meta-item+.td-meta-item {
    border-top: 1px solid var(--ink-mid);
}

.td-meta-label {
    font-size: 13px;
    color: var(--slate);
}

.td-meta-value {
    font-size: 13px;
    color: var(--mist);
    font-weight: 500;
}


.td-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}


.td-back {
    font-size: 13px;
    color: var(--slate);
    transition: color 0.3s ease;
}

.td-back:hover {
    color: var(--amber);
}


.td-content-card {
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--silver);
    line-height: 1.8;
}


.content-no-reveal .reveal,
.content-no-reveal .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.td-content-card>*:first-child {
    margin-top: 0;
}

.td-content-card>*:last-child {
    margin-bottom: 0;
}

.td-content-card h1,
.td-content-card h2,
.td-content-card h3,
.td-content-card h4,
.td-content-card h5,
.td-content-card h6 {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.35;
    margin: 1.3em 0 0.5em;
}

.td-content-card h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.td-content-card h3 {
    font-size: clamp(20px, 2.2vw, 28px);
}

.td-content-card p {
    margin: 0 0 1.1em;
}

.td-content-card ul,
.td-content-card ol {
    margin: 0.4em 0 1.2em 1.25em;
}

.td-content-card li+li {
    margin-top: 0.4em;
}

.td-content-card a {
    color: var(--amber);
}

.td-content-card a:hover {
    color: var(--amber-soft);
}

.related-posts .templates-grid {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .related-posts .templates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .related-posts .templates-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.related-templates-section {
    padding-top: 0;
    padding-bottom: 56px;
}

.related-posts .template-info {
    min-height: auto;
    padding: 12px 2px 2px;
    align-items: center;
    gap: 10px;
}

.related-posts .template-info h3 {
    line-height: 1.35;
}

.related-posts .template-type {
    align-self: center;
}

@media (max-width: 768px) {
    .related-templates-section {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .related-templates-section {
        padding-bottom: 28px;
    }
}

.td-content-card blockquote {
    margin: 1.2em 0;
    padding: 0.9em 1em;
    border-left: 3px solid var(--amber);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    color: var(--mist);
}

.td-content-card pre {
    overflow-x: auto;
    padding: 0.9em 1em;
    border-radius: 10px;
    border: 1px solid var(--ink-mid);
    background: var(--bg-alt);
}

.td-content-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.td-content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blocksy-template-showcase {
    display: grid;
    gap: 40px;
}

.blocksy-template-hero h3,
.blocksy-template-gallery-section h3 {
    margin-bottom: 18px;
}

.blocksy-template-hero-media {
    margin: 0;
}

.blocksy-template-hero-media img {
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.blocksy-template-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.blocksy-template-gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
}

.blocksy-template-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.03);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.blocksy-template-gallery-item figcaption {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    color: var(--white);
    letter-spacing: -0.02em;
}

.td-content-card table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.td-content-card th,
.td-content-card td {
    border: 1px solid var(--ink-mid);
    padding: 10px 12px;
    text-align: left;
}

.td-content-card th {
    color: var(--white);
    background: rgba(0, 0, 0, 0.03);
}

.td-content-card hr {
    border: 0;
    border-top: 1px solid var(--ink-mid);
    margin: 1.6em 0;
}

.td-cta {
    padding: 0 0 100px;
}

.td-cta-inner {
    text-align: center;
    padding: 56px 40px;
    background: var(--ink-light);
    border: 1px solid var(--ink-mid);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.td-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.06), transparent 60%);
    pointer-events: none;
}

.td-cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
}

.td-cta-inner p {
    font-size: 15px;
    color: var(--silver);
    margin-bottom: 28px;
    position: relative;
}

.td-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}


@media (max-width: 900px) {
    .td-layout {
        grid-template-columns: 1fr;
    }

    .td-sidebar {
        position: static;
    }

    .td-desc {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .td-actions {
        flex-direction: row;
    }

    .td-actions .btn {
        flex: 1;
    }

    .td-cta-inner {
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .blocksy-template-showcase {
        gap: 28px;
    }

    .blocksy-template-gallery {
        gap: 24px;
    }

    .blocksy-template-gallery-item {
        gap: 12px;
    }

    .blocksy-template-gallery-item figcaption {
        font-size: 24px;
    }
}


.td-pricing-cta {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), transparent);
}

.td-pricing-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.td-pricing-cta-badge {
  color: var(--amber);
  font-weight: 700;
  font-size: 15px;
}

.td-pricing-cta-desc {
  color: var(--silver);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== reveal token compatibility (added by refactor) ===== */
.reveal.visible { opacity: 1; transform: none; }
#works .work.reveal.visible { transform: none; opacity: 1; }
#process .step.reveal.visible { transform: none; opacity: 1; }
