/* 雾岸之南·客居 首页（waznkj.top）—— 浅色系：国风水墨 × 赛博霓虹（2026-10-17 用户定调）
   宣纸米白底 + 淡墨 + 细霓虹线（紫/青）+ 朱砂印章红。源：~/Alicloud/waznkj/site/static/waznkj/home.css */
:root {
  --paper: #f6f2e9; --paper2: #fbf9f4; --ink: #22202a; --ink2: #3b3844; --mute: #77717f; --line: rgba(34, 32, 42, .12);
  --violet: #7b3fe4; --cyan: #0eb3d4; --seal: #b8322a; --amber: #d98a2b;
  --neon: linear-gradient(90deg, #8b4dff, #19c3e6);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(123, 63, 228, .05), transparent 45%),
    radial-gradient(ellipse at 88% 40%, rgba(14, 179, 212, .05), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .15 0 0 0 .022 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 6px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- 顶栏 ---------- */
.wz-top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 66px; padding: 0 max(22px, env(safe-area-inset-left)); background: rgba(250, 247, 240, .78); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.wz-top.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(34, 32, 42, .5); }
.wz-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--neon); opacity: .35; }
.wz-logo { display: flex; align-items: center; gap: 10px; }
.wz-logo img { border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px rgba(123, 63, 228, .25), 0 4px 14px -4px rgba(123, 63, 228, .45); }
.wz-logo b { display: block; font: 700 17px/1.2 var(--serif); letter-spacing: .08em; color: var(--ink); }
.wz-logo small { display: block; font-size: 10px; letter-spacing: .34em; color: var(--mute); }
.wz-nav { display: flex; gap: 4px; }
.wz-nav a { position: relative; padding: 7px 14px; border-radius: 999px; color: var(--ink2); font-size: 14.5px; transition: color .2s; }
.wz-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--neon); transform: scaleX(0); transition: transform .25s; box-shadow: 0 0 8px rgba(123, 63, 228, .5); }
.wz-nav a:hover { color: var(--violet); }
.wz-nav a:hover::after { transform: scaleX(1); }
.wz-member { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wz-member a { padding: 7px 15px; border-radius: 999px; font-size: 14px; color: var(--ink2); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.wz-member a.pri { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(123, 63, 228, .7); }
.wz-burger { display: none; margin-left: auto; position: relative; }
.wz-burger summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); display: grid; place-content: center; gap: 5px; }
.wz-burger summary::-webkit-details-marker { display: none; }
.wz-burger summary i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.wz-burger nav { position: absolute; right: 0; top: 52px; width: min(78vw, 280px); padding: 10px; border-radius: 16px; background: var(--paper2); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(34, 32, 42, .4); display: flex; flex-direction: column; }
.wz-burger nav a { padding: 11px 14px; border-radius: 10px; color: var(--ink2); }
.wz-burger nav a:hover { background: rgba(123, 63, 228, .07); color: var(--violet); }
.wz-burger nav span { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-bg img { object-position: 50% 45%; animation: wzDrift 34s ease-in-out infinite alternate; }
@keyframes wzDrift { from { transform: scale(1.03); } to { transform: scale(1.08) translateX(-1.2%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 36% 48% at 40% 54%, rgba(250, 247, 240, .72), rgba(250, 247, 240, .2) 62%, transparent 80%), linear-gradient(0deg, var(--paper) 0%, var(--paper) 3%, rgba(246, 242, 233, 0) 26%); }
.hero-fog { position: absolute; inset: auto -20% 0 -20%; height: 40%; z-index: -1; background: radial-gradient(ellipse at 30% 100%, rgba(255, 255, 255, .7), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(255, 255, 255, .55), transparent 55%); filter: blur(14px); animation: wzFog 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes wzFog { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-copy { width: min(1180px, 100%); margin: 0 auto; padding: 120px 24px 80px; }
@media (min-width: 761px) { .hero-copy { width: auto; max-width: 660px; margin: 0 0 0 max(24px, 24vw); padding: 120px 0 80px; } }
.eyebrow { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .38em; color: var(--violet); }
.hero h1 { margin: 0; white-space: nowrap; font: 800 clamp(40px, 5.6vw, 84px)/1.08 var(--serif); letter-spacing: .06em; color: var(--ink); text-shadow: 0 0 1px rgba(34, 32, 42, .3), 0 0 26px rgba(123, 63, 228, .18); }
.hero h1 span { color: var(--seal); margin: 0 .04em; text-shadow: none; }
.hero h1::after { content: ""; display: block; width: 2.4em; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 12px rgba(123, 63, 228, .6), 0 0 22px rgba(25, 195, 230, .4); font-size: 40px; }
.lead { max-width: 30em; margin: 20px 0 30px; font: 400 clamp(16px, 1.5vw, 19px)/1.95 var(--serif); color: var(--ink2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--ink); border: 1px solid rgba(34, 32, 42, .22); background: rgba(255, 255, 255, .72); backdrop-filter: blur(4px); transition: transform .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(123, 63, 228, .5); box-shadow: 0 10px 26px -14px rgba(123, 63, 228, .7); }
.btn.pri { border: 0; color: #fff; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 12px 30px -12px rgba(123, 63, 228, .85), 0 0 0 3px rgba(123, 63, 228, .12); }
.btn.pri:hover { background: #2c2938; }
.free { margin: 22px 0 0; color: var(--mute); font-size: 13.5px; }
.free b { color: var(--seal); font-weight: 600; }

/* ---------- 通用段落 ---------- */
section { position: relative; }
.sec-head { width: min(1180px, 100%); margin: 0 auto 34px; padding: 0 24px; }
.sec-head h2 { position: relative; display: inline-block; margin: 0 0 10px; font: 800 clamp(28px, 3.5vw, 42px)/1.25 var(--serif); letter-spacing: .05em; color: var(--ink); }
/* 毛笔墨痕 */
.sec-head h2::before { content: ""; position: absolute; left: -.3em; right: -.4em; bottom: .02em; height: .5em; z-index: -1; border-radius: 40% 60% 55% 45%; background: linear-gradient(90deg, rgba(34, 32, 42, .14), rgba(34, 32, 42, .05) 70%, transparent); filter: blur(1.5px); transform: rotate(-1.2deg); }
.sec-head p:not(.eyebrow) { margin: 0; color: var(--mute); max-width: 40em; }

.sec-head p.boss { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 16px 8px 8px; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.sec-head p.boss img { flex: none; border-radius: 11px; }
.sec-head p.boss b { color: var(--seal); }

/* ---------- 客房（游戏入口） ---------- */
.rooms { padding: 70px 0 70px; }
.room-grid { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--paper2); border: 1px solid var(--line); box-shadow: 0 14px 34px -26px rgba(34, 32, 42, .5); transition: transform .25s, box-shadow .25s, border-color .25s; }
.room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s; filter: saturate(.92); }
.room div { padding: 14px 18px 16px; border-top: 1px solid var(--line); background: var(--paper2); position: relative; }
.room div::before { content: ""; position: absolute; left: 18px; top: -1px; width: 38px; height: 2px; background: var(--neon); box-shadow: 0 0 8px rgba(123, 63, 228, .6); }
.room b { display: block; font: 700 19px/1.35 var(--serif); letter-spacing: .04em; color: var(--ink); }
.room span { font-size: 13px; color: var(--mute); }
.room:hover { transform: translateY(-4px); border-color: rgba(123, 63, 228, .4); box-shadow: 0 22px 46px -24px rgba(123, 63, 228, .55), 0 0 0 1px rgba(25, 195, 230, .15); }
.room:hover img { transform: scale(1.05); }

/* ---------- 人物 ---------- */
.cast { padding: 70px 0; }
.cast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 15% 30%, rgba(123, 63, 228, .07), transparent 55%), radial-gradient(ellipse at 85% 70%, rgba(14, 179, 212, .07), transparent 55%); }
.cast-grid { width: min(1180px, 100%); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.who { position: relative; display: grid; grid-template-columns: 42% 1fr; gap: 6px; align-items: end; padding: 22px 22px 22px 8px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(246, 242, 233, .9)); box-shadow: 0 20px 50px -34px rgba(34, 32, 42, .55); overflow: hidden; }
/* 角落淡墨晕染 */
.who::before { content: ""; position: absolute; left: -10%; bottom: -20%; width: 70%; height: 70%; background: radial-gradient(ellipse, rgba(34, 32, 42, .10), transparent 65%); filter: blur(8px); pointer-events: none; }
.who.wang::after, .who.jing::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--neon); opacity: .7; }
.who-art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.who-art img { max-height: 430px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(34, 32, 42, .22)); }
.who h3 { margin: 0 0 10px; font: 800 26px/1.3 var(--serif); letter-spacing: .06em; color: var(--ink); }
.who h3 small { display: block; margin-top: 2px; font: 500 13px/1.5 var(--sans); letter-spacing: .12em; color: var(--violet); }
.who.jing h3 small { color: var(--cyan); }
.who p { margin: 0 0 12px; color: var(--ink2); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li { padding: 2px 11px; border-radius: 4px; font-size: 12.5px; border: 1px solid rgba(184, 50, 42, .35); color: var(--seal); background: rgba(184, 50, 42, .04); }
.pet { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px dashed rgba(123, 63, 228, .3); }
.pet img { width: 76px; height: 76px; object-fit: contain; flex: none; animation: wzBob 3.2s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(34, 32, 42, .2)); }
.pet p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.pet b { color: var(--ink); }
@keyframes wzBob { 50% { transform: translateY(-5px); } }

