/* ============================================================
   大饼子 · 门户
   纯静态、零依赖、无外部字体，直接部署即可
   ============================================================ */

:root {
  --ink: #14232B;
  --ink-2: #3D5561;
  --ink-3: #6B7C87;
  --ink-4: #98A6B0;
  --line: #E5EBEF;
  --line-2: #D8E1E7;
  --bg: #FBFCFD;
  --white: #FFFFFF;
  --brand: #1C6E8C;
  --brand-d: #14556D;
  --brand-l: #E8F1F5;
  --accent: #C4553B;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- 顶部 ---------------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 253, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

/* 悬停时轻轻转一格，呼应标志里的"轮" */
.brand:hover .brand-mark {
  transform: rotate(30deg);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.brand .brand-mark { transition: transform .35s ease; }

.brand-txt {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-txt em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-4);
  letter-spacing: 0;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  color: var(--ink-2);
  transition: color 0.15s;
  white-space: nowrap;
}

/* 手机端菜单按钮：宽屏隐藏，由 mobile-nav.js 注入 */
/* 菜单按钮：淡蓝底 + 描边 + 文字，白色页头上也能一眼看出是按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 1px solid #D3E1E9;
  border-radius: 999px;
  background: #F0F7FA;
  color: var(--brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  flex: none;
  transition: background .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: #E6F1F6; border-color: #BFD3DE; }
.nav-toggle:active { background: #DCECF3; }
.nav-toggle[aria-expanded="true"] { background: #DCECF3; border-color: #B6CDDA; }

.nt-ico {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}
.nt-ico path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease, opacity .16s;
}
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(4.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-4.6px) rotate(-45deg); }

.nt-txt { line-height: 1; }

.nav a:hover {
  color: var(--brand);
}

.nav-cta {
  padding: 7px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand) !important;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--brand);
  color: #fff !important;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 64px 0 68px;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(28, 110, 140, 0.10), transparent 70%),
    radial-gradient(700px 360px at 8% 0%, rgba(196, 85, 59, 0.06), transparent 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 35, 43, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 43, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-in {
  display: flex;
  align-items: center;
  gap: 44px;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

/* 首屏右侧：后台窗口 + 手机端错位堆叠 */

.hero-art {
  position: relative;
  flex: 0 0 496px;
  height: 392px;
}

.art-plate {
  position: absolute;
  top: 40px;
  right: -8px;
  width: 424px;
  height: 292px;
  border-radius: 16px;
  background: var(--brand-l);
}

.art-browser {
  position: absolute;
  top: 0;
  left: 0;
  width: 470px;
  height: 330px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(20, 35, 43, 0.13);
}

.art-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFD;
}

.art-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}

.art-url {
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0;
}

.art-shot {
  height: 300px;
  overflow: hidden;
  background: #F6F9FA;
}

.art-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.art-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 296px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px rgba(20, 35, 43, 0.16);
}

.art-notch {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  margin: 0 auto 9px;
  flex-shrink: 0;
}

.art-p-top {
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  flex-shrink: 0;
}

.art-p-hero {
  height: 86px;
  border-radius: 8px;
  background: #F4F7F9;
  margin-top: 8px;
  flex-shrink: 0;
}

.art-p-line {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  margin-top: 8px;
  flex-shrink: 0;
}

.art-p-line.short {
  width: 58%;
}

.art-p-price {
  width: 42%;
  height: 10px;
  border-radius: 5px;
  background: var(--accent);
  margin-top: 12px;
  flex-shrink: 0;
}

.art-p-spec {
  height: 22px;
  border-radius: 6px;
  background: #F4F7F9;
  margin-top: 10px;
  flex-shrink: 0;
}

.art-p-btn {
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  margin-top: auto;
  flex-shrink: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--brand-l);
  border: 1px solid #CFE2EA;
  color: var(--brand-d);
  font-size: 12.5px;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1F9D74;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 9.2em;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--brand);
}

.hero-sub {
  margin-top: 20px;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
}

.hero-acts {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.hero-note a {
  border-bottom: 1px solid rgba(28, 110, 140, 0.35);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 85, 109, 0.18), 0 6px 18px rgba(28, 110, 140, 0.16);
}

.btn-primary:hover {
  background: var(--brand-d);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 18px;
}

/* ---------------- 数字条 ---------------- */

.stats {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 28px;
}

.stat {
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  display: block;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------------- 区块 ---------------- */

.sec {
  padding: 84px 0;
}

.sec-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-hd {
  margin-bottom: 40px;
  max-width: 40em;
}

.sec-hd h2 {
  font-size: 30px;
}

.sec-hd p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-3);
}

/* ---------------- 案例 ---------------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cases { grid-template-columns: 1fr; gap: 18px; }
}

.case {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.case:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 14px 40px rgba(20, 35, 43, 0.09);
}

.case-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

.case-top {
  position: relative;
  min-height: 208px;
  background: linear-gradient(160deg, #F2F7F9 0%, #E9F1F5 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.case-featured .case-top {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  min-height: 100%;
}

.case-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.case-badge {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand-l);
  border: 1px solid #CFE2EA;
  color: var(--brand-d);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.case-bd {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-bd h3 {
  font-size: 20px;
}

.case-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--brand);
}

.case-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.case-points {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.case-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.case-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.case-tags span {
  padding: 3px 10px;
  border-radius: 6px;
  background: #F4F7F9;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}

.case-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-4);
}

.case-hint.plain {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------------- 案例示意图（纯 CSS，不用图片） ---------------- */

.case-visual {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-erp-wrap {
  padding: 30px 26px 0;
  align-items: flex-end;
}

.v-erp {
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -1px 0 rgba(20, 35, 43, 0.04), 0 10px 30px rgba(20, 35, 43, 0.12);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  align-items: stretch;
}

.v-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #EFF3F6;
  background: #FAFCFD;
}

.v-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9E2E8;
}

.v-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.v-side {
  width: 27%;
  background: #14556D;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v-side span {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.v-side span:first-child {
  background: rgba(255, 255, 255, 0.55);
  width: 70%;
}

