/* 页面级样式 —— 主页 */
.hero {
  padding: 76px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 18px 0 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: .1em;
  height: .3em;
  background: var(--brand-soft);
  z-index: -1;
  border-radius: 3px;
}

.hero-lead {
  margin-top: 22px;
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  color: var(--ink);
}

.hero-stats div span {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* 首页右侧的拼贴卡片 */
.hero-art {
  position: relative;
  min-height: 460px;
}

.art-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid #fff;
  background: #fff;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(30, 25, 20, .68), transparent);
}

.art-1 { width: 62%; height: 66%; top: 0; left: 0; transform: rotate(-2.2deg); z-index: 2; }
.art-2 { width: 48%; height: 46%; bottom: 4%; right: 0; transform: rotate(2.6deg); z-index: 3; }
.art-3 { width: 40%; height: 34%; bottom: 12%; left: 6%; transform: rotate(1.4deg); z-index: 1; }

.art-note {
  position: absolute;
  top: 4%;
  right: 2%;
  z-index: 4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}

.art-note strong { color: var(--brand-ink); font-size: 15px; display: block; }

/* 门户入口 */
.portal {
  padding: 96px 0 0;
}

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

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}

.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(185, 86, 60, .05), transparent 45%);
  opacity: 0;
  transition: opacity .22s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.portal-card:hover::after { opacity: 1; }

.portal-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.portal-card:nth-child(2) .portal-icon { background: var(--green-soft); color: #3d6540; }
.portal-card:nth-child(3) .portal-icon { background: var(--gold-soft); color: #8a6420; }

.portal-icon svg { width: 22px; height: 22px; }

.portal-card h3 {
  font-family: var(--serif);
  font-size: 20px;
}

.portal-card p {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}

.portal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}

.portal-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--brand-ink);
}

.portal-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.portal-card:hover .portal-more svg { transform: translateX(3px); }

/* 今日一栏 */
.today {
  padding: 96px 0 0;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stat-card .label {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .03em;
}

.stat-card .value {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.25;
  margin-top: 8px;
}

.stat-card .value small {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink-3);
  margin-left: 3px;
  font-weight: 400;
}

.stat-card .hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

/* 随机一道菜 */
.pick {
  padding: 96px 0 0;
}

.pick-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pick-media {
  position: relative;
  min-height: 360px;
  background: var(--bg-soft);
}

.pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.pick-media .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 13px;
}

.pick-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
}

.pick-body h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 10px;
}

.pick-desc {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 10px;
  min-height: 3em;
}

.pick-nutri {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.pick-nutri div {
  padding: 12px 10px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.pick-nutri span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
}

.pick-nutri strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  margin-top: 2px;
}

.pick-nutri strong small {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
}

.pick-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* 页尾 CTA */
.cta {
  margin-top: 96px;
}

.cta-inner {
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  background: linear-gradient(135deg, #f6e7df, #f9f2e4 58%, #eaf0e5);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
}

.cta-inner p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 48ch;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { min-height: 380px; max-width: 520px; }
  .portal-grid { grid-template-columns: 1fr; }
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-shell { grid-template-columns: 1fr; }
  .pick-media { min-height: 260px; }
}

@media (max-width: 620px) {
  .hero { padding-top: 44px; }
  .hero-stats { gap: 22px; }
  .today-grid { grid-template-columns: 1fr; }
  .pick-body { padding: 26px 22px; }
  .pick-nutri { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 34px 24px; }
  .art-note { display: none; }
  .hero-art { min-height: 320px; }
}