/* ---------- 南柯记 ---------- */
.riddle { padding: 100px 24px; text-align: center; overflow: hidden; }
.riddle::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .9), transparent 60%), radial-gradient(ellipse at 30% 60%, rgba(14, 179, 212, .08), transparent 50%), radial-gradient(ellipse at 70% 40%, rgba(123, 63, 228, .08), transparent 50%); filter: blur(10px); }
.riddle-in { max-width: 720px; margin: 0 auto; }
.riddle h2 { margin: 0 0 18px; font: 800 clamp(26px, 3.4vw, 40px)/1.3 var(--serif); letter-spacing: .05em; color: var(--ink); }
.riddle p { color: var(--ink2); font: 400 16px/1.95 var(--serif); }
.riddle b { color: var(--seal); }
.frag { display: inline-block; margin-top: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(14, 179, 212, .4); background: rgba(255, 255, 255, .7); box-shadow: 0 0 16px -6px rgba(14, 179, 212, .6); font-family: var(--sans) !important; font-size: 14px !important; }

/* ---------- 商城 / 工坊 ---------- */
.more { width: min(1180px, 100%); margin: 0 auto; padding: 20px 24px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.more-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75); box-shadow: 0 16px 40px -30px rgba(34, 32, 42, .5); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.more-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(34, 32, 42, .08), transparent 65%); }
.more-card:hover { transform: translateY(-3px); border-color: rgba(123, 63, 228, .4); box-shadow: 0 20px 44px -26px rgba(123, 63, 228, .55); }
.more-card b { font: 800 22px/1.3 var(--serif); letter-spacing: .05em; color: var(--ink); }
.more-card span { color: var(--mute); }
.more-card i { font-style: normal; color: var(--violet); font-size: 14px; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.wz-foot { position: relative; border-top: 1px solid var(--line); padding: 30px 24px calc(30px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 13px; background: rgba(255, 255, 255, .4); }
.wz-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--neon); opacity: .3; }
.foot-in { width: min(1180px, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.foot-in p { margin: 0; }
.foot-in a:hover { color: var(--violet); }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cast-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .wz-nav, .wz-member { display: none; }
  .wz-burger { display: block; }
}
@media (max-width: 760px) {
  .wz-top { height: 60px; gap: 12px; }
  .wz-logo b { font-size: 15.5px; }
  .hero { min-height: 92svh; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(246, 242, 233, .97) 0%, rgba(246, 242, 233, .82) 36%, rgba(246, 242, 233, 0) 70%); }
  .hero-copy { padding: 100px 20px 40px; }
  .hero h1 { white-space: normal; }
  .lead { margin: 14px 0 22px; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .rooms { padding: 50px 0 40px; }
  .room-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .sec-head { padding: 0 18px; }
  .cast-grid { padding: 0 16px; }
  .who { grid-template-columns: 1fr; padding: 18px; }
  .who-art img { max-height: 320px; }
  .more { grid-template-columns: 1fr; padding: 10px 16px 70px; }
  .riddle { padding: 70px 18px; }
  .foot-in nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