.v-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.v-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.v-kpis i {
  height: 26px;
  border-radius: 5px;
  background: #E8F1F5;
}

.v-row {
  height: 9px;
  border-radius: 4px;
  background: #F0F4F7;
}

.v-row.short {
  width: 62%;
}

.v-canteen-wrap {
  gap: 14px;
  padding: 26px 26px 0;
  align-items: flex-end;
}

.v-mini {
  flex: 1;
  min-width: 0;
  height: 166px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(20, 35, 43, 0.12);
}

.v-mini:first-child {
  margin-bottom: 16px;
}

.v-mini img {
  display: block;
  width: 100%;
  height: auto;
}

.v-shop {
  padding: 26px 30px;
}

.v-panel {
  width: 100%;
  max-width: 268px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 35, 43, 0.1);
}

.v-panel-hd {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.v-panel-hd i {
  width: 44px;
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}

.v-panel-hd i:first-child {
  width: 64px;
  background: #CFE2EA;
}

.v-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 86px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.v-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #CFE2EA;
}

.v-bars i:nth-child(4),
.v-bars i:nth-child(6) {
  background: var(--brand);
}

.v-panel-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.v-panel-rows i {
  height: 6px;
  border-radius: 3px;
  background: #F0F4F7;
}

.v-panel-rows i:nth-child(2) {
  width: 74%;
}

.v-panel-rows i:nth-child(3) {
  width: 52%;
}

/* ---------------- 能力 ---------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cap {
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.16s, transform 0.16s;
}

.sec-alt .cap {
  background: #FBFCFD;
}

.cap:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.cap-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--brand-l);
  color: var(--brand);
}

.cap-ic svg {
  width: 21px;
  height: 21px;
}

.cap h3 {
  font-size: 15.5px;
}

.cap p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ---------------- 流程 ---------------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: f;
}

.flow li {
  padding-top: 30px;
  border-top: 1px solid var(--line-2);
  position: relative;
}

.flow-n {
  position: absolute;
  top: -13px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  letter-spacing: 0;
}

.flow h3 {
  margin-top: 0;
  font-size: 15.5px;
}

.flow p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ---------------- 联系 ---------------- */

.sec-contact {
  background: var(--brand-d);
  color: #fff;
  padding: 72px 0;
}

.contact-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  align-items: center;
}

.contact-copy {
  max-width: 620px;
}

.sec-contact h2 {
  font-size: 30px;
  color: #fff;
}

