/**
 * 门店前台 · 项目详情弹窗（7 标签）
 * 设计：docs/后台菜单规划/project-detail-modal.html
 */
:root {
  --pd-ink: #1c232b;
  --pd-muted: #5a6a78;
  --pd-muted-2: #8a97a3;
  --pd-line: #e5e9ed;
  --pd-gold: #d4af37;
  --pd-gold-deep: #b8941f;
  --pd-gold-soft: rgba(212, 175, 55, 0.12);
  --pd-danger: #c62828;
  --pd-serif: 'Noto Serif SC', 'Songti SC', serif;
  --pd-latin: 'Crimson Pro', 'Times New Roman', serif;
  --pd-sans: 'Instrument Sans', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --pd-mono: 'JetBrains Mono', Consolas, monospace;
}

.pd-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28, 35, 43, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.pd-mask.open {
  opacity: 1;
  pointer-events: auto;
}
.pd-modal {
  width: min(1100px, 96vw);
  height: min(88vh, 920px);
  background: #fffefb;
  border-radius: 20px;
  border: 1px solid rgba(229, 233, 237, 0.9);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: var(--pd-sans);
  color: var(--pd-ink);
}
.pd-mask.open .pd-modal {
  transform: none;
}

.pd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--pd-line);
  background: #fffefb;
  flex-shrink: 0;
}
.pd-topbar .pt-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.pd-topbar .pt-tier {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pd-gold-deep);
  background: var(--pd-gold-soft);
  border-radius: 6px;
  padding: 0.16rem 0.55rem;
  white-space: nowrap;
}
.pd-topbar .pt-name {
  font-family: var(--pd-serif);
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-topbar .pt-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.pd-topbar .pt-tag {
  font-size: 0.6rem;
  color: #455565;
  background: #f6f8fa;
  border: 1px solid var(--pd-line);
  border-radius: 40px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.pd-topbar .pt-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pd-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pd-ink);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}
.pd-topbar .pt-close:hover {
  border-color: var(--pd-gold);
  color: var(--pd-gold-deep);
}

.pd-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.pd-nav {
  width: 206px;
  flex-shrink: 0;
  border-right: 1px solid var(--pd-line);
  background: #faf8f2;
  padding: 0.9rem 0.7rem;
  overflow-y: auto;
}
.pd-nav .nv-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pd-muted-2);
  text-transform: uppercase;
  padding: 0.2rem 0.6rem 0.55rem;
  font-family: var(--pd-latin);
  font-style: italic;
}
.pd-nav .nv-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--pd-muted);
  font-weight: 500;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.pd-nav .nv-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--pd-ink);
}
.pd-nav .nv-item .nv-en {
  display: block;
  font-family: var(--pd-latin);
  font-style: italic;
  font-size: 0.6rem;
  color: var(--pd-muted-2);
  letter-spacing: 0.08em;
  margin-top: 0.05rem;
}
.pd-nav .nv-item.active {
  background: var(--pd-gold-soft);
  color: var(--pd-ink);
  font-weight: 600;
}
.pd-nav .nv-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pd-gold), var(--pd-gold-deep));
}
.pd-nav .nv-item.active .nv-en {
  color: var(--pd-gold-deep);
}
.pd-nav .nv-item .nv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d5dcdd;
}
.pd-nav .nv-item.has-data .nv-dot {
  background: #0f7b4c;
}
.pd-nav .nv-foot {
  margin-top: 0.8rem;
  padding: 0.6rem 0.7rem 0.2rem;
  border-top: 1px dashed var(--pd-line);
  font-size: 0.62rem;
  color: var(--pd-muted-2);
  line-height: 1.6;
}

