/* AI 酒馆品牌首页（/saas/）。依赖 saas.css + front.css 的变量与按钮，所有规则挂在 body.home 下。 */

body.front.home { background-attachment: scroll; scroll-behavior: smooth; }
body.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
body.home em { font-style: normal; }

/* ---------------------------------------------------------------- 顶栏 */
body.home .home-nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-bottom: 1.5px solid transparent;
}
body.home .home-nav.solid {
  background: rgba(251, 246, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px dashed var(--line);
}
body.home .home-nav-in {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
body.home .home-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: #fff;
}
body.home .home-nav.solid .home-brand { color: var(--ink); }
body.home .home-links { display: flex; gap: 4px; margin-left: 12px; }
body.home .home-links a {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
body.home .home-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
body.home .home-nav.solid .home-links a { color: var(--ink-2); }
body.home .home-nav.solid .home-links a:hover { background: var(--gold-soft); color: var(--navy); }
body.home .home-nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
body.home .home-nav-cta .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- 首屏 */
body.home .hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 96px 0 72px;
  background:
    linear-gradient(105deg, rgba(28, 37, 80, .94) 0%, rgba(28, 37, 80, .76) 52%, rgba(28, 37, 80, .5) 100%),
    url("/static/assets/tavern/bg_night.webp") center/cover no-repeat;
  overflow: hidden;
}
body.home .hero::after {
  content: ""; position: absolute; right: 14px; top: 70px; width: 96px; height: 96px;
  background: url("/static/assets/tavern/deco_corner.webp") center/contain no-repeat;
  opacity: .9; pointer-events: none;
}
body.home .hero-in {
  position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
body.home .hero-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #ffe7b0;
  background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(200, 162, 90, .7);
}
body.home .hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
body.home .hero-tag.on i { background: #5fd6a2; animation: front-pulse 1.6s ease infinite; }
body.home .hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.22; color: #fff; letter-spacing: .5px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
body.home .hero h1 em { color: #ffd98f; }
body.home .nw { white-space: nowrap; }
body.home .hero-sub { margin-top: 20px; font-size: 16.5px; line-height: 1.8; color: #e6e9ff; max-width: 34em; }
body.home .hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
body.home .hero-cta.center { justify-content: center; }
body.home .hero-cta .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
body.home .hero-cta .btn.ghost { background: rgba(255, 253, 248, .96); }
body.home .hero-note { margin-top: 14px; font-size: 13px; color: #b9c0e6; }
body.home .hero .gate-notice { margin-top: 16px; max-width: 34em; }
body.home .hero-down {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .45); animation: home-bob 2s ease-in-out infinite;
}
body.home .hero-down svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes home-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* 首屏右侧：示意的缺人酒桌 */
body.home .hero-table {
  background: rgba(255, 253, 248, .96); border: 1.5px solid var(--gold); border-radius: 24px;
  padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .42); position: relative;
}
body.home .ht-label { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); text-align: center; }
body.home .ht-board { position: relative; height: 330px; margin: 6px 0 14px; }
body.home .ht-table {
  position: absolute; left: 50%; top: 50%; width: 52%; height: 38%; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(ellipse at 40% 30%, #c98f57, #8d5a32);
  box-shadow: inset 0 0 0 5px #b57a47, 0 8px 18px rgba(80, 48, 20, .35);
}
body.home .ht-table span { font-family: var(--serif); font-weight: 700; font-size: 16px; color: #fbe6bf; letter-spacing: 2px; }
body.home .ht-seat {
  position: absolute; width: 84px; margin-left: -42px; text-align: center; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
body.home .ht-seat em {
  font-size: 11px; font-weight: 700; white-space: nowrap; padding: 1px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
}
body.home .ht-seat b {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; color: #fff;
}
body.home .ht-seat.human b { background: var(--navy); border: 2.5px solid var(--gold); }
body.home .ht-seat.free b { background: #fff; color: var(--navy); border: 2.5px dashed var(--navy); animation: front-pulse 1.8s ease infinite; }
body.home .ht-seat.free em { background: var(--gold-soft); color: #7a5a1c; }
body.home .ht-seat.ai img { width: 62px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .25)); }
body.home .ht-seat.ai em { background: var(--pink-soft); color: var(--pink-deep); }
body.home .ht-seat.s1 { left: 22%; top: 18%; }
body.home .ht-seat.s2 { left: 50%; top: 10%; }
body.home .ht-seat.s3 { left: 78%; top: 18%; }
body.home .ht-seat.s4 { left: 78%; top: 74%; }
body.home .ht-seat.s5 { left: 50%; top: 83%; }
body.home .ht-seat.s6 { left: 22%; top: 74%; }
body.home .hero-table .seat-legend { justify-content: center; }

/* ---------------------------------------------------------------- 通用区块 */
body.home .sec { padding: 88px 0; position: relative; scroll-margin-top: 48px; }
body.home .sec.alt { background: rgba(243, 233, 214, .72); border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
body.home .sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
body.home .sec-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #7a5a1c;
  padding: 3px 14px; border-radius: 999px; background: var(--gold-soft); border: 1.5px solid var(--gold);
}
body.home .sec h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin-top: 14px; }
body.home .sec h2 em { color: var(--pink-deep); }
body.home .sec-head p { margin-top: 14px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }

/* 三个理由 */
body.home .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body.home .pillar {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px 24px 26px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.home .pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
body.home .pillar-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; }
body.home .pillar-ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.home .pillar-ico.pink { background: var(--pink); box-shadow: 0 6px 14px rgba(239, 143, 177, .45); }
body.home .pillar-ico.navy { background: var(--navy); box-shadow: 0 6px 14px rgba(46, 61, 120, .35); }
body.home .pillar-ico.gold { background: var(--gold); box-shadow: 0 6px 14px rgba(200, 162, 90, .45); }
body.home .pillar h3 { font-size: 20px; }
body.home .pillar p { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }

/* 广场：左右分栏 */
body.home .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
body.home .split-copy p { margin-top: 14px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
body.home .tick { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; }
body.home .tick li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
body.home .tick li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); }
body.home .split-copy .btn { text-decoration: none; display: inline-flex; align-items: center; }

body.home .mock-plaza {
  position: relative; display: grid; gap: 14px; padding: 22px 18px 18px;
  background: var(--paper); border: 1.5px dashed var(--gold); border-radius: 22px;
}
body.home .mock-tag {
  position: absolute; right: 14px; top: -12px; background: var(--gold); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 2px 12px; border-radius: 999px;
}
body.home .mock-room { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
body.home .mock-room.dim { opacity: .8; }
body.home .mr-band { height: 6px; background: var(--navy); }
body.home .mr-band.uc { background: var(--lavender); }
body.home .mr-band.playing { background: repeating-linear-gradient(45deg, var(--pink), var(--pink) 8px, var(--pink-soft) 8px, var(--pink-soft) 16px); }
body.home .mr-body { padding: 12px 16px 14px; display: grid; gap: 8px; }
body.home .mr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.home .mr-top h4 { font-family: var(--serif); font-size: 15px; }
body.home .mr-owner { font-size: 12px; color: var(--ink-3); }
body.home .mock-room .seat-dots { display: flex; flex-wrap: wrap; gap: 5px; }
body.home .mr-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1.5px dashed var(--line); padding-top: 9px; font-size: 12px; color: var(--ink-2); }
body.home .mr-foot b { background: var(--navy); color: #fff; border-radius: 999px; padding: 3px 16px; font-size: 12.5px; }
body.home .mr-foot b.off { background: var(--paper-2); color: var(--ink-3); }

/* 许愿池 */
body.home .wish-form {
  margin-top: 26px; padding: 26px 22px 20px; background: var(--card);
  border: 1.5px solid var(--gold); border-radius: 20px; box-shadow: var(--shadow);
}
body.home .wish-hint { margin-top: 10px; font-size: 12px; line-height: 1.7; }
body.home .wish-board {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 20px 20px 14px;
}
body.home .wish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body.home .wish-head h3 { font-size: 18px; }
body.home .wish-head h3::before { content: "✦ "; color: var(--gold); }
body.home .wish-list { list-style: none; margin: 0; padding: 0; }
body.home .wish-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1.5px dashed var(--line);
}
body.home .wish-row:last-child { border-bottom: 0; }
body.home .wish-rank {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-3); font-size: 12.5px; font-weight: 700;
}
body.home .wish-row.top .wish-rank { background: var(--gold-soft); border: 1.5px solid var(--gold); color: #7a5a1c; }
body.home .wish-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home .wish-vote {
  flex: none; appearance: none; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; color: var(--pink-deep);
  background: var(--pink-soft); border: 1.5px solid var(--pink); transition: transform .12s ease, background .12s ease;
}
body.home .wish-vote:hover { transform: translateY(-1px); background: #fbd7e5; }
body.home .wish-vote.on { background: var(--pink); color: #fff; }
body.home .wish-vote:disabled { opacity: .6; cursor: wait; }
body.home .wish-empty { padding: 28px 0; text-align: center; color: var(--ink-3); font-size: 14px; }
body.home .g-meta a { color: var(--pink-deep); text-decoration: none; }
body.home .g-meta a:hover { text-decoration: underline; }

/* AI 陪玩：夜色底 */
body.home .sec.night {
  background:
    linear-gradient(rgba(28, 37, 80, .93), rgba(28, 37, 80, .9)),
    url("/static/assets/tavern/bg_night.webp") center/cover no-repeat;
  color: #e6e9ff;
}
body.home .sec.night h2 { color: #fff; }
body.home .sec.night h2 em { color: #ffd98f; }
body.home .sec-head.light p { color: #c9cff0; }
body.home .roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.home .rost {
  background: rgba(255, 253, 248, .08); border: 1.5px solid rgba(200, 162, 90, .55); border-radius: 18px;
  padding: 16px 10px 14px; text-align: center; transition: transform .18s ease, background .18s ease;
}
body.home .rost:hover { transform: translateY(-5px); background: rgba(255, 253, 248, .15); }
body.home .rost img { width: 96px; height: 126px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
body.home .rost:hover img { animation: front-hop .5s ease; }
body.home .rost b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 15px; color: #fff; }
body.home .rost span { display: block; margin-top: 3px; font-size: 12px; color: #b9c0e6; }
body.home .ai-points { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body.home .ai-points > div {
  padding: 16px 18px; border-radius: 16px; background: rgba(255, 253, 248, .08);
  border: 1.5px dashed rgba(200, 162, 90, .6); display: grid; gap: 4px;
}
body.home .ai-points b { font-family: var(--serif); font-size: 16px; color: #ffd98f; }
body.home .ai-points span { font-size: 13.5px; line-height: 1.7; color: #dde1fb; }

/* 怎么玩 */
body.home .flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
body.home .flow li {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 26px 18px 20px; box-shadow: var(--shadow);
}
body.home .flow li > b {
  position: absolute; left: 18px; top: -16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px;
  background: var(--gold-soft); border: 2px solid var(--gold); color: #7a5a1c;
}
body.home .flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -18px; top: 50%; width: 18px; border-top: 2px dashed var(--gold);
}
body.home .flow h4 { font-family: var(--serif); font-size: 17px; margin-top: 4px; }
body.home .flow p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

/* 玩法 */
body.home .games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
body.home .gcard {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 26px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
body.home .gcard.live { border-color: var(--gold); }
body.home .gcard.soon { border-style: dashed; background: transparent; box-shadow: none; }
body.home .g-pic { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 14px; background: var(--navy-deep) center/62% no-repeat; }
body.home .gcard.ww .g-pic { background-image: url("/static/assets/tavern/icon_wolf.webp"); }
body.home .gcard.uc .g-pic { background-color: var(--lavender); background-image: url("/static/assets/tavern/icon_magnify.webp"); }
body.home .gcard.ld .g-pic { background-color: var(--gold-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='8' width='32' height='32' rx='6' fill='%23C9A227' stroke='%238A6B1E' stroke-width='2'/%3E%3Ccircle cx='18' cy='18' r='3.5' fill='%23fff'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='%23fff'/%3E%3Ccircle cx='24' cy='24' r='3.5' fill='%23fff'/%3E%3C/svg%3E"); background-size: 62%; }
body.home .g-pic.soon-pic { background: var(--gold-soft); border: 2px dashed var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }
body.home .g-state {
  position: absolute; right: 16px; top: 18px; font-size: 11.5px; font-weight: 700; padding: 2px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
}
body.home .g-state.ok { background: #e6f5ee; color: #2a7d5a; }
body.home .gcard h3 { font-size: 20px; }
body.home .gcard p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--ink-2); flex: 1; }
body.home .g-meta { margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--pink-deep); }

/* 收尾 */
body.home .closing {
  padding: 88px 0; text-align: center; position: relative;
  background:
    linear-gradient(rgba(28, 37, 80, .86), rgba(28, 37, 80, .92)),
    url("/static/assets/tavern/bg_night.webp") center/cover no-repeat;
}
body.home .closing h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; }
body.home .closing p { margin-top: 14px; color: #d3d8f6; font-size: 16px; }

body.home .home-foot { background: var(--navy-deep); padding: 22px 0; }
body.home .home-foot .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
body.home .home-foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; color: #fff; }
body.home .home-foot .muted { color: #9aa2cf; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
  body.home .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  body.home .hero { padding-top: 88px; min-height: 0; }
  body.home .hero-down { display: none; }
  body.home .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  body.home .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.home .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  body.home .flow li::after { display: none; }
}

@media (max-width: 720px) {
  body.home .wrap, body.home .hero-in, body.home .home-nav-in { padding-left: 16px; padding-right: 16px; }
  body.home .home-links { display: none; }
  body.home .pc-br { display: none; }
  body.home .sec { padding: 56px 0; }
  body.home .sec-head { margin-bottom: 30px; }
  body.home .trio, body.home .games, body.home .ai-points { grid-template-columns: minmax(0, 1fr); }
  body.home .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.home .hero::after { display: none; }
  body.home .hero h1 { font-size: 30px; }
  body.home .hero-sub { font-size: 15px; }
  body.home .hero-cta .btn { flex: 1; min-height: 48px; }
  body.home .ht-board { height: 270px; }
  body.home .ht-seat { width: 70px; margin-left: -35px; }
  body.home .ht-seat b { width: 40px; height: 40px; font-size: 17px; }
  body.home .ht-seat.ai img { width: 52px; height: 66px; }
  body.home .ht-seat.s1 { left: 20%; }
  body.home .ht-seat.s3 { left: 80%; }
  body.home .ht-seat.s4 { left: 80%; }
  body.home .ht-seat.s6 { left: 20%; }
  body.home .flow { grid-template-columns: minmax(0, 1fr); }
  body.home .closing { padding: 64px 0; }
  body.home .home-foot .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.front.home { scroll-behavior: auto; }
  body.home .hero-down, body.home .ht-seat.free b, body.home .hero-tag.on i { animation: none; }
  body.home .pillar, body.home .rost { transition: none; }
}
