/* ============================================================
   anam 首页(紫罗兰系) — 结构:Hero+社证/横滚带/三步/能力/作品/
   场景/用户的话/FAQ/CTA/页脚。依赖 tokens.css。
   ============================================================ */

/* —— Hero —— */
.hero { position: relative; display: flex; align-items: center; padding: 150px 24px 56px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.blob.b1 { width: 460px; height: 460px; background: var(--blob-violet); top: -130px; left: -110px; }
.blob.b2 { width: 380px; height: 380px; background: var(--blob-pink); top: 8%; right: -130px; }
.blob.b3 { width: 320px; height: 320px; background: var(--blob-peach); bottom: -90px; left: 28%; opacity: 0.45; }
.blob.b4 { width: 280px; height: 280px; background: var(--blob-mint); bottom: 4%; right: 20%; opacity: 0.4; }

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--violet-600); margin-bottom: 26px;
}
.eyebrow .spark { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(38px, 4.9vw, 62px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--violet-600); }
.hero-sub { color: var(--ink-600); font-size: 17.5px; max-width: 440px; margin-bottom: 34px; }

/* 打字机胶囊 */
.type-box {
  display: flex; align-items: center; gap: 14px;
  max-width: 560px;
  background: #fff; border-radius: 999px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 16px 40px rgba(76, 54, 160, 0.14);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease-out);
}
.type-box:hover { box-shadow: 0 20px 48px rgba(76, 54, 160, 0.2); }
.type-line { flex: 1; min-height: 24px; font-size: 15.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; }
.type-line .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--violet-600); vertical-align: text-bottom; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send-btn {
  flex: none; width: 48px; height: 48px;
  border: 0; border-radius: 999px;
  background: var(--grad-violet); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(109, 74, 255, 0.4);
  transition: transform 0.2s var(--ease-out);
}
.send-btn:hover { transform: scale(1.06); }
.hero-hint { margin-top: 16px; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-hint a {
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--ink-200);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; font-weight: 600; color: var(--ink-600);
  transition: all 0.2s var(--ease-out);
}
.hero-hint a:hover { border-color: var(--violet-300); color: var(--violet-700); background: #fff; }

/* 社会证明 */
.social-proof { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars i { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--lavender); margin-left: -10px; }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(1) { background: linear-gradient(135deg, #9B6BFF, #F8C4DD); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #FCE0AE, #F0544F); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #B8E8CD, #6D4AFF); }
.avatars i:nth-child(4) { background: linear-gradient(135deg, #BFD6FF, #7C5CFC); }
.avatars i:nth-child(5) { background: linear-gradient(135deg, #F8C4DD, #FCE0AE); }
.social-proof p { font-size: 13.5px; color: var(--ink-600); font-weight: 600; }
.social-proof p b { color: var(--ink-900); }

/* 右侧拼贴 */
.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 62px; gap: 16px; }
.art-card {
  position: relative; overflow: hidden;
  border-radius: 28px; background: #fff; padding: 8px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.36s var(--ease-out), box-shadow 0.36s var(--ease-out);
}
.art-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 26px 56px rgba(76, 54, 160, 0.22); }
.art-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }
.a1 { grid-column: 1 / 8; grid-row: 1 / 8; }
.a2 { grid-column: 8 / 13; grid-row: 2 / 6; }
.a3 { grid-column: 8 / 13; grid-row: 6 / 9; }
.a-stat {
  grid-column: 2 / 8; grid-row: 8 / 10;
  background: #fff; border-radius: 24px;
  box-shadow: 0 14px 36px rgba(76, 54, 160, 0.13);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.a-stat .num { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }
.a-stat .num em { font-style: normal; color: var(--violet-600); }
.a-stat .label { font-size: 13px; color: var(--ink-500); font-weight: 600; }
.a1 .badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 700; color: var(--violet-700);
  box-shadow: 0 4px 14px rgba(76, 54, 160, 0.18);
}
.a1 .badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-500); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* —— 作品横滚带(无缝:两组相同序列,每组自带收尾间距) —— */
.marquee { overflow: hidden; padding: 26px 0 10px; }
.marquee .track { display: flex; width: max-content; animation: scroll 108s linear infinite; will-change: transform; } /* 每组 3 遍后半程距离 ×3,时长同步 ×3 保持原速 */
.marquee .grp { display: flex; gap: 18px; padding-right: 18px; flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
/* 当家模型卡:图标 + 名称 + 简介 + 标签;is-hot 品牌紫高亮 */
.model-card {
  flex: none; width: 248px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 9px;
  border-radius: 22px; background: #fff;
  border: 1px solid var(--ink-200);
  box-shadow: 0 10px 26px rgba(76, 54, 160, 0.08);
}
.model-card .model-head { display: flex; align-items: center; gap: 10px; }
.model-card .model-ico {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; font-size: 19px; background: var(--violet-50);
}
.model-card b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-900); }
.model-card p { margin: 0; font-size: 12.8px; line-height: 1.55; color: var(--ink-600); }
.model-card .model-tags { display: flex; gap: 6px; margin-top: auto; }
.model-card .m-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--violet-700); background: var(--violet-50); border: 1px solid var(--violet-200);
}
.model-card .m-tag-hot { color: #fff; background: var(--violet-600); border-color: var(--violet-600); }
/* 重点模型:品牌紫渐变底,整卡反白 */
.model-card.is-hot {
  background: linear-gradient(135deg, #7C5CFC 0%, #6D4AFF 55%, #5733E6 100%);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(109, 74, 255, 0.28);
}
.model-card.is-hot b { color: #fff; }
.model-card.is-hot p { color: rgba(255, 255, 255, 0.82); }
.model-card.is-hot .model-ico { background: rgba(255, 255, 255, 0.16); }
.model-card.is-hot .m-tag { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.32); }
.model-card.is-hot .m-tag-hot { color: var(--violet-700); background: #fff; border-color: #fff; }
/* 极简线性图标(SVG, currentColor) */
.model-card .model-ico { color: var(--violet-600); }
.model-card .model-ico svg { width: 18px; height: 18px; }
.model-card.is-hot .model-ico { color: #fff; }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* —— 区块通用 —— */
.section { max-width: 1160px; margin: 0 auto; padding: 88px 24px; }
.section-head { max-width: 540px; margin-bottom: 52px; }
.section-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--violet-600); display: block; margin-bottom: 12px; }
.section-head h2 { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--ink-600); font-size: 16.5px; }
.section-head.align-right { margin-left: auto; text-align: right; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* —— 三步上手 —— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border-radius: 28px; padding: 30px 28px; box-shadow: var(--shadow-md); transition: transform 0.36s var(--ease-out); }
.step:hover { transform: translateY(-4px); }
.step .no {
  font-family: var(--font-mono);
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--grad-violet); color: #fff;
  font-size: 16px; font-weight: 600; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-600); font-size: 14.5px; }

