/* 登录门 + 服务器版收尾样式。暖米色，与主体一致。 */


/* hero / 侧边栏 / 横幅上的小花：与背景同风格的线描五瓣花 */
.art-spark{display:inline-grid;place-items:center;opacity:.7;
  animation:dust-sway 11s ease-in-out infinite}
.art-spark svg{display:block}
@keyframes dust-sway{
  0%,100%{transform:rotate(-5deg) translateY(0)}
  50%{transform:rotate(5deg) translateY(-4px)}
}
.signature-flower{display:inline-block;vertical-align:-2px;opacity:.6;margin-left:3px}
.signature-flower svg{display:block}
.banner-symbol{opacity:.75;display:inline-grid;place-items:center}
.banner-symbol svg{display:block}
@media(prefers-reduced-motion:reduce){ .art-spark{animation:none} }

.gate{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;
  background:linear-gradient(135deg,#fff5e7,#faeae0 56%,#f9e8e5)}
.gate[hidden]{display:none}
.gate-card{width:min(400px,100%);background:#fffaf3;border:1px solid #e6cec0;border-radius:22px;
  padding:34px 28px;box-shadow:0 22px 60px #6d4a3620;text-align:center}
.gate-mark{width:58px;height:58px;margin:0 auto 18px;border-radius:18px;background:#81523e;display:grid;place-items:center}
.gate-mark svg{width:30px;height:30px;stroke:#f7f3e6;fill:none;stroke-width:1.4;stroke-linecap:round}
.gate h1{font-size:22px;font-weight:600;letter-spacing:2px;margin:0 0 6px;font-family:"Songti SC",serif;color:#493a35}
.gate p{font-size:12px;color:#7c6258;margin:0 0 24px;line-height:1.9}
.gate input{width:100%;height:46px;border:1px solid #dcc3b2;border-radius:11px;background:#fffcf7;
  padding:0 14px;font-size:16px;text-align:center;letter-spacing:1px;color:#493a35}
.gate input:focus{outline:2px solid #b98a68;outline-offset:1px}
.gate-go{width:100%;height:46px;margin-top:14px;border-radius:11px;background:#81523e;color:#fff8ef;
  font-size:15px;font-weight:500;border:0;cursor:pointer}
.gate-go:active{transform:scale(.99)}
.gate-go:disabled{opacity:.7;cursor:default}
.gate-msg{min-height:22px;margin-top:12px;font-size:12px;color:#a85545}
.gate-msg.ok{color:#4a7c59}
.gate-spin{width:15px;height:15px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;
  display:inline-block;animation:gate-spin .7s linear infinite;vertical-align:-3px;margin-right:7px}
@keyframes gate-spin{to{transform:rotate(360deg)}}

/* 背景层：静态满天星花簇 + 游动的泰国斗鱼。
   满天星画成「五瓣小花 + 花蕊 + 细枝」，一眼能认出是花。
   放在内容之上（z-index 高）但 pointer-events:none，既不被不透明侧栏盖住，也不挡点击。 */
.scene{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}
.scene .flowers{position:absolute;inset:0;opacity:.72;
  /* 顶部留白：让天空条保持干净，不遮星座与流星 */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, transparent 236px, #000 256px),
    linear-gradient(180deg, transparent 0, transparent calc(var(--sky-height, 96px) + 40px), #000 calc(var(--sky-height, 96px) + 96px));
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, transparent 236px, #000 256px),
    linear-gradient(180deg, transparent 0, transparent calc(var(--sky-height, 96px) + 40px), #000 calc(var(--sky-height, 96px) + 96px));
  mask-composite: intersect;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg stroke='%23bd9075' stroke-width='1' stroke-linecap='round' fill='none' opacity='.55'%3E%3Cpath d='M60 132c16-2 28-12 36-26M60 132c-12-6-18-18-18-32M60 132c2 16-2 30-12 40M60 132c18 4 32 2 44-6M60 132c-14 8-30 8-42 2'/%3E%3C/g%3E%3Cg fill='%23f0dccb' stroke='%23b1826a' stroke-width='.9'%3E%3Cg transform='translate(96 106)'%3E%3Ccircle cx='0' cy='-5.4' r='3.6'/%3E%3Ccircle cx='5.1' cy='-1.7' r='3.6'/%3E%3Ccircle cx='3.2' cy='4.4' r='3.6'/%3E%3Ccircle cx='-3.2' cy='4.4' r='3.6'/%3E%3Ccircle cx='-5.1' cy='-1.7' r='3.6'/%3E%3C/g%3E%3Cg transform='translate(42 100)'%3E%3Ccircle cx='0' cy='-4.6' r='3'/%3E%3Ccircle cx='4.4' cy='-1.4' r='3'/%3E%3Ccircle cx='2.7' cy='3.7' r='3'/%3E%3Ccircle cx='-2.7' cy='3.7' r='3'/%3E%3Ccircle cx='-4.4' cy='-1.4' r='3'/%3E%3C/g%3E%3Cg transform='translate(48 172)'%3E%3Ccircle cx='0' cy='-4.2' r='2.8'/%3E%3Ccircle cx='4' cy='-1.3' r='2.8'/%3E%3Ccircle cx='2.5' cy='3.4' r='2.8'/%3E%3Ccircle cx='-2.5' cy='3.4' r='2.8'/%3E%3Ccircle cx='-4' cy='-1.3' r='2.8'/%3E%3C/g%3E%3Cg transform='translate(104 126)'%3E%3Ccircle cx='0' cy='-5' r='3.3'/%3E%3Ccircle cx='4.8' cy='-1.5' r='3.3'/%3E%3Ccircle cx='2.9' cy='4' r='3.3'/%3E%3Ccircle cx='-2.9' cy='4' r='3.3'/%3E%3Ccircle cx='-4.8' cy='-1.5' r='3.3'/%3E%3C/g%3E%3Cg transform='translate(18 134)'%3E%3Ccircle cx='0' cy='-3.8' r='2.5'/%3E%3Ccircle cx='3.6' cy='-1.2' r='2.5'/%3E%3Ccircle cx='2.2' cy='3.1' r='2.5'/%3E%3Ccircle cx='-2.2' cy='3.1' r='2.5'/%3E%3Ccircle cx='-3.6' cy='-1.2' r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23fff8ee'%3E%3Ccircle cx='96' cy='106' r='1.8'/%3E%3Ccircle cx='42' cy='100' r='1.5'/%3E%3Ccircle cx='48' cy='172' r='1.4'/%3E%3Ccircle cx='104' cy='126' r='1.6'/%3E%3Ccircle cx='18' cy='134' r='1.3'/%3E%3C/g%3E%3Cg stroke='%23c49a83' stroke-width='.9' stroke-linecap='round' fill='none' opacity='.45'%3E%3Cpath d='M206 240c-12-8-20-20-22-34M206 240c12-4 22 2 30 12M206 240c-2 14-8 24-18 30'/%3E%3C/g%3E%3Cg fill='%23efdac8' stroke='%23b1826a' stroke-width='.8'%3E%3Cg transform='translate(184 206)'%3E%3Ccircle cx='0' cy='-4.4' r='2.9'/%3E%3Ccircle cx='4.2' cy='-1.4' r='2.9'/%3E%3Ccircle cx='2.6' cy='3.6' r='2.9'/%3E%3Ccircle cx='-2.6' cy='3.6' r='2.9'/%3E%3Ccircle cx='-4.2' cy='-1.4' r='2.9'/%3E%3C/g%3E%3Cg transform='translate(236 252)'%3E%3Ccircle cx='0' cy='-3.9' r='2.6'/%3E%3Ccircle cx='3.7' cy='-1.2' r='2.6'/%3E%3Ccircle cx='2.3' cy='3.2' r='2.6'/%3E%3Ccircle cx='-2.3' cy='3.2' r='2.6'/%3E%3Ccircle cx='-3.7' cy='-1.2' r='2.6'/%3E%3C/g%3E%3Cg transform='translate(188 270)'%3E%3Ccircle cx='0' cy='-3.6' r='2.4'/%3E%3Ccircle cx='3.4' cy='-1.1' r='2.4'/%3E%3Ccircle cx='2.1' cy='2.9' r='2.4'/%3E%3Ccircle cx='-2.1' cy='2.9' r='2.4'/%3E%3Ccircle cx='-3.4' cy='-1.1' r='2.4'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23fff8ee'%3E%3Ccircle cx='184' cy='206' r='1.4'/%3E%3Ccircle cx='236' cy='252' r='1.3'/%3E%3Ccircle cx='188' cy='270' r='1.1'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380' viewBox='0 0 380 380'%3E%3Cg stroke='%23c9a48d' stroke-width='.9' stroke-linecap='round' fill='none' opacity='.35'%3E%3Cpath d='M80 70c12-8 18-20 16-34M80 70c-12-2-22-12-26-24M80 70c2 14-2 26-12 34'/%3E%3C/g%3E%3Cg fill='%23efdac8' stroke='%23bd9075' stroke-width='.75'%3E%3Cg transform='translate(97 36)'%3E%3Ccircle cx='0' cy='-4' r='2.7'/%3E%3Ccircle cx='3.8' cy='-1.2' r='2.7'/%3E%3Ccircle cx='2.4' cy='3.2' r='2.7'/%3E%3Ccircle cx='-2.4' cy='3.2' r='2.7'/%3E%3Ccircle cx='-3.8' cy='-1.2' r='2.7'/%3E%3C/g%3E%3Cg transform='translate(56 48)'%3E%3Ccircle cx='0' cy='-3.5' r='2.3'/%3E%3Ccircle cx='3.3' cy='-1.1' r='2.3'/%3E%3Ccircle cx='2.1' cy='2.8' r='2.3'/%3E%3Ccircle cx='-2.1' cy='2.8' r='2.3'/%3E%3Ccircle cx='-3.3' cy='-1.1' r='2.3'/%3E%3C/g%3E%3Cg transform='translate(70 106)'%3E%3Ccircle cx='0' cy='-3.7' r='2.4'/%3E%3Ccircle cx='3.5' cy='-1.1' r='2.4'/%3E%3Ccircle cx='2.2' cy='2.9' r='2.4'/%3E%3Ccircle cx='-2.2' cy='2.9' r='2.4'/%3E%3Ccircle cx='-3.5' cy='-1.1' r='2.4'/%3E%3C/g%3E%3C/g%3E%3Cg stroke='%23c9a48d' stroke-width='.85' stroke-linecap='round' fill='none' opacity='.28'%3E%3Cpath d='M300 280c-10-10-14-24-10-38M300 280c12 2 22 12 26 24'/%3E%3C/g%3E%3Cg fill='%23efdac8' stroke='%23bd9075' stroke-width='.7'%3E%3Cg transform='translate(289 244)'%3E%3Ccircle cx='0' cy='-3.4' r='2.3'/%3E%3Ccircle cx='3.2' cy='-1' r='2.3'/%3E%3Ccircle cx='2' cy='2.7' r='2.3'/%3E%3Ccircle cx='-2' cy='2.7' r='2.3'/%3E%3Ccircle cx='-3.2' cy='-1' r='2.3'/%3E%3C/g%3E%3Cg transform='translate(326 304)'%3E%3Ccircle cx='0' cy='-3.1' r='2.1'/%3E%3Ccircle cx='2.9' cy='-.9' r='2.1'/%3E%3Ccircle cx='1.8' cy='2.5' r='2.1'/%3E%3Ccircle cx='-1.8' cy='2.5' r='2.1'/%3E%3Ccircle cx='-2.9' cy='-.9' r='2.1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size:260px 260px, 330px 330px;
  background-position:0 0, 132px 96px}
.betta{position:absolute;width:150px;height:102px;opacity:.5;will-change:transform;color:#b06f61}
.betta svg{width:100%;height:100%;overflow:visible}
.betta .fin{transform-origin:58% 50%;animation:betta-fin 4.2s ease-in-out infinite}
.betta .fin2{animation-delay:-1.4s}
.betta .fin3{animation-delay:-2.6s}
@keyframes betta-fin{0%,100%{transform:scale(1,1) rotate(0)}50%{transform:scale(.92,1.06) rotate(-2.5deg)}}
/* 斗鱼：7 条，分布在左右两侧留白处，只做背景装饰。
   用 CSS 变量控制每条鱼的起点范围与游动幅度，避免全部挤在一条线上。 */
.betta{position:absolute;width:120px;height:82px;opacity:.52;will-change:transform;color:#a86254}
.betta svg{width:100%;height:100%;overflow:visible}
.betta .fin{transform-origin:58% 50%;animation:betta-fin 4.2s ease-in-out infinite}
.betta .fin2{animation-delay:-1.4s}
.betta .fin3{animation-delay:-2.6s}
@keyframes betta-fin{0%,100%{transform:scale(1,1) rotate(0)}50%{transform:scale(.9,1.08) rotate(-2.5deg)}}


/* --- 斗鱼：7 条，分布在 hero 右侧留白、右侧栏空白与页面底部，避开侧边栏、顶栏按钮与照片 --- */
.betta.f1{left:83%;top:210px;width:132px;height:90px;color:#a86254;animation:swim-r1 58s linear infinite}
.betta.f2{left:90%;top:300px;width:100px;height:69px;opacity:.42;color:#84629c;animation:swim-r2 70s linear infinite -14s}
.betta.f3{right:2%;top:430px;width:116px;height:79px;opacity:.46;color:#ad7d4f;animation:swim-l1 76s linear infinite -33s}
.betta.f4{right:9%;top:560px;width:94px;height:64px;opacity:.38;color:#9c6a7e;animation:swim-l2 84s linear infinite -50s}
.betta.f5{right:3%;bottom:120px;width:120px;height:82px;opacity:.44;color:#8d6aa4;animation:swim-l1 62s linear infinite -8s}
.betta.f6{left:52%;bottom:30px;width:98px;height:67px;opacity:.36;color:#ae6b5e;animation:swim-r2 74s linear infinite -27s}
.betta.f7{right:18%;bottom:6px;width:112px;height:76px;opacity:.4;color:#b2825a;animation:swim-l1 88s linear infinite -57s}

/* 右侧鱼向右游（默认朝右），左侧鱼向左游（scaleX 翻转） */
.betta.f1,.betta.f2,.betta.f3,.betta.f4{transform:scaleX(-1)}
@keyframes swim-r1{
  0%{transform:scaleX(-1) translate3d(0,0,0) rotate(4deg);opacity:0}
  8%{opacity:.52}
  40%{transform:scaleX(-1) translate3d(-34vw,8px,0) rotate(-5deg)}
  72%{transform:scaleX(-1) translate3d(-18vw,-8px,0) rotate(3deg)}
  93%{opacity:.52}
  100%{transform:scaleX(-1) translate3d(-42vw,4px,0) rotate(-2deg);opacity:0}
}
@keyframes swim-r2{
  0%{transform:scaleX(-1) translate3d(0,0,0) rotate(-3deg);opacity:0}
  10%{opacity:.42}
  45%{transform:scaleX(-1) translate3d(-22vw,-10px,0) rotate(5deg)}
  78%{transform:scaleX(-1) translate3d(-10vw,8px,0) rotate(-2deg)}
  92%{opacity:.42}
  100%{transform:scaleX(-1) translate3d(-28vw,-4px,0) rotate(3deg);opacity:0}
}
@keyframes swim-r3{
  0%{transform:scaleX(-1) translate3d(0,0,0) rotate(2deg);opacity:0}
  9%{opacity:.46}
  42%{transform:scaleX(-1) translate3d(-26vw,10px,0) rotate(-4deg)}
  76%{transform:scaleX(-1) translate3d(-14vw,-6px,0) rotate(4deg)}
  94%{opacity:.46}
  100%{transform:scaleX(-1) translate3d(-32vw,6px,0) rotate(-1deg);opacity:0}
}
@keyframes swim-l1{
  0%{transform:translate3d(0,0,0) rotate(-4deg);opacity:0}
  8%{opacity:.52}
  40%{transform:translate3d(-24vw,8px,0) rotate(5deg)}
  72%{transform:translate3d(-10vw,-8px,0) rotate(-3deg)}
  93%{opacity:.52}
  100%{transform:translate3d(-30vw,4px,0) rotate(2deg);opacity:0}
}
@keyframes swim-l2{
  0%{transform:translate3d(0,0,0) rotate(3deg);opacity:0}
  11%{opacity:.44}
  46%{transform:translate3d(-18vw,-8px,0) rotate(-5deg)}
  79%{transform:translate3d(-6vw,8px,0) rotate(3deg)}
  92%{opacity:.44}
  100%{transform:translate3d(-24vw,-3px,0) rotate(-2deg);opacity:0}
}

/* 品牌区：抬到花层之上并给它一块底色，彻底避免花朵透到 logo 与「拾光」上 */

/* 侧边栏内的斗鱼：只在中段空白处轻轻游动 */
.sidebar-fish{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.side-betta{position:absolute;width:76px;height:52px;color:#b98a68;opacity:0;will-change:transform}
.side-betta svg{width:100%;height:100%;overflow:visible}
.side-betta .fin{transform-origin:58% 50%;animation:side-fin 4.8s ease-in-out infinite}
.side-betta .fin2{animation-delay:-1.6s}
.side-betta .fin3{animation-delay:-3.1s}
@keyframes side-fin{0%,100%{transform:scale(1,1)}50%{transform:scale(.9,1.08)}}
.side-betta.sf1{left:24px;top:58%;animation:side-swim2 46s linear infinite}
.side-betta.sf2{left:58px;top:64%;width:62px;height:42px;opacity:0;color:#9b7bb0;animation:side-swim2 58s linear infinite -21s}
.side-betta.sf3{left:16px;top:70%;width:56px;height:38px;color:#a8845e;animation:side-swim2 54s linear infinite -38s}
@keyframes side-swim2{
  0%{transform:translate3d(0,0,0) rotate(3deg);opacity:0}
  14%{opacity:.38}
  40%{transform:translate3d(38px,7px,0) rotate(-4deg)}
  66%{transform:translate3d(12px,-5px,0) rotate(3deg)}
  88%{transform:translate3d(30px,3px,0) rotate(-2deg);opacity:.38}
  100%{transform:translate3d(-6px,0,0) rotate(2deg);opacity:0}
}
/* 侧边栏内容压在鱼之上 */
.sidebar > *:not(.sidebar-fish){position:relative;z-index:1}

/* 侧边栏整体抬到装饰层之上：品牌、导航、底部说明都不被花朵覆盖 */
.sidebar{z-index:62}
.sidebar .brand{position:relative}
.sidebar .brand-mark{position:relative;overflow:hidden}
.sidebar .brand-mark{position:relative;overflow:hidden}
/* 顶部横条同样压一层，保证星座与斗鱼不被花层干扰 */
.sky-ribbon{z-index:36}

/* 内容层保持在装饰之下，这样装饰浮在背景之上但不会挡住交互 */
.app-shell,.workspace{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){
  .betta{animation:none!important;opacity:.34;transform:none!important}
  .betta .fin{animation:none}
}
