/* =========================================================
   小球 · 网络安全社团  |  首页样式
   ========================================================= */
:root{
  --blue-900:#16336B;
  --blue-800:#1E4488;
  --blue-700:#2557C9;
  --blue-600:#2E63D8;
  --blue-500:#3D7BF0;
  --blue-400:#5B90F5;
  --blue-300:#8FB4F2;
  --blue-200:#BFD8FF;
  --blue-100:#DDEAFF;
  --blue-50:#EFF5FF;

  --ink:#12224A;
  --ink-2:#3B4E77;
  --ink-3:#6B7C9E;

  --white:#fff;
  --radius-sm:14px;
  --radius:20px;
  --radius-lg:28px;
  --radius-pill:999px;

  --shadow-sm:0 6px 18px rgba(46,99,216,.08);
  --shadow:0 14px 34px rgba(46,99,216,.12);
  --shadow-lg:0 26px 60px rgba(31,79,190,.18);

  --container:1200px;
  --header-h:84px;

  --font:"Noto Sans SC","PingFang SC","Microsoft YaHei","Hiragino Sans GB","Source Han Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
/* hidden 属性优先级最高：避免被 .btn{display:inline-flex} 之类的规则覆盖 */
[hidden]{display:none !important}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px);-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,dl,dd,ul{margin:0}
ul{padding:0;list-style:none}
button{font:inherit}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 32px}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--blue-600);color:#fff;padding:10px 18px;border-radius:0 0 12px 0;
}
.skip-link:focus{left:0}

/* ---------- 按钮 ---------- */
.btn{
  --btn-bg:var(--blue-500);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border:1px solid transparent;border-radius:var(--radius-pill);
  font-size:15px;font-weight:700;letter-spacing:.2px;cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease,color .22s ease;
  white-space:nowrap;
}
.btn svg{width:20px;height:20px;flex:none}
.btn-lg{padding:14px 30px;font-size:16px}
.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,#5B90F5,#2C63DE 62%,#2455C8);
  box-shadow:0 12px 26px rgba(46,99,216,.32),inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(46,99,216,.4)}
.btn-ghost{
  color:var(--blue-600);background:#fff;border-color:#D7E4FA;
  box-shadow:var(--shadow-sm);
}
.btn-ghost:hover{transform:translateY(-2px);border-color:#B8D0F7;box-shadow:var(--shadow)}
.btn-ico-plain{width:18px;height:18px}
.btn-white{background:#fff;color:var(--blue-700);box-shadow:0 14px 30px rgba(9,32,79,.24)}
.btn-white:hover{transform:translateY(-2px)}
.btn-outline-light{color:#fff;border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.08)}
.btn-outline-light:hover{background:rgba(255,255,255,.18);transform:translateY(-2px)}

/* ---------- 顶部导航 ---------- */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:100;
  height:var(--header-h);
  display:flex;align-items:center;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(216,231,255,0);
  transition:background-color .3s ease,box-shadow .3s ease,border-color .3s ease,height .3s ease;
}
.site-header.is-stuck{
  background:rgba(255,255,255,.9);
  border-bottom-color:rgba(216,231,255,.9);
  box-shadow:0 10px 30px rgba(31,79,190,.08);
  height:70px;
}
.header-inner{display:flex;align-items:center;gap:28px}

.brand{display:flex;align-items:center;gap:12px;flex:none;text-decoration:none}
.brand-mark{width:52px;height:52px;flex:none;display:grid;place-items:center}
.brand-mark img{width:100%;height:100%;object-fit:contain}
.brand-mark.small{width:46px;height:46px}
.brand-text{display:flex;flex-direction:column;line-height:1.15;text-decoration:none}
.brand-text strong{font-size:21px;font-weight:900;letter-spacing:1px;color:var(--blue-600);text-decoration:none}
.brand-text em{font-style:normal;font-size:12.5px;color:var(--ink-3);letter-spacing:.6px;text-decoration:none}

.nav{display:flex;align-items:center;gap:6px;margin-left:auto}
.nav-link{
  position:relative;display:inline-flex;align-items:center;gap:7px;
  padding:10px 14px;border-radius:12px;
  font-size:15px;font-weight:500;color:var(--ink-2);
  /* 用描边模拟加粗：高亮切换时字宽不变，整条导航位置也就不会左右跳 */
  text-shadow:0 0 0 transparent;
  transition:color .2s ease,background-color .2s ease,text-shadow .2s ease;
}
.nav-link svg{width:17px;height:17px;fill:currentColor;opacity:.85}
.nav-link svg.ico-line{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-link:hover{color:var(--blue-600);background:var(--blue-50);text-shadow:0 0 .6px currentColor}
.nav-link.is-active{color:var(--blue-600);font-weight:500;text-shadow:0 0 .7px currentColor}
.nav-link.is-active::after{
  content:"";position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);
  width:22px;height:3px;border-radius:3px;background:var(--blue-500);
}

.header-actions{display:flex;align-items:center;gap:14px;flex:none}
.btn-login{padding:10px 22px}
.btn-login svg{width:17px;height:17px;fill:currentColor}

.nav-toggle{
  display:none;width:44px;height:44px;border-radius:12px;border:1px solid #E1EBFB;
  background:#fff;cursor:pointer;padding:0;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.nav-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:var(--blue-600);transition:transform .25s ease,opacity .25s ease}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  padding:calc(var(--header-h) + 34px) 0 150px;
  overflow:hidden;
  background:
    radial-gradient(900px 520px at 74% 8%,rgba(168,203,255,.5),rgba(233,241,255,0) 68%),
    linear-gradient(180deg,#F4F8FF 0%,#EAF2FF 46%,#E3EEFF 100%);
}
.hero-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(to right,rgba(120,164,232,.16) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(120,164,232,.16) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(120% 80% at 26% 34%,#000 0%,rgba(0,0,0,.35) 46%,transparent 78%);
  mask-image:radial-gradient(120% 80% at 26% 34%,#000 0%,rgba(0,0,0,.35) 46%,transparent 78%);
  pointer-events:none;
}
.hero-blob{
  position:absolute;width:620px;height:620px;right:-120px;top:-140px;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.85),rgba(255,255,255,0) 70%);
  pointer-events:none;
}
.hero-inner{
  position:relative;z-index:2;
  display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1.1fr);
  align-items:center;gap:36px;
}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 16px 7px 12px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,.85);border:1px solid #D9E7FE;
  color:var(--blue-600);font-size:13.5px;font-weight:700;letter-spacing:.4px;
  box-shadow:var(--shadow-sm);
}
.eyebrow svg{width:17px;height:17px}
.eyebrow-plain{
  padding:0;border:0;background:none;box-shadow:none;
  color:var(--blue-500);letter-spacing:2px;font-size:14px;
}
.eyebrow-plain::before{
  content:"";width:26px;height:3px;border-radius:3px;background:currentColor;display:block;
}