/* —— 能力 bento —— */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; grid-auto-rows: 96px; }
.bento > div {
  background: #fff; border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.36s var(--ease-out), box-shadow 0.36s var(--ease-out);
  overflow: hidden; position: relative;
}
.bento > div:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(76, 54, 160, 0.14); }
.b-lg { grid-column: span 7; grid-row: span 4; }
.b-sm { grid-column: span 5; grid-row: span 4; }
.b-half { grid-column: span 6; grid-row: span 2; }
.icon-circle { width: 46px; height: 46px; border-radius: 999px; background: var(--violet-100); display: grid; place-items: center; margin-bottom: 16px; color: var(--violet-700); }
.icon-circle svg { width: 21px; height: 21px; }
.bento h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.bento p { color: var(--ink-600); font-size: 14.5px; max-width: 420px; }
.b-cream { background: var(--cream) !important; }

/* 聊天演示 */
.chat-demo { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 12px 16px; font-size: 14px; line-height: 1.5; border-radius: 20px; }
.bubble.user { align-self: flex-end; background: var(--grad-violet); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 16px rgba(109, 74, 255, 0.3); }
.bubble.agent { align-self: flex-start; background: var(--ink-50); color: var(--ink-800); border-bottom-left-radius: 6px; }
.bubble.agent .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.bubble.agent .thumbs img { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: var(--ink-50); border-radius: 20px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: ty 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ty { 30% { transform: translateY(-4px); opacity: 1; } 60% { opacity: 0.4; } }

/* —— 作品 mosaic —— */
/* 作品墙:横向全屏出血,跳出 .section 1160px 限宽 */
.mosaic {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; grid-auto-rows: 84px;
  width: 100vw; margin-left: calc(50% - 50vw); padding: 0 28px; box-sizing: border-box;
}
.mosaic .art-card { border-radius: 24px; }
.mosaic .art-card img { border-radius: 17px; }
.m1 { grid-column: 1 / 8; grid-row: span 4; }
.m2 { grid-column: 8 / 13; grid-row: span 6; }
.m3 { grid-column: 1 / 4; grid-row: span 3; }
.m4 { grid-column: 4 / 8; grid-row: span 3; }
.m6 { grid-column: 1 / 6; grid-row: span 3; }
.m7 { grid-column: 6 / 10; grid-row: span 3; }
.m8 { grid-column: 10 / 13; grid-row: span 3; }
.m5 {
  grid-column: 8 / 13; grid-row: span 1;
  background: #fff; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(76, 54, 160, 0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 14px; font-weight: 700; color: var(--ink-700);
  transition: all 0.2s var(--ease-out);
}
.m5:hover { color: var(--violet-700); transform: translateY(-2px); }
.cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-radius: 18px; padding: 12px 16px;
  font-size: 12.5px; color: var(--ink-600);
  opacity: 0; transform: translateY(8px);
  transition: all 0.28s var(--ease-out);
}
.cap b { display: block; color: var(--ink-900); font-size: 14px; margin-bottom: 1px; }
.art-card:hover .cap { opacity: 1; transform: translateY(0); }

