/* ================================================================
   mods-detail.css — mods-detail/Chinesecuisine-core.html 专属样式
================================================================ */

#heroTitle,
#heroSlider,
.hero-dot,
.no-results,
.filter-btn,
.mod-card { display: none !important; }

.core-page { background: var(--bg-base); }
.core-section {
  padding: 56px 8%;
  border-bottom: 1px solid var(--subtle-gray);
  background: linear-gradient(180deg, #fcfcfc 0%, #f8f8f8 100%);
}
.core-section.alt {
  background: linear-gradient(180deg, #f6f8f6 0%, #f2f4f2 100%);
}

.core-head {
  display: grid;
  grid-template-columns: minmax(420px, 52%) 1fr;
  gap: 52px;
  align-items: start;
}

.core-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 1500;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #e4dcd0, #d0c8bc);
  border: 1px solid var(--subtle-gray);
  box-shadow: 0 18px 48px rgba(0,0,0,0.10);
}

.core-summary {
  border: 1px solid rgba(141,161,145,0.22);
  background: linear-gradient(165deg, #ffffff 0%, #f3f6f3 100%);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.core-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.core-poster-label {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--morandi-green);
  color: #fff;
  padding: 6px 14px;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.core-title {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  color: var(--black);
}
.core-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 300;
}
.core-intro {
  font-size: 0.9rem;
  line-height: 2;
  color: #555;
  margin: 0 0 12px;
  font-weight: 300;
}

.feature-panel { margin-top: 16px; display: grid; gap: 10px; }
.feature-item {
  border: 1px solid rgba(141,161,145,0.22);
  background: rgba(141,161,145,0.06);
  border-left: 3px solid var(--morandi-green);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #4d4d4d;
  line-height: 1.75;
}

.core-head-extra { margin-top: 22px; display: grid; gap: 14px; }

.core-gallery {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(141,161,145,0.2);
  position: relative;
  --visible-count: 4;
  --gallery-gap: 12px;
}
.gallery-viewport { overflow: visible; }
.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gallery-gap);
  padding-bottom: 6px;
}
.gallery-shot {
  margin: 0;
  border: 1px solid var(--subtle-gray);
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f1 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.gallery-shot img {
  width: 100%;
  height: auto;        /* 覆盖 HTML height 属性，让 aspect-ratio 生效 */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #e7ece7;
}

.gallery-nav {
  display: inline-flex;
  position: absolute;
  top: calc(50% + 8px);
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(141,161,145,0.45);
  background: rgba(252,252,252,0.92);
  color: var(--morandi-green-dark);
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: 0.2s;
}
.gallery-nav:hover {
  background: var(--morandi-green);
  color: #fff;
  border-color: var(--morandi-green);
}
.gallery-nav.prev { left: -8px; }
.gallery-nav.next { right: -8px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(141,161,145,0.28);
  padding: 0;
  cursor: pointer;
  transition: 0.2s;
}
.gallery-dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--morandi-green);
}

.core-gallery.is-carousel .gallery-viewport { overflow: hidden; padding: 0 2px 6px; }
.core-gallery.is-carousel .gallery-row {
  display: flex; flex-wrap: nowrap;
  transition: transform .45s ease;
  will-change: transform;
  gap: var(--gallery-gap);
}
.core-gallery.is-carousel .gallery-shot {
  flex: 0 0 calc((100% - (var(--visible-count) - 1) * var(--gallery-gap)) / var(--visible-count));
}
.core-gallery.is-carousel .gallery-row::-webkit-scrollbar { display: none; }

.note-box {
  border: 1px dashed rgba(141,161,145,0.5);
  background: rgba(141,161,145,0.06);
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.85;
  color: #4c4c4c;
  margin-top: 16px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}
.meta-card {
  border: 1px solid var(--subtle-gray);
  background: linear-gradient(160deg, #ffffff 0%, #f5f7f5 100%);
  padding: 16px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.meta-card .label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}
.meta-card .value {
  display: block;
  font-size: 0.88rem;
  color: var(--black);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.alert-remind {
  margin-top: 16px;
  border-left: 3px solid #d28b6a;
  background: #fff8f4;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #7b4b35;
  line-height: 1.8;
}

.sec-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
}
.sec-top::after { content: ''; flex: 1; height: 1px; background: var(--subtle-gray); }
.sec-top h2 {
  margin: 0;
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--black);
  white-space: nowrap;
}