.hero-title{
  margin:22px 0 0;
  font-size:clamp(38px,4.2vw,62px);
  line-height:1.18;font-weight:900;letter-spacing:1px;
  color:var(--blue-900);
}
.hero-title .hl{color:var(--blue-500)}
.hero-title .dot{color:var(--blue-300);margin:0 6px;font-weight:700}
.hero-sub{
  margin-top:22px;font-size:clamp(15px,1.3vw,18px);color:var(--ink-2);
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;
  padding:0 8px;
}
.hero-sub i{font-style:normal;color:var(--blue-300)}
.hero-cta{display:flex;flex-wrap:wrap;gap:16px;margin-top:36px}

.hero-stats{display:flex;gap:38px;margin-top:48px}
.hero-stats dt{font-size:26px;font-weight:900;color:var(--blue-500);letter-spacing:.5px}
.hero-stats dd{font-size:13.5px;color:var(--ink-3);margin-top:2px}

.hero-art{position:relative;width:100%;max-width:620px;justify-self:center;display:grid;place-items:center;aspect-ratio:620 / 588}
.hero-panels{position:relative;z-index:2;display:block;width:100%;height:auto;overflow:visible;pointer-events:none}

/* 主视觉徽标 + 四角悬浮装饰（同一坐标系，保证对齐） */
.hero-mark{
  position:absolute;z-index:1;
  left:50%;top:50%;transform:translate(-50%,-50%);
  width:77.4%;aspect-ratio:1;
}
.hero-mark img{width:100%;height:100%;display:block}
.hero-art::before{
  content:"";position:absolute;z-index:0;
  left:50%;top:50%;transform:translate(-50%,-50%);
  width:77.4%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(143,184,255,.48),rgba(169,203,255,.2) 52%,rgba(207,225,255,0) 72%);
  pointer-events:none;
}
.float{transform-box:fill-box;transform-origin:center;animation:float 6s ease-in-out infinite}
.f2{animation-duration:7.4s;animation-delay:.6s}
.f3{animation-duration:6.8s;animation-delay:1.2s}
.f4{animation-duration:8.2s;animation-delay:.3s}
@keyframes float{0%,100%{transform:translateY(-6px)}50%{transform:translateY(8px)}}
.twinkle{animation:twinkle 4.6s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.35}50%{opacity:1}}

.scroll-hint{
  position:absolute;left:50%;bottom:44px;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:6px;z-index:3;
}
.scroll-hint svg:first-child{width:32px;height:50px}
.scroll-hint .wheel{animation:wheel 1.9s ease-in-out infinite}
@keyframes wheel{0%{transform:translateY(0);opacity:1}60%{transform:translateY(14px);opacity:0}61%{transform:translateY(0);opacity:0}100%{transform:translateY(0);opacity:1}}
.scroll-hint .chev{width:22px;height:22px;animation:chev 1.9s ease-in-out infinite}
@keyframes chev{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}

/* 首屏底部波浪 */
.hero::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:170px;pointer-events:none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath d='M0 92c180-46 330 26 520 22s300-64 480-58 260 60 440 44v80H0z' fill='%23ffffff' opacity='.55'/%3E%3Cpath d='M0 122c200-44 340 24 540 20s290-56 470-48 250 52 430 38v48H0z' fill='%23ffffff' opacity='.85'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat;
}

