/* ===== 芊羽Wing 公共样式(全站共用,各页只留自己特有的内联样式)===== */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root{
  --bg1:#f6f2ea; --bg2:#ece3d3;
  --card:rgba(255,255,255,.72); --border:rgba(0,0,0,.07);
  --text:#463a26; --muted:#6f6656; --accent:#a67c30;
  --btn:#ffffff; --btn-border:rgba(0,0,0,.08); --btn-hover:#faf5ea;
  --bar:rgba(255,255,255,.55); --bar-border:rgba(0,0,0,.06);
  --ring:#b58a3c; --bagua:rgba(120,96,40,.42); --tj-gold:#c2953f; --tj-deep:#e6d4ac;
}
[data-theme="dark"]{
  --bg1:#0e0d13; --bg2:#161320;
  --card:rgba(28,26,36,.6); --border:rgba(255,255,255,.08);
  --text:#cfc7b7; --muted:#8d857a; --accent:#c9a45f;
  --btn:rgba(40,37,50,.7); --btn-border:rgba(255,255,255,.09); --btn-hover:rgba(56,52,68,.85);
  --bar:rgba(22,20,30,.55); --bar-border:rgba(255,255,255,.07);
  --ring:#d4af6a; --bagua:rgba(212,175,106,.5); --tj-gold:#d4af6a; --tj-deep:#4a3f2a;
}
html,body{ min-height:100%; }
body{
  font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);
  background:radial-gradient(120% 90% at 50% 0%, var(--bg2), transparent 60%), var(--bg1);
  min-height:100dvh; display:flex; flex-direction:column; align-items:center;
  padding:64px 16px 18px;
  transition:background .4s ease, color .4s ease;
}

