/* ============================================================
   白日梦 AIGC — 首页样式 (home.css)
   ============================================================ */
.hero { position: relative; min-height: 100vh; padding: 16px; background: #000; }
.hero-frame {
  position: relative; min-height: calc(100vh - 32px); overflow: hidden;
  border-radius: 24px; background: #070707; isolation: isolate;
}
.hero-frame video, .fallback-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-frame video { z-index: -3; filter: saturate(.95) contrast(1) brightness(1.12); }
.fallback-bg {
  z-index: -4;
  background:
    radial-gradient(circle at 62% 44%, rgba(222, 219, 200, .16), transparent 42%),
    radial-gradient(circle at 22% 78%, rgba(183, 0, 0, .12), transparent 40%),
    linear-gradient(135deg, #0a0a0a 0%, #050505 55%, #0d0b08 100%);
}
.noise-overlay {
  position: absolute; inset: 0; z-index: -1;
  mix-blend-mode: overlay; opacity: .7; pointer-events: none;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.52) 48%, rgba(0,0,0,.14) 82%),
    linear-gradient(to bottom, rgba(0,0,0,.36), transparent 42%, rgba(0,0,0,.62));
}

/* logo */
.home-logo {
  display: inline-block; width: clamp(190px, 23vw, 350px);
  margin-bottom: clamp(14px, 2vh, 22px);
  line-height: 0; opacity: .94;
  transition: opacity .2s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.home-logo:hover { opacity: 1; transform: translateY(-2px); }
.home-logo img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
}
/* JS 确认是真 logo 前先隐藏，避免占位图闪出 */
.home-logo:not(.has-img) img { display: none; }
/* 未提供 logo 图片时的文字占位 */
.home-logo-text { display: none; }
.home-logo.is-text { width: auto; line-height: 1.1; }
.home-logo.is-text .home-logo-text {
  display: inline-block; line-height: 1.06;
  font-size: clamp(38px, 6.2vw, 86px); font-weight: 800;
  letter-spacing: -.055em; color: #e1e0cc;
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.home-logo-text em {
  font-style: normal; font-weight: 800; color: #b70000;
  letter-spacing: -.02em; margin-left: .12em;
}
.logo-wordmark {
  display: inline-flex; align-items: baseline; gap: .12em;
  font-size: clamp(30px, 4.6vw, 62px); font-weight: 800;
  letter-spacing: -.05em; color: #e1e0cc;
}
.logo-mark { color: #b70000; font-size: .5em; transform: translateY(-.9em); }
.logo-sub {
  margin-left: .22em; font-size: .42em; font-weight: 600;
  letter-spacing: .12em; color: rgba(225,224,204,.5);
}

/* editorial */
.hero-editorial {
  position: absolute; bottom: clamp(68px, 7vh, 94px);
  left: clamp(28px, 7vw, 108px); right: clamp(28px, 7vw, 108px);
  z-index: 2; max-width: 1000px;
}
.editorial-topline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.social-links { display: flex; align-items: center; gap: 7px; }
.social-link {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(225,224,204,.26); border-radius: 50%;
  background: rgba(0,0,0,.18); color: rgba(225,224,204,.68);
  backdrop-filter: blur(8px);
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.social-link:hover {
  color: #e1e0cc; border-color: rgba(225,224,204,.7);
  background: rgba(0,0,0,.52); transform: translateY(-2px);
}
.social-link[data-platform="xiaohongshu"]:hover { border-color: #b70000; }
.social-link svg { width: 17px; height: 17px; overflow: visible; }
.social-link::after {
  content: attr(data-label); position: absolute; top: calc(100% + 8px); left: 50%;
  z-index: 5; transform: translate(-50%, -4px);
  padding: 5px 8px; border-radius: 5px;
  background: rgba(0,0,0,.86); color: #e1e0cc; font-size: 9px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s;
}
.social-link:hover::after, .social-link:focus-visible::after {
  opacity: 1; transform: translate(-50%, 0);
}
.home-legal-links {
  display: flex; align-items: center; gap: 8px;
  color: rgba(225,224,204,.45); font-size: 12px;
}
.home-legal-links a:hover { color: #e1e0cc; }

.editorial-lines { max-width: 880px; margin-top: clamp(24px, 3.4vh, 40px); }
.editorial-line {
  color: rgba(225,224,204,.7); font-size: clamp(16px, 1.75vw, 25px);
  font-weight: 500; line-height: 1.62;
}
.editorial-line.lead { color: #e1e0cc; font-weight: 700; }

/* 开始创作入口 */
.home-start {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(28px, 4vh, 46px);
}
.home-start a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid rgba(225,224,204,.24); border-radius: 999px;
  background: rgba(0,0,0,.32); color: rgba(225,224,204,.86);
  font-size: 14px; font-weight: 600; backdrop-filter: blur(8px);
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.home-start a:hover {
  border-color: rgba(225,224,204,.7); background: rgba(222,219,200,.92);
  color: #050505; transform: translateY(-2px);
}
.home-start a.start-mcp { border-style: dashed; color: rgba(225,224,204,.6); }
.start-en { display: none; }
html[lang="en"] .start-zh { display: none; }
html[lang="en"] .start-en { display: inline; }

/* swipe cue */
.swipe-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 4;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  color: rgba(225,224,204,.58); font-size: 10px; font-weight: 700;
  text-transform: uppercase; white-space: nowrap; pointer-events: none;
}
.swipe-cue-line {
  position: relative; width: 34px; height: 1px; overflow: hidden;
  background: rgba(225,224,204,.2);
}
.swipe-cue-line::after {
  content: ""; position: absolute; inset: 0; background: #e1e0cc;
  transform: translateX(-100%);
  animation: swipeSignal 2.2s cubic-bezier(.16,1,.3,1) infinite;
}
@keyframes swipeSignal {
  0%, 25% { transform: translateX(-100%); }
  65%, 100% { transform: translateX(100%); }
}

/* ============ 每日阅读索引 ============ */
.article-index { padding: clamp(88px, 10vw, 168px) clamp(22px, 5vw, 72px); background: #000; }
.article-shell { max-width: 1160px; margin: 0 auto; }
.article-header {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,420px);
  gap: clamp(22px, 5vw, 64px); align-items: end; margin-bottom: 56px;
}
.label {
  display: block; margin-bottom: 26px; color: #dedbc8;
  font-size: 12px; letter-spacing: .04em;
}
.article-header h2 {
  color: #e1e0cc; font-size: clamp(38px, 7vw, 92px);
  font-weight: 700; line-height: 1.16; letter-spacing: -.06em;
  margin: 8px 0 6px;
}
.article-header p { color: rgba(222,219,200,.7); font-size: clamp(13px,1.15vw,15px); line-height: 1.65; }

.article-filters {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 0 auto 32px;
}
.article-filter {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px; padding: 0 18px;
  border: 1px solid rgba(222,219,200,.18); border-radius: 8px;
  background: rgba(255,255,255,.045); color: rgba(222,219,200,.72);
  font-weight: 700; cursor: pointer;
  transition: transform .18s, border-color .18s, background .18s, color .18s;
}
.article-filter::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px;
  background: rgba(222,219,200,.45);
}
.article-filter.active, .article-filter:hover {
  border-color: rgba(222,219,200,.62); background: rgba(222,219,200,.9);
  color: #050505; transform: translateY(-1px);
}
.article-filter.active::before, .article-filter:hover::before { background: #a00000; }

.article-list { display: grid; gap: 28px; max-width: 780px; margin: 0 auto; }
.article-card {
  overflow: hidden; border: 1px solid rgba(222,219,200,.12);
  border-radius: 14px; background: #050505;
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  transition: transform .38s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .38s;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(222,219,200,.32);
  box-shadow: 0 44px 110px rgba(0,0,0,.55), 0 0 0 1px rgba(222,219,200,.06) inset;
}
.article-link { display: block; color: inherit; text-decoration: none; }

.article-media {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px 0;
  background: transparent;
}
.article-media .media-badge {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(222,219,200,.2); background: rgba(222,219,200,.06);
  color: rgba(235,234,214,.78); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .3s, background .3s, color .3s;
}
.article-card:hover .article-media .media-badge {
  border-color: rgba(222,219,200,.45); background: rgba(222,219,200,.12); color: #e1e0cc;
}
.article-media .media-date {
  color: rgba(222,219,200,.45); font-size: 12px;
}

.article-body { padding: 16px clamp(20px, 4vw, 30px) clamp(22px, 4vw, 30px); }
.article-body h3 {
  margin-bottom: 8px; color: #e1e0cc;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.22;
  letter-spacing: -.025em; font-weight: 500;
  transition: color .25s;
}
.article-card:hover .article-body h3 { color: #fffde8; }
.article-date {
  display: block; margin-bottom: 14px; color: #dedbc8;
  font-size: 13px; font-style: italic;
}
.article-body p { color: rgba(222,219,200,.72); font-size: 14.5px; line-height: 1.72; }
.article-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 22px;
}
.article-tag {
  padding: 9px 12px; border: 1px solid rgba(222,219,200,.22);
  color: rgba(222,219,200,.62); font-size: 12px; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%;
}
.article-read {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 8px;
  background: rgba(222,219,200,.18); color: #e1e0cc; font-size: 14px;
  white-space: nowrap;
  transition: background .18s, transform .18s, gap .18s;
}
.article-card:hover .article-read { background: rgba(222,219,200,.3); gap: 12px; }
.article-empty {
  padding: 60px 0; text-align: center;
  color: rgba(222,219,200,.42); font-size: 14px;
}
.article-note {
  max-width: 780px; margin: 28px auto 0;
  color: rgba(222,219,200,.42); font-size: 12px; line-height: 1.6;
}

/* ============ 四个分页 features ============ */
.features {
  position: relative; min-height: 100vh;
  padding: clamp(44px, 7vw, 94px) clamp(16px, 4vw, 52px) 96px;
  background: #000;
}
.features.bg-noise::before {
  content: ""; position: absolute; inset: 0;
  opacity: .15; pointer-events: none;
}
.features-head {
  position: relative; z-index: 1; max-width: 1160px;
  margin: 0 auto 34px;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 24px; align-items: end;
}
.features-head h2 {
  max-width: 780px; color: #e1e0cc;
  font-size: clamp(24px, 4vw, 48px); font-weight: 400;
  line-height: 1.08; letter-spacing: -.035em;
}
.features-head h2 span { display: block; color: #6b7280; }
.stat { color: #777; font-size: 12px; white-space: nowrap; }

.page-tabs {
  position: relative; z-index: 1; max-width: 1160px;
  margin: 0 auto 14px;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px;
}
.page-tab {
  min-height: 46px; border: 1px solid rgba(222,219,200,.12);
  border-radius: 999px; background: rgba(16,16,16,.76);
  color: rgba(222,219,200,.62); font-weight: 700; cursor: pointer;
  transition: transform .18s, background .2s, color .2s, border-color .2s;
}
.page-tab:hover { transform: translateY(-1px); }
.page-tab.active { border-color: #dedbc8; background: #dedbc8; color: #050505; }

.page-panel {
  position: relative; z-index: 1; max-width: 1160px;
  margin: 0 auto 30px;
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 1px; overflow: hidden; border-radius: 22px;
  background: rgba(222,219,200,.11);
  transition: opacity .2s, transform .2s;
}
.page-panel.is-swapping { opacity: .45; transform: translateY(6px); }
.page-panel-main, .page-index {
  min-height: 260px; background: rgba(16,16,16,.9);
  padding: clamp(22px, 4vw, 38px);
}
.page-kicker {
  display: block; margin-bottom: 22px; color: rgba(222,219,200,.48);
  font-size: 12px; text-transform: uppercase;
}
.page-panel h3 {
  margin-bottom: 18px; color: #e1e0cc;
  font-size: clamp(28px, 4.8vw, 56px); line-height: .95; letter-spacing: -.055em;
}
.page-panel p { max-width: 520px; color: rgba(222,219,200,.72); font-size: 15px; line-height: 1.68; }
.page-image {
  overflow: hidden; margin-top: 28px; border-radius: 14px;
  aspect-ratio: 16/7; background: #050505;
  position: relative;
}
.page-image-ph {
  width: 100%; height: 100%;
  background-color: #0b0b0b;
  background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .4s;
  filter: saturate(.9) brightness(.86);
  will-change: transform;
}
.page-image-ph.has-img { background-blend-mode: normal; }
.page-panel:hover .page-image-ph { filter: saturate(1.02) brightness(.98); }
.page-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(0,0,0,.5), transparent 55%),
              linear-gradient(to top, rgba(0,0,0,.35), transparent 60%);
}

.page-index { display: grid; gap: 1px; background: rgba(222,219,200,.1); }
.index-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 17px 18px; background: #181818;
  transition: background .18s, transform .18s;
}
.index-row:hover { background: #202020; transform: translateX(3px); }
.index-row strong { color: #dedbc8; font-size: 13px; }
.index-row span { color: rgba(222,219,200,.72); font-size: 14px; line-height: 1.45; }

.feature-grid {
  position: relative; z-index: 1; max-width: 1160px;
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px;
}
.feature-card {
  min-height: 480px; position: relative; overflow: hidden;
  border-radius: 20px; background: #212121; padding: 24px;
  color: #e1e0cc;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 34px 80px rgba(0,0,0,.55); }
.feature-card.video { display: flex; align-items: flex-end; }
.feature-card .card-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(.85) brightness(.55) contrast(1.05);
  transform: scale(1.03);
  transition: transform .9s cubic-bezier(.16,1,.3,1), filter .5s, opacity .4s;
  opacity: .9;
}
.feature-card:hover .card-bg { transform: scale(1.12); filter: saturate(1) brightness(.72); opacity: 1; }
.feature-card.video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.4) 52%, rgba(0,0,0,.12) 100%);
}
.feature-card h3, .feature-card .checks, .feature-card .learn, .feature-icon { position: relative; z-index: 2; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 34px;
  background: #111; border: 1px solid rgba(222,219,200,.12);
  display: grid; place-items: center; font-size: 22px; color: #dedbc8;
}
.feature-card h3 { margin-bottom: 18px; font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.feature-card h3 small {
  display: block; margin-bottom: 10px; color: #777; font-size: 12px;
  font-weight: 400; letter-spacing: 0;
}
.checks {
  display: grid; gap: 12px; margin: 26px 0 30px;
  color: #a8a8a8; font-size: 14px; line-height: 1.35;
}
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: "✓"; color: #dedbc8; font-weight: 800; }
.learn {
  position: absolute; left: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  color: #dedbc8; font-size: 14px; transition: gap .18s, color .18s;
}
.learn:hover { gap: 14px; color: #fffde8; }
.learn .arrow { transform: rotate(-45deg); font-size: 18px; }

/* 响应式 */
@media (min-width: 768px) {
  .hero { padding: 24px; }
  .hero-frame { min-height: calc(100vh - 48px); border-radius: 32px; }
}
@media (max-width: 1000px) {
  .article-header, .features-head { grid-template-columns: 1fr; }
  .page-panel { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .hero { padding: 12px; }
  .hero-frame { min-height: calc(100vh - 24px); border-radius: 18px; }
  .hero-editorial { bottom: 54px; left: 22px; right: 22px; }
  .editorial-line { font-size: 14px; line-height: 1.5; }
  .page-tabs { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 360px; }
  .article-actions { flex-direction: column; align-items: stretch; }
  .article-read { justify-content: center; }
}
