:root{
  --portal-bg:#eef5ff;
  --portal-bg-soft:#f8fbff;
  --portal-card:#ffffff;
  --portal-card-soft:#f5faff;
  --portal-line:#dbe8ff;
  --portal-line-strong:#bfd5ff;
  --portal-primary:#2f7cff;
  --portal-primary-2:#67b0ff;
  --portal-primary-3:#1f63dd;
  --portal-text:#16385f;
  --portal-text-strong:#0d2946;
  --portal-muted:#6e88a8;
  --portal-shadow:0 26px 62px rgba(47,124,255,.14);
  --portal-shadow-soft:0 14px 36px rgba(47,124,255,.12);
  --portal-radius:30px;
}
html,body{
  margin:0;
  background:linear-gradient(180deg,#edf5ff 0%,#f9fbff 100%) fixed !important;
  color:var(--portal-text) !important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif !important;
}
body::before,
body::after{
  content:"";
  position:fixed;
  pointer-events:none;
  z-index:0;
}
body::before{
  left:-120px;
  bottom:-160px;
  width:360px;
  height:360px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(77,155,255,.22),rgba(77,155,255,0) 70%);
}
body::after{
  right:-120px;
  top:-100px;
  width:420px;
  height:420px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(110,196,255,.22),rgba(110,196,255,0) 70%);
}
a{
  color:var(--portal-primary);
}
a:hover{
  color:var(--portal-primary-3);
  text-decoration:none;
}
.portal-shell{
  position:relative;
  z-index:1;
  min-height:100vh;
  padding:14px 0 118px;
}
.portal-nav{
  position:sticky;
  top:12px;
  z-index:90;
}
.portal-nav .inner{
  width:min(1220px,calc(100% - 24px));
  margin:0 auto;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:20px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(22px);
  border:1px solid var(--portal-line);
  border-radius:28px;
  box-shadow:var(--portal-shadow-soft);
}
.portal-brand{
  margin-right:auto;

  display:flex;
  align-items:center;
  gap:12px;
  font-size:26px;
  font-weight:800;
  color:var(--portal-text-strong);
}
.portal-brand::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--portal-primary),var(--portal-primary-2));
  box-shadow:0 10px 22px rgba(47,124,255,.18);
}
.portal-menu{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(760px,calc(100vw - 24px));
  padding:10px;
  display:flex;
  align-items:stretch;
  gap:8px;
  overflow-x:auto;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(24px);
  border:1px solid var(--portal-line-strong);
  border-radius:30px;
  box-shadow:0 28px 60px rgba(47,124,255,.18);
  scrollbar-width:none;
  -ms-overflow-style:none;
  z-index:120;
}
.portal-menu::-webkit-scrollbar{
  display:none;
}
.portal-menu a{
  flex:1 0 auto;
  min-width:108px;
  min-height:60px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:22px;
  color:var(--portal-muted);
  background:transparent;
  font-weight:700;
  transition:all .24s ease;
}
.portal-menu a:hover,
.portal-menu a.active{
  background:linear-gradient(135deg,rgba(47,124,255,.14),rgba(255,255,255,.98));
  color:var(--portal-primary-3);
  box-shadow:inset 0 0 0 1px rgba(47,124,255,.08);
}
.portal-hero,
.portal-grid,
.portal-section,
.portal-form-shell,
.portal-doc,
.portal-footer{
  width:min(1220px,calc(100% - 24px));
  margin-left:auto;
  margin-right:auto;
}
.portal-hero{
  margin-top:26px;
  margin-bottom:24px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  align-items:stretch;
}
.portal-hero-card,
.portal-panel,
.portal-stat,
.portal-block,
.portal-side-card,
.portal-form-card,
.portal-doc .doc-card,
.portal-showcase .metric{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid var(--portal-line);
  border-radius:var(--portal-radius);
  box-shadow:var(--portal-shadow-soft);
}
.portal-hero-card{
  position:relative;
  overflow:hidden;
  padding:42px;
}
.portal-hero-card::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(103,176,255,.24),rgba(103,176,255,0) 72%);
}
.portal-eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.26em;
  color:var(--portal-primary);
  margin-bottom:16px;
}
.portal-hero-card h1,
.portal-side-card h1,
.portal-section-header h2,
.portal-doc .doc-card h1,
.portal-doc .doc-card legend{
  margin:0 0 14px;
  color:var(--portal-text-strong);
  font-weight:800;
}
.portal-hero-card h1{
  font-size:54px;
  line-height:1.05;
}
.portal-hero-card p,
.portal-panel p,
.portal-side-card p,
.portal-showcase .metric .txt,
.portal-section-header p,
.portal-doc .doc-card,
.portal-doc .doc-card p,
.portal-doc .doc-card li{
  color:var(--portal-text) !important;
  line-height:1.85;
}
.portal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}
.portal-btn,
.layui-btn,
.btn,
.auth_color,
.auth_color2,
.auth_color3{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border:none !important;
  border-radius:18px !important;
  font-weight:700;
  letter-spacing:.02em;
}
.portal-btn.primary,
.layui-btn,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.auth_color,
.auth_color2,
.auth_color3{
  background:linear-gradient(135deg,var(--portal-primary),var(--portal-primary-2)) !important;
  color:#fff !important;
  box-shadow:0 14px 30px rgba(47,124,255,.2) !important;
}
.portal-btn.secondary,
.layui-btn-primary,
.btn-light,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger{
  background:linear-gradient(180deg,#ffffff,#f1f7ff) !important;
  color:var(--portal-primary-3) !important;
  border:1px solid var(--portal-line) !important;
  box-shadow:none !important;
}
.portal-showcase{
  padding:24px;
  display:grid;
  gap:16px;
}
.portal-showcase .metric{
  padding:20px 22px;
}
.portal-showcase .metric .num{
  font-size:34px;
  line-height:1.1;
  font-weight:800;
  color:var(--portal-text-strong);
  margin-bottom:8px;
}
.portal-grid{
  margin-top:0;
  margin-bottom:30px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.portal-panel{
  padding:28px;
}
.portal-panel h3{
  margin:0 0 10px;
  color:var(--portal-text-strong);
  font-size:22px;
}
.portal-section{
  margin-bottom:34px;
}
.portal-section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.portal-section-header h2{
  font-size:36px;
}
.portal-form-shell{
  margin-top:28px;
  margin-bottom:0;
}
.portal-form-layout{
  display:grid;
  grid-template-columns:.94fr 1.06fr;
  gap:22px;
  align-items:start;
}
.portal-side-card,
.portal-form-card,
.portal-doc .doc-card{
  overflow:hidden;
}
.portal-side-card{
  position:sticky;
  top:100px;
  padding:34px;
}
.portal-side-card ul{
  list-style:none;
  margin:24px 0 0;
  padding:0;
  display:grid;
  gap:12px;
}
.portal-side-card li{
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg,#fcfeff,#f1f7ff);
  border:1px solid var(--portal-line);
  color:var(--portal-text);
}
.portal-form-card{
  padding:28px;
}
.portal-form-card .layui-card,
.portal-form-card .card{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  margin:0;
}
.portal-form-card .layui-card-header,
.portal-form-card .card-header{
  background:none !important;
  border:none !important;
  padding:0 0 18px !important;
  color:var(--portal-text-strong) !important;
  font-size:30px !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  height:auto !important;
}
.portal-form-card .layui-card-body,
.portal-form-card .card-body{
  padding:0 !important;
}
.layui-input,
.layui-textarea,
.layui-select,
.form-control,
select,
input,
textarea{
  background:linear-gradient(180deg,#fcfeff,#f1f7ff) !important;
  border:1px solid var(--portal-line) !important;
  color:var(--portal-text) !important;
  border-radius:18px !important;
  min-height:48px;
  box-shadow:none !important;
}
.layui-input:focus,
.layui-textarea:focus,
.form-control:focus,
select:focus,
input:focus,
textarea:focus{
  border-color:rgba(47,124,255,.5) !important;
  box-shadow:0 0 0 4px rgba(47,124,255,.12) !important;
}
.layui-tab{
  margin-top:0 !important;
}
.layui-tab-title{
  height:auto !important;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border-bottom:1px solid var(--portal-line) !important;
}
.layui-tab-title li{
  border:none !important;
  padding:0 18px !important;
  height:42px !important;
  line-height:42px !important;
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#f1f7ff);
  color:var(--portal-muted) !important;
}
.layui-tab-title .layui-this{
  background:linear-gradient(135deg,rgba(47,124,255,.14),rgba(255,255,255,.98)) !important;
  color:var(--portal-primary-3) !important;
}
.layui-tab-content{
  padding:22px 0 0 !important;
}
.layui-layer,
.layui-layer-page .layui-layer-content,
.modal-content{
  background:rgba(255,255,255,.98) !important;
  border:1px solid var(--portal-line) !important;
  border-radius:24px !important;
  color:var(--portal-text) !important;
  box-shadow:var(--portal-shadow) !important;
  overflow:hidden;
}
.layui-layer-title,
.modal-header{
  background:linear-gradient(180deg,#f9fcff,#eef5ff) !important;
  border-bottom:1px solid var(--portal-line) !important;
  color:var(--portal-text-strong) !important;
}
.portal-doc{
  margin-top:28px;
  margin-bottom:24px;
}
.portal-doc .doc-card{
  padding:30px;
}
.portal-doc pre,
.portal-doc code,
.portal-doc .layui-code{
  background:#f4f8ff !important;
  color:var(--portal-text-strong) !important;
  border:1px solid var(--portal-line) !important;
  border-radius:18px !important;
}
.portal-footer{
  padding:20px 0 0;
  color:var(--portal-muted);
}
@media (max-width:1040px){
  .portal-hero,
  .portal-form-layout,
  .portal-grid{
    grid-template-columns:1fr;
  }
  .portal-side-card{
    position:relative;
    top:0;
  }
  .portal-hero-card h1{
    font-size:42px;
  }
}
@media (max-width:767px){
  .portal-shell{
    padding-top:10px;
    padding-bottom:100px;
  }
  .portal-nav .inner,
  .portal-hero,
  .portal-grid,
  .portal-section,
  .portal-form-shell,
  .portal-doc,
  .portal-footer{
    width:calc(100% - 16px);
  }
  .portal-nav .inner{
    padding:16px 16px;
    gap:12px;
  }
  .portal-brand{
    font-size:22px;
  }
  .portal-menu{
    width:calc(100vw - 16px);
    bottom:10px;
    border-radius:26px;
    padding:8px;
    gap:6px;
  }
  .portal-menu a{
    min-width:96px;
    min-height:54px;
    padding:8px 10px;
    border-radius:18px;
    font-size:13px;
  }
  .portal-hero-card,
  .portal-panel,
  .portal-showcase,
  .portal-side-card,
  .portal-form-card,
  .portal-doc .doc-card{
    padding:22px;
  }
  .portal-hero-card h1,
  .portal-side-card h1,
  .portal-section-header h2{
    font-size:32px;
  }
  .portal-section-header{
    align-items:flex-start;
    flex-direction:column;
  }
}


.portal-menu-toggle{
  width:56px;
  height:56px;
  border:none;
  border-radius:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--portal-primary);
  background:linear-gradient(135deg,#f7fbff,#dbeaff);
  box-shadow:var(--portal-shadow-soft);
  cursor:pointer;
}
.portal-menu-toggle span,
.portal-menu-toggle span::before,
.portal-menu-toggle span::after{
  display:block;
  width:22px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  content:"";
}
.portal-menu-toggle span{
  position:relative;
}
.portal-menu-toggle span::before{position:absolute;left:0;top:-7px;}
.portal-menu-toggle span::after{position:absolute;left:0;top:7px;}
.portal-drawer{
  position:fixed;
  inset:0;
  z-index:200;
  pointer-events:none;
}
.portal-drawer-mask{
  position:absolute;
  inset:0;
  background:rgba(11,36,73,.18);
  backdrop-filter:blur(4px);
  opacity:0;
  transition:opacity .24s ease;
}
.portal-drawer-panel{
  position:absolute;
  left:14px;
  top:14px;
  bottom:14px;
  width:min(340px,calc(100vw - 28px));
  padding:18px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--portal-line-strong);
  border-radius:30px;
  box-shadow:var(--portal-shadow);
  transform:translateX(calc(-100% - 24px));
  transition:transform .28s ease;
  overflow:auto;
}
.body-portal-drawer-open .portal-drawer{
  pointer-events:auto;
}
.body-portal-drawer-open .portal-drawer-mask{
  opacity:1;
}
.body-portal-drawer-open .portal-drawer-panel{
  transform:translateX(0);
}
.portal-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.portal-drawer-title{
  font-size:24px;
  font-weight:800;
  color:var(--portal-text-strong);
}
.portal-drawer-close{
  width:42px;
  height:42px;
  border:none;
  border-radius:16px;
  background:linear-gradient(135deg,#f7fbff,#e8f1ff);
  color:var(--portal-primary);
  font-size:24px;
  cursor:pointer;
}
.portal-drawer-links{
  display:grid;
  gap:8px;
}
.portal-drawer-links a{
  min-height:54px;
  padding:0 18px;
  border-radius:18px;
  display:flex;
  align-items:center;
  background:linear-gradient(180deg,#fff,#f7fbff);
  border:1px solid var(--portal-line);
  color:var(--portal-text);
  font-weight:700;
}
.portal-drawer-links a.active,
.portal-drawer-links a:hover{
  color:var(--portal-primary-3);
  border-color:rgba(47,124,255,.2);
  box-shadow:0 10px 24px rgba(47,124,255,.08);
}
@media (max-width:767px){
  .portal-nav .inner{
    padding:14px 16px;
    gap:14px;
  }
  .portal-menu-toggle{
    width:52px;
    height:52px;
    border-radius:18px;
  }
}
