/* ============================================================
   营养与健康板块 + 健康理念板块
   ============================================================ */

/* ---------- 营养与健康 ---------- */
.nut-hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
  padding: 40px 42px; border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.nut-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(46,230,168,.12); color: var(--mint);
  border: 1px solid rgba(46,230,168,.28);
}
.nut-hero-l h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3;
  margin: 16px 0 16px;
}
.nut-hero-l p { font-size: 14px; color: var(--ink-2); line-height: 1.82; margin-bottom: 22px; }
.nut-points { list-style: none; display: grid; gap: 12px; }
.nut-points li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.65;
}
.nut-points i {
  width: 17px; height: 17px; border-radius: 6px; flex: none; margin-top: 2px;
  background: rgba(46,230,168,.14); border: 1px solid rgba(46,230,168,.3);
  position: relative;
}
.nut-points i::after {
  content: ""; position: absolute; left: 5px; top: 3.5px;
  width: 4.5px; height: 8.5px; border: solid var(--mint);
  border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

/* 闭环图 */
.nut-hero-r { display: grid; place-items: center; }
.nut-loop { position: relative; width: 300px; height: 300px; }
.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-svg circle:first-child { transform-origin: 150px 150px; animation: spinSlow 34s linear infinite; }
.loop-svg circle:nth-child(2) { transform-origin: 150px 150px; animation: spinSlow 26s linear infinite reverse; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.loop-core {
  position: absolute; inset: 0; margin: auto;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 1px;
  background: radial-gradient(circle at 35% 30%, rgba(46,230,168,.20), rgba(11,16,32,.92) 70%);
  border: 1px solid rgba(46,230,168,.32);
  box-shadow: 0 0 40px rgba(46,230,168,.20), inset 0 1px 0 rgba(255,255,255,.10);
  animation: corePulse 4.5s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 36px rgba(46,230,168,.16), inset 0 1px 0 rgba(255,255,255,.10); }
  50%     { box-shadow: 0 0 56px rgba(46,230,168,.30), inset 0 1px 0 rgba(255,255,255,.10); }
}
.loop-core b { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.loop-core span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .16em; }

.loop-node {
  position: absolute;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  padding: 5px 12px; border-radius: 99px;
  background: rgba(16,22,42,.86);
  border: 1px solid var(--glass-line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.34);
}
/* 四个节点贴在 r=120 的外圈虚线上（容器 300px，半径 = 50% 宽） */
.ln1 { top: 6px;   left: 50%; }
.ln2 { top: 50%;  right: 6px; }
.ln3 { bottom: 6px; left: 50%; }
.ln4 { top: 50%;  left: 6px; }

/* 上下节点水平居中、左右节点垂直居中 */
.ln1, .ln3 { transform: translateX(-50%); }
.ln2, .ln4 { transform: translateY(-50%); }

.ln1 { animation: nodeFloatV 6s ease-in-out infinite; }
.ln2 { animation: nodeFloatH 6s ease-in-out infinite -1.5s; }
.ln3 { animation: nodeFloatV 6s ease-in-out infinite -3s; }
.ln4 { animation: nodeFloatH 6s ease-in-out infinite -4.5s; }

@keyframes nodeFloatV {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-7px); }
}
@keyframes nodeFloatH {
  0%,100% { transform: translateY(-50%) translateX(0); }
  50%     { transform: translateY(-50%) translateX(7px); }
}

/* 营养与健康 · 子模块卡 */
.nut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nut-card {
  padding: 22px 20px; border-radius: var(--r);
  transition: transform .38s var(--ease-back), border-color .28s, background .28s, box-shadow .38s;
  position: relative; overflow: hidden;
}
.nut-card:hover {
  transform: translateY(-7px) translateZ(24px);
  border-color: var(--glass-line-2);
  background: var(--glass-strong);
  box-shadow: 0 26px 60px rgba(0,0,0,.48);
}
.nut-ic {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line);
  transition: transform .44s var(--ease-back);
}
.nut-card:hover .nut-ic { transform: rotate(-8deg) scale(1.12); }
.nut-ic svg { width: 20px; height: 20px; }
.nut-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.nut-card p { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.nut-card .nc-tag {
  display: inline-block; margin-top: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(46,230,168,.10); color: var(--mint);
  border: 1px solid rgba(46,230,168,.22);
}

/* ---------- 健康理念 ---------- */
.phil-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.phil {
  padding: 26px 20px 22px; border-radius: var(--r);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease-back), border-color .3s, background .3s, box-shadow .4s;
}
.phil:hover {
  transform: translateY(-8px) translateZ(26px);
  border-color: var(--glass-line-2);
  background: var(--glass-strong);
  box-shadow: 0 28px 62px rgba(0,0,0,.5);
}
.phil-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink-4); letter-spacing: .1em; margin-bottom: 14px;
  transition: color .3s;
}
.phil:hover .phil-num { color: var(--mint); }
.phil-ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-line);
  transition: transform .46s var(--ease-back), border-color .3s;
}
.phil:hover .phil-ic { transform: rotate(-8deg) scale(1.14); border-color: rgba(46,230,168,.32); }
.phil-ic svg { width: 19px; height: 19px; color: var(--mint); }
.phil h4 { font-size: 15px; font-weight: 700; margin-bottom: 9px; line-height: 1.4; }
.phil p { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.phil::after {
  content: ""; position: absolute; width: 140px; height: 140px;
  right: -55px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,230,168,.13), transparent 68%);
  opacity: 0; transition: opacity .45s; pointer-events: none;
}
.phil:hover::after { opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nut-hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
  .nut-hero-r { order: -1; }
  .nut-grid { grid-template-columns: repeat(2, 1fr); }
  .phil-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nut-hero { padding: 26px 20px; border-radius: var(--r); }
  .nut-hero-l h3 { font-size: 23px; }
  .nut-loop { width: 236px; height: 236px; }
  .loop-core { width: 84px; height: 84px; }
  .loop-core b { font-size: 13px; }
  .loop-node { font-size: 10.5px; padding: 4px 10px; }
  .nut-grid { grid-template-columns: 1fr; }
  .phil-grid { grid-template-columns: repeat(2, 1fr); }
  .phil { padding: 20px 17px 18px; }
}

@media (max-width: 480px) {
  .phil-grid { grid-template-columns: 1fr; }
  .nut-loop { width: 200px; height: 200px; }
  .loop-core { width: 72px; height: 72px; }
  .loop-node { font-size: 10px; padding: 3px 8px; }
}
