/* Dark jewelry detail layout adapted from the client single-file mock. Author: imyzt */
/* 分节由 managed-content.js 按后台内容重建（完成后标记 data-rendered）；重建前先隐藏静态分节，避免先闪出旧版式。
   SSR 页面的 <html> 已带 data-content-ready，所以这里不能依赖它。3s 后无论数据是否返回都显示静态内容，接口失败时不会留白。 */
.jewelry-detail-page [data-document-sections]:not([data-preserve-layout]):not([data-rendered]) {
  visibility: hidden;
  animation: jd-sections-fallback 0s linear 3s forwards;
}
@keyframes jd-sections-fallback { to { visibility: visible; } }

.jewelry-detail-page {
  --jd-gold: var(--j-gold, #c8a463);
  --jd-gold-light: var(--j-gold-light, #e2c89c);
  --jd-card: #1b1714;
  --jd-alt: #151210;
  --jd-line: rgba(226, 200, 156, .16);
  --jd-radius: 12px;
  --jd-shadow: 0 16px 40px rgba(0, 0, 0, .38);
}
.jewelry-detail-page .to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jd-gold);
  color: #1a1a1a;
  border: 0;
  box-shadow: 0 8px 24px rgba(200, 164, 99, .45);
}
.jewelry-detail-page .to-top:hover {
  background: var(--jd-gold-light);
  color: #1a1a1a;
  border-color: transparent;
  transform: translateY(-4px);
}

.jewelry-detail-page .jd-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 88px;
  background: #0e0d0d;
}
.jewelry-detail-page .jd-hero-bg,
.jewelry-detail-page .jd-hero-grid { display: none; }
.jewelry-detail-page .jd-hero .jd-hero-bg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.jewelry-detail-page .jd-hero .jd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .66;
  filter: grayscale(.14) sepia(.08) saturate(.95);
  animation: jdSlowZoom 14s ease-in-out infinite alternate;
}
@keyframes jdSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.jewelry-detail-page .jd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 13, 13, .92) 0%, rgba(14, 13, 13, .58) 44%, rgba(14, 13, 13, .14) 100%);
}
.jewelry-detail-page .jd-hero .pd-wrap {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 1200px;
}
.jewelry-detail-page .jd-hero-copy { max-width: 760px; }
.jewelry-detail-page .jd-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jd-gold-light);
  letter-spacing: .28em;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  animation: jdRise .7s .1s both;
}
.jewelry-detail-page .jd-hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: var(--jd-gold);
}
.jewelry-detail-page .jd-hero h1 {
  font-size: clamp(40px, 6vw, 54px);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 22px;
  animation: jdRise .7s .25s both;
}
.jewelry-detail-page .jd-hero h1 em {
  font-style: normal;
  color: var(--jd-gold);
}
.jewelry-detail-page .jd-hero .pd-lead,
.jewelry-detail-page .jd-hero .sub {
  font-size: 18px;
  color: #d7cfc6;
  max-width: 680px;
  line-height: 1.9;
  animation: jdRise .7s .4s both;
}
@keyframes jdRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.jewelry-detail-page .jd-hero .pd-hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: jdRise .7s .55s both;
}
.jewelry-detail-page .jd-hero .btn-primary,
.jewelry-detail-page .jd-btn-gold {
  background: var(--jd-gold);
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(200, 164, 99, .35);
  border: 0;
}
.jewelry-detail-page .jd-hero .btn-primary:hover,
.jewelry-detail-page .jd-btn-gold:hover {
  background: var(--jd-gold-light);
  transform: translateY(-2px);
}
.jewelry-detail-page .jd-hero .btn-ghost:hover {
  border-color: var(--jd-gold);
  color: var(--jd-gold-light);
  transform: translateY(-2px);
}
.jewelry-detail-page .jd-hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 44px;
  flex-wrap: wrap;
  animation: jdRise .7s .7s both;
}
.jewelry-detail-page .jd-stat .num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--ff-display);
  color: var(--jd-gold);
  line-height: 1.1;
}
.jewelry-detail-page .jd-stat .lbl {
  font-size: 13px;
  color: #b7ada2;
  letter-spacing: .08em;
  margin-top: 6px;
}
.jewelry-detail-page .jd-hero-visual,
.jewelry-detail-page .jd-hero .pd-hero-meta,
.jewelry-detail-page .jd-hero .pd-visual-note,
.jewelry-detail-page .jd-hero .pd-kicker.en,
.jewelry-detail-page .jd-hero .en { display: none; }

