/* ============================================================
   VIP 王者邮 · 首屏
   风格取自 www/img/hero.jpeg：宫廷工笔重彩 + 青绿山水 + 邮票与朱印
   色板全部从图上采样，不凭感觉取色
   ============================================================ */

@font-face{
  font-family:'VipSerif';src:url('/assets/serif-sc-400.woff2?v=9') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'VipSerif';src:url('/assets/serif-sc-700.woff2?v=9') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}
/* 字标专用：Playfair Display 600（SIL OFL），只子集了 VIP.WZ.IO 七个字形，588 B */
@font-face{
  font-family:'VipDisplay';src:url('/assets/vipdisplay-600.woff2?v=5') format('woff2');
  font-weight:600;font-style:normal;font-display:swap;
}

:root{
  /* 采样自图像 */
  --paper:    #D7C4A4;   /* 绢底主色 */
  --paper-2:  #CDB994;
  --mist:     #CCBB9A;   /* 右上天空 */
  --sage:     #A09C81;   /* 右下江面 */
  --ink:      #2B241A;   /* 墨：压在 #A09C81 上约 5.4:1，正文用它 */
  --ink-soft: #4A3F2E;
  --gold:     #A8873F;   /* 亮金：只做细线与装饰，正文不用（对比不足） */
  --gold-deep:#8C6A2B;   /* 深金：小字标题用，对比够 */
  --vermilion:#A8352C;   /* 朱印 */
  --jade:     #707E6C;   /* 青绿山体 */

  --serif:'VipSerif','Songti SC','Source Han Serif SC','Noto Serif CJK SC',
          'SimSun',Georgia,'Times New Roman',serif;

  /* ---------- 语义令牌：深色只换这里的值，组件样式不再各写一套 ----------
     --ink / --gold / --vermilion 是品牌常量（也用作深底与描边），保持不动；
     所有「文字色 / 面板底 / 输入框 / 叠加色」一律走下面这组。 */
  --text:        #2B241A;   /* 正文主色 */
  --text-soft:   #4A3F2E;   /* 次级文字 */
  --surface:     #FDFAF1;   /* 信纸实底（列表 / 阅读 / 抽屉） */
  --surface-sunk:#F5EEDC;   /* 表头 / 内凹区 */
  --surface-side:rgba(255,253,246,.88); /* 侧栏：留一点绢纹透出 */
  --surface-glass:rgba(253,250,241,.86); /* 信箱三栏：只透一点山水，正文对比优先 */
  --field-glass:rgba(255,253,246,.86);   /* 列表分组吸顶条 */
  --chip-bg:     #FBF3E2;   /* 顶栏地址铜章：浅底深字，深色主题也保持高对比 */
  --chip-text:   #2B241A;
  --field:       #FFFDF6;   /* 输入框 */
  --tint:        rgba(215,196,164,.26); /* 悬停 / 选中叠加 */
  --line:        rgba(168,135,63,.45);  /* 常规描边 */

  /* 字号四级：12 / 13 / 15 / 19。小于 12px 的一律不再出现 */
  --fs-xs:0.75rem;  --fs-sm:0.8125rem;
  --fs-md:0.9375rem; --fs-lg:1.188rem;
}

*,*::before,*::after{box-sizing:border-box}
/* 链接重置：不写这条，品牌链接、卡片链接全都会吃到浏览器默认下划线。
   从零重写样式表时最容易漏的就是这个。 */
a{color:inherit;text-decoration:none}
html{-webkit-text-size-adjust:100%}
/* 高分屏字号分级：全站 font-size 已 rem 化，大屏只抬根字号——文字整体变大，版式不散 */
html{font-size:16px}
@media (min-width: 1680px){ html{font-size:17.5px} }
@media (min-width: 2100px){ html{font-size:19px} }
@media (min-width: 2700px){ html{font-size:20.5px} }
html,body{height:100%}
body{
  margin:0;overflow:hidden;background:var(--paper);color:var(--ink);
  font-family:var(--serif);
}

/* ---------- 背景 ---------- */
/* account / 404 用单张静态 .bg；首页是四大美女四张轮播（.bg-slide）：
   所有张 fixed 叠着，谁带 .on 谁亮，JS 每 6 秒换一班，交叉淡入淡出 */
.bg,.bg img{position:fixed;inset:0;width:100%;height:100%}
.bg{margin:0;z-index:0}
.bg img{object-fit:cover;object-position:31% 50%}
.bg-slide img{object-position:33% 50%;opacity:0;transition:opacity 1.2s ease}
.bg-slide img.on{opacity:1}
@media (prefers-reduced-motion: reduce){ .bg-slide img{transition:none} }

