/* ==========================================================================
 * 畅学村 英语学习指南 v4（2026-11-16，按指南版式图）
 * Banner 沿用原样式（只微调搜索框）；以下为：浅灰文章区、三个主入口、四个担忧、深蓝收口。
 * 加载顺序：main → v3 → v7 → polish → guide-v4（本文件最后）
 * ========================================================================== */

.g4-wrap { max-width: 914px; } /* 850 内容 + 两侧 32 */

/* ---------- Banner 搜索框：白色大胶囊 + 橙色圆按钮 ---------- */
.v3-hero--guide .v3-kicker { color: #F7A44C; }
.v3-hero--guide .v3-bigsearch {
  display: flex; align-items: center; max-width: 804px; height: 70px; margin-top: 30px; padding: 0 8px 0 30px;
  border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.v3-hero--guide .v3-bigsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 19px; color: #0E1A2B; }
.v3-hero--guide .v3-bigsearch input::placeholder { color: #8A93A3; }
.v3-hero--guide .v3-bigsearch__btn {
  flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(180deg, #FFC27A 0%, #F2862E 100%); box-shadow: 0 6px 16px rgba(242, 134, 46, 0.45);
}
.v3-hero--guide .v3-bigsearch__btn svg { width: 22px; height: 22px; fill: none; stroke: #3A1D04; stroke-width: 2.4; stroke-linecap: round; }
.v3-hero--guide .v3-bigsearch:focus-within { box-shadow: 0 0 0 3px rgba(247, 164, 76, 0.6), 0 16px 40px rgba(0, 0, 0, 0.28); }

/* ---------- 文章区 ---------- */
.v3-sheet.g4-sheet { background: #F6F7FA; border-radius: 0; margin-top: 0; box-shadow: none; }
.g4-articles-sec { padding: 44px 0 48px; }
.g4-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g4-chip.cxc-chip {
  min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); font-size: 12px; font-weight: 600; color: #3D4A5C; cursor: pointer;
}
.g4-chip.cxc-chip:hover { background: #EEF0F5; }
.g4-chip.cxc-chip[aria-pressed="true"] { background: linear-gradient(180deg, #FFC27A 0%, #F59B3D 100%); color: #fff; font-weight: 800; box-shadow: 0 4px 10px rgba(245, 155, 61, 0.3); }
.g4-chip.cxc-chip:focus-visible { outline: 2px solid #F59B3D; outline-offset: 2px; }
.g4-count { margin: 16px 0 18px; font-size: 12px; color: #5A6372; }
.g4-count b { font-weight: 600; }

.g4-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g4-list .cxc-articles__item[hidden] { display: none; }
.g4-card {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 14px 16px 14px 14px;
  border-radius: 10px; background: #fff; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 16px rgba(16, 24, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.g4-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 12px 26px rgba(16, 24, 40, 0.08); }
.g4-card:focus-visible { outline: 2px solid #F59B3D; outline-offset: 2px; }
.g4-card img { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 8px; object-fit: cover; display: block; }
.g4-card__body { display: flex; flex-direction: column; min-width: 0; }
.g4-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; line-height: 1.5; color: #0E1A2B; }
.g4-card p { margin: 0 0 8px; font-size: 11px; line-height: 1.6; color: #7A8494; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g4-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: #F2862E; }
.g4-card__more i { font-style: normal; transition: transform 0.2s ease; }
.g4-card:hover .g4-card__more i { transform: translateX(3px); }
.g4-empty { margin: 20px 0 0; text-align: center; color: #5A6372; }

/* ---------- 三个主入口 / 四个担忧 ---------- */
.g4-entries-sec { padding: 52px 0 60px; background: #fff; }
.g4-h2 { margin: 0 0 22px; text-align: center; font-size: clamp(24px, 2.2vw, 30px); font-weight: 900; color: #0E1A2B; }
.g4-h2--gap { margin-top: 64px; margin-bottom: 30px; }
.g4-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g4-entry { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 24px; border-radius: 10px; background: #F6F7FA; text-decoration: none; transition: background-color 0.2s ease; }
.g4-entry:hover { background: #EEF0F5; }
.g4-entry b { font-size: 15px; font-weight: 800; color: #0E1A2B; }
.g4-entry span { font-size: 11px; color: #7A8494; }
.g4-worries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.g4-worries a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 8px;
  background: #FFF4E6; font-size: 12px; font-weight: 800; color: #5A3613; text-decoration: none; transition: background-color 0.2s ease;
}
.g4-worries a:hover { background: #FFE9CF; }
.g4-worries i { font-style: normal; transition: transform 0.2s ease; }
.g4-worries a:hover i { transform: translateX(3px); }

/* ---------- 深蓝收口 ---------- */
.g4-end {
  position: relative; overflow: hidden; padding: 64px 0 64px; text-align: center;
  background: radial-gradient(110% 120% at 50% 0%, #13284A 0%, #0B1A33 55%, #08142A 100%);
}
.g4-end__inner { position: relative; z-index: 1; }
.g4-end__t { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.g4-end__t span { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; color: #fff; }
.g4-end__t b {
  font-size: clamp(28px, 3.4vw, 46px); font-weight: 900; line-height: 1.2;
  background: linear-gradient(180deg, #FFD08A 0%, #F59B3D 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g4-end__arc { position: absolute; bottom: -1px; width: 34%; aspect-ratio: 3 / 1; pointer-events: none; }
.g4-end__arc--l { left: -8%; background: radial-gradient(70% 140% at 30% 120%, rgba(13, 26, 48, 0) 62%, rgba(255, 178, 92, 0.45) 66%, rgba(242, 134, 46, 0.1) 72%, rgba(13, 26, 48, 0) 80%); }
.g4-end__arc--r {
  right: -6%;
  background:
    radial-gradient(70% 140% at 70% 120%, rgba(13, 26, 48, 0) 62%, rgba(255, 196, 120, 0.85) 64.5%, rgba(242, 134, 46, 0.18) 70%, rgba(13, 26, 48, 0) 78%),
    radial-gradient(rgba(150, 180, 220, 0.25) 1px, transparent 1.4px) 0 0 / 8px 8px;
  -webkit-mask: radial-gradient(70% 140% at 70% 120%, #000 64%, transparent 66%);
  mask: radial-gradient(70% 140% at 70% 120%, #000 64%, transparent 66%);
}

/* ==========================================================================
 * v4.1 细节对齐（2026-11-16，1277px 宽逐项量设计图）
 * ========================================================================== */
/* v7.css 给 .cxc-articles__item（li）加了 1px 直角描边 + 悬停上浮：li 没有圆角，套在圆角卡外面像一圈黑框 → 去掉，只留卡片自己的效果 */
.g4-list .cxc-articles__item,
.g4-list .cxc-articles__item:hover { outline: 0; transform: none; box-shadow: none; transition: none; }

/* Banner：内容左缘 72px（1277 宽时）、标题更大、搜索框下方留 52px */
.v3-hero--guide .v3-hero__inner { max-width: 1197px; }
.v3-hero--guide .v3-display { font-size: clamp(44px, 5.3vw, 68px); line-height: 1.12; }
.v3-hero--guide { padding-bottom: 51px; }
.v3-hero--guide .v3-hero__inner { padding-top: 10px; }

/* 文章区：上 48；胶囊 26 高；篇数 / 卡片间距；卡片 12px 圆角、图 10px、卡间 16px */
.g4-articles-sec { padding: 48px 0 46px; }
.g4-chip.cxc-chip { min-height: 26px; }
.g4-count { margin: 14px 0 19px; line-height: 20px; }
.g4-list { gap: 17px 16px; }
.g4-card { gap: 14px; padding: 12px 16px 13px 13px; border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 4px 14px rgba(16, 24, 40, 0.035); }
.g4-card img { border-radius: 10px; }

/* 三个主入口 / 四个担忧：标题 32px，卡片 84px 高、12px 圆角；担忧块 49px 高、10px 圆角 */
.g4-entries-sec { padding: 38px 0 57px; }
.g4-h2 { margin-bottom: 17px; font-size: clamp(26px, 2.5vw, 32px); line-height: 1.3; }
.g4-h2--gap { margin-top: 68px; margin-bottom: 40px; }
.g4-entries { gap: 16px; }
.g4-entry { gap: 10px; padding: 20px 18px 18px; border-radius: 12px; }
.g4-entry b { line-height: 20px; }
.g4-entry span { line-height: 16px; }
.g4-worries { gap: 16px; }
.g4-worries a { min-height: 49px; border-radius: 10px; }

/* 深蓝收口：232px 高，两行标题中心距 65px */
.g4-end { padding: 61px 0 59px; }
.g4-end__t { gap: 19px; }
.g4-end__t span { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.3; }
.g4-end__t b { font-size: clamp(30px, 3.6vw, 45px); line-height: 1.2; }

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 860px) {
  .g4-list { grid-template-columns: 1fr; }
  .g4-worries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .v3-hero--guide .v3-bigsearch { height: 56px; padding-left: 20px; }
  .v3-hero--guide .v3-bigsearch input { font-size: 16px; }
  .v3-hero--guide .v3-bigsearch__btn { width: 44px; height: 44px; }
  .g4-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .g4-chips::-webkit-scrollbar { display: none; }
  .g4-chip.cxc-chip { flex: 0 0 auto; min-height: 34px; font-size: 13px; }
  .g4-card img { width: 96px; height: 96px; }
  .g4-card h3 { font-size: 14px; }
  .g4-entries { grid-template-columns: 1fr; gap: 12px; }
  .g4-worries { gap: 10px; }
  .g4-worries a { padding: 0 12px; }
  .g4-end__arc { width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .g4-card, .g4-card__more i, .g4-worries i { transition: none; }
  .g4-card:hover { transform: none; }
}
