/* ============================================================
   peacm.com 建站技巧栏目 css/news-tips.css
   布局概念：大数字编号首屏 → 左右交替图文卡 → 短平快卡网格
   → 速查表 → 互链卡 → 带图 CTA
   ============================================================ */

/* ---------- 1. 首屏大数字 ---------- */
.tips-hero {
  padding: calc(var(--header-h) + 46px) 0 70px;
  background:
    radial-gradient(680px 300px at 10% 0%, rgba(220, 232, 210, 0.5), transparent 60%),
    var(--cream-2);
}

.tips-hero-head {
  max-width: 700px;
  margin-bottom: 40px;
}

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

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

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

.tips-hero-sub {
  color: var(--ink-2);
  font-size: 15px;
}

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

/* 大数字三卡 */
.tips-bignum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.tips-bignum-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.32s ease;
}

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

.tips-bignum-card--green {
  background: var(--green-1);
}

.tips-bignum {
  display: block;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow-3);
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.tips-bignum-card--green .tips-bignum {
  color: var(--green-3);
}

.tips-bignum-card h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

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

.tips-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 2. 左右交替图文卡 ---------- */
.tips-flow {
  background: var(--cream);
}

.tips-article {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}

.tips-article--flip {
  grid-template-columns: 1.1fr 0.9fr;
}

.tips-article--flip .tips-article-media {
  order: 2;
}

.tips-article-media {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
}

.tips-article-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tips-article:hover .tips-article-media img {
  transform: scale(1.05);
}

.tips-article-body {
  display: block;
}

.tips-article-body .tag {
  margin-bottom: 12px;
}

.tips-article-body h3 {
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.tips-article-body p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.tips-article-date {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.tips-article-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
}

/* ---------- 3. 短平快网格 ---------- */
.tips-list {
  background: var(--cream-2);
}

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

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

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

.tips-list-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.45;
  transition: color 0.25s ease;
}

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

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

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

/* ---------- 4. 速查表 ---------- */
.tips-cheatsheet {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(243, 231, 195, 0.5), transparent 65%),
    var(--green-1);
  padding: 80px 0;
}

.sec-head--light {
  margin-bottom: 40px;
}

.tips-cheatsheet .table-wrap {
  background: #fff;
  border-color: transparent;
  max-width: 900px;
  margin: 0 auto;
}

.tips-cheatsheet-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 22px;
}

.tips-cheatsheet-note a {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---------- 5. 互链卡 ---------- */
.tips-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tips-more-card {
  display: block;
  background: var(--cream-2);
  border: 2px dashed var(--yellow-3);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: all 0.3s ease;
}

.tips-more-card:hover {
  border-color: var(--green-2);
  background: var(--green-1);
}

.tips-more-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--green-deep);
}

.tips-more-card p {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 6. CTA ---------- */
.tips-cta {
  background: linear-gradient(120deg, var(--green-deep), #55794F);
  padding: 56px 0;
}

.tips-cta-in {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.tips-cta-img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  flex-shrink: 0;
}

.tips-cta-in h2 {
  color: #fff;
  font-size: clamp(20px, 2.8vw, 30px);
  margin-bottom: 8px;
}

.tips-cta-in p {
  color: var(--green-1);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.tips-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .tips-bignum-grid {
    grid-template-columns: 1fr;
  }

  .tips-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .tips-article,
  .tips-article--flip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tips-article--flip .tips-article-media {
    order: 0;
  }

  .tips-article-media img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .tips-list-grid,
  .tips-more-grid {
    grid-template-columns: 1fr;
  }

  .tips-bignum {
    font-size: 48px;
  }

  .tips-article {
    padding: 18px;
  }

  .tips-cta-img {
    width: 100%;
    height: 180px;
  }
}