/* 右侧加一层「雾」：用绢底本色做半透明渐变，既抬文字对比，
   又和画里原有的雾气连成一片。不用 mix-blend-mode——那会把暖绢压灰。 */
body::before{
  content:'';position:fixed;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(to right, rgba(215,196,164,0) 38%, rgba(215,196,164,.42) 58%, rgba(215,196,164,.74) 82%),
    linear-gradient(to top,   rgba(215,196,164,.30) 0%,  rgba(215,196,164,0) 34%);
}

/* ---------- 金线外框：呼应图上的织纹边饰 ---------- */
.frame{
  position:fixed;inset:14px;z-index:2;pointer-events:none;
  border:1px solid rgba(168,135,63,.55);
}
.frame::after{
  content:'';position:absolute;inset:4px;
  border:1px solid rgba(168,135,63,.28);
}

/* ---------- 版面 ---------- */
/* 左侧 54% 让给邮票（≥16:9 时邮票右缘约占 51%），文字列在剩余带宽里居中——
   到邮票和到右边框的距离自动相等（与注册页同一套几何） */
.stage{
  position:relative;z-index:3;height:100%;
  display:grid;align-content:center;justify-items:center;
  padding:0 clamp(20px,4.6vw,84px) 0 54%;
}
.col{display:flex;flex-direction:column;align-items:flex-start;max-width:min(38rem,40vw)}

.eyebrow{
  margin:0 0 clamp(14px,2.4vh,26px);
  font-size:clamp(0.688rem,1.05vw,0.875rem);font-weight:400;letter-spacing:.42em;
  color:var(--gold-deep);display:flex;align-items:center;gap:.5em;
}
.eyebrow .mark{
  display:inline-grid;place-items:center;width:1.9em;height:1.9em;
  border:1px solid var(--gold);color:var(--vermilion);
  background:rgba(255,253,246,.5);border-radius:2px;
  font-size:1.05em;letter-spacing:0;
}
.eyebrow .sep{color:var(--gold);opacity:.7}
/* 已登录眉标：朱色短章，字距收紧，别顶到标题右上角的邮票 */
.eyebrow .ey-state{color:var(--vermilion);font-weight:700;letter-spacing:.12em;white-space:nowrap}

.title{
  margin:0;font-weight:700;color:var(--ink);
  font-size:clamp(2rem,4.9vw,4.75rem);line-height:1.18;letter-spacing:.05em;
  text-shadow:0 1px 0 rgba(255,253,246,.35);
}
/* 中文可在任意两字间断行，这两句必须显式锁住，否则会被折成「千里必 / 达。」 */
.title span{display:block;white-space:nowrap}
.title .l2{margin-left:.9em}            /* 错落半字，避开对联式的呆板对齐 */
.title .zf{position:relative;font-style:normal;color:var(--vermilion)}   /* 御封二字：朱砂 */
/* WZ 邮票中心对齐「封」的右上角：左下四分之一被字压住 */
.title .tstamp{
  position:absolute;right:-0.56em;top:-0.56em;
  width:1.18em;height:1.18em;
  transform:rotate(9deg);
  border-radius:50%;z-index:-1;opacity:.96;
  filter:drop-shadow(0 4px 10px rgba(43,36,26,.28));
}

.rule{display:flex;align-items:center;gap:14px;width:100%;margin:clamp(18px,3vh,34px) 0}
.rule i{flex:1 1 auto;height:1px;background:linear-gradient(to right,transparent,rgba(168,135,63,.75))}
.rule i:last-child{background:linear-gradient(to left,transparent,rgba(168,135,63,.75))}
.dia{width:7px;height:7px;flex:none;background:var(--gold);transform:rotate(45deg)}

.lede{
  margin:0;font-size:clamp(0.875rem,1.35vw,1.063rem);line-height:2.05;
  color:var(--ink-soft);letter-spacing:.03em;
}
.lede .dm{
  font-weight:700;color:var(--ink);letter-spacing:.02em;
  border-bottom:1px solid rgba(168,135,63,.6);padding-bottom:1px;
}