.contact-sub {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.contact-badges {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-badges span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  width: 100%;
  padding: 26px 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.cc-k {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--ink-4);
}

.cc-k:first-child {
  margin-top: 0;
}

.cc-v {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.cc-v a {
  color: var(--ink);
  transition: color 0.15s;
}

.cc-v a:hover {
  color: var(--brand);
}

.cc-copy {
  padding: 2px 9px;
  border: 1px solid #CFE2EA;
  border-radius: 6px;
  background: var(--brand-l);
  color: var(--brand);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cc-copy:hover {
  background: #D9E9F0;
}

.cc-copy.is-done {
  background: #E7F2EC;
  border-color: #C6E3D6;
  color: #1F9D74;
}

.cc-tip {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.sec-contact .btn-primary {
  background: #fff;
  color: var(--brand-d);
  box-shadow: none;
}

.sec-contact .btn-primary:hover {
  background: #EAF3F6;
}

/* ---------------- 页脚 ---------------- */

.ft {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-size: 12.5px;
  color: var(--ink-4);
}

.ft-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ft-links {
  display: flex;
  gap: 20px;
}

.ft-links a {
  color: var(--ink-3);
}

.ft-links a:hover {
  color: var(--brand);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .hero {
    padding: 56px 0 52px;
  }

  .hero-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 44px;
  }

  .hero-art {
    flex: 0 0 auto;
    width: 100%;
    max-width: 470px;
    height: 344px;
  }

  .art-browser {
    width: 100%;
    height: 292px;
  }

  .art-shot {
    height: 262px;
  }

  .art-plate {
    display: none;
  }

  .art-phone {
    width: 124px;
    height: 248px;
  }

  .art-p-hero {
    height: 64px;
  }

  .hero h1 {
    font-size: 38px;
    max-width: none;
  }

  .hero-sub {
    font-size: 15.5px;
    max-width: none;
  }

  .sec {
    padding: 60px 0;
  }

  .sec-hd h2 {
    font-size: 25px;
  }

  .cases,
  .case-featured {
    grid-template-columns: 1fr;
  }

  .case-featured .case-top {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 200px;
  }

  .caps,
  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .stats-in {
    grid-template-columns: 1fr 1fr;
    gap: 26px 0;
  }

  .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .contact-in {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-card {
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  /* 导航已经整体收进下拉面板（见 mobile-nav.js），这里不再按位置隐藏任何一项。
     ⚠️ 曾经用 .nav a:nth-child(2/3) 隐藏中间锚点，一加新链接就错位，
     结果把「学习」「读书」藏掉了 —— 别再按位置写选择器。 */
  .nav {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-art {
    max-width: 100%;
    height: 296px;
  }

  .art-browser {
    height: 258px;
  }

  .art-shot {
    height: 228px;
  }

  .art-phone {
    display: none;
  }

  .caps,
  .flow {
    grid-template-columns: 1fr;
  }

  .case-bd {
    padding: 20px;
  }

  .btn {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   案例详情页（case-hotel.html）
   ============================================================ */

.case-page {
  background: var(--white);
}

.cp-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(820px 380px at 82% -12%, rgba(28, 110, 140, 0.10), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.cp-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.cp-back:hover {
  color: var(--brand);
}

.cp-hero h1 {
  font-size: 40px;
  letter-spacing: -0.03em;
}

/* ---------- 痛点前置：每个案例页开头先说客户卡在哪 ---------- */
.cp-pain {
  margin: 20px 0 2px;
  padding: 18px 22px 18px 22px;
  max-width: 46em;
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, rgba(28, 110, 140, 0.055), rgba(28, 110, 140, 0));
  border-radius: 0 10px 10px 0;
}

.cp-pain-q {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.cp-pain-a {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.cp-pain-a strong {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 600px) {
  .cp-pain {
    margin-top: 16px;
    padding: 14px 16px 14px 16px;
  }
  .cp-pain-q { font-size: 17px; }
  .cp-pain-a { font-size: 14.5px; line-height: 1.8; }
}

.cp-lead {
  margin-top: 16px;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}

.cp-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.cp-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
  margin-bottom: 5px;
}

.cp-meta b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.cp-acts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cp-hint {
  font-size: 12.5px;
  color: var(--ink-4);
}

.cp-sec {
  padding: 64px 0;
}

.cp-alt {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cp-sec h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.cp-narrow {
  max-width: 800px;
}

.cp-narrow p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.cp-narrow p:last-child {
  margin-bottom: 0;
}

.cp-narrow strong {
  font-weight: 600;
  color: var(--ink);
}

.cp-sec-sub {
  margin: -10px 0 28px;
  font-size: 14px;
  color: var(--ink-3);
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cp-card {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cp-card h3 {
  font-size: 15px;
}

.cp-card p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}

.cp-shot {
  margin: 0 0 26px;
}

.cp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(20, 35, 43, 0.10);
}

.cp-shot figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.cp-shot-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cp-dec {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.cp-dec:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.cp-dec h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.cp-narrow code {
  padding: 1px 6px;
  border-radius: 4px;
  background: #EEF3F6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--brand-d);
}

.cp-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.cp-nums b {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.2;
}

.cp-nums span {
  font-size: 12.5px;
  color: var(--ink-3);
}

.cp-cta {
  background: var(--brand-d);
  color: #fff;
  padding: 56px 0;
}

.cp-cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cp-cta h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}

.cp-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.cp-cta .btn-primary {
  background: #fff;
  color: var(--brand-d);
  box-shadow: none;
}

.cp-cta .btn-primary:hover {
  background: #EAF3F6;
}

/* 案例详情页：模块清单 + 交付清单 */

.cp-mods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cp-mod {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cp-mod h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.cp-mod ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.cp-mod li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.cp-mod li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

.cp-deliver {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.cp-dl {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFCFD;
}

.cp-dl h3 {
  font-size: 15px;
}

.cp-dl p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* 小程序码 */

.cp-cta-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wx-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: #fff;
}

.wx-card img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 6px;
}

.wx-card span {
  font-size: 12px;
  color: var(--ink-3);
}

/* 案例详情页：双角色对照 + 小程序手机墙 */

.role-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.role-card {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.role-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand-l);
  border: 1px solid #CFE2EA;
  color: var(--brand-d);
  font-size: 11.5px;
  font-weight: 500;
}

.role-tag.alt {
  background: #FBEDE9;
  border-color: #F0D6CE;
  color: #A8482F;
}

.role-card h3 {
  margin-top: 14px;
  font-size: 18px;
}

.role-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.role-card li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.role-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

.mp-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 44px;
}

.mp-wall:last-child {
  margin-bottom: 0;
}

.mp {
  margin: 0;
}

.mp-phone {
  padding: 8px;
  border-radius: 30px;
  background: #14232B;
  box-shadow: 0 14px 36px rgba(20, 35, 43, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mp:hover .mp-phone {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 35, 43, 0.2);
}

.mp-screen {
  border-radius: 23px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 620 / 1150;
}

.mp-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mp figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.mp figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-4);
}

/* 录屏演示 */

.demo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: center;
}

.demo-copy h3 {
  font-size: 20px;
}

.demo-copy p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.demo-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 20px;
}

.demo-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.demo-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

.video-wrap {
  position: relative;
  aspect-ratio: 1080 / 2332;
  cursor: pointer;
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #F4F7F9;
}

.vp-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(20, 35, 43, 0.24);
  transition: opacity 0.2s, transform 0.2s;
}

.vp-btn svg {
  margin-left: 2px;
}

.vp-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.vp-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 960px) {
  .cp-hero {
    padding: 36px 0 34px;
  }

  .cp-hero h1 {
    font-size: 30px;
  }

  .cp-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cp-sec {
    padding: 44px 0;
  }

  .cp-grid,
  .cp-shot-2,
  .cp-nums,
  .cp-mods {
    grid-template-columns: 1fr 1fr;
  }

  .cp-deliver,
  .role-pair {
    grid-template-columns: 1fr;
  }

  .demo-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .demo-row .mp-phone {
    max-width: 260px;
    margin: 0 auto;
  }

  .cp-cta-in {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .cp-grid,
  .cp-shot-2,
  .cp-nums,
  .cp-mods {
    grid-template-columns: 1fr;
  }

  .mp-wall {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .mp {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 案例卡片：真实截图 + 双按钮 */
.v-shot {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #F6F9FA;
}

.v-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-acts {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.case-acts .btn {
  flex: 1;
}

.case-hint a {
  border-bottom: 1px solid rgba(28, 110, 140, 0.35);
}

/* ============================================================
   案例页通用：状态徽章 / 分组 / 页面卡片 / 手机界面
   ============================================================ */

.cp-hd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cp-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.cp-status.live {
  background: #EAF7F1;
  color: #17795A;
  border: 1px solid #BFE3D3;
}

.cp-status.dev {
  background: #FFF6E8;
  color: #A9630A;
  border: 1px solid #F0DCB8;
}

.cp-group {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 30px 0 14px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  line-height: 1.2;
}

.cp-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cp-pg {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.cp-pg b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.cp-pg em {
  display: inline-block;
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--ink-4);
  background: #F1F5F7;
  padding: 1px 6px;
  border-radius: 4px;
}

.cp-pg p {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.cp-pg p strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- 手机界面还原 ---------- */

.cp-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 34px;
}

.ph {
  margin: 0;
}

.ph-scr {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  aspect-ratio: 250 / 500;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #DCE4E9;
  box-shadow: 0 14px 34px rgba(20, 35, 43, 0.10);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

/* 真实手机截图：与手绘示意图同一套相框，只是内容换成实拍 */
.ph-shot {
  display: block;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  height: auto;
  border-radius: 24px;
  border: 1px solid #DCE4E9;
  box-shadow: 0 14px 34px rgba(20, 35, 43, 0.10);
  background: #fff;
}

.ph figcaption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.ph-stat {
  display: flex;
  justify-content: space-between;
  padding: 7px 14px 3px;
  font-size: 9px;
  color: #9AA6AE;
}

.ph-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 14px 9px;
  border-bottom: 1px solid #F0F4F6;
}

.ph-hd b {
  font-size: 14px;
  font-weight: 600;
  color: #14232B;
}

.ph-table {
  font-size: 9.5px;
  color: #8A97A0;
  background: #F3F6F8;
  padding: 2px 7px;
  border-radius: 999px;
}

/* 烧烤：橙色系 */
.ph-scr.bbq { background: #FFFDFB; }
.ph-scr.bbq .ph-hd { border-bottom-color: #F6EBE3; }

.ph-cats {
  display: flex;
  gap: 6px;
  padding: 9px 14px 4px;
  overflow: hidden;
}

.ph-cats i {
  font-style: normal;
  font-size: 9.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F6EFE9;
  color: #8B7263;
  white-space: nowrap;
}

.ph-cats i.on { background: #FF6B1A; color: #fff; font-weight: 500; }

.ph-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
}

.ph-thumb {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  flex: 0 0 46px;
}

.ph-info { flex: 1; min-width: 0; }
.ph-info b { display: block; font-size: 11px; color: #2A2622; font-weight: 600; }
.ph-info span { display: block; font-size: 9px; color: #A79789; margin-top: 2px; }
.ph-info em { display: block; font-style: normal; font-size: 11px; color: #E85500; font-weight: 600; margin-top: 3px; }

.ph-add {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FF6B1A;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex: 0 0 20px;
}

.ph-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2A2622;
  color: #fff;
  font-size: 10px;
}

.ph-bar b { margin-left: auto; font-size: 13px; color: #FFB020; }
.ph-bar em {
  font-style: normal;
  background: #FF6B1A;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}

.ph-bar.solo { justify-content: center; background: #F7F1EC; }
.ph-bar.solo em { background: #FF6B1A; color: #fff; padding: 8px 26px; }

/* 购物车行 */
.ph-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #F6F1ED;
  font-size: 10.5px;
}

.ph-line b { flex: 1; font-weight: 500; color: #2A2622; }
.ph-line span { color: #E85500; font-weight: 600; }
.ph-line i { font-style: normal; font-size: 9px; color: #9A8A7C; background: #F6EFE9; border-radius: 6px; padding: 2px 7px; }

.ph-note {
  margin: 10px 14px;
  padding: 7px 10px;
  background: #FFF6EC;
  border-radius: 7px;
  font-size: 9.5px;
  color: #A2703B;
}

.ph-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 14px 12px;
  font-size: 11px;
  color: #6B6259;
}

.ph-total b { font-size: 16px; color: #E85500; }

/* 商家看板 */
.ph-kpis {
  display: flex;
  gap: 6px;
  padding: 10px 14px 4px;
}

.ph-kpis > div {
  flex: 1;
  background: #FFF6EF;
  border-radius: 8px;
  padding: 7px 6px;
  text-align: center;
}

.ph-kpis em { display: block; font-style: normal; font-size: 8.5px; color: #A98E7A; }
.ph-kpis b { display: block; font-size: 11px; color: #D9531E; font-weight: 700; margin-top: 2px; }

.ph-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 74px;
  padding: 10px 14px 0;
}

.ph-chart i {
  flex: 1;
  background: linear-gradient(180deg, #FF8A47, #FF6B1A);
  border-radius: 2px 2px 0 0;
}

.ph-peak {
  margin: 10px 14px 0;
  padding: 8px 10px;
  background: #F6F2EE;
  border-radius: 8px;
  font-size: 9px;
  color: #8A7A6C;
}

.ph-peak b { color: #D9531E; font-size: 10px; }
.ph-peak span { display: block; margin-top: 3px; color: #A79789; }

.ph-tab {
  margin-top: auto;
  display: flex;
  border-top: 1px solid #F0F4F6;
  padding: 8px 0 10px;
}

.ph-tab i {
  flex: 1;
  text-align: center;
  font-style: normal;
  font-size: 9px;
  color: #A6B2BA;
}

.ph-tab i.on { color: #FF6B1A; font-weight: 600; }

/* 棋牌：墨绿 + 金 */
.ph-scr.qp { background: #FAFBF9; }
.ph-scr.qp .ph-hd { border-bottom-color: #EDF1EC; }

.ph-seat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid #F1F4EF;
}

.ph-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 600;
  flex: 0 0 30px;
}

.ph-av.g1 { background: #C8912A; }
.ph-av.g2 { background: #6C8F7B; }
.ph-av.g3 { background: #8A9AA0; }
.ph-av.g4 { background: #B07C5E; }

.ph-pinfo { flex: 1; min-width: 0; }
.ph-pinfo b { font-size: 11px; color: #2B332E; font-weight: 600; }
.ph-dealer {
  display: inline-block;
  margin-left: 5px;
  font-size: 8px;
  background: #C8912A;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
}

.ph-seat em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
}

em.up { color: #1F7A5A; }
em.down { color: #B4553F; }

.ph-quick {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
}

.ph-quick i {
  flex: 1;
  text-align: center;
  font-style: normal;
  font-size: 9px;
  padding: 6px 0;
  border-radius: 7px;
  background: #F1F4EF;
  color: #5E6B62;
}

.ph-scr.qp .ph-bar.solo { background: #F0F3EE; }
.ph-scr.qp .ph-bar.solo em { background: #2F5D46; color: #fff; padding: 8px 26px; }
.ph-scr.qp .ph-tab i.on { color: #2F5D46; }

.ph-rank {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid #F1F4EF;
  font-size: 11px;
}

.ph-rank i {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #E8EDE6;
  color: #6C7A70;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 9px; font-weight: 600;
  flex: 0 0 19px;
}

.ph-rank i.r1 { background: #C8912A; color: #fff; }
.ph-rank b { flex: 1; font-weight: 500; color: #2B332E; }
.ph-rank em { font-style: normal; font-weight: 700; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }

.ph-settle {
  margin: 10px 14px 0;
  padding: 9px 11px;
  background: #F5F7F3;
  border-radius: 8px;
  font-size: 9px;
  color: #6E7B71;
  line-height: 1.7;
}

.ph-settle b { display: block; font-size: 10px; color: #2F5D46; margin-bottom: 3px; }
.ph-settle span { display: block; }

.ph-play {
  margin: 9px 14px 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E8EDE6;
  border-radius: 9px;
}

.ph-play b { display: block; font-size: 11px; color: #2B332E; }
.ph-play span { display: block; font-size: 9px; color: #93A096; margin-top: 2px; }
.ph-play i {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-size: 9px;
  background: #2F5D46;
  color: #fff;
  padding: 3px 11px;
  border-radius: 999px;
}

.ph-join {
  margin: 12px 14px 0;
  font-size: 9px;
  color: #93A096;
}

.ph-join span {
  display: inline-block;
  margin-left: 4px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: #2B332E;
  font-weight: 600;
}

/* ---------- 二维码区块 ---------- */

.qp-qr {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 560px;
}

.qp-qr img {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 10px;
}

.qp-qr-txt b { font-size: 15px; color: var(--ink); }
.qp-qr-txt p { margin: 7px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.qp-qr-note { color: var(--ink-4) !important; font-size: 12px !important; }

/* ---------- 菜品图 ---------- */

.bbq-dishes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.bbq-dishes img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ---------- 主题色微调 ---------- */

.bbq-hero {
  background:
    radial-gradient(760px 360px at 85% -10%, rgba(255, 107, 26, 0.12), transparent 70%),
    var(--bg);
}

.qp-hero {
  background:
    radial-gradient(760px 360px at 85% -10%, rgba(47, 93, 70, 0.10), transparent 70%),
    var(--bg);
}

@media (max-width: 960px) {
  .cp-pages { grid-template-columns: 1fr 1fr; }
  .cp-phones { grid-template-columns: 1fr; gap: 34px; }
  .ph-scr { max-width: 230px; }
  .bbq-dishes { grid-template-columns: 1fr 1fr; }
  .qp-qr { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .cp-pages { grid-template-columns: 1fr; }
}

/* ============================================================
   右侧固定边栏（婚礼邀请入口）
   ============================================================ */

.side-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px 14px 14px;
  background: linear-gradient(135deg, #B9797A, #8E5A63);
  color: #fff;
  border-radius: 14px 0 0 14px;
  box-shadow: -6px 10px 26px rgba(142, 90, 99, 0.30);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font-size: 13.5px;
  line-height: 1;
}

.side-rail a:hover {
  transform: translateX(-4px);
  box-shadow: -8px 12px 30px rgba(142, 90, 99, 0.42);
}

.side-rail .rail-ico {
  writing-mode: horizontal-tb;
  font-size: 16px;
  letter-spacing: 0;
}

.side-rail .rail-hint {
  writing-mode: horizontal-tb;
  font-size: 10px;
  opacity: 0.85;
  letter-spacing: 0;
}

.side-rail a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 0 0 0 rgba(185, 121, 122, 0.55);
  animation: railPulse 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes railPulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 121, 122, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(185, 121, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 121, 122, 0); }
}

@media (max-width: 960px) {
  .side-rail {
    top: auto;
    bottom: 18px;
    transform: none;
    right: 14px;
  }

  .side-rail a {
    writing-mode: horizontal-tb;
    border-radius: 999px;
    padding: 12px 20px;
    letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(142, 90, 99, 0.35);
  }

  .side-rail a::after { border-radius: 999px; }
  .side-rail .rail-hint { display: none; }
}

/* 案例卡：整幅图 / 二维码 */
.case-visual.v-fill { padding: 0; }
.case-visual.v-fill img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.case-visual.v-qr { background: #F7FAF8; display: flex; align-items: center; justify-content: center; padding: 22px; }
.case-visual.v-qr img { width: 52%; height: auto; border-radius: 10px; box-shadow: 0 8px 22px rgba(20, 35, 43, .10); }
.case-visual.v-dish { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.case-visual.v-dish img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 案例卡：宽幅单行（用于最后一张，避免右边空着） */
.case.case-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.case-wide .case-top {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  min-height: 100%;
}

.case-wide .case-visual.v-qr img { width: 62%; }

@media (max-width: 960px) {
  .case.case-wide {
    grid-template-columns: 1fr;
  }

  .case-wide .case-top {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 208px;
  }
}

/* ============================================================
   案例页：深入功能模块 + 五屏手机
   ============================================================ */

.cp-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 6px;
}

.cp-feat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}

.cp-feat h3 {
  font-size: 14.5px;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.cp-feat h3 i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #EAF3F6;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.cp-feat.bbq h3 i { background: #FFF1E8; color: #D9531E; }
.cp-feat.qp h3 i { background: #EDF2ED; color: #2F5D46; }

.cp-feat ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-feat li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.cp-feat li:last-child { margin-bottom: 0; }

.cp-feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

.cp-feat.bbq li::before { background: #E85500; }
.cp-feat.qp li::before { background: #2F5D46; }

.cp-feat li b { color: var(--ink-2); font-weight: 600; }
.cp-feat li em { font-style: normal; color: var(--brand); }
.cp-feat.bbq li em { color: #D9531E; }
.cp-feat.qp li em { color: #2F5D46; }

/* 五屏手机：自适应换行 */
.cp-phones.five {
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 20px;
}

.cp-phones.five .ph-scr { max-width: 218px; font-size: 10px; }

@media (max-width: 960px) {
  .cp-feats { grid-template-columns: 1fr; }
  .cp-phones.five { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cp-phones.five { grid-template-columns: 1fr; }
}

/* 手机内：开关 / 分段 / 提示条 / 四象限 */
.ph-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #F1F4EF;
  font-size: 10px;
  color: #2B332E;
}

.ph-opt > div { min-width: 0; }
.ph-opt span { display: block; font-size: 8px; color: #93A096; margin-top: 2px; line-height: 1.4; }

.ph-sw {
  width: 26px; height: 15px;
  border-radius: 999px;
  background: #DCE3DD;
  position: relative;
  flex: 0 0 26px;
}

.ph-sw.on { background: #2F5D46; }
.ph-sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
}
.ph-sw.on::after { left: 13px; }

.ph-mic {
  margin: 8px 14px;
  padding: 9px;
  border-radius: 9px;
  background: #EDF2ED;
  color: #2F5D46;
  font-size: 9.5px;
  text-align: center;
}

.ph-seg {
  display: flex;
  margin: 9px 14px 0;
  background: #F6EFE9;
  border-radius: 8px;
  padding: 2px;
}

.ph-seg i {
  flex: 1; text-align: center; font-style: normal;
  font-size: 9px; padding: 5px 0; border-radius: 6px; color: #9A8A7C;
}

.ph-seg i.on { background: #fff; color: #D9531E; font-weight: 600; }

.ph-alert {
  margin: 8px 14px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #FFF4E8;
  color: #A9630A;
  font-size: 8.5px;
  line-height: 1.5;
}

.ph-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px 14px 0;
}

.ph-quad > div {
  background: #FFF6EF;
  border-radius: 7px;
  padding: 7px 6px;
  text-align: center;
}

.ph-quad b { display: block; font-size: 9px; color: #D9531E; }
.ph-quad em { display: block; font-style: normal; font-size: 8px; color: #A98E7A; margin-top: 2px; }

/* 五屏版略高一点，避免底部按钮条被切 */
.cp-phones.five .ph-scr { aspect-ratio: 250 / 512; }

/* 婚礼庆典站案例卡 */

.v-wed {
  padding: 26px 30px 0;
  align-items: flex-end;
}

.v-wed-frame {
  width: 100%;
  max-width: 250px;
  height: 182px;
  display: flex;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(20, 35, 43, 0.12);
}

.v-wed-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* 婚礼卡横排时的图片区：填满左栏，按人脸位置裁切 */

.case-wide .v-wed {
  padding: 20px 24px;
  align-items: stretch;
  justify-content: stretch;
}

.case-wide .v-wed-frame {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border-bottom: 1px solid var(--line-2);
}

.case-wide .v-wed-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* ---------------- 案例按钮加深（更醒目） ---------------- */

.case-acts .btn-ghost {
  background: var(--brand-l);
  border-color: #CFE2EA;
  color: var(--brand-d);
  font-weight: 500;
}

.case-acts .btn-ghost:hover {
  background: #D5E7EF;
  border-color: var(--brand);
  color: var(--brand-d);
}

.case-acts .btn-primary {
  background: var(--brand-d);
  box-shadow: 0 2px 10px rgba(20, 85, 109, 0.22);
}

.case-acts .btn-primary:hover {
  background: #0F4054;
}

/* ---------------- 全站目录 ---------------- */

.toc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.toc-btn svg {
  width: 15px;
  height: 15px;
}

.toc-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.toc-btn.is-open {
  background: var(--brand-l);
  border-color: #CFE2EA;
  color: var(--brand-d);
}

.toc-panel {
  position: fixed;
  z-index: 60;
  width: 210px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(20, 35, 43, 0.14);
}

.toc-panel[hidden] {
  display: none;
}

.toc-hd {
  padding: 6px 10px 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.toc-list {
  display: flex;
  flex-direction: column;
}

.toc-list + .toc-list {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.toc-item {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.12s, color 0.12s;
}

.toc-item:hover {
  background: var(--brand-l);
  color: var(--brand-d);
}

.toc-item.is-current {
  background: #F2F8FA;
  color: var(--brand);
  font-weight: 500;
}

@media (max-width: 600px) {
  .toc-btn {
    margin-right: 10px;
    padding: 0 10px;
  }

  .toc-btn span {
    display: none;
  }
}

/* 联系区的信条（左侧竖线引文样式） */

.contact-vision {
  margin-top: 18px;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.26);
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------------- 案例卡片：统一封面（改造排布） ---------------- */
/* 原来混用 featured / wide / 普通三种尺寸，视觉节奏是断的。
   现在所有卡片同宽同结构：16:10 封面 + 等高的文字区，一眼扫过去是对齐的。 */

.case {
  height: 100%;
}

.case-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EDF2F5;
  border-bottom: 1px solid var(--line);
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.case:hover .case-cover img {
  transform: scale(1.035);
}

/* 竖构图的照片（婚礼合影）按 16:10 居中裁会切掉头部，改成从顶部取景 */
.case-cover.cover-top img {
  object-position: center top;
}

.case-cover.cover-contain img {
  object-fit: contain;
  padding: 14%;
  background: linear-gradient(160deg, #F4F8FA, #E8F0F4);
}

.case-flag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(20, 35, 43, 0.62);
  backdrop-filter: blur(6px);
  letter-spacing: 0.2px;
}

.case-flag.live { background: rgba(31, 157, 116, 0.9); }
.case-flag.dev { background: rgba(201, 122, 18, 0.9); }

.case-bd {
  padding: 20px 22px 22px;
}

.case-bd h3 {
  font-size: 18px;
}

.case-desc {
  font-size: 13.5px;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-acts {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.case-featured,
.case-wide {
  grid-column: auto;
  display: flex;
  flex-direction: column;
}

/* ---------------- 作品集展览页 ---------------- */

.pf-hero {
  padding-bottom: 8px;
}

.pf-sec {
  padding: 10px 0 88px;
}

.pf-app {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.pf-main {
  display: contents;
}

.pf-nav {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 6px;
  border-right: 1px solid var(--line);
}

.pf-nav {
  /* 底部渐隐：19 个作品一屏放不下，给个「下面还有」的暗示 */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
}

.pf-nav::-webkit-scrollbar { width: 6px; }
.pf-nav::-webkit-scrollbar-thumb { background: #D8E2E8; border-radius: 3px; }

.pf-group + .pf-group {
  margin-top: 18px;
}

.pf-group-hd {
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: var(--ink-4);
  padding: 0 10px 6px;
}

.pf-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px 10px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s, border-color 0.16s;
}

.pf-item:hover {
  background: #F4F8FA;
}

.pf-item.on {
  background: #EDF5F8;
  border-left-color: var(--brand);
}

.pf-item-t {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

.pf-item.on .pf-item-t {
  color: var(--brand-d);
  font-weight: 500;
}

.pf-item-n {
  float: right;
  font-size: 11px;
  color: var(--ink-5);
  margin-left: 8px;
}

.pf-item-note {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-stage-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pf-stage-hd h2 {
  font-size: 22px;
}

.pf-stage-sub {
  font-size: 13px;
  color: var(--ink-3);
}

.pf-stage-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-4);
  white-space: nowrap;
}

.pf-shot {
  position: relative;
  margin: 0 0 20px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 35, 43, 0.07);
}

.pf-shot img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: zoom-in;
}

.pf-shot img.ok {
  opacity: 1;
}

.pf-cap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(20, 35, 43, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.pf-shot:hover .pf-cap {
  opacity: 1;
}

.pf-zoom {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 17, 21, 0.95);
  cursor: zoom-out;
  padding: 24px;
}

.pf-zoom img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.pf-zoom-tip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.pf-loading,
.pf-error {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-4);
  font-size: 14px;
}

@media (max-width: 980px) {
  .pf-app { grid-template-columns: 1fr; gap: 16px; }

  /* 手机上清单不能竖着排 19 项，占掉整屏。改成单行横向滚动，
     章节名和作品名都 inline，保证永远是一条不换行 */
  .pf-nav {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .pf-nav { -webkit-mask-image: none; mask-image: none; }
  .pf-nav::-webkit-scrollbar { display: none; }

  .pf-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px 0 0;
    vertical-align: middle;
  }

  .pf-group + .pf-group { margin-top: 0; }

  .pf-group-hd {
    display: inline-block;
    padding: 0 2px 0 0;
    white-space: nowrap;
  }

  .pf-item {
    display: inline-block;
    width: auto;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px;
    padding: 7px 11px;
  }

  .pf-item.on { border-left-color: transparent; border-bottom-color: var(--brand); }
  .pf-item-note { display: none; }
  .pf-item-n { float: none; margin-left: 6px; }
  .pf-shot { margin-bottom: 14px; border-radius: 10px; }
  .pf-stage-hd h2 { font-size: 19px; }
}

/* ---------------- 面包屑（案例页分级路径） ---------------- */
/* 比「← 返回案例」好用：能直接跳任意一级，不用展开目录菜单 */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-4);
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.crumbs a:hover {
  color: var(--brand);
  background: var(--brand-l);
}

.crumbs .sep {
  color: var(--ink-5);
  user-select: none;
}

.crumbs b {
  color: var(--ink);
  font-weight: 500;
  padding: 4px 6px;
  margin: -4px -6px;
}

/* 深色背景上的版本（婚礼页） */
.crumbs-light { color: rgba(255, 255, 255, 0.45); }
.crumbs-light a { color: rgba(255, 255, 255, 0.72); }
.crumbs-light a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.crumbs-light .sep { color: rgba(255, 255, 255, 0.3); }
.crumbs-light b { color: #fff; }

/* ---------------- 整张卡片可点击 ---------------- */
/* 原来只有底部按钮能点，卡片中间一大片是死区。
   用一个透明覆盖层承接点击，按钮再抬到上层，保证两个入口都能用 */
.case {
  position: relative;
}

.case-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.case-hit:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.case-acts {
  position: relative;
  z-index: 2;
}

.case:hover .case-cover img {
  transform: scale(1.035);
}

/* ============================================================
   作品集 · 活字标题（从原图抠出来的标题文字）
   思路：作品本体保留原图，标题这一层做成真文字，才能动、才能响应鼠标。
   ============================================================ */

.lt {
  position: relative;
  overflow: hidden;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.lt-idx {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-4);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.lt-no {
  font-size: 13px;
  font-weight: 600;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.lt-of {
  color: var(--ink-5);
  font-variant-numeric: tabular-nums;
}

.lt-chapter {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}

/* 章节名前面加一个分隔点，和序号/总数排在同一行左边，
   右边整块留给背景大数字，两者不再打架 */
.lt-chapter::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--line-2);
  margin-right: 10px;
  vertical-align: middle;
}

/* 中文标题：细字重 + 大字号 + 紧字距，配合逐字升起 */
.lt-cn {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.lt-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.lt-ch {
  display: inline-block;
  overflow: hidden;
  line-height: 1.18;
}

.lt-ch i {
  display: block;
  font-style: normal;
  transform: translateY(112%);
  animation: lt-rise 0.88s cubic-bezier(0.19, 0.8, 0.23, 1) forwards;
  animation-delay: calc(var(--i) * 40ms + 60ms);
  transition: color 0.35s ease, transform 0.35s ease;
}

.lt-sp {
  display: inline-block;
  width: 0.32em;
}

@keyframes lt-rise {
  to { transform: translateY(0); }
}

/* 拉丁副标：字距从很宽收拢，像印刷品落版 */
.lt-en {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lt-en span {
  display: inline-block;
  animation: lt-track 1.1s cubic-bezier(0.19, 0.8, 0.23, 1) 0.25s both;
}

@keyframes lt-track {
  from { letter-spacing: 0.5em; opacity: 0; }
  to { letter-spacing: 0.12em; opacity: 1; }
}

/* 色条：从左展开，用作品自己的主色 */
.lt-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 18px;
  background: var(--acc);
  transform-origin: left center;
  animation: lt-draw 0.72s cubic-bezier(0.19, 0.8, 0.23, 1) 0.35s both;
  transition: width 0.45s cubic-bezier(0.19, 0.8, 0.23, 1);
}

@keyframes lt-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lt-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  animation: lt-fade 0.7s ease 0.6s both;
}

@keyframes lt-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 背景巨号序号：极低透明度，制造纵深 */
.lt-wm {
  position: absolute;
  right: -12px;
  top: -26px;
  font-size: 132px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--acc-ink);
  opacity: 0.032;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.19, 0.8, 0.23, 1);
  animation: lt-fade 1s ease 0.1s both;
}

/* ---- 鼠标反馈 ---- */
.lt:hover .lt-ch i {
  color: var(--acc-ink);
}

.lt:hover .lt-line {
  transform: translateX(5px);
}

.lt-line {
  transition: transform 0.45s cubic-bezier(0.19, 0.8, 0.23, 1);
}

.lt:hover .lt-rule {
  width: 132px;
}

.lt:hover .lt-wm {
  opacity: 0.06;
  transform: translate(-10px, 4px) scale(1.04);
}

.lt:hover .lt-en {
  color: var(--acc-ink);
}

.lt-en {
  transition: color 0.35s ease;
}

/* 首屏大标题：同一套活字，字号更大 */
.cp-hero h1.lt-hero {
  font-size: 56px;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 300;
  line-height: 1.16;
}

.lt-hero .lt-ch i {
  animation-duration: 1s;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}

/* 作品图入场 */
.pf-shot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.19, 0.8, 0.23, 1) var(--d, 0ms);
}

.pf-shot.in {
  opacity: 1;
  transform: none;
}

.pf-shot img {
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.19, 0.8, 0.23, 1);
}

.pf-shot:hover img {
  transform: scale(1.012);
}

@media (max-width: 980px) {
  .lt-cn { font-size: 30px; }
  .lt-hero { font-size: 34px; }
  .lt-wm { font-size: 96px; top: -18px; }
  .lt-chapter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-ch i,
  .lt-en span,
  .lt-rule,
  .lt-note,
  .lt-wm {
    animation: none !important;
    transform: none !important;
    opacity: 1;
  }
  .lt-wm { opacity: 0.032; }
  .pf-shot { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 宣言带 ---------------- */

.manifesto {
  position: relative;
  background: #1B1814;
  color: #F3EDE1;
  padding: 64px 0 58px;
  overflow: hidden;
}

/* 背景抹一层极淡的金光，别抢字 */
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 300px at 18% 0%, rgba(233, 160, 60, .13), transparent 62%),
    radial-gradient(600px 260px at 88% 100%, rgba(233, 160, 60, .08), transparent 60%);
  pointer-events: none;
}

.mf-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.mf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  color: #C9A26A;
  margin-bottom: 22px;
}
.mf-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #B8843C;
}

.mf-line {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 40px;
  line-height: 1.42;
  letter-spacing: .02em;
  color: #FBF6EC;
}
.mf-line::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  margin-top: 26px;
  background: linear-gradient(90deg, #E9A03C, rgba(233, 160, 60, .15));
}

.mf-purpose {
  border-left: 1px solid rgba(243, 237, 225, .14);
  padding-left: 40px;
}
.mf-purpose-hd {
  font-size: 11.5px;
  letter-spacing: .3em;
  color: #8E8375;
  margin-bottom: 16px;
}
.mf-phrases {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px 40px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #E8DECB;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  letter-spacing: .1em;
}
.mf-phrases span {
  position: relative;
  padding-left: 16px;
  white-space: nowrap;
}
.mf-phrases span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #C08A3E;
}

@media (max-width: 860px) {
  .manifesto { padding: 44px 0 40px; }
  .mf-in { grid-template-columns: 1fr; gap: 30px; }
  .mf-line { font-size: 27px; }
  .mf-purpose { border-left: 0; padding-left: 0; border-top: 1px solid rgba(243,237,225,.12); padding-top: 24px; }
  .mf-phrases { font-size: 14.5px; gap: 9px; }
}

/* 页脚上方的品牌口号 */
.ft-line {
  text-align: center;
  padding: 0 0 18px;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 14px;
  letter-spacing: .14em;
  color: #A8792F;
}

/* 没有页脚的页面（作品集）用它收尾 */
.pf-endline {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.pf-endline .ft-line { padding: 0; }

@media (max-width: 640px) {
  .ft-line { font-size: 12.5px; letter-spacing: .08em; }
}

/* ---------------- 手机端导航（微信内置浏览器 375~430px） ---------------- */

@media (max-width: 860px) {
  .hd-in {
    height: 58px;
    position: relative;
    gap: 10px;
  }

  .brand-txt { font-size: 14px; }
  .brand-txt em { font-size: 10px; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* 窄屏下拉面板里已列出全部入口，这个「目录」按钮多余且会压住前两项 */
  .toc-btn { display: none !important; }

  /* 折叠成下拉面板 */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(220px, calc(100vw - 32px));
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(20, 35, 43, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility .16s;
    z-index: 30;
  }

  .hd-in.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.2;
  }
  .nav a:hover { background: #F3F7F9; }

  .nav .is-member {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    color: var(--ink-3);
  }

  .nav .nav-cta {
    margin: 6px 4px 2px;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff !important;
  }
}

/* 更窄的屏幕：品牌只留名字 */
@media (max-width: 380px) {
  .brand-txt em { display: none; }
}

/* ---------------- 备案号（法定展示） ---------------- */

.beian-line {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-4);
}
.beian-line a {
  color: var(--ink-4);
  text-decoration: none;
  transition: color .15s;
}
.beian-line a:hover { color: var(--ink-2); }
.beian-line .dot { margin: 0 8px; color: #CBD3D8; }

@media (max-width: 640px) {
  .beian-line { font-size: 11.5px; }
  .beian-line .dot { margin: 0 6px; }
}