/* —— 使用场景 —— */
.scene-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 880px; margin: 0 auto; }
.scene-cloud a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 700; color: var(--ink-700);
  box-shadow: var(--shadow-md);
  transition: all 0.25s var(--ease-out);
}
.scene-cloud a::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--violet-400); flex: none; }
.scene-cloud a:hover { color: var(--violet-700); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(76, 54, 160, 0.15); }
.scene-cloud a:hover::before { background: var(--violet-600); }

/* —— 用户的话 —— */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-md); }
.quote p { font-size: 15px; color: var(--ink-800); margin-bottom: 20px; line-height: 1.65; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who i { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.quote .who b { display: block; font-size: 14px; }
.quote .who small { color: var(--ink-500); font-size: 12.5px; font-weight: 600; }
.q1 .who i { background: linear-gradient(135deg, #9B6BFF, #F8C4DD); }
.q2 .who i { background: linear-gradient(135deg, #B8E8CD, #6D4AFF); }
.q3 .who i { background: linear-gradient(135deg, #FCE0AE, #7C5CFC); }

/* —— FAQ —— */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px; font-size: 16px; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--violet-600); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; color: var(--ink-600); font-size: 14.5px; }

/* —— CTA band —— */
.cta-band {
  max-width: 1160px; margin: 0 auto 80px;
  background: var(--grad-violet);
  border-radius: 36px;
  padding: 70px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(109, 74, 255, 0.35);
  position: relative; overflow: hidden;
}
.cta-band::after { content: "✨"; position: absolute; right: 8%; top: 14%; font-size: 64px; opacity: 0.35; transform: rotate(12deg); }
.cta-band h2 { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-band p { opacity: 0.85; font-size: 15.5px; }
.cta-band .btn-white {
  flex: none;
  background: #fff; color: var(--violet-700);
  font-size: 15.5px; font-weight: 800;
  border: 0; border-radius: 999px; padding: 15px 30px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease-out);
}
.cta-band .btn-white:hover { transform: translateY(-2px); }

/* —— 页脚 —— */
footer { background: #fff; border-radius: 36px 36px 0 0; }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 28px; margin-bottom: 14px; }
.foot-brand p { color: var(--ink-500); font-size: 13.5px; max-width: 260px; }
.foot-col b { display: block; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-400); margin-bottom: 14px; font-weight: 700; }
.foot-col a { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 10px; }
.foot-col a:hover { color: var(--violet-700); }
.foot-base {
  max-width: 1160px; margin: 0 auto;
  padding: 18px 24px 26px;
  border-top: 1px solid var(--ink-100);
  display: flex; justify-content: space-between;
  color: var(--ink-400); font-size: 12.5px; font-weight: 500;
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .b-lg, .b-sm, .b-half { grid-column: span 12; }
  .m1, .m2, .m3, .m4, .m5, .m6, .m7, .m8 { grid-column: span 12; grid-row: span 3; }
  .cta-band { flex-direction: column; text-align: center; margin-left: 16px; margin-right: 16px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