.acts{display:flex;gap:16px;flex-wrap:wrap;margin-top:clamp(24px,4vh,42px)}
.btn{
  display:inline-block;padding:14px 34px;text-decoration:none;
  font-family:var(--serif);font-size:clamp(0.813rem,1.2vw,0.938rem);font-weight:700;
  letter-spacing:.28em;text-indent:.28em;      /* 补掉末字后的字距，视觉才真居中 */
  border:1px solid var(--ink);color:#F3E9D2;background:var(--ink);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(43,36,26,.28)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:transparent;color:var(--ink);border-color:rgba(168,135,63,.8)}
.btn.ghost:hover{background:rgba(255,253,246,.55);box-shadow:none}
.btn:focus-visible{outline:2px solid var(--vermilion);outline-offset:4px}

.foot{
  margin:clamp(20px,3.4vh,34px) 0 0;font-size:clamp(0.688rem,1vw,0.781rem);
  letter-spacing:.2em;color:var(--ink-soft);opacity:.82;
}
.foot b{color:var(--vermilion);font-weight:700}

/* ---------- 首页登录态：同一份 HTML 两套文案，由 html[data-auth] 切换 ----------
   显示值必须逐个写死：.acts 是 flex、.lede/.foot 是 block、链接是 inline，
   统一给 display:block 会把两枚按钮排成一列。 */
[hidden]{display:none!important}
.auth-only{display:none!important}
html[data-auth="in"] .guest-only{display:none!important}
html[data-auth="in"] .auth-only{display:inline!important}
html[data-auth="in"] .auth-only.acts{display:flex!important}
html[data-auth="in"] .auth-only.lede,
html[data-auth="in"] .auth-only.foot{display:block!important}
html[data-auth="in"] .auth-only.btn{display:inline-block!important}

/* ---------- 朱印 ---------- */
.seal{
  position:absolute;right:clamp(26px,5vw,86px);bottom:clamp(26px,6vh,80px);
  width:clamp(52px,5.2vw,72px);
  padding:9px 0;transform:rotate(-4deg);
  background:var(--vermilion);color:#FBF3E2;
  display:grid;place-items:center;text-align:center;
  font-size:clamp(0.938rem,1.5vw,1.25rem);font-weight:700;line-height:1.22;
  letter-spacing:.06em;
  border-radius:3px;
  box-shadow:inset 0 0 0 2px rgba(251,243,226,.5), 0 6px 18px rgba(43,36,26,.25);
  opacity:.92;
}

/* ---------- 背景切换短线：右下四条，点谁切谁（首页专用） ---------- */
.bdots{
  position:absolute;z-index:3;display:flex;gap:10px;align-items:center;
  right:clamp(26px,5vw,86px);bottom:clamp(36px,6.5vh,68px);
}
.bdots button{
  cursor:pointer;width:30px;height:18px;padding:0;position:relative;
  background:transparent;border:0;
}
.bdots button::after{
  content:'';position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;
  background:rgba(43,36,26,.30);transition:background .18s,height .18s,margin-top .18s;
}
.bdots button:hover::after{background:rgba(43,36,26,.62)}
.bdots button.on::after{height:3px;margin-top:-1.5px;background:var(--vermilion)}
.bdots button:focus-visible{outline:2px solid var(--vermilion);outline-offset:2px}

/* 页脚小链接（关于/隐私/条款） */
/* 退出登录是按钮，但视觉上要和旁边的页脚链接完全一样 */
.foot a, .foot button.flink{
  color:inherit;background:none;font:inherit;letter-spacing:inherit;cursor:pointer;
  border:0;border-bottom:1px solid rgba(168,135,63,.5);padding:0 0 1px;
  transition:color .15s,border-color .15s;
}
.foot a:hover, .foot button.flink:hover{color:var(--vermilion);border-color:var(--vermilion)}
.foot .sep{margin:0 .55em;opacity:.55}

/* ---------- 窄屏：文字沉底，压在江面与雾气上 ---------- */
@media (max-aspect-ratio: 1/1){
  .bg img{object-position:31% 22%}
  /* 轮播的窄屏是预裁好的竖幅（邮票居中），横竖都居中即可 */
  .bg-slide img{object-position:50% 50%}
  body::before{
    background:linear-gradient(to top,
      rgba(215,196,164,.97) 0%, rgba(215,196,164,.95) 36%,
      rgba(215,196,164,.78) 56%, rgba(215,196,164,.18) 72%,
      rgba(215,196,164,0) 82%);
  }
  .stage{
    align-content:end;justify-items:stretch;padding:0 24px clamp(34px,7vh,64px);
  }
  .col{max-width:none;align-items:center;text-align:center}
  .title{font-size:clamp(1.875rem,9.4vw,3.25rem)}
  .title .l2{margin-left:0}
  .eyebrow,.acts,.foot{justify-content:center}
  .acts{width:100%}
  /* flex 拉伸后不是 shrink-to-fit 了，text-indent 会把字推偏，必须归零 */
  .btn{flex:1 1 auto;text-align:center;text-indent:0;padding:14px 18px}
  .seal{width:46px;right:18px;bottom:18px;font-size:0.875rem;padding:7px 0}
  .bdots{right:18px;bottom:20px;gap:8px}
  .bdots button{width:24px;height:16px}
  .frame{inset:9px}
}

/* 窄横屏（分屏侧栏 / 半屏窗口）：16:9 图横向被裁，邮票会向右漂进文字区——
   背景锚点右移把邮票按回左侧，文字列同步收紧 */
@media (min-aspect-ratio: 1/1) and (max-width: 1300px){
  .bg img{object-position:44% 50%}
  .stage{padding-left:52%}
  .col{max-width:min(33rem,44vw)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important}
}

/* 正文里的行内链接反过来要显式加下划线，否则和周围文字分不开 */
.rbody a, .bd-none a, .msg a, .fine a {
  text-decoration:underline; text-underline-offset:2px;
  color:var(--vermilion); font-weight:700;
}

/* ============================================================
   v6 · 深色色板：只重定义语义令牌，所有页面的组件样式一行不改。
   放在 hero.css 是因为每个页面都引入它，desk / admin / account 共用一份。
   ============================================================ */
body[data-theme="dark"]{
  --text:#EDE3CE;
  --text-soft:#C3B69C;
  --surface:#1E1913;
  --surface-sunk:#2A2219;
  --surface-side:rgba(30,25,19,.90);
  --surface-glass:rgba(30,25,19,.78);
  --field-glass:rgba(23,19,16,.86);
  --chip-bg:#E8D9BB;
  --chip-text:#241C12;
  --field:#171310;
  --tint:rgba(255,240,210,.07);
  --line:rgba(168,135,63,.34);
  --gold:#C7A45C;
  --gold-deep:#D8B979;
  --jade:#9DB08C;
  --vermilion:#C45146;
  background:#15120E;
  color:var(--text);
}

/* ============================================================
   v6 · 首屏之下：允许纵向滚动，第二屏讲清产品，首屏构图一动不动
   ============================================================ */
body.home-scroll{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
body.home-scroll .stage{height:100svh;min-height:640px}

/* 往下看的提示：一小段金线 + 箭头，不抢标题 */
.scroll-cue{
  position:absolute;z-index:4;left:50%;bottom:clamp(16px,3vh,34px);
  transform:translateX(-50%);display:inline-flex;align-items:center;gap:10px;
  font-size:var(--fs-xs);letter-spacing:.28em;color:var(--text-soft);
  white-space:nowrap;opacity:.78;transition:opacity .2s;
}
.scroll-cue:hover{opacity:1;color:var(--vermilion)}
.scroll-cue i{
  display:block;width:1px;height:22px;
  background:linear-gradient(to bottom,var(--gold-deep),transparent);
  animation:cue-bob 2.2s ease-in-out infinite;
}
.scroll-cue:focus-visible{outline:2px solid var(--vermilion);outline-offset:6px}
@keyframes cue-bob{50%{transform:translateY(5px);opacity:.55}}

/* 轮播暂停 / 继续：和四条短线同一组，形状用线条 SVG，不用 emoji */
.bdots #bd-pause{width:24px;height:18px;display:grid;place-items:center;opacity:.6}
.bdots #bd-pause:hover{opacity:1}
.bdots #bd-pause::after{display:none}
.bdots #bd-pause svg{width:13px;height:13px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bdots #bd-pause.paused{opacity:1}
.bdots #bd-pause.paused svg{stroke:var(--vermilion)}

/* ---------- 第二屏：绢底实色，压住 fixed 的山水，不再被背景抢戏 ---------- */
.below{
  position:relative;z-index:3;padding:clamp(52px,8vh,96px) clamp(20px,6vw,96px) clamp(48px,7vh,88px);
  background:
    repeating-linear-gradient(to bottom,rgba(168,135,63,.05) 0 1px,transparent 1px 30px),
    linear-gradient(180deg,#FDF9EE 0%,#F4EAD5 55%,#E9DCC0 100%);
  border-top:1px solid rgba(168,135,63,.55);
  box-shadow:0 -18px 46px rgba(43,36,26,.14);
}
/* 首屏右下那枚朱印移到第二屏钤在右上角：既启用死代码，又不与轮播短线抢位置 */
.below .seal{top:clamp(22px,4vh,46px);bottom:auto;right:clamp(20px,5vw,80px);width:64px;padding:10px 0;font-size:var(--fs-md)}
.below-in{max-width:74rem;margin:0 auto}
.below-eye{margin:0 0 12px;font-size:var(--fs-xs);letter-spacing:.42em;color:var(--gold-deep)}
.below-h{
  margin:0 0 clamp(26px,4vh,44px);font-size:clamp(1.5rem,3.2vw,2.5rem);
  letter-spacing:.12em;line-height:1.35;color:var(--text);
}
.below-h em{font-style:normal;color:var(--vermilion)}

/* 三札：朱号 + 金线 + 短句，卡片沿用信笺语言 */
.trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,22px)}
.zha{
  position:relative;padding:clamp(20px,2.6vw,32px) clamp(18px,2.2vw,28px) clamp(22px,2.8vw,34px);
  background:var(--surface);border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(43,36,26,.10),inset 0 0 0 1px rgba(168,135,63,.12);
}
.zha::before{content:'';position:absolute;inset:5px;border:1px solid rgba(168,135,63,.22);pointer-events:none}
.zha-n{
  display:inline-grid;place-items:center;width:34px;height:34px;margin-bottom:18px;
  border:1px solid var(--vermilion);color:var(--vermilion);
  font-size:var(--fs-sm);letter-spacing:0;transform:rotate(-4deg);
}
.zha h3{margin:0 0 10px;font-size:var(--fs-md);letter-spacing:.1em;color:var(--text)}
.zha p{margin:0;font-size:var(--fs-sm);line-height:2;color:var(--text-soft)}
.zha .mono{color:var(--vermilion);font-weight:700;letter-spacing:.04em}

/* 信箱缩略图：纯 CSS 画三栏，不引入新图片资源 */
.preview{
  margin-top:clamp(30px,5vh,56px);display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:clamp(20px,4vw,56px);align-items:center;
}
.preview-copy h3{margin:0 0 12px;font-size:var(--fs-lg);letter-spacing:.1em;color:var(--text)}
.preview-copy p{margin:0 0 12px;font-size:var(--fs-sm);line-height:2;color:var(--text-soft)}
.preview-copy .acts{margin-top:20px}
.preview-copy .btn{font-size:var(--fs-sm);padding:11px 24px}

.mini-desk{
  display:grid;grid-template-columns:62px 1.05fr 1.4fr;gap:6px;
  padding:9px;border:1px solid rgba(168,135,63,.65);border-radius:2px;
  background:var(--surface);box-shadow:0 16px 40px rgba(43,36,26,.20);
  transform:rotate(-1.2deg);
}
.mini-desk > span{display:block;border:1px solid rgba(168,135,63,.3);background:var(--surface-sunk);min-height:150px}
.mini-desk .m-fold{
  display:flex;flex-direction:column;gap:6px;padding:9px 6px;
}
.mini-desk .m-fold i{display:block;height:7px;background:rgba(168,135,63,.32)}
.mini-desk .m-fold i:first-child{background:var(--ink)}
.mini-desk .m-list{padding:8px 7px;display:flex;flex-direction:column;gap:7px}
.mini-desk .m-list i{display:block;height:5px;background:rgba(43,36,26,.24)}
.mini-desk .m-list i:nth-child(3n){width:62%}
.mini-desk .m-read{padding:12px;display:flex;flex-direction:column;gap:8px}
.mini-desk .m-read i{display:block;height:5px;background:rgba(43,36,26,.18)}
.mini-desk .m-read i:first-child{height:10px;width:56%;background:var(--ink)}
.mini-desk .m-read i:nth-child(4){width:70%}

.below-foot{
  margin:clamp(34px,5vh,56px) 0 0;padding-top:20px;border-top:1px solid rgba(168,135,63,.4);
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:var(--fs-xs);letter-spacing:.14em;color:var(--text-soft);
}
.below-foot a{color:var(--vermilion);font-weight:700;border-bottom:1px solid var(--vermilion);padding-bottom:2px}

@media (max-width:820px){
  .trio{grid-template-columns:minmax(0,1fr)}
  .preview{grid-template-columns:minmax(0,1fr)}
  .mini-desk{transform:none;max-width:420px}
}
@media (max-aspect-ratio:1/1){
  .scroll-cue{display:none}
  /* 窄屏小圆邮票缩小并外移，不再压住「封」字 */
  .title .tstamp{width:.82em;height:.82em;right:-.34em;top:-.5em;opacity:.82}
  .foot.flinks{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 0}
  .foot.flinks a,.foot.flinks .sep{white-space:nowrap}
  /* 「名额满了？留个邮箱」整条不拆字，独占一行 */
  .foot.flinks a:last-of-type{flex-basis:100%;margin-top:2px}
  .below{padding-top:clamp(38px,6vh,64px)}
  .zha-n{margin-bottom:12px}
}