.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.addon-card {
  border: 1px solid var(--subtle-gray);
  background: linear-gradient(160deg, #ffffff 0%, #f6f8f6 100%);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; align-items: flex-start;
}
.addon-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.addon-tag.must { color: #9a4a2f; background: #f8e8df; border: 1px solid #efc9b6; }
.addon-tag.reco { color: #3a7a42; background: #e7f2e8; border: 1px solid #bfd9c2; }
.addon-name {
  font-size: 0.9rem; color: var(--black);
  margin: 0 0 8px; font-weight: 500;
  line-height: 1.6; word-break: break-all;
}
.addon-desc { margin: 0; font-size: 0.8rem; color: #666; line-height: 1.9; font-weight: 300; }

.addon-download {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 11px 28px;
  width: auto; align-self: center;
  border-radius: 12px; border: none;
  background: linear-gradient(135deg, #4a6650 0%, #3a5240 100%);
  color: #fff; font-size: 0.96rem; font-weight: 500;
  letter-spacing: 0.08em; transition: 0.22s;
  box-shadow: 0 4px 16px rgba(50,75,55,0.28);
  position: relative; overflow: hidden;
}
.addon-download::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.addon-download:hover {
  background: linear-gradient(135deg, #3a5240 0%, #2c3f31 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(50,75,55,0.38);
}
.addon-download:active { transform: translateY(0); }

.steps { margin: 18px 0 0; padding-left: 22px; }
.steps li {
  margin-bottom: 12px; font-size: 0.86rem;
  color: #555; line-height: 1.9; font-weight: 300;
}

.log-list { display: grid; gap: 12px; }
.log-item {
  border: 1px solid rgba(141,161,145,0.22);
  background: linear-gradient(160deg, #ffffff 0%, #f2f6f2 100%);
  border-radius: 12px; padding: 14px 16px;
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px; align-items: start;
}
.log-date {
  font-size: 0.74rem; color: var(--morandi-green-dark);
  letter-spacing: 0.08em; font-weight: 500;
  line-height: 1.7; white-space: nowrap;
}
.log-title { margin: 0 0 4px; font-size: 0.9rem; color: var(--black); font-weight: 500; letter-spacing: 0.03em; }
.log-desc  { margin: 0; font-size: 0.8rem; color: #666; line-height: 1.85; font-weight: 300; }
.log-more {
  margin-top: 14px; display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--morandi-green);
  color: var(--morandi-green-dark);
  background: rgba(141,161,145,0.08);
  font-size: 0.76rem; letter-spacing: 0.06em; transition: 0.2s;
}
.log-more:hover { background: var(--morandi-green); color: #fff; }

.guide-flow { display: grid; gap: 12px; }
.guide-step {
  border: 1px solid rgba(141,161,145,0.24);
  background: linear-gradient(160deg, #ffffff 0%, #eff3ef 100%);
  border-radius: 12px; padding: 16px 16px 14px;
  position: relative; box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  display: grid; grid-template-columns: 40px 1fr;
  column-gap: 12px; align-items: start;
}
.step-index {
  display: inline-flex; width: 30px; height: 30px;
  border-radius: 50%; align-items: center; justify-content: center;
  background: var(--morandi-green); color: #fff;
  font-size: 0.78rem; font-weight: 600; margin-top: 2px;
}
.guide-step h3 {
  margin: 0 0 6px; font-size: 0.92rem;
  letter-spacing: 0.04em; color: var(--black); font-weight: 500;
}
.guide-step p { margin: 0; font-size: 0.8rem; line-height: 1.85; color: #666; font-weight: 300; }
.guide-step-body { min-width: 0; }
.guide-step.has-image {
  grid-template-columns: 40px minmax(240px, 1fr) minmax(320px, 420px);
  column-gap: 14px; align-items: stretch;
}
.guide-visual {
  border: 1px solid var(--subtle-gray);
  border-radius: 10px; overflow: hidden; background: #edf2ed;
}
.guide-visual img {
  width: 100%; height: 100%; min-height: 130px;
  object-fit: cover; display: block;
}
.guide-note {
  margin-top: 8px; font-size: 0.72rem;
  color: #7a7a7a; line-height: 1.6; letter-spacing: 0.03em;
}

.qa-list { display: grid; gap: 14px; }
.qa-item {
  border: 1px solid var(--subtle-gray);
  background: linear-gradient(160deg, #ffffff 0%, #f8faf8 100%);
  padding: 18px 18px 16px; border-radius: 10px;
}
.qa-q { margin: 0 0 8px; font-size: 0.9rem; color: var(--black); font-weight: 500; letter-spacing: 0.03em; }
.qa-a { margin: 0; font-size: 0.82rem; line-height: 1.9; color: #666; font-weight: 300; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.video-card {
  border: 1px solid var(--subtle-gray); border-radius: 12px;
  overflow: hidden; background: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.video-embed-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; background: #111;
  cursor: pointer; overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
}
.video-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28); transition: background 0.2s;
}
.video-play-btn svg {
  width: 58px; height: 58px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.video-embed-wrap:hover .video-play-btn { background: rgba(0,0,0,0.15); }
.video-embed-wrap:hover .video-play-btn svg { transform: scale(1.1); }
.video-embed-wrap.playing .video-cover,
.video-embed-wrap.playing .video-play-btn { display: none; }
.video-meta { padding: 12px 14px 14px; background: #fff; }
.video-title { margin: 0 0 4px; font-size: 0.88rem; font-weight: 500; color: var(--black); line-height: 1.5; }
.video-source { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.06em; }
.video-source.yt   { color: #c4302b; }
.video-source.bili { color: #00a1d6; }

.fade-in {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .core-head  { grid-template-columns: 1fr; gap: 24px; }
  .meta-grid  { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .log-item   { grid-template-columns: 1fr; gap: 6px; }
  .guide-step { grid-template-columns: 34px 1fr; }
  .guide-step.has-image { grid-template-columns: 34px 1fr; }
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-nav { width: 30px; height: 30px; }
}