/* ---------- 特色卡片 ---------- */
.features{position:relative;z-index:3;margin-top:-84px;padding-bottom:26px}
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.card{
  display:flex;align-items:center;gap:16px;
  padding:26px 24px;border-radius:var(--radius);
  background:rgba(255,255,255,.94);
  border:1px solid rgba(224,236,255,.9);
  box-shadow:var(--shadow-sm);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:#D3E3FF}
.card-ico{
  width:52px;height:52px;flex:none;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(150deg,#E9F2FF,#D3E4FF);
  box-shadow:inset 0 1px 0 #fff;
}
.card-ico svg{width:30px;height:30px}
.card h3{font-size:17.5px;font-weight:800;color:var(--blue-900);letter-spacing:.4px}
.card p{margin-top:6px;font-size:13.5px;line-height:1.7;color:var(--ink-3)}

/* ---------- 通用区块 ---------- */
.section{padding:96px 0}
.section-tint{background:linear-gradient(180deg,#F5F9FF,#FFFFFF)}
.section-head{max-width:640px;margin:0 auto 52px;text-align:center}
.section-head h2{margin-top:16px;font-size:clamp(26px,2.6vw,38px);font-weight:900;color:var(--blue-900);letter-spacing:.6px;line-height:1.35}
.section-head p{margin-top:14px;color:var(--ink-3);font-size:15.5px}
.section-head .eyebrow-plain{justify-content:center}

.path-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.path-card{
  position:relative;padding:32px 26px 28px;border-radius:var(--radius-lg);
  background:linear-gradient(180deg,#FFFFFF,#F7FAFF);
  border:1px solid #E6EFFD;box-shadow:var(--shadow-sm);
  transition:transform .28s ease,box-shadow .28s ease;
}
.path-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.path-step{
  display:inline-grid;place-items:center;width:44px;height:44px;border-radius:14px;
  background:linear-gradient(135deg,#5B90F5,#2C63DE);color:#fff;
  font-weight:900;font-size:15px;letter-spacing:.5px;
  box-shadow:0 10px 20px rgba(46,99,216,.28);
}
.path-card h3{margin-top:18px;font-size:19px;font-weight:800;color:var(--blue-900)}
.path-card > p{margin-top:10px;font-size:14px;color:var(--ink-3);line-height:1.75}
.path-card ul{margin-top:16px;display:grid;gap:8px}
.path-card li{
  position:relative;padding-left:20px;font-size:13.5px;color:var(--ink-2);
}
.path-card li::before{
  content:"";position:absolute;left:0;top:8px;width:9px;height:9px;border-radius:50%;
  background:var(--blue-200);box-shadow:inset 0 0 0 2.4px var(--blue-400);
}

.event-list{display:grid;gap:16px}
.event{
  display:grid;grid-template-columns:96px 1fr auto;align-items:center;gap:26px;
  padding:24px 30px;border-radius:var(--radius);
  background:#fff;border:1px solid #E8F0FD;box-shadow:var(--shadow-sm);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.event:hover{transform:translateX(6px);box-shadow:var(--shadow);border-color:#D3E3FF}
.event-date{
  display:grid;place-items:center;gap:2px;padding:12px 0;border-radius:16px;
  background:linear-gradient(150deg,#EDF4FF,#DCE9FF);color:var(--blue-700);
}
.event-date strong{font-size:24px;font-weight:900;line-height:1}
.event-date span{font-size:12.5px;color:var(--blue-500)}
.event-main h3{font-size:18px;font-weight:800;color:var(--blue-900)}
.event-main p{margin-top:8px;font-size:14px;color:var(--ink-3)}
.tag{
  padding:8px 18px;border-radius:var(--radius-pill);
  background:linear-gradient(135deg,#5B90F5,#2C63DE);color:#fff;
  font-size:13px;font-weight:700;white-space:nowrap;
  box-shadow:0 10px 20px rgba(46,99,216,.24);
}
.tag-soft{background:var(--blue-50);color:var(--blue-600);border:1px solid #D9E7FE;box-shadow:none}

/* ---------- 加入我们 ---------- */
.cta{padding:20px 0 110px}
.cta-box{
  position:relative;overflow:hidden;
  display:grid;grid-template-columns:1.35fr 1fr;gap:40px;
  padding:56px 60px;border-radius:34px;
  background:
    radial-gradient(700px 400px at 88% 0%,rgba(255,255,255,.28),transparent 62%),
    linear-gradient(135deg,#4E86F4,#2C63DE 55%,#1E4CB8);
  box-shadow:0 34px 70px rgba(31,79,190,.3);
  color:#fff;
}
.cta-box::after{
  content:"";position:absolute;right:-90px;bottom:-120px;width:340px;height:340px;border-radius:50%;
  background:rgba(255,255,255,.12);
}
.cta-copy h2{font-size:clamp(26px,2.6vw,36px);font-weight:900;letter-spacing:.6px}
.cta-copy p{margin-top:16px;font-size:15.5px;line-height:1.85;color:rgba(255,255,255,.88);max-width:56ch}
.cta-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px}
.cta-points{position:relative;z-index:2;display:grid;gap:18px;align-content:center}
.cta-points li{display:flex;align-items:center;gap:12px;font-size:15px;color:rgba(255,255,255,.94)}
.cta-points svg{width:26px;height:26px;flex:none;padding:5px;border-radius:50%;background:rgba(255,255,255,.2)}

/* ---------- 页脚 ---------- */
.site-footer{background:#0F2350;color:rgba(255,255,255,.72);padding:62px 0 32px}
.footer-inner{
  display:grid;gap:44px 44px;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) auto;
  align-items:start;
}
/* 左列：品牌与导航同一条左基线，且整体撑满页脚高度，避免悬空 */
.footer-left{
  display:flex;flex-direction:column;justify-content:space-between;
  gap:38px;align-self:stretch;min-height:100%;
}
/* logo 与右侧文字顶对齐（原先 align-items:center 让它被垂直居中，显得偏低） */
.footer-brand{display:flex;align-items:flex-start;gap:14px}
.footer-brand .brand-mark{margin-top:6px}
.footer-brand strong{display:block;color:#fff;font-size:17px;font-weight:800;letter-spacing:.4px}
.footer-brand p{font-size:13px;margin-top:4px}

/* 学校入口：与上文再拉开一档距离，整体靠下 */
.school-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:34px}
.school-link{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:10px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.82);font-size:12.5px;font-weight:600;letter-spacing:.2px;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.school-link > svg{width:15px;height:15px;flex:none;color:#9DC0FF}
.school-link .ext{width:13px;height:13px;opacity:.6}
.school-link:hover{
  background:rgba(157,192,255,.16);border-color:rgba(157,192,255,.42);
  color:#fff;transform:translateY(-1px);
}
.school-link:hover .ext{opacity:1}

.footer-links{display:flex;gap:24px;font-size:14px;flex-wrap:wrap}
.footer-links a{transition:color .2s ease}
.footer-links a:hover{color:#fff}

/* 联系方式 */
.footer-col-title{
  display:flex;align-items:center;gap:9px;
  font-size:13px;font-weight:800;letter-spacing:1.2px;color:#fff;
  margin-bottom:16px;min-height:20px;
}
.footer-col-title::before{
  content:"";width:4px;height:14px;border-radius:2px;background:var(--blue-400);flex:none;
}
.contact-list{display:grid;gap:10px}
.contact-list li{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  height:48px;padding:0 16px;border-radius:12px;
  font-size:14px;background:rgba(255,255,255,.06);
}
.contact-ico{
  width:28px;height:28px;flex:none;border-radius:9px;display:grid;place-items:center;
  background:rgba(255,255,255,.1);color:#9DC0FF;
}
.contact-ico svg{width:16px;height:16px}
.contact-name{color:rgba(255,255,255,.88);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.contact-tel{
  color:#fff;font-weight:700;letter-spacing:.6px;white-space:nowrap;
  border-bottom:1px dashed rgba(157,192,255,.5);
  transition:color .2s ease,border-color .2s ease;
}
.contact-tel:hover{color:#9DC0FF;border-bottom-color:#9DC0FF}
.contact-note{margin-top:14px;font-size:12.5px;color:rgba(255,255,255,.42)}

/* 微信公众号：固定窄列，与联系方式同一顶基线 */
.footer-qr{display:flex;flex-direction:column;align-items:center;text-align:center;width:150px}
.footer-qr .footer-col-title{width:100%}
.footer-qr img{
  width:126px;height:126px;margin-top:2px;
  border-radius:14px;background:#fff;padding:6px;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  transition:transform .25s ease,box-shadow .25s ease;
}
.footer-qr img:hover{transform:translateY(-3px) scale(1.03);box-shadow:0 16px 34px rgba(0,0,0,.36)}
.qr-note{margin-top:12px;font-size:12px;line-height:1.6;color:rgba(255,255,255,.5)}

.footer-copy{
  grid-column:1 / -1;border-top:1px solid rgba(255,255,255,.12);
  padding-top:22px;font-size:12.5px;color:rgba(255,255,255,.5);
}
.footer-legal{
  grid-column:1 / -1;margin:-12px 0 0;padding:0;
  font-size:12.5px;color:rgba(255,255,255,.5);
}
.footer-legal a,.footer-copy a{color:rgba(255,255,255,.5);text-decoration:none}
.footer-legal a:hover,.footer-copy a:hover{color:rgba(255,255,255,.85);text-decoration:underline}

/* ---------- 进场动画 ---------- */
/* 进场动画（仅在 JS 可用时隐藏，保证无脚本时内容可见） */
.js [data-reveal]{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.22,.7,.3,1),transform .7s cubic-bezier(.22,.7,.3,1)}
.js [data-reveal].is-in{opacity:1;transform:none}

/* =========================================================
   登录 / 注册 弹窗
   ========================================================= */
.modal{
  position:fixed;inset:0;z-index:200;
  display:grid;place-items:center;
  padding:24px;
}
.modal[hidden]{display:none}
.modal-mask{
  position:absolute;inset:0;
  background:rgba(12,32,72,.46);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  animation:maskIn .28s ease;
}
.modal-card{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.82fr);
  grid-template-rows:minmax(0,1fr);
  width:min(940px,100%);
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  border-radius:30px;
  background:#fff;
  box-shadow:0 40px 90px rgba(12,36,84,.4);
  overflow:hidden;
  animation:cardIn .34s cubic-bezier(.2,.8,.3,1);
}
@keyframes maskIn{from{opacity:0}to{opacity:1}}
@keyframes cardIn{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}

.modal-close{
  position:absolute;top:16px;right:16px;z-index:5;
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;cursor:pointer;
  border:1px solid #E4EDFB;background:#fff;color:var(--ink-3);
  transition:color .2s ease,background-color .2s ease,transform .2s ease;
}
.modal-close svg{width:18px;height:18px}
.modal-close:hover{color:var(--blue-600);background:var(--blue-50);transform:rotate(90deg)}

.auth-main{
  padding:38px 44px 30px;
  overflow-y:auto;
}
.auth-brand{display:flex;align-items:center;gap:14px}
.auth-brand .brand-mark{width:56px;height:56px}
.auth-title{font-size:24px;font-weight:900;color:var(--blue-900);letter-spacing:.6px}
.auth-subtitle{margin-top:6px;font-size:13.5px;color:var(--ink-3)}

.auth-tabs{position:relative;display:flex;gap:26px;margin-top:26px;border-bottom:1px solid #EAF1FD}
.auth-tab{
  position:relative;padding:12px 2px;border:0;background:none;cursor:pointer;
  font-size:16px;font-weight:700;color:var(--ink-3);
  transition:color .2s ease;
}
.auth-tab.is-active{color:var(--blue-600)}
.auth-tab.is-active::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;
  background:linear-gradient(135deg,#5B90F5,#2C63DE);
}

.auth-body{margin-top:24px}
.auth-notice{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-bottom:18px;padding:12px 16px;border-radius:14px;
  background:linear-gradient(135deg,#F1F7FF,#E7F0FF);
  border:1.5px solid #CFE0FF;
  font-size:13.5px;font-weight:600;color:var(--blue-700);
  animation:noticeIn .28s ease;
}
.auth-notice[hidden]{display:none}
.auth-notice .link-btn{margin-left:auto;white-space:nowrap}
.auth-notice-ico{
  width:26px;height:26px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:#fff;color:var(--blue-500);
}
.auth-notice-ico svg{width:18px;height:18px}
@keyframes noticeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.auth-form{display:grid;gap:16px}
.auth-form[hidden]{display:none}

.field{display:grid;gap:7px}
.field-label{font-size:13px;font-weight:700;color:var(--ink-2)}
.field-input{
  position:relative;display:flex;align-items:center;gap:10px;
  padding:0 14px;height:50px;border-radius:14px;
  background:#F7FAFF;border:1.5px solid #E4EDFB;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
.field-input:focus-within{
  background:#fff;border-color:#8FB4F2;
  box-shadow:0 0 0 4px rgba(76,132,243,.14);
}
.field-input > svg{width:18px;height:18px;flex:none;fill:var(--blue-300)}
.field-input > svg[fill="none"],.field-input > svg path[fill="none"]{fill:none}
.field-input input{
  flex:1;min-width:0;height:100%;border:0;background:none;outline:none;
  font:inherit;font-size:14.5px;color:var(--ink);
}
.field-input input::placeholder{color:#A8B6CE}
.field-eye{
  width:32px;height:32px;flex:none;border:0;border-radius:9px;cursor:pointer;
  display:grid;place-items:center;background:none;color:#A8B6CE;
  transition:color .2s ease,background-color .2s ease;
}
.field-eye svg{width:19px;height:19px;fill:none}
.field-eye:hover{color:var(--blue-500);background:var(--blue-50)}
.field-eye.is-on{color:var(--blue-600)}
.field-code{
  flex:none;padding:8px 14px;border-radius:10px;cursor:pointer;
  border:1px solid #D7E4FA;background:#fff;
  font-size:13px;font-weight:700;color:var(--blue-600);
  transition:background-color .2s ease,opacity .2s ease;
}
.field-code:hover:not(:disabled){background:var(--blue-50)}
.field-code:disabled{color:#A8B6CE;cursor:not-allowed}

.strength{display:flex;align-items:center;gap:6px;margin-top:2px}
.strength i{height:5px;flex:1;border-radius:3px;background:#E7EEFA;transition:background-color .25s ease}
.strength em{font-style:normal;font-size:12px;color:var(--ink-3);min-width:52px;text-align:right}
.strength.s1 i:nth-child(1){background:#F08A8A}
.strength.s2 i:nth-child(1),.strength.s2 i:nth-child(2){background:#F2B04C}
.strength.s3 i{background:#4C84F3}

.is-shake{animation:shake .4s cubic-bezier(.36,.07,.19,.97)}
@keyframes shake{
  10%,90%{transform:translateX(-2px)}
  20%,80%{transform:translateX(4px)}
  30%,50%,70%{transform:translateX(-6px)}
  40%,60%{transform:translateX(6px)}
}

.auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-2px}
.checkbox{display:inline-flex;align-items:center;gap:9px;cursor:pointer;font-size:13.5px;color:var(--ink-2)}
.checkbox input{position:absolute;opacity:0;width:0;height:0}
.checkbox i{
  width:18px;height:18px;flex:none;border-radius:6px;
  border:1.6px solid #C6D8F5;background:#fff;position:relative;
  transition:background-color .2s ease,border-color .2s ease;
}
.checkbox i::after{
  content:"";position:absolute;left:5px;top:1.5px;width:5px;height:9px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);
  transition:transform .18s ease;
}
.checkbox input:checked + i{background:linear-gradient(135deg,#5B90F5,#2C63DE);border-color:transparent}
.checkbox input:checked + i::after{transform:rotate(45deg) scale(1)}
.checkbox input:focus-visible + i{box-shadow:0 0 0 4px rgba(76,132,243,.2)}
.checkbox-agree{font-size:13px;line-height:1.6;align-items:flex-start}
.checkbox-agree i{margin-top:1px}
.checkbox-agree a{color:var(--blue-600);font-weight:700}
.checkbox-agree a:hover{text-decoration:underline}

.link-btn{
  border:0;background:none;padding:0;cursor:pointer;
  font:inherit;font-size:13.5px;font-weight:700;color:var(--blue-600);
}
.link-btn:hover{text-decoration:underline}

.auth-error{
  min-height:20px;font-size:13px;font-weight:600;color:#D8524F;
  display:flex;align-items:center;gap:6px;
}
.auth-error.is-ok{color:#1E9E6A}
.auth-error:empty{visibility:hidden}

.btn-block{width:100%}
.auth-switch{margin-top:2px;text-align:center;font-size:13.5px;color:var(--ink-3)}

.auth-divider{position:relative;margin:24px 0 16px;text-align:center}
.auth-divider::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#EAF1FD}
.auth-divider span{
  position:relative;padding:0 12px;background:#fff;
  font-size:12.5px;color:var(--ink-3);
}
.auth-oauth{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.oauth-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:46px;border-radius:14px;cursor:pointer;
  border:1.5px solid #E4EDFB;background:#fff;
  font-size:14px;font-weight:600;color:var(--ink-2);
  transition:border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.oauth-btn svg{width:19px;height:19px;fill:currentColor;color:var(--blue-500)}
.oauth-btn:hover{border-color:#C6D8F5;color:var(--blue-600);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.auth-note{margin-top:18px;font-size:12px;line-height:1.7;color:#9AA8C0}

/* 展示侧 */
.auth-aside{
  position:relative;overflow:hidden;color:#fff;
  background:
    radial-gradient(520px 320px at 80% 0%,rgba(255,255,255,.3),transparent 62%),
    linear-gradient(150deg,#4E86F4,#2C63DE 58%,#1E4CB8);
}
.auth-aside::after{
  content:"";position:absolute;right:-70px;bottom:-90px;width:280px;height:280px;border-radius:50%;
  background:rgba(255,255,255,.12);
}
.auth-aside-inner{position:relative;z-index:2;padding:44px 40px;height:100%;display:flex;flex-direction:column;justify-content:center;gap:22px}
.auth-badge{
  align-self:flex-start;padding:6px 14px;border-radius:999px;
  background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.34);
  font-size:12.5px;font-weight:700;letter-spacing:.4px;
}
.auth-aside h3{font-size:26px;font-weight:900;line-height:1.45;letter-spacing:.6px}
.auth-points{display:grid;gap:14px}
.auth-points li{display:flex;align-items:center;gap:10px;font-size:14px;color:rgba(255,255,255,.94)}
.auth-points svg{width:24px;height:24px;flex:none;padding:4px;border-radius:50%;background:rgba(255,255,255,.2)}

/* 登录后的账号菜单 */
.account{position:relative}
.account[hidden]{display:none}
.account-btn{
  display:inline-flex;align-items:center;gap:9px;
  height:44px;padding:0 14px 0 6px;border-radius:999px;cursor:pointer;
  border:1px solid #DCE8FB;background:#fff;color:var(--blue-900);
  font-size:14px;font-weight:700;
  box-shadow:var(--shadow-sm);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.account-btn:hover{border-color:#B8D0F7;box-shadow:var(--shadow);transform:translateY(-1px)}
/* 头像：支持自定义图片 / 默认徽标 / 昵称首字三种形态 */
.account-avatar{
  width:32px;height:32px;border-radius:50%;flex:none;
  display:grid;place-items:center;position:relative;overflow:hidden;
  background-color:#DCE9FF;background-image:linear-gradient(135deg,#5B90F5,#2C63DE);
  background-size:cover;background-position:center;
  color:#fff;font-size:13px;font-weight:800;font-style:normal;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);
}
.account-avatar.has-img{background-color:#EAF2FF}
.modal-close{
  position:absolute;top:16px;right:16px;z-index:5;
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;cursor:pointer;
  border:1px solid #E4EDFB;background:#fff;color:var(--ink-3);
  transition:color .2s ease,background-color .2s ease,transform .2s ease;
}
.modal-close svg{width:18px;height:18px}
.modal-close:hover{color:var(--blue-600);background:var(--blue-50);transform:rotate(90deg)}
.account-caret{width:16px;height:16px;color:var(--ink-3);transition:transform .2s ease}
.account-btn[aria-expanded="true"] .account-caret{transform:rotate(180deg)}
.account-menu{
  position:absolute;right:0;top:calc(100% + 10px);z-index:60;
  width:212px;padding:10px;border-radius:18px;
  background:#fff;border:1px solid #E6EFFD;box-shadow:var(--shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.account-menu.is-open{opacity:1;visibility:visible;transform:none}
.account-menu-head{padding:8px 10px 10px;font-size:12.5px;color:var(--ink-3);border-bottom:1px solid #F0F5FE;margin-bottom:6px}
.account-menu-head strong{color:var(--blue-700)}
.account-menu a,.account-menu button{
  display:block;width:100%;text-align:left;padding:10px;border:0;border-radius:11px;
  background:none;cursor:pointer;font:inherit;font-size:14px;color:var(--ink-2);font-weight:600;
  transition:background-color .18s ease,color .18s ease;
}
.account-menu a:hover,.account-menu button:hover{background:var(--blue-50);color:var(--blue-600)}
.account-menu button{border-top:1px solid #F0F5FE;border-radius:0 0 11px 11px;color:#D8524F}
.account-menu button:hover{background:#FFF3F2;color:#C74340}
.account-menu button + button{border-top:1px solid #F0F5FE}
.account-menu [data-acc-open],.account-menu [data-acc-view]{border-top:0;border-radius:11px;color:var(--ink-2)}
.account-menu [data-acc-open]:hover,.account-menu [data-acc-view]:hover{background:var(--blue-50);color:var(--blue-600)}
.account-menu .account-menu-head + button{border-top:0}

/* =========================================================
   通知小铃铛（报名结果）
   ========================================================= */
.notif{position:relative}
.notif[hidden]{display:none}
.notif-btn{
  position:relative;
  width:44px;height:44px;border-radius:50%;
  display:inline-grid;place-items:center;cursor:pointer;
  border:1px solid #DCE8FB;background:#fff;color:var(--blue-900);
  box-shadow:var(--shadow-sm);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.notif-btn:hover{border-color:#B8D0F7;box-shadow:var(--shadow);transform:translateY(-1px)}
.notif-btn svg{width:21px;height:21px}
.notif-btn.is-ring svg{animation:notifRing .9s ease}
@keyframes notifRing{
  0%,100%{transform:none}
  20%{transform:rotate(14deg)}
  45%{transform:rotate(-12deg)}
  65%{transform:rotate(8deg)}
  85%{transform:rotate(-4deg)}
}
.notif-badge{
  position:absolute;top:7px;right:8px;
  width:10px;height:10px;border-radius:50%;
  background:#E5484D;border:2px solid #fff;
  box-shadow:0 0 0 0 rgba(229,72,77,.45);
  animation:notifPulse 1.8s ease-out infinite;
}
.notif-badge[hidden]{display:none}
@keyframes notifPulse{
  0%{box-shadow:0 0 0 0 rgba(229,72,77,.45)}
  70%{box-shadow:0 0 0 7px rgba(229,72,77,0)}
  100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}
}
.notif-menu{
  position:absolute;right:0;top:calc(100% + 10px);z-index:60;
  width:302px;max-width:calc(100vw - 32px);padding:10px;border-radius:18px;
  background:#fff;border:1px solid #E6EFFD;box-shadow:var(--shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.notif-menu.is-open{opacity:1;visibility:visible;transform:none}
.notif-head{margin:0;padding:8px 10px 10px;font-size:12.5px;font-weight:700;color:var(--ink-3);border-bottom:1px solid #F0F5FE}
.notif-empty{padding:18px 12px;text-align:center;font-size:13.5px;color:var(--ink-3);line-height:1.8}
.notif-empty a{color:var(--blue-600);font-weight:700}
.notif-item{padding:12px 10px 10px}
.notif-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.notif-time{font-size:12px;color:var(--ink-3);font-style:normal}
.notif-text{margin:9px 0 0;font-size:13.5px;font-weight:600;color:var(--ink-2);line-height:1.7}
.notif-remark{
  margin:9px 0 0;padding:8px 11px;border-radius:10px;
  background:var(--blue-50);font-size:13px;color:var(--ink-2);line-height:1.7;
  word-break:break-all;
}
.notif-remark b{color:var(--blue-700)}
.notif-link{
  display:inline-flex;align-items:center;gap:4px;
  margin-top:10px;font-size:13.5px;font-weight:700;color:var(--blue-600);
}
.notif-link svg{width:14px;height:14px;transition:transform .18s ease}
.notif-link:hover svg{transform:translateX(3px)}
@media (max-width:480px){
  .notif-menu{right:-6px;width:min(302px,calc(100vw - 24px))}
}

/* =========================================================
   个人中心
   ========================================================= */
.account-card{
  width:min(600px,100%);
  max-height:calc(100vh - 48px);
  display:block;overflow-y:auto;
}
.account-pane{padding:34px 38px 32px}
.account-pane[hidden]{display:none}
.account-head h2{font-size:22px;font-weight:900;color:var(--blue-900);letter-spacing:.5px}
.account-head p{margin-top:7px;font-size:13.5px;color:var(--ink-3)}

.avatar-editor{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  margin-top:22px;padding:20px;border-radius:var(--radius);
  background:linear-gradient(135deg,#F4F8FF,#EAF2FF);border:1px solid #E4EDFB;
}
.avatar-xl{width:84px;height:84px;font-size:30px;box-shadow:0 8px 20px rgba(46,99,216,.18),inset 0 0 0 2px rgba(255,255,255,.7)}
.avatar-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn-sm{padding:9px 16px;font-size:13.5px}
.btn-sm svg{width:17px;height:17px}

.account-form{display:grid;gap:16px;margin-top:22px}
.account-foot{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.auth-error{
  min-height:20px;font-size:13px;font-weight:600;color:#D8524F;
  display:flex;align-items:center;gap:6px;
}
.auth-error:empty{visibility:hidden}

/* 头像裁剪 */
.crop-pane{padding:34px 38px 32px}
.crop-main{display:flex;gap:22px;align-items:center;margin-top:20px;flex-wrap:wrap}
.crop-stage{
  width:260px;height:260px;flex:none;border-radius:24px;
  background:#0E1F44;overflow:hidden;
  box-shadow:0 18px 40px rgba(12,36,84,.28);
}
#cropCanvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
#cropCanvas:active{cursor:grabbing}
.crop-side{display:grid;gap:9px;justify-items:center}
.crop-side-label{font-size:12.5px;font-weight:700;color:var(--ink-3)}
.crop-preview{
  width:120px;height:120px;border-radius:50%;
  background:#fff;box-shadow:0 8px 20px rgba(46,99,216,.16),0 0 0 1px #E4EDFB;
}
.crop-controls{display:flex;align-items:center;gap:14px;margin-top:22px}
.crop-controls label{font-size:13.5px;font-weight:700;color:var(--ink-2);flex:none}
.crop-controls input[type="range"]{
  flex:1;-webkit-appearance:none;appearance:none;height:6px;border-radius:4px;
  background:linear-gradient(90deg,#8FB4F2,#DDEAFF);outline:none;
}
.crop-controls input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;width:22px;height:22px;border-radius:50%;cursor:pointer;
  background:#fff;border:2px solid var(--blue-500);box-shadow:0 4px 10px rgba(46,99,216,.28);
}
.crop-controls input[type="range"]::-moz-range-thumb{
  width:20px;height:20px;border-radius:50%;cursor:pointer;
  background:#fff;border:2px solid var(--blue-500);
}
.crop-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap}

/* 报名记录 */
.records{display:grid;gap:14px;margin-top:20px}
.account-empty{
  padding:26px 22px;border-radius:var(--radius);text-align:center;
  background:#F7FAFF;border:1.5px dashed #DCE8FB;
  font-size:14px;color:var(--ink-3);
}
.account-empty a{color:var(--blue-600);font-weight:700}
.record{
  padding:20px 22px;border-radius:var(--radius);
  background:#fff;border:1px solid #E8F0FD;box-shadow:var(--shadow-sm);
  display:grid;gap:12px;
}
.record-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.record-head b{font-size:16px;font-weight:800;color:var(--blue-900)}
.record-tag{
  padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700;
  background:var(--blue-50);color:var(--blue-600);border:1px solid #DCE8FB;
}
.record-tag.is-ok{background:#E7F8EE;color:#178A4C;border-color:#C4EBD3}
.record-tag.is-no{background:#F1F3F6;color:#66707E;border-color:#E1E5EB}
.record-tag.is-wait{background:#FFF4E0;color:#9A6410;border-color:#F5DFB4}
.record-remark{
  margin:2px 0 0;padding:9px 12px;border-radius:10px;font-size:13px;line-height:1.6;
  background:var(--blue-50);color:var(--blue-900);border:1px dashed #C9DAF6;
}
.record-remark b{font-weight:800}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}
.record-grid div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-size:13.5px}
.record-grid span{color:var(--ink-3)}
.record-grid b{color:var(--blue-900);font-weight:700;word-break:break-all;text-align:right}
.record-bio{
  font-size:13.5px;line-height:1.75;color:var(--ink-2);
  padding:12px 14px;border-radius:12px;background:#F7FAFF;white-space:pre-wrap;
}
.record .btn{justify-self:start}

/* 轻提示 */
.toast{
  position:fixed;left:50%;bottom:34px;z-index:300;
  transform:translate(-50%,16px);
  display:flex;align-items:center;gap:10px;
  padding:13px 22px;border-radius:999px;
  background:rgba(16,38,80,.94);color:#fff;
  font-size:14px;font-weight:600;
  box-shadow:0 18px 40px rgba(12,36,84,.34);
  opacity:0;pointer-events:none;
  transition:opacity .26s ease,transform .26s ease;
}
.toast.is-on{opacity:1;transform:translate(-50%,0)}
.toast::before{content:"";width:8px;height:8px;border-radius:50%;background:#6FE3A8}

/* ---------- 响应式 ---------- */
@media (max-width:1080px){
  .hero-inner{grid-template-columns:1fr;gap:18px;text-align:center;justify-items:center}
  .hero-stats{justify-content:center}
  .hero-cta{justify-content:center}
  .section-head .eyebrow-plain{margin:0 auto}
  .hero{padding-bottom:180px}
  .hero-art{max-width:620px}
  .card-grid,.path-grid{grid-template-columns:repeat(2,1fr)}
  .cta-box{grid-template-columns:1fr;padding:46px 40px}
}
@media (max-width:900px){
  .nav{
    position:absolute;top:calc(var(--header-h) - 6px);left:24px;right:24px;
    flex-direction:column;align-items:stretch;gap:4px;padding:14px;
    background:#fff;border:1px solid #E6EFFD;border-radius:22px;box-shadow:var(--shadow-lg);
    opacity:0;visibility:hidden;transform:translateY(-10px);
    transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
  }
  .nav.is-open{opacity:1;visibility:visible;transform:none}
  .nav-link.is-active::after{display:none}
  .nav-toggle{display:flex}
  .btn-login{display:none}
  /* 移动端保留头像入口，仅收缩文字 */
  .account-btn{padding:0 10px 0 5px;height:42px}
  .account-btn #navName{display:none}
  .account-avatar{width:30px;height:30px}
  /* 弹窗改为单列 */
  .modal{padding:14px}
  .modal-card{grid-template-columns:1fr;max-height:calc(100vh - 28px)}
  .auth-aside{display:none}
  .auth-main{padding:30px 26px 26px}
}
@media (max-width:680px){
  .container{padding:0 20px}
  .hero{padding-bottom:200px}
  .hero-title{letter-spacing:0}
  .hero-stats{gap:26px;margin-top:36px}
  .card-grid,.path-grid{grid-template-columns:1fr}
  .features{margin-top:-70px}
  .event{grid-template-columns:76px 1fr;gap:16px;padding:20px}
  .event .tag{grid-column:1/-1;justify-self:start}
  .section{padding:70px 0}
  .footer-inner{grid-template-columns:1fr;gap:36px}
  .footer-left{gap:28px}
  .footer-qr{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;text-align:left;gap:16px}
  .footer-qr .footer-col-title{flex-basis:100%;margin-bottom:0}
  .footer-qr img{width:104px;height:104px;margin-top:0}
  .qr-note{margin-top:0;flex:1;min-width:120px}
  .contact-list li{font-size:13.5px}
  .footer-links{flex-wrap:wrap;gap:16px}
  .cta-box{padding:36px 26px;border-radius:26px}
  /* 表单更紧凑 */
  .auth-main{padding:26px 18px 22px}
  .auth-brand .brand-mark{width:48px;height:48px}
  .auth-title{font-size:20px}
  .auth-oauth{grid-template-columns:1fr}
  .field-input{height:48px;padding:0 12px}
  .field-input input{font-size:15px}
  .field-code{padding:7px 10px;font-size:12.5px}
  .toast{left:16px;right:16px;transform:translate(0,16px);justify-content:center;text-align:center}
  .toast.is-on{transform:translate(0,0)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
  .js [data-reveal]{opacity:1;transform:none}
}
/* =========================================================
   小球 AI 助手
   ========================================================= */
.ai-assistant { position: fixed; right: 24px; bottom: calc(24px + 30vh); z-index: 1200; font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ai-launcher { position: relative; display: grid; place-items: center; width: 64px; height: 64px; padding: 4px; border: 0; border-radius: 50%; background: linear-gradient(145deg,#72a7ff,#2f6de8); box-shadow: 0 12px 30px rgba(35,91,190,.3); cursor: pointer; transition: transform .2s ease,box-shadow .2s ease; }
.ai-launcher:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px rgba(35,91,190,.38); }
.ai-launcher:focus-visible,.ai-close:focus-visible,.ai-send:focus-visible,.ai-suggestions button:focus-visible { outline: 3px solid rgba(47,109,232,.32); outline-offset: 3px; }
.ai-launcher img { width: 56px; height: 56px; border-radius: 50%; background: #fff; object-fit: cover; }
.ai-launcher-ring { position: absolute; inset: -5px; border: 2px solid rgba(64,126,242,.25); border-radius: 50%; animation: ai-pulse 2.4s ease-out infinite; pointer-events: none; }
.ai-launcher-status { position: absolute; right: 2px; bottom: 3px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #25c685; }
.ai-tip { position: absolute; right: 76px; bottom: 9px; width: max-content; max-width: 240px; padding: 11px 15px; border: 1px solid #dbe7ff; border-radius: 14px 14px 4px 14px; background: #fff; color: #17376e; font-size: 14px; font-weight: 600; box-shadow: 0 10px 28px rgba(31,69,133,.15); transition: opacity .2s ease,transform .2s ease; }
.ai-tip.is-hidden { opacity: 0; transform: translateX(8px); pointer-events: none; }
.ai-panel { position: absolute; right: 0; bottom: 78px; display: flex; flex-direction: column; width: min(390px,calc(100vw - 32px)); height: min(620px,calc(70vh - 120px)); overflow: hidden; border: 1px solid rgba(174,201,250,.75); border-radius: 24px; background: #f8fbff; box-shadow: 0 24px 70px rgba(21,54,111,.24); transform-origin: right bottom; animation: ai-panel-in .22s ease-out; }
.ai-panel[hidden] { display: none; }
.ai-panel-head { display: flex; align-items: center; gap: 11px; padding: 16px 17px; color: #fff; background: linear-gradient(135deg,#397bf2,#2458c8); }
.ai-avatar { width: 45px; height: 45px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.95); }
.ai-avatar img,.ai-message-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ai-heading { flex: 1; min-width: 0; }
.ai-heading h2 { margin: 0 0 3px; font-size: 17px; line-height: 1.2; }
.ai-heading p { margin: 0; font-size: 12px; color: rgba(255,255,255,.82); }
.ai-online { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #5df0ad; box-shadow: 0 0 0 3px rgba(93,240,173,.16); }
.ai-close { width: 36px; height: 36px; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.12); font-size: 26px; line-height: 1; cursor: pointer; }
.ai-close:hover { background: rgba(255,255,255,.22); }
.ai-messages { flex: 1; overflow-y: auto; padding: 20px 17px; scroll-behavior: smooth; }
.ai-message { display: flex; align-items: flex-end; gap: 9px; margin-bottom: 14px; }
.ai-message-user { justify-content: flex-end; }
.ai-message-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(30,70,140,.1); }
.ai-bubble { max-width: 78%; padding: 12px 14px; border: 1px solid #e2ebfa; border-radius: 16px 16px 16px 5px; background: #fff; color: #344a70; font-size: 14px; line-height: 1.65; box-shadow: 0 5px 16px rgba(37,73,132,.07); }
.ai-bubble strong { display: block; margin-bottom: 4px; color: #173b7b; }
.ai-bubble p { margin: 0; }
.ai-message-user .ai-bubble { border: 0; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg,#4a87f5,#2865db); color: #fff; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 39px; }
.ai-suggestions button { padding: 8px 11px; border: 1px solid #cfe0ff; border-radius: 999px; background: #fff; color: #3268c9; font: inherit; font-size: 12px; cursor: pointer; transition: background .15s ease,border-color .15s ease; }
.ai-suggestions button:hover { border-color: #78a7fb; background: #eff5ff; }
.ai-composer { display: flex; align-items: flex-end; gap: 9px; margin: 0 13px; padding: 9px 9px 9px 14px; border: 1px solid #d9e5f8; border-radius: 17px; background: #fff; box-shadow: 0 4px 15px rgba(34,66,122,.07); }
.ai-composer:focus-within { border-color: #7eaaf7; box-shadow: 0 0 0 3px rgba(79,132,231,.12); }
.ai-composer textarea { flex: 1; max-height: 92px; min-height: 24px; resize: none; border: 0; outline: 0; background: transparent; color: #1d3766; font: inherit; font-size: 14px; line-height: 24px; }
.ai-composer textarea::placeholder { color: #91a0b8; }
.ai-send { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#4a86f3,#2864dc); color: #fff; cursor: pointer; }
.ai-send svg { width: 20px; height: 20px; }
.ai-send:disabled { opacity: .5; cursor: default; }
.ai-disclaimer { margin: 8px 0 10px; text-align: center; color: #99a6ba; font-size: 11px; }
.ai-typing .ai-bubble::after { content: '•••'; letter-spacing: 3px; animation: ai-typing 1s infinite; }
@keyframes ai-pulse { 0% { transform: scale(.92); opacity:.8; } 75%,100% { transform: scale(1.25); opacity:0; } }
@keyframes ai-panel-in { from { opacity:0; transform:translateY(12px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes ai-typing { 50% { opacity:.35; } }
@media (max-width: 600px) {
  .ai-assistant { right: 16px; bottom: calc(max(16px,env(safe-area-inset-bottom)) + 30vh); }
  .ai-launcher { width: 56px; height: 56px; }
  .ai-launcher img { width: 48px; height: 48px; }
  .ai-tip { right: 67px; bottom: 6px; max-width: calc(100vw - 105px); font-size: 13px; }
  .ai-panel { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .ai-panel-head { padding-top: max(15px,env(safe-area-inset-top)); }
  .ai-disclaimer { margin-bottom: max(8px,env(safe-area-inset-bottom)); }
  body.ai-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ai-launcher-ring { animation: none; } .ai-panel { animation: none; } }

.ai-bubble a { color: #2865db; text-decoration: underline; word-break: break-all; }