/* ===== 背景氛围层(固定全屏,叠在底色之上、内容之下;深色·宇宙鸿荒 / 浅色·霞光流彩)===== */
body::before, body::after{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; }
/* 浅色·霞光流彩(往金色主题调过的柔和极光,克制不刺眼)*/
body::before{
  background:
    radial-gradient(45% 40% at 15% 16%, rgba(255,178,116,.15), transparent 70%),
    radial-gradient(50% 46% at 86% 22%, rgba(140,198,206,.13), transparent 72%),
    radial-gradient(55% 52% at 74% 86%, rgba(222,142,190,.11), transparent 72%);
  animation:bgDriftA 34s ease-in-out infinite alternate;
}
body::after{
  background:linear-gradient(116deg, transparent 28%, rgba(255,190,120,.05), rgba(150,205,200,.06), rgba(225,150,195,.05), transparent 72%);
  animation:bgDriftB 44s ease-in-out infinite alternate;
}
@keyframes bgDriftA{ from{ transform:translate3d(-1.5%,-1%,0); } to{ transform:translate3d(1.5%,1%,0); } }
@keyframes bgDriftB{ from{ transform:translate3d(2%,0,0); } to{ transform:translate3d(-2%,0,0); } }
/* 深色·宇宙鸿荒(星云 + 细星点,静态;偶尔一道流星)*/
[data-theme="dark"] body::before{
  background:
    radial-gradient(42% 32% at 18% 22%, rgba(122,92,205,.15), transparent 70%),
    radial-gradient(46% 36% at 82% 28%, rgba(58,112,192,.13), transparent 72%),
    radial-gradient(52% 42% at 70% 84%, rgba(202,150,72,.10), transparent 72%),
    radial-gradient(1.4px 1.4px at 30px 42px, rgba(255,244,214,.55), transparent),
    radial-gradient(1px 1px at 190px 90px, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 250px 250px, rgba(205,222,255,.5), transparent),
    radial-gradient(1px 1px at 60px 150px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.1px 1.1px at 170px 40px, rgba(255,240,210,.45), transparent),
    radial-gradient(1px 1px at 120px 200px, rgba(210,225,255,.4), transparent);
  background-size: cover,cover,cover, 320px 320px,320px 320px,320px 320px, 230px 230px,230px 230px,230px 230px;
  background-repeat: no-repeat,no-repeat,no-repeat, repeat,repeat,repeat, repeat,repeat,repeat;
  animation:none;
}
[data-theme="dark"] body::after{
  inset:auto; top:0; left:0; width:240px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, rgba(255,240,205,.9));
  filter:drop-shadow(0 0 6px rgba(255,235,190,.6));
  opacity:0; transform:translate(-24vw,10vh) rotate(12deg);
  animation:meteor 14s ease-in infinite;
}
/* 放平轨迹 + 头亮尾淡朝行进方向 → 横向划过,不再像坠落 */
@keyframes meteor{
  0%{ opacity:0; transform:translate(-24vw,10vh) rotate(12deg); }
  4%{ opacity:.9; }
  16%{ opacity:0; transform:translate(122vw,44vh) rotate(12deg); }
  100%{ opacity:0; transform:translate(122vw,44vh) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce){
  body::before, body::after{ animation:none !important; }
  [data-theme="dark"] body::after{ display:none; }
}

/* ===== 顶栏 ===== */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:50;
  height:54px; display:flex; align-items:center; justify-content:space-between;
  padding:0 16px;
  background:var(--bar); border-bottom:1px solid var(--bar-border);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.tb-btn{
  flex:0 0 auto; width:38px; height:38px; border-radius:11px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:var(--btn); border:1px solid var(--btn-border); color:var(--text);
  text-decoration:none; font-size:18px; line-height:1;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:transform .15s ease, background .2s ease;
}
.tb-btn:active{ transform:scale(.92); }
.tb-btn svg{ width:20px; height:20px; display:block; }
.toggle.spin{ animation:tspin .5s ease; }
@keyframes tspin{ from{ transform:rotate(0); } to{ transform:rotate(360deg); } }
.icon-sun{ display:none; }
[data-theme="dark"] .icon-sun{ display:inline; }
[data-theme="dark"] .icon-moon{ display:none; }
/* 精致标题:金渐线 + 双闪星 + 微光 */
.tb-title{ flex:1; display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; }
.tb-title::before,.tb-title::after{ content:""; width:22px; height:1px; flex:0 0 auto; }
.tb-title::before{ background:linear-gradient(90deg,transparent,var(--accent)); }
.tb-title::after{ background:linear-gradient(90deg,var(--accent),transparent); }
.tb-title .s{ flex:0 0 auto; color:var(--accent); font-size:10px; animation:twinkle 2.2s ease-in-out infinite; }
.tb-title .s.b{ animation-delay:1.1s; }
.tb-title .tt{ font-size:16.5px; font-weight:800; letter-spacing:4px; padding-left:4px;
  color:var(--text); white-space:nowrap;
  text-shadow:0 1px 9px rgba(180,140,60,.38);
  text-shadow:0 1px 9px color-mix(in srgb, var(--accent) 45%, transparent); }
@keyframes twinkle{ 0%,100%{ opacity:.32; transform:scale(.8); } 50%{ opacity:1; transform:scale(1); } }
/* 首页顶栏品牌太极 */
.brand{ position:relative; z-index:2; display:flex; align-items:center; gap:9px; font-weight:800; font-size:15px; letter-spacing:.5px; }
.brand .logo{ width:30px; height:30px; display:block; animation:spin 14s linear infinite; }

.wrap{ width:100%; max-width:400px; }

/* ===== 昵称 / 标签 / 简介(首页 & 部分子页)===== */
.name{ font-size:20px; font-weight:800; letter-spacing:.5px; display:flex; align-items:center; justify-content:center; gap:6px; }
.name .badge{ font-size:14px; color:var(--accent); }

/* ===== 引语 + 金线分隔(传音石 / 返佣)===== */
.intro{ text-align:center; }
.intro .lead{ font-size:clamp(12.5px,3.6vw,14.5px); color:var(--muted); letter-spacing:.5px; line-height:1.7; }
.intro .lead b{ color:var(--accent); font-weight:600; }
.intro .orn{ display:flex; align-items:center; justify-content:center; gap:10px; color:var(--accent); margin:clamp(11px,2vh,16px) 0 clamp(16px,2.6vh,22px); }
.intro .orn::before,.intro .orn::after{ content:""; width:44px; height:1px; }
.intro .orn::before{ background:linear-gradient(90deg,transparent,var(--accent)); }
.intro .orn::after{ background:linear-gradient(90deg,var(--accent),transparent); }
.intro .orn svg{ width:19px; height:19px; display:block; flex:0 0 auto; animation:spin 6s linear infinite; }

/* ===== 吸顶:搜索 + 分组(工具页,仅吸顶后显背景)===== */
.stickybar{ position:sticky; top:54px; z-index:40; margin:0 -16px;
  padding:clamp(10px,2vh,16px) 16px 14px;
  transition:background .2s ease, box-shadow .2s ease; }
.stickybar.stuck{ background:var(--bar); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); box-shadow:0 6px 14px rgba(0,0,0,.05); }