.jewelry-detail-page .pd-anchor a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  background: var(--jd-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.jewelry-detail-page .pd-anchor a {
  position: relative;
}
.jewelry-detail-page .pd-anchor a:hover::after,
.jewelry-detail-page .pd-anchor a.active::after {
  transform: scaleX(1);
}

.jewelry-detail-page .pd-section {
  padding: 80px 0;
}
.jewelry-detail-page .pd-section.alt,
.jewelry-detail-page .pd-section.jd-alt {
  background: var(--jd-alt);
}
.jewelry-detail-page .jd-sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.jewelry-detail-page .jd-sec-tag {
  color: var(--jd-gold);
  letter-spacing: .28em;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.jewelry-detail-page .jd-sec-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 10px 0 14px;
}
.jewelry-detail-page .jd-sec-head h2 b {
  color: var(--jd-gold);
  font-weight: 500;
}
.jewelry-detail-page .jd-sec-head p {
  color: #b7ada2;
  font-size: 16px;
  margin: 0 auto;
  max-width: none;
}
.jewelry-detail-page .jd-sec-line {
  width: 64px;
  height: 3px;
  background: var(--jd-gold);
  margin: 0 auto 14px;
  border-radius: 2px;
}

.jewelry-detail-page .jd-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.jewelry-detail-page .jd-feature-visual {
  position: relative;
  border-radius: var(--jd-radius);
  overflow: hidden;
  box-shadow: var(--jd-shadow);
  border: 1px solid var(--jd-line);
}
.jewelry-detail-page .jd-feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .8s;
  filter: grayscale(.2) sepia(.1) saturate(.85);
}
.jewelry-detail-page .jd-feature-visual:hover img { transform: scale(1.06); }
.jewelry-detail-page .jd-feature-visual .badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(14, 13, 13, .85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: .08em;
  border-left: 3px solid var(--jd-gold);
}
.jewelry-detail-page .jd-feature-copy h3 {
  font-size: 26px;
  margin: 0 0 18px;
}
.jewelry-detail-page .jd-feature-copy p { margin: 0 0 14px; }
.jewelry-detail-page .jd-feature-copy p.hl {
  color: var(--jd-gold-light);
  font-weight: 600;
}
.jewelry-detail-page .jd-notice {
  margin-top: 26px;
  border: 1px solid rgba(200, 164, 99, .35);
  background: rgba(200, 164, 99, .08);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.jewelry-detail-page .jd-notice .ic { color: var(--jd-gold); font-size: 22px; line-height: 1.3; }
.jewelry-detail-page .jd-notice strong { color: var(--jd-gold-light); display: block; margin-bottom: 4px; }
.jewelry-detail-page .jd-notice p { color: #c9c0b8; font-size: 14px; margin: 0; }

.jewelry-detail-page .jd-table-card {
  background: var(--jd-card);
  border-radius: var(--jd-radius);
  box-shadow: var(--jd-shadow);
  overflow: hidden;
  border: 1px solid var(--jd-line);
}
.jewelry-detail-page .jd-table-card .pd-table-wrap { border: 0; margin: 0; }
.jewelry-detail-page .jd-table-card table { width: 100%; border-collapse: collapse; }
.jewelry-detail-page .jd-table-card thead th {
  background: #11100f;
  color: var(--jd-gold-light);
  text-align: left;
  padding: 18px 24px;
  font-size: 16px;
  letter-spacing: .08em;
}
.jewelry-detail-page .jd-table-card tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--jd-line);
  font-size: 15px;
}
.jewelry-detail-page .jd-table-card tbody tr:last-child td { border-bottom: 0; }
.jewelry-detail-page .jd-table-card tbody td:first-child {
  font-weight: 700;
  color: #f7f2ea;
  white-space: nowrap;
  width: 190px;
  background: rgba(226, 200, 156, .04);
}
.jewelry-detail-page .jd-table-card tbody tr:hover td { background: rgba(226, 200, 156, .05); }