.pd-content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  padding: 1.5rem 1.6rem 2.4rem;
  position: relative;
}
.pd-content .sec {
  margin-bottom: 2.2rem;
  scroll-margin-top: 1rem;
}
.pd-content .sec-label {
  font-family: var(--pd-latin);
  font-style: italic;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--pd-gold-deep);
  text-transform: uppercase;
}
.pd-content .sec-title {
  font-family: var(--pd-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.pd-content .sec-line {
  width: 36px;
  height: 2px;
  background: var(--pd-gold);
  margin: 0.55rem 0 0.9rem;
}

.ov-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: start;
  background: linear-gradient(135deg, #1c232b 0%, #2c3540 70%);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  color: #fff;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.ov-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
}
.ov-hero .oh-name {
  font-family: var(--pd-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.ov-hero .oh-en {
  font-family: var(--pd-latin);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}
.ov-hero .oh-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.ov-hero .oh-tag {
  font-size: 0.64rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  padding: 0.14rem 0.6rem;
}
.ov-hero .oh-brief {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.8rem;
  max-width: 640px;
}
.ov-hero .oh-badge {
  align-self: start;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #e9d6a1;
  border-radius: 6px;
  padding: 0.16rem 0.55rem;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.ov-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}
.ov-data .od {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: center;
}
.ov-data .od .od-k {
  font-size: 0.62rem;
  color: var(--pd-muted-2);
}
.ov-data .od .od-v {
  font-family: var(--pd-mono);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.ov-data .od .od-v .u {
  font-size: 0.6rem;
  color: var(--pd-muted-2);
  font-family: var(--pd-sans);
  font-weight: 400;
}

/* 长文案：单次效果 / 恢复期评估 — 与适合人群同款软底卡 */
.ov-notes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.c-card {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.c-card--soft {
  background: #fbf9f4;
}
.c-card .cc-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pd-gold-deep);
  text-transform: uppercase;
}
/* 中文标题：不做强行大写，字号略提可读性，仍与原理卡金色标签同系 */
.c-card--soft .cc-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.45;
}
.c-card .cc-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.c-card .cc-body {
  font-size: 0.78rem;
  color: var(--pd-muted);
  line-height: 1.75;
  margin-top: 0.3rem;
  white-space: pre-wrap;
  word-break: break-word;
}
/* 单次效果：分号连贯一段，不按换行隔开 */
.c-card .cc-body--inline {
  white-space: normal;
}
.c-card .cc-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1074af;
  margin-right: 0.35rem;
  vertical-align: 1px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fs-step {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  padding: 0.9rem 1rem;
}
.fs-step .fs-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pd-gold), var(--pd-gold-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pd-mono);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.fs-step .fs-title {
  font-size: 0.86rem;
  font-weight: 600;
}
.fs-step .fs-desc {
  font-size: 0.76rem;
  color: var(--pd-muted);
  margin-top: 0.25rem;
  line-height: 1.75;
}

.special-block {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  padding: 0.95rem 1rem;
  margin-top: 0.7rem;
}
.special-block .sb-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pd-gold-deep);
  text-transform: uppercase;
}
.special-block .sb-title {
  font-size: 0.94rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.special-block .sb-body {
  font-size: 0.78rem;
  color: var(--pd-muted);
  line-height: 1.8;
  margin-top: 0.4rem;
}

.effect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.effect-tags .et {
  font-size: 0.74rem;
  color: #455565;
  background: #f6f8fa;
  border: 1px solid var(--pd-line);
  border-radius: 40px;
  padding: 0.28rem 0.8rem;
}

.before-after {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--pd-line);
  aspect-ratio: 16 / 9;
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pd-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: #8a97a3;
}
.ba-after {
  background: linear-gradient(145deg, #f1ede2, #e8e2d3);
}
.ba-before {
  background: linear-gradient(145deg, #edeff1, #e2e6ea);
  clip-path: inset(0 50% 0 0);
}
.ba-before .ba-label {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
}
.ba-after .ba-label {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
}
.ba-label {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(28, 35, 43, 0.55);
  color: #fff;
  border-radius: 5px;
  padding: 0.12rem 0.5rem;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 35, 43, 0.15);
}
.ba-handle::after {
  content: '◂ ▸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  font-size: 0.6rem;
  color: var(--pd-ink);
  padding: 0.25rem 0.45rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-caption {
  font-size: 0.66rem;
  color: var(--pd-muted-2);
  margin-top: 0.5rem;
  text-align: center;
}

.case-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.case-card .cs-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ec4c0, #4aa8a4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.case-card .cs-title {
  font-size: 0.82rem;
  font-weight: 600;
}
.case-card .cs-desc {
  font-size: 0.72rem;
  color: var(--pd-muted);
  margin-top: 0.2rem;
  line-height: 1.7;
}
.case-card .cs-meta {
  font-size: 0.64rem;
  color: var(--pd-muted-2);
  margin-top: 0.3rem;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.pkg-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fbf9f4;
  border: 1px solid var(--pd-gold);
  border-radius: 14px;
  padding: 1.05rem 1.1rem 1rem;
  text-align: left;
  box-shadow: 0 6px 18px rgba(184, 148, 31, 0.08);
}
.pkg-card .pk-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--pd-gold-deep);
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
}
.pkg-card .pk-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--pd-gold-soft);
  color: var(--pd-gold-deep);
  border-radius: 4px;
  padding: 0.08rem 0.5rem;
  display: inline-block;
}
.pkg-card .pk-price {
  font-family: var(--pd-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pd-gold-deep);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pd-line);
  text-align: right;
  letter-spacing: 0.02em;
}
.pkg-card .pk-price .s {
  font-size: 0.86rem;
  color: var(--pd-gold-deep);
  font-weight: 600;
}
.pkg-card .pk-spec {
  font-size: 0.79rem;
  color: var(--pd-muted);
  margin-top: 0.35rem;
  text-align: left;
}
.pkg-card .pk-list-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pd-muted-2);
  margin-top: 0.85rem;
  text-align: left;
}
.pkg-card .pk-list {
  list-style: none;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  text-align: left;
  flex: 1;
}
.pkg-card .pk-list li {
  position: relative;
  font-size: 0.84rem;
  color: var(--pd-muted);
  line-height: 1.45 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.pkg-card .pk-list li + li {
  margin-top: 0.12rem !important;
}
.pkg-card .pk-desc {
  font-size: 0.82rem;
  color: var(--pd-muted);
  margin-top: 0.4rem;
  line-height: 1.65;
}
.pkg-note {
  font-size: 0.82rem;
  color: var(--pd-muted-2);
  margin-top: 0.7rem;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.notice-item {
  background: #fbf9f4;
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--pd-gold);
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 0.9rem;
}
.notice-item.nt-danger {
  border-left-color: var(--pd-danger);
}
.notice-item .ni-k {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pd-gold-deep);
}
.notice-item.nt-danger .ni-k {
  color: var(--pd-danger);
}
.notice-item .ni-body {
  font-size: 0.74rem;
  color: var(--pd-muted);
  margin-top: 0.25rem;
  line-height: 1.7;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.rec-wrap {
  margin-top: 1.2rem;
}
.rec-card {
  position: relative;
  background: #fbf9f4;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  padding: 0.95rem 0.95rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 168px;
}
.rec-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.rec-card .rc-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f6f8fa;
  border: 1px solid var(--pd-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rec-card .rc-icon-char {
  font-size: 1.15rem;
  line-height: 1;
  color: #4a5a68;
  font-weight: 300;
}
.rec-card .rc-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-card:hover .rc-icon {
  background: #fcf6e8;
  border-color: rgba(212, 175, 55, 0.35);
}
.rec-card:hover .rc-icon-char {
  color: #c2a144;
}
.rec-card .rc-name {
  font-family: var(--pd-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pd-ink);
  padding-right: 3rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.rec-card .rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-right: 0.5rem;
}
.rec-card .rc-pill {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
  border-radius: 40px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.4;
}
.rec-card .rc-desc {
  font-size: 0.7rem;
  color: var(--pd-muted);
  margin-top: 0.55rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.rec-card .rc-go {
  font-size: 0.66rem;
  color: var(--pd-gold-deep);
  margin-top: 0.65rem;
  font-weight: 600;
}

.empty-state {
  background: #fbf9f4;
  border: 1.5px dashed #d5dcdd;
  border-radius: 12px;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--pd-muted-2);
  font-size: 0.76rem;
}
.empty-state .es-en {
  font-family: var(--pd-latin);
  font-style: italic;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  display: block;
  margin-top: 0.25rem;
}

/* ── 渗透系统（单卡） ── */
.pen-seed-tip {
  font-size: 0.68rem;
  color: var(--pd-muted-2);
  background: #f7f4ec;
  border: 1px dashed #e5e0d4;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.75rem;
}
.pen-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pen-card {
  background: #fbf9f4;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.pen-card--no-img {
  display: block;
}
.pen-img-wrap {
  flex: 0 0 auto;
  align-self: stretch;
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  max-width: 46%;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--pd-line);
  background: #fff;
  overflow: hidden;
}
.pen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pen-card-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 0.9rem;
  justify-content: flex-start;
}
.pen-name {
  font-family: var(--pd-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pd-ink);
  line-height: 1.35;
  margin: 0;
}
.pen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
}
.pen-tag {
  font-size: 0.64rem;
  font-weight: 500;
  color: #5a6b7a;
  background: #eef4fb;
  border-radius: 40px;
  padding: 0.18rem 0.5rem;
}
.pen-desc {
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--pd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pen-prices {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid #eee8dc;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.pen-price {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  align-items: flex-end;
  text-align: right;
}
.pen-price--course {
  text-align: right;
  align-items: flex-end;
}
.pen-price-k {
  font-size: 0.6rem;
  color: var(--pd-muted-2);
  letter-spacing: 0.06em;
}
.pen-price-v {
  font-family: var(--pd-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pd-ink);
  line-height: 1.2;
}
.pen-price--course .pen-price-v {
  color: #8a7020;
}
.pen-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.75rem;
  row-gap: 0.28rem;
  margin-top: 0.05rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee8dc;
}
.pen-param {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  line-height: 1.35;
}
.pen-param-k {
  font-size: 0.62rem;
  color: var(--pd-muted-2);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8.2em;
}
.pen-param-v {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--pd-ink);
  line-height: 1.35;
  word-break: break-word;
  min-width: 0;
}
@media (max-width: 640px) {
  .pen-card {
    flex-direction: column;
  }
  .pen-img-wrap {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--pd-line);
  }
  .pen-card-main {
    padding: 0.9rem 1rem 1rem;
  }
  .pen-params {
    grid-template-columns: 1fr;
    row-gap: 0.22rem;
  }
  .pen-prices {
    justify-content: flex-end;
  }
}

