/* ============================================================
   peacm.com 设计灵感栏目 css/news-design.css
   布局概念：横向滚动欣赏带首屏 → 配色卡（CSS色块演示）
   → 排版对错演示卡 → 灵感清单网格 → 底部CTA
   ============================================================ */

/* ---------- 1. 首屏 ---------- */
.ds-hero {
  padding: calc(var(--header-h) + 46px) 0 0;
  background: var(--cream-2);
}

.ds-hero-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.ds-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: #fff;
  background: var(--amber);
  padding: 5px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.ds-hero-head h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  margin-bottom: 14px;
}

.ds-hero-head h1 em {
  font-style: normal;
  color: var(--amber);
}

.ds-hero-sub {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 26px;
}

.ds-hero-sub a {
  color: var(--amber-deep);
  font-weight: 700;
}

.ds-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 横向滚动带 */
.ds-rail {
  overflow-x: auto;
  padding: 10px 0 30px;
}

.ds-rail-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(calc((100vw - var(--container)) / 2 + 24px), 24px);
}

.ds-rail-card {
  width: 340px;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0;
  flex-shrink: 0;
}

.ds-rail-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ds-rail-card figcaption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 2. 配色演示 ---------- */
.ds-colors {
  background: var(--cream);
}

.ds-color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ds-color-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.32s ease;
}

.ds-color-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.ds-color-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.ds-swatch {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ds-swatch--g1 { background: #5F8558; }
.ds-swatch--g2 { background: #DCE8D2; }
.ds-swatch--cream { background: #FDFAF3; }
.ds-swatch--a1 { background: #C08A2E; }
.ds-swatch--a2 { background: #EFDCA6; }
.ds-swatch--ink { background: #414A3C; }
.ds-swatch--line { background: #EAE3D0; }
.ds-swatch--white { background: #FFFFFF; }

.ds-color-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.ds-color-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

.ds-color-tip {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
}

.ds-color-tip a {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---------- 3. 排版演示 ---------- */
.ds-type {
  background: var(--cream-2);
}

.ds-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ds-type-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.ds-type-demo {
  border-radius: var(--r-sm);
  padding: 22px 20px;
  margin-bottom: 16px;
}

.ds-type-demo--good {
  background: var(--green-1);
}

.ds-type-demo--good h4 {
  font-size: 19px;
  margin-bottom: 6px;
}

.ds-type-demo--good p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.ds-type-demo--bad {
  background: var(--cream-3);
}

.ds-type-demo--bad h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.ds-type-demo--bad p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}

.ds-type-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.ds-type-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.ds-type-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 4. 灵感清单 ---------- */
.ds-list {
  background: var(--cream);
}

.ds-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ds-list-card {
  display: block;
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--yellow-3);
}

.ds-list-card:nth-child(even) {
  border-left-color: var(--green-3);
}

.ds-list-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.ds-list-card:hover h3 {
  color: var(--amber-deep);
}

.ds-list-card p {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.ds-list-card time {
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 5. CTA ---------- */
.ds-cta {
  padding: 90px 0;
  background: linear-gradient(120deg, var(--green-deep), #55794F);
  text-align: center;
}

.ds-cta-in h2 {
  color: #fff;
  font-size: clamp(24px, 3.2vw, 36px);
  margin-bottom: 10px;
}

.ds-cta-in h2 em {
  font-style: normal;
  color: var(--yellow-1);
}

.ds-cta-in p {
  color: var(--green-1);
  font-size: 15px;
  margin-bottom: 26px;
}

.ds-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ds-cta-more {
  font-size: 13.5px;
  color: var(--green-1);
}

.ds-cta-more a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .ds-color-grid,
  .ds-type-grid,
  .ds-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ds-color-grid,
  .ds-type-grid,
  .ds-list-grid {
    grid-template-columns: 1fr;
  }

  .ds-rail-card {
    width: 280px;
  }
}

@media (max-width: 640px) {
  .ds-rail-track {
    padding: 0 18px 10px;
  }
}

/* ---------- 6. 滚动带独立节 ---------- */
.ds-rail-sec {
  background: var(--cream-2);
  padding-bottom: 30px;
}