.jewelry-detail-page .jd-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.jewelry-detail-page .jd-spec-card {
  background: var(--jd-card);
  border-radius: var(--jd-radius);
  padding: 30px 26px;
  border: 1px solid var(--jd-line);
  transition: transform .35s, box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.jewelry-detail-page .jd-spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--jd-gold), var(--jd-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.jewelry-detail-page .jd-spec-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--jd-shadow);
}
.jewelry-detail-page .jd-spec-card:hover::before { transform: scaleX(1); }
.jewelry-detail-page .jd-spec-ic {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b1714, #2a241c);
  border: 1px solid var(--jd-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.jewelry-detail-page .jd-spec-ic svg { width: 28px; height: 28px; stroke: var(--jd-gold); fill: none; }
.jewelry-detail-page .jd-spec-card h4 { font-size: 19px; margin: 0 0 12px; }
.jewelry-detail-page .jd-spec-card .rows { display: flex; flex-direction: column; gap: 10px; }
.jewelry-detail-page .jd-spec-card .row { display: flex; gap: 8px; font-size: 14px; color: #c9c0b8; }
.jewelry-detail-page .jd-spec-card .row b { color: var(--jd-gold); white-space: nowrap; font-weight: 700; }
.jewelry-detail-page .jd-spec-card .row p { margin: 0; color: inherit; max-width: none; }

.jewelry-detail-page .jd-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.jewelry-detail-page .jd-cap-card {
  background: var(--jd-card);
  border-radius: var(--jd-radius);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--jd-line);
  transition: transform .35s, box-shadow .35s;
}
.jewelry-detail-page .jd-cap-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--jd-shadow);
  border-color: rgba(200, 164, 99, .4);
}
.jewelry-detail-page .jd-cap-num {
  font-size: 40px;
  font-weight: 800;
  font-family: var(--ff-display);
  color: rgba(200, 164, 99, .28);
  line-height: 1;
  margin-bottom: 16px;
}
.jewelry-detail-page .jd-cap-ic {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(226, 200, 156, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jewelry-detail-page .jd-cap-ic svg {
  width: 28px;
  height: 28px;
  stroke: var(--jd-gold);
  fill: none;
  stroke-width: 1.8;
}
.jewelry-detail-page .jd-cap-card h4 { font-size: 17px; margin: 0 0 8px; }
.jewelry-detail-page .jd-cap-card p { font-size: 13.5px; color: #b7ada2; margin: 0; max-width: none; }

.jewelry-detail-page .jd-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.jewelry-detail-page .jd-app-card {
  background: var(--jd-card);
  border-radius: var(--jd-radius);
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  border: 1px solid var(--jd-line);
  border-left: 4px solid transparent;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  align-items: flex-start;
}
.jewelry-detail-page .jd-app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--jd-shadow);
  border-left-color: var(--jd-gold);
}
.jewelry-detail-page .jd-app-no {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--ff-display);
  color: var(--jd-gold);
  line-height: 1;
}
.jewelry-detail-page .jd-app-card h4 { font-size: 17px; margin: 0 0 6px; }
.jewelry-detail-page .jd-app-card p { font-size: 14px; color: #b7ada2; margin: 0; max-width: none; }
.jewelry-detail-page .jd-client-strip {
  margin-top: 36px;
  background: #11100f;
  border-radius: var(--jd-radius);
  color: #fff;
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid var(--jd-line);
}
.jewelry-detail-page .jd-client-strip b { color: var(--jd-gold-light); }
.jewelry-detail-page .jd-client-strip .tags { display: flex; gap: 12px; flex-wrap: wrap; }
.jewelry-detail-page .jd-client-strip .tags span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(226, 200, 156, .2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
}

.jewelry-detail-page .jd-qc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.jewelry-detail-page .jd-qc-card {
  background: var(--jd-card);
  border-radius: var(--jd-radius);
  padding: 30px 26px;
  border: 1px solid var(--jd-line);
  transition: transform .35s, box-shadow .35s;
}
.jewelry-detail-page .jd-qc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--jd-shadow);
}
.jewelry-detail-page .jd-qc-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jd-gold), #b08d4f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.jewelry-detail-page .jd-qc-check svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
.jewelry-detail-page .jd-qc-card h4 { font-size: 17px; margin: 0 0 8px; }
.jewelry-detail-page .jd-qc-card p { font-size: 14px; color: #b7ada2; margin: 0; max-width: none; }

.jewelry-detail-page .pd-cta {
  background: linear-gradient(135deg, #1b1714, #0e0d0d);
  text-align: left;
}
.jewelry-detail-page .jd-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.jewelry-detail-page .jd-contact-info h2,
.jewelry-detail-page .jd-contact-info h3 {
  font-size: 28px;
  color: #f7f2ea;
  margin: 10px 0 14px;
}
.jewelry-detail-page .jd-contact-info p { color: #c9c0b8; }
.jewelry-detail-page .jd-vals { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.jewelry-detail-page .jd-cval { display: flex; gap: 14px; align-items: center; color: #d7cfc6; }
.jewelry-detail-page .jd-cval .ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(200, 164, 99, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jewelry-detail-page .jd-cval .ic svg { width: 22px; height: 22px; stroke: var(--jd-gold); fill: none; }
.jewelry-detail-page .jd-cval b { color: #fff; display: block; font-size: 15px; }
.jewelry-detail-page .jd-cval span { font-size: 13px; color: #9a9086; }

.jewelry-detail-page .jd-form {
  background: #1b1714;
  color: #f0ece7;
  border: 1px solid rgba(226, 200, 156, .16);
  border-radius: var(--jd-radius);
  padding: 34px;
  box-shadow: var(--jd-shadow);
}
.jewelry-detail-page .jd-form h2,
.jewelry-detail-page .jd-form h4 {
  font-size: 22px;
  color: #f7f2ea;
  font-family: inherit;
  margin: 0 0 8px;
}
.jewelry-detail-page .jd-form .fdesc,
.jewelry-detail-page .jd-form .jd-form-desc {
  font-size: 14px;
  color: #b7ada2;
  margin: 0 0 22px;
}
.jewelry-detail-page .jd-form .form-grid,
.jewelry-detail-page .jd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.jewelry-detail-page .jd-form .form-item:nth-child(n+3),
.jewelry-detail-page .jd-form .form-submit { grid-column: 1 / -1; }
.jewelry-detail-page .jd-form .input,
.jewelry-detail-page .jd-form select,
.jewelry-detail-page .jd-form textarea {
  width: 100%;
  border: 1px solid rgba(226, 200, 156, .22);
  border-radius: 8px;
  padding: 12px 14px;
  font: 14px inherit;
  background: #0e0d0d;
  color: #f0ece7;
}
.jewelry-detail-page .jd-form .input:focus,
.jewelry-detail-page .jd-form select:focus,
.jewelry-detail-page .jd-form textarea:focus {
  outline: none;
  border-color: var(--jd-gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 99, .18);
  background: #151210;
}
.jewelry-detail-page .jd-form textarea { resize: vertical; min-height: 110px; }
.jewelry-detail-page .jd-form .form-submit {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.jewelry-detail-page .jd-form .btn,
.jewelry-detail-page .jd-form .btn-primary {
  background: var(--jd-gold);
  color: #1a1a1a;
  border: 0;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 700;
}
.jewelry-detail-page .jd-form .btn-ghost {
  background: transparent;
  color: #e2c89c;
  border: 1px solid rgba(226, 200, 156, .33);
}

.jewelry-detail-page .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.jewelry-detail-page .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .jewelry-detail-page .jd-cap-grid { grid-template-columns: repeat(3, 1fr); }
  .jewelry-detail-page .jd-qc-grid,
  .jewelry-detail-page .jd-spec-grid,
  .jewelry-detail-page .jd-app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .jewelry-detail-page .jd-hero { min-height: auto; padding: 122px 0 68px; }
  .jewelry-detail-page .jd-hero::after {
    background: linear-gradient(180deg, rgba(14, 13, 13, .9) 0%, rgba(14, 13, 13, .62) 100%);
  }
  .jewelry-detail-page .jd-hero .jd-hero-bg img { opacity: .4; }
  .jewelry-detail-page .jd-hero h1 { font-size: 36px; }
  .jewelry-detail-page .jd-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .jewelry-detail-page .jd-feature,
  .jewelry-detail-page .jd-contact { grid-template-columns: 1fr; }
  .jewelry-detail-page .jd-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .jewelry-detail-page .jd-app-grid,
  .jewelry-detail-page .jd-qc-grid { grid-template-columns: 1fr; }
  .jewelry-detail-page .jd-form .form-grid,
  .jewelry-detail-page .jd-form-grid { grid-template-columns: 1fr; }
  .jewelry-detail-page .pd-section { padding: 56px 0; }
  .jewelry-detail-page .jd-table-card tbody td:first-child { white-space: normal; width: auto; }
}
@media (scripting: none) {
  .jewelry-detail-page .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}