/* ===== 搜索 ===== */
.search{ display:flex; align-items:center; gap:9px; padding:11px 14px; border-radius:12px;
  background:var(--btn); border:1px solid var(--btn-border); box-shadow:0 2px 10px rgba(0,0,0,.05);
  margin-bottom:clamp(11px,1.8vh,15px); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.search svg{ width:18px; height:18px; color:var(--muted); flex:0 0 auto; }
.search input{ flex:1; min-width:0; border:none; outline:none; background:transparent; color:var(--text); font-size:14.5px; }
.search input::placeholder{ color:var(--muted); }
.search input::-webkit-search-cancel-button{ -webkit-appearance:none; }

/* ===== 分组 chips ===== */
.chips-wrap{ position:relative; margin-bottom:0; }
.chips{ display:flex; gap:8px; overflow-x:auto; padding:3px 1px; scrollbar-width:none; -webkit-overflow-scrolling:touch;
  --mask:none; -webkit-mask-image:var(--mask); mask-image:var(--mask); }
.chips::-webkit-scrollbar{ display:none; }
.chips-wrap.more-r .chips{ --mask:linear-gradient(90deg,#000 82%,transparent); }
.chips-wrap.more-l .chips{ --mask:linear-gradient(90deg,transparent,#000 18%); }
.chips-wrap.more-l.more-r .chips{ --mask:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent); }
.hint{ position:absolute; top:50%; margin-top:-11px; width:22px; height:22px; pointer-events:none; z-index:2;
  color:var(--accent); opacity:0; transition:opacity .25s ease; filter:drop-shadow(0 0 5px var(--accent)); }
.hint svg{ width:100%; height:100%; display:block; }
.hint-r{ right:-2px; } .hint-l{ left:-2px; }
.chips-wrap.more-r .hint-r{ opacity:.95; animation:nudgeR 1.05s ease-in-out infinite; }
.chips-wrap.more-l .hint-l{ opacity:.95; animation:nudgeL 1.05s ease-in-out infinite; }
@keyframes nudgeR{ 0%,100%{ transform:translateX(0); } 42%{ transform:translateX(-5px); } 60%{ transform:translateX(-1px); } }
@keyframes nudgeL{ 0%,100%{ transform:translateX(0); } 42%{ transform:translateX(5px); } 60%{ transform:translateX(1px); } }
.chip{
  flex:0 0 auto; font-size:13px; font-weight:600; padding:7px 15px; border-radius:999px; cursor:pointer;
  color:var(--muted); background:var(--btn); border:1px solid var(--btn-border); white-space:nowrap;
  transition:color .15s ease, background .15s ease, border-color .15s ease;
}
.chip:active{ transform:scale(.96); }
.chip.active{ color:#fdf7ec; background:var(--accent); border-color:var(--accent); font-weight:700; }
[data-theme="dark"] .chip.active{ color:#2a2012; }

/* ===== 按钮列表 + 五行 canvas 层 ===== */
.links{ display:flex; flex-direction:column; gap:clamp(9px,1.6vh,13px); }
.btn{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; align-items:center; gap:12px;
  width:100%; padding:clamp(13px,1.9vh,17px) 16px; border-radius:13px;
  background:var(--btn); border:1px solid var(--btn-border);
  color:var(--text); text-decoration:none;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .12s ease, background .15s ease, box-shadow .15s ease;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.btn:active{ transform:scale(.985); }
.btn .ico,.btn .lbl,.btn .go{ position:relative; z-index:2; }
.btn canvas.fxc{ position:absolute; inset:0; z-index:1; border-radius:inherit; pointer-events:none; }
.btn .ico{ flex:0 0 26px; display:flex; align-items:center; justify-content:center; color:var(--accent); }
.btn .ico svg{ width:22px; height:22px; display:block; }
.btn .lbl{ flex:1; min-width:0; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:15px; }
.btn .lbl .t{ font-weight:700; }
.btn .lbl .dot{ margin:0 7px; color:var(--muted); }
.btn .lbl .d{ font-size:13px; font-weight:500; color:var(--muted); }
.btn .go{ flex:0 0 auto; color:var(--muted); font-size:22px; line-height:1; opacity:.5; transition:opacity .15s ease, transform .15s ease; }
@media (hover:hover) and (pointer:fine){
  .tb-btn:hover{ background:var(--btn-hover); }
  .chip:hover{ border-color:var(--accent); }
  .btn:hover{ background:var(--btn-hover); transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.1); }
  .btn:hover .go{ opacity:.85; transform:translateX(3px); }
}

/* ===== 空分类占位 ===== */
.empty{ display:none; text-align:center; color:var(--muted); font-size:13.5px; padding:40px 0 20px; }
.empty.show{ display:block; }
.empty .taiji{ width:32px; height:32px; display:block; margin:0 auto 10px; opacity:.85; animation:spin 9s linear infinite; }

/* ===== 页脚 ===== */
.foot{ margin-top:auto; padding-top:22px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); }
.foot .orn{ display:flex; align-items:center; justify-content:center; gap:10px; color:var(--accent); line-height:1; }
.foot .orn::before,.foot .orn::after{ content:""; width:40px; height:1px; }
.foot .orn::before{ background:linear-gradient(90deg,transparent,var(--accent)); }
.foot .orn::after{ background:linear-gradient(90deg,var(--accent),transparent); }
.foot .orn i{ font-style:normal; font-size:12px; opacity:.9; }
.foot a{ color:var(--accent); text-decoration:none; }

/* ===== 跳转过渡加载层(太极 + 八卦旋转)===== */
.loader{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(120% 90% at 50% 42%, var(--bg2), var(--bg1));
  opacity:0; visibility:hidden; transition:opacity .4s ease, visibility .4s;
}
.loader.show{ opacity:1; visibility:visible; transition:opacity .25s ease; }
body.intro .loader{ opacity:1; visibility:visible; animation:loaderOut .45s ease .12s forwards; }
@keyframes loaderOut{ to{ opacity:0; visibility:hidden; } }
.core{ position:relative; width:130px; height:130px; }
.lbagua{ position:absolute; inset:0; animation:spin 9s linear infinite; }
.lbagua i{ position:absolute; top:0; left:0; transform:translate(-50%,-50%); }
.lbagua i span{ display:inline-block; font-size:17px; color:var(--bagua); text-shadow:0 0 8px var(--bagua); animation:spin 9s linear infinite reverse; }
.ltaiji{ position:absolute; inset:40px; animation:spin 2.6s linear infinite; filter:drop-shadow(0 0 10px var(--accent)); }
.ltaiji svg{ width:100%; height:100%; display:block; }

@keyframes spin{ to{ transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .toggle.spin,.tb-title .s,.brand .logo,.intro .orn svg,.empty .taiji,
  .lbagua,.lbagua i span,.ltaiji,
  .chips-wrap.more-r .hint-r,.chips-wrap.more-l .hint-l{ animation:none; }
  .chips-wrap.more-r .hint-r,.chips-wrap.more-l .hint-l{ opacity:.9; }
  body.intro .loader{ animation:loaderOut .3s ease .1s forwards; }
}

/* ================= 三手机布局(桌面 ≥1160px) ================= */
/* 侧列(传音石/千羽宗)内容样式——移动端侧列 display:none,这些规则无害 */
.hp-head{ margin-bottom:clamp(14px,2vh,20px); flex:0 0 auto; }  /* 复用了 .tb-title(带 flex:1),侧列是纵向 flex 必须压回,否则标题会撑高 */
.hp-left .intro{ margin-bottom:clamp(12px,2vh,18px); }
.hp-right .hero{ text-align:center; }
.hp-right .emblem{ width:88px; height:88px; border-radius:50%; margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center; color:var(--accent);
  border:3px solid var(--btn); background:radial-gradient(circle at 50% 40%, rgba(198,150,80,.22), rgba(198,150,80,.06));
  box-shadow:0 8px 26px rgba(0,0,0,.24), 0 0 0 1px var(--border), 0 0 24px var(--accent); }
.hp-right .emblem svg{ width:46px; height:46px; }
.hp-right .emblem .fold{ transform-box:fill-box; transform-origin:bottom center; animation:fanFold 3.4s ease-in-out infinite; }
.hp-right .sub{ margin-top:10px; font-size:13.5px; color:var(--muted); }
.hp-right .gobtn{ margin-top:clamp(20px,3.2vh,32px); width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px; border-radius:14px; text-decoration:none; border:1px solid var(--accent); background:var(--accent);
  color:#fdf7ec; font-size:16px; font-weight:700; box-shadow:0 6px 18px rgba(166,124,48,.3); transition:transform .12s ease, filter .15s ease; }
[data-theme="dark"] .hp-right .gobtn{ color:#2a2012; }
.hp-right .gobtn:active{ transform:scale(.98); }
.hp-right .gobtn .arr{ font-size:18px; }

/* 移动端(默认):包裹层不产生盒子 + 侧列隐藏 → 与现状像素一致 */
.hp, .phone-mid{ display:contents; }
.hp-side{ display:none; }

/* 手机外框配色 + 顶部条不透明底色(挡住下方滚动内容) */
:root{ --phone-bg:rgba(255,255,255,.42); --phone-edge:rgba(0,0,0,.09); --phone-head:rgba(248,244,237,.985); }
[data-theme="dark"]{ --phone-bg:rgba(22,20,30,.5); --phone-edge:rgba(255,255,255,.09); --phone-head:rgba(18,16,23,.985); }

@media (min-width:1280px){
  body.phones{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100dvh; padding:2.2vh 16px; }
  .hp{ display:grid; grid-template-columns:minmax(358px,410px) minmax(424px,470px) minmax(358px,410px); gap:24px;
    justify-content:center; align-items:center; width:100%; max-width:1360px; margin:0 auto; }
  /* 每一列 = 一个手机 */
  .hp-side, .phone-mid{
    display:flex; flex-direction:column; height:min(90vh,900px);
    border-radius:26px; overflow-y:auto; overflow-x:hidden; scrollbar-width:none;
    background:var(--phone-bg); border:1px solid var(--phone-edge);
    box-shadow:0 26px 64px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.05);
    -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
    position:relative;
  }
  .hp-side::-webkit-scrollbar, .phone-mid::-webkit-scrollbar{ display:none; }
  /* 侧列(传音石/千羽宗)内容整体垂直居中 */
  .hp-side{ padding:34px 24px; justify-content:center; }
  .hp-left .links{ margin-top:0; }
  /* 顶栏 → 手机顶部条:不透明底,内容滚过时不透上来 */
  body.phones .topbar{ position:sticky; top:0; left:auto; right:auto; width:auto; height:54px; flex:0 0 54px; z-index:41;
    border-radius:26px 26px 0 0; background:var(--phone-head);
    -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); }
  body.phones .wrap{ max-width:none; width:100%; padding:6px 20px 20px; }
  /* 吸顶搜索/分组:手机内不透明贴合,始终有底(手机内滚动 window scroll 不触发 .stuck) */
  body.phones .stickybar{ position:sticky; top:54px; margin:0 -20px; padding:12px 20px; z-index:30;
    background:var(--phone-head); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
    box-shadow:0 8px 14px rgba(0,0,0,.06); }
  .hp-dup{ display:none !important; }   /* 中列隐藏「传音石/千羽宗」两按钮 */
  .fly{ display:none; }                 /* 首页那把飞剑是为全宽顶栏设计的,手机里不放 */
  .phone-mid .loader{ position:absolute; border-radius:26px; }   /* 过渡只盖中间那个手机 */
}