/* ── 流程单纸面：紧凑三栏 · 舒展版（详情默认） ── */
.pd-flow-paper {
  width: 100%;
}
.pd-flow-paper .sheet {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  background: #fff;
  margin: 0 auto;
  box-shadow: none;
  padding: 0.85rem 0.7rem 1rem;
  font-family: var(--pd-sans);
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: visible;
  --compact-scale: 1;
}
.pd-flow-paper .s-title {
  font-family: var(--pd-serif);
  font-size: calc(1.05rem * var(--compact-scale));
  font-weight: 600;
  text-align: center;
  color: #1a1714;
  padding-bottom: calc(0.5rem * var(--compact-scale));
  margin-bottom: calc(0.55rem * var(--compact-scale));
  border-bottom: 2px solid #c8a85c;
}
.pd-flow-paper .s-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(0.25rem * var(--compact-scale)) calc(0.4rem * var(--compact-scale));
  margin-bottom: calc(0.65rem * var(--compact-scale));
  padding: calc(0.45rem * var(--compact-scale)) calc(0.5rem * var(--compact-scale));
  background: #f7f5f0;
  border-radius: 6px;
  border: 1px solid #e0dbd0;
}
@media (max-width: 720px) {
  .pd-flow-paper .s-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.pd-flow-paper .s-meta-item {
  display: block;
  font-size: calc(0.64rem * var(--compact-scale));
  min-width: 0;
}
.pd-flow-paper .s-meta-key {
  display: block;
  color: #9e9488;
  margin-bottom: 1px;
  white-space: nowrap;
}
.pd-flow-paper .s-meta-val {
  color: #1a1714;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.pd-flow-paper .s-relaxed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(0.45rem * var(--compact-scale));
  align-items: start;
  max-width: 100%;
}
@media (max-width: 720px) {
  .pd-flow-paper .s-relaxed-grid {
    grid-template-columns: 1fr;
  }
}
.pd-flow-paper .s-relaxed-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.pd-flow-paper .s-relaxed-col .s-fgroup,
.pd-flow-paper .s-relaxed-col .s-phase,
.pd-flow-paper .s-relaxed-col .s-optional-block {
  display: block;
  width: 100%;
  margin: 0 0 calc(0.4rem * var(--compact-scale));
  flex: 0 0 auto;
}
.pd-flow-paper .s-fgroup {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pd-flow-paper .s-fgroup-hd {
  padding: calc(0.32rem * var(--compact-scale)) calc(0.45rem * var(--compact-scale));
  font-size: calc(0.68rem * var(--compact-scale));
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pd-flow-paper .s-fgroup-bd {
  padding: calc(0.32rem * var(--compact-scale)) calc(0.45rem * var(--compact-scale));
  background: #fff;
}
.pd-flow-paper .s-fing {
  margin-bottom: 0.28rem;
}
.pd-flow-paper .s-fing:last-child {
  margin-bottom: 0;
}
.pd-flow-paper .s-fing-name {
  font-size: calc(0.66rem * var(--compact-scale));
  font-weight: 600;
  color: #1a1714;
}
.pd-flow-paper .s-fing-sub {
  font-size: calc(0.6rem * var(--compact-scale));
  color: #6b6459;
  line-height: 1.45;
}
.pd-flow-paper .s-phase {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pd-flow-paper .s-phase-hd {
  padding: calc(0.32rem * var(--compact-scale)) calc(0.45rem * var(--compact-scale));
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: calc(0.68rem * var(--compact-scale));
  font-weight: 600;
}
.pd-flow-paper .s-phase-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(0.58rem * var(--compact-scale));
  font-weight: 700;
  flex-shrink: 0;
}
.pd-flow-paper .s-phase-bd {
  background: #fff;
  padding: calc(0.32rem * var(--compact-scale)) calc(0.45rem * var(--compact-scale));
}
.pd-flow-paper .s-step {
  font-size: calc(0.6rem * var(--compact-scale));
  color: #3a3530;
  padding: 0.18rem 0;
  display: grid;
  grid-template-columns: 40px minmax(52px, 72px) 1fr;
  gap: 0.25rem;
  border-bottom: 1px dashed #ece7de;
  align-items: start;
}
@media (max-width: 900px) {
  .pd-flow-paper .s-step {
    grid-template-columns: 36px 1fr;
  }
  .pd-flow-paper .s-step-note {
    grid-column: 1 / -1;
  }
}
.pd-flow-paper .s-step:last-child {
  border-bottom: none;
}
.pd-flow-paper .s-step-lbl {
  color: #9e9488;
  font-size: calc(0.58rem * var(--compact-scale));
}
.pd-flow-paper .s-step-op {
  color: #1a1714;
  font-weight: 500;
}
.pd-flow-paper .s-step-note {
  color: #3a3530;
  line-height: 1.4;
  word-break: break-word;
}
.pd-flow-paper .s-warn {
  font-size: calc(0.58rem * var(--compact-scale));
  color: #7a4a1a;
  background: #fbf0e0;
  padding: 0.18rem 0.35rem;
  border-radius: 4px;
  margin-bottom: 0.22rem;
  line-height: 1.35;
}
.pd-flow-paper .s-optional-block {
  margin-top: 0.05rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
}
.pd-flow-paper .s-optional-title {
  text-align: left;
  font-size: calc(0.62rem * var(--compact-scale));
  font-weight: 700;
  padding: 0.28rem 0.45rem;
  letter-spacing: 0.04em;
}
.pd-flow-paper .s-optional-item {
  font-size: calc(0.62rem * var(--compact-scale));
  color: #3a3530;
  padding: 0.32rem 0.45rem;
  font-weight: 700;
  line-height: 1.4;
}

.pd-toast {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%) translateY(20px);
  background: #1c232b;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 10px;
  padding: 0.65rem 1.2rem;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.pd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pd-content::-webkit-scrollbar,
.pd-nav::-webkit-scrollbar {
  width: 8px;
}
.pd-content::-webkit-scrollbar-thumb,
.pd-nav::-webkit-scrollbar-thumb {
  background: #e1e5e8;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .pd-body {
    flex-direction: column;
  }
  .pd-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--pd-line);
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.35rem;
  }
  .pd-nav .nv-title,
  .pd-nav .nv-foot {
    display: none;
  }
  .pd-nav .nv-item {
    flex-shrink: 0;
    padding: 0.42rem 0.7rem;
  }
  .pd-nav .nv-item .nv-en,
  .pd-nav .nv-item .nv-dot {
    display: none;
  }
  .grid-2,
  .notice-grid {
    grid-template-columns: 1fr;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .pd-topbar .pt-tags {
    display: none;
  }
}
