/*
 * ZNNZ · API 主样式表
 *
 * 目录（按 public/index.html 的页面结构排列）：
 * 01. 字体与全局基础
 * 02. 顶部导航
 * 03. 首页主内容与购买表单
 * 04. 通用弹窗与反馈组件
 * 05. 模型广场
 * 06. 公告时间线
 * 07. 数据图表
 * 08. 页面背景与轨道特效
 * 09. 全局移动端适配
 *
 * 整理原则：仅调整规则顺序和注释，不修改任何选择器或声明值。
 */

/* ========================================================================== */
/* 01. 字体与全局基础
 * 字体、重置、页面基底、选区和滚动条。
 * ========================================================================== */


/* --- 字体资源 --- */

@font-face {
    font-family:'cmdpe1';
    src:url('./font/TarponMotel.woff2') format('woff2');
    font-weight:normal;
    font-style:normal;
}
@font-face {
    font-family:'cmdpe2';
    src: url('./font/cmdpe.woff2') format('woff2');
    font-weight:normal;
    font-style:normal;
}

/* --- 全局重置、伪元素与滚动条 --- */

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
   -webkit-tap-highlight-color: rgba(0,0,0,0);
}
::selection {
    background: #ff3d00;
    color: #fff;
}
::before {
	font-family: "iconfont";
    display: inline-block;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
    font-style: normal;
}
:focus,:focus-visible {
  outline: none !important;
  outline-offset: 0;
}

/*滚动条*/
::-webkit-scrollbar {
	height: 6px;   /* 横向轨道高度 */
	width: 6px;    /* 竖向轨道宽度 */
}
/* 竖向滚动条单独配置最小高度 */
::-webkit-scrollbar-thumb:vertical {
	transition: all 0.25s ease 0s;
	background: rgb(255 255 255 / 15%);
	min-height: 295px; /* 竖向滑块最小高度 */
}
/* 横向滚动条单独配置最小宽度 */
::-webkit-scrollbar-thumb:horizontal {
	transition: all 0.25s ease 0s;
	background: rgb(255 255 255 / 15%);
	min-width: 295px; /* 横向滑块最小宽度 */
}
/* hover 样式，横竖分开，各自放大 */
::-webkit-scrollbar-thumb:vertical:hover {
	width: 9px;
	background:#99e640;
}
::-webkit-scrollbar-thumb:horizontal:hover {
	height: 9px;
	background:#99e640;
}
/* 滚动条拐角消除白色 */
::-webkit-scrollbar-corner {
	background: transparent;
}
::-webkit-scrollbar-track {
	background: transparent;
}

/* --- 页面基底 --- */

html {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip; /* clip 更彻底，避免 DPI/zoom 下仍出现横向滚动条 */
}
body {
	font-family: "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
    font-size: 16px;
	letter-spacing: .5px;
	color:#bdbdbd;
	background: #000;
/* 	zoom: 110%; */
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
	position: relative;
	/* 阻断与 #home margin-top 的外边距折叠，避免 absolute .orbit-stage 被整体顶下约 200px */
	display: flow-root;
	/* 防止子层（含 fixed/transform）把滚动宽度撑出视口 */
	overscroll-behavior-x: none;
    height: 100vh;
    width: 100vw;
}
/* 
body:before {
    content: "";
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgb(33 150 243 / 12%) 1.5px, rgb(0 0 0 / 5%) 1.0px);
    background-image: repeating-linear-gradient(0deg, rgb(33 150 243 / 6%) 0 3.0px, transparent 3.0px calc(3.0px + 1.0px)),
                  repeating-linear-gradient(90deg, rgb(33 150 243 / 6%) 0 3.0px, transparent 3.0px calc(3.0px + 1.0px));
    background-image: repeating-linear-gradient(0deg, rgb(103 58 183 / 10%) 0 3.0px, transparent 3.0px calc(3.0px + 1.0px)), repeating-linear-gradient(90deg, rgb(103 58 183 / 10%) 0 3.0px, transparent 3.0px calc(3.0px + 1.0px));
    background-size: 4px 4px;
    background-size: 6px 6px;
    position: fixed;
    mask-image: linear-gradient(#000, #0000 90%);
    opacity: 1;
}
 */
/* ========================================================================== */
/* 02. 顶部导航
 * 对应 header、.nav-links、.nav-push-right 及其移动端菜单。
 * ========================================================================== */


/* --- 导航布局与站点图标 --- */

header {
    display: flex;
	  gap: 18px;
    justify-content: center;
    position: fixed;
    top: 10px;
  	left: 0;
    right: 0;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}
header.is-scrolled {
    top: 5px;
}
header::before {
    content: '';
    width: 600px;
    width: 100vw;
    top: -10px;
    bottom: -10px;
    position: absolute;
    z-index: -1;
    transition: all 0.3s ease;
    border-radius: 0;
    /*background-color: rgb(255 255 255 / 3.9%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);*/
    /*box-shadow: 0 0 1px rgba(20, 126, 255, .60);
    box-shadow: 0 0 12px rgba(54, 194, 255, .00), 0 0 1px rgba(20, 126, 255, .60), 0 0 0px rgba(36, 72, 255, .2), 0 0 0px rgba(18, 48, 180, .1), inset 0 0 0px rgba(36, 72, 255, .12)*/
}
header.is-scrolled::before {
    bottom: -5px;
    background-color: rgb(0 0 0 / 33%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 0 1px rgba(20, 126, 255, .00);
}
#line-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    max-width: 100vw;
    height: 50px;
    pointer-events: none;
    z-index: -1;
}
.Mobile {
    display: none;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
	gap: 18px;
}
.nav-push-right {
    left: 0px;
    margin-left: 0px;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
   	gap: 18px;
}
.nav-links a:nth-child(1) {
    margin: 0 -8px;
}
.nav-links a:nth-child(1)::before,.nav-links a:nth-child(1)::after {
    display: none !important;
}
header a img {
    width: 30px;
}
.nav-links a:hover img {
    animation: bounce-shake 0.6s ease-in-out both;
}
/*
header a svg {
    font-size: 2em;
    transform-origin: center center;
    display: inline-block;
    animation: bounce-shake-auto 3s ease-in-out infinite;
}
.nav-links a:hover svg {
    animation: bounce-shake 0.6s ease-in-out both;
}*/

/* --- 站点图标交互动效 --- */

@keyframes bounce-shake-auto {
  0%, 20%, 100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  3% {
    transform: translateX(-8px) rotate(-12deg) scale(1.15);
  }
  6% {
    transform: translateX(8px) rotate(10deg) scale(1.12);
  }
  9% {
    transform: translateX(-6px) rotate(-8deg) scale(1.08);
  }
  12% {
    transform: translateX(5px) rotate(6deg) scale(1.05);
  }
  15% {
    transform: translateX(-3px) rotate(-3deg) scale(1.02);
  }
  18% {
    transform: translateX(2px) rotate(1deg) scale(1);
  }
}
@keyframes bounce-shake {
      0%, 100% {
        transform: translateX(0) rotate(0) scale(1);
      }
      15% {
        transform: translateX(-8px) rotate(-12deg) scale(1.15);
      }
      30% {
        transform: translateX(8px) rotate(10deg) scale(1.12);
      }
      45% {
        transform: translateX(-6px) rotate(-8deg) scale(1.08);
      }
      60% {
        transform: translateX(5px) rotate(6deg) scale(1.05);
      }
      75% {
        transform: translateX(-3px) rotate(-3deg) scale(1.02);
      }
      90% {
        transform: translateX(2px) rotate(1deg) scale(1);
      }
}

/* --- 导航链接与免费密钥入口 --- */

header a {
    color: #bdbdbd;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    height: 36px;
    line-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
header a:hover {
    color: #F5F5F5;
}
/*
header a:not([data-route="announcement"])::before {
    content: "";
    position: absolute;
    inset: auto 20px -10px 20px;
    height: 5px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
}
header a:not([data-route="announcement"])::before {
    content: "";
    position: absolute;
    inset: 1px -9px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
    border-radius: 12px;
}
header a:hover::before{
    opacity: 1;
}
*/

header a:not([data-route="announcement"])::before {
    content: "";
    position: absolute;
    inset: 4px -8px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
}
header a:not([data-route="announcement"])::after {
    content: "";
    position: absolute;
    inset: 0px -4px;
    opacity: 0;
    z-index: -1;
    background: #4f1fff;
}
header a:hover::before,  header a:hover::after{
    opacity: 1;
}

/* --- 公告入口与提醒角标 --- */
#nav-announcement {
    margin: 0 -5px;
}
#nav-announcement::before {
    content: "\e60d";
    font-size: 20px;
    /*width: 36px;
    text-align: center;
    border-radius: 10px;*/
    /* 每 3 秒自动摇一次 */
    animation: bell-ring-auto 3s ease-in-out infinite;
}
#nav-announcement:hover::before {
    /*background: #ffffff14;*/
    animation: bell-ring 0.7s ease-in-out both;
}
/* ========== 自动循环：每 3 秒摇铃一次 ========== */
/* 前约 0.7s 摇动（≈23%），后面静止 */
@keyframes bell-ring-auto {
  0%, 23%, 100% {
    transform: rotate(0deg);
  }
  3%  { transform: rotate(14deg); }
  6%  { transform: rotate(-12deg); }
  9%  { transform: rotate(10deg); }
  12% { transform: rotate(-8deg); }
  15% { transform: rotate(5deg); }
  18% { transform: rotate(-3deg); }
  21% { transform: rotate(1deg); }
}

/* ========== 悬停单次摇铃 ========== */
@keyframes bell-ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  70% { transform: rotate(2deg); }
  80% { transform: rotate(-1deg); }
}
#announcement-badge[hidden]{display:none!important}
.ann-badge {
    position: absolute;
    top: -3px;
    left: 15px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff1100;
    color: #fff;
    font-size: 9px;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}

/* --- 顶部导航移动端布局 --- */

@media (max-width: 640px) {
    header {
        top: 10px;
    }
    header::before {
        box-shadow: none;
    }
    header.is-scrolled {
        top: 10px;
    }
    header.is-scrolled::before {
        bottom: -10px;
    }
    .Mobile {
        width: 30px;
        height: 3px;
        position: relative;
        transition: all 0.25s ease 0s;
        z-index: 1;
        background: #ffffff;
        border-radius: 10px;
    }
    .Mobile::before, .Mobile::after {
        content: '';
        background: #ffffff;
        position: absolute;
        right: 8px;
        left: 0;
        height: 3px;
        transition: all .3s ease 0s;
        border-radius: 10px;
    }
    .Mobile::before {
        top: -10px;
    }
    .Mobile::after {
        bottom: -10px;
    }
    .Mobile.open::before, .Mobile.open::after {
        right: 0;
        left: 8px;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        background: #a02600;
        position: fixed;
        top: 10px;
        left: -55%;
        bottom: 10px;
        width: 50%;
        gap: 0px;
        padding: 10px;
        padding-top: 60px;
        transition: all 0.3s ease 0s;
        align-items: center;
        justify-content: flex-start;
    }
    .nav-links::before {
        content: '';
        position: absolute;
        bottom: 6px;
        top: 6px;
        left: 0;
        right: -6px;
        background: #a02600;
    }
    .nav-links.open {
        left: 0;
    }    
    .Mobile {
        display: block;
        margin-left: 10px;
    }
    .nav-push-right {
        margin-left: auto;
        margin-right: 18px;
    }
    .nav-links a {
        margin: 5px 0px;
    }

    .freekey {
        --border-width: 2px;
    }
    header a.freekey::after {
        opacity: 1;
        inset: 0px -9px;
        --m-i: linear-gradient(#000, #000);
        --m-o: content-box, padding-box;
        content: "";
        padding: var(--border-width);
        background-image: conic-gradient(#488cfb, #29dbbc, #ddf505, #ff9f0e, #e440bb, #655adc, #488cfb);
        -webkit-mask-image: var(--m-i), var(--m-i);
        mask-image: var(--m-i), var(--m-i);
        -webkit-mask-origin: var(--m-o);
        mask-origin: var(--m-o);
        -webkit-mask-clip: var(--m-o);
        mask-composite: exclude;
        -webkit-mask-composite: destination-out;
        filter: hue-rotate(0);
        animation: rotate-hue linear 500ms infinite;
        animation-play-state: paused;
        animation-play-state: running;
        border-radius: 12px;
    }
    @keyframes rotate-hue {
        to {filter:hue-rotate(1turn);}
    }
    header a.freekey:hover::after {
        -webkit-mask-composite: inherit;
        animation-play-state: paused;
        animation: none;
        border-radius: 0;
        background: #4f1fff;
        inset: 0px -4px;
    }

    #nav-announcement {
        margin: 0 -5px 0 0;
    }

}

/* ========================================================================== */
/* 03. 首页主内容与购买表单
 * 对应 #home、标题文案、购买输入区和主操作按钮。
 * ========================================================================== */


/* --- 首页标题区 --- */

#home {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    top: 240px;
    font-family: "cmdpe1", "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.home1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
}
.home1 h1 {
    font-size: 4em;
    letter-spacing: 0.06em;
    display: flex;
    justify-content: center;
}
.home1 h2 {
    margin-top: 0px;
    font-size: 4em;
    font-weight: 700;
    color: #ededed;
    margin-top: -10px;
    margin-bottom: 10px;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.home1 .shimmer-text {
    background: linear-gradient(
    90deg,
    #ededed 0%,
    #ededed 40%,
    #ffd700 50%,
    #ededed 60%,
    #ededed 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- 首页说明文案 --- */

.home1 .p1 {
    font-size: 1.2em;
    margin: 0 auto;
    width: 100%; /* 不用 100vw：DPI/zoom 会撑出横向滚动条 */
    font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.home1 #issue-stats span:nth-child(1), .home1 .p1 span:nth-child(4) {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%2300d26a' stroke-width='1' stroke-linecap='round' d='M0 4 L2.5 1 L5 4 L7.5 1 L10 4 L12.5 1 L15 4 L17.5 1 L20 4'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 22px auto;
    padding-bottom: 4px;
    animation: waveMove 3s infinite linear;
    font-weight: 600;
    color: #00d26a;
    display: inline-block;
}
.home1 #issue-stats span:nth-child(2) {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%23ff3d00' stroke-width='1' stroke-linecap='round' d='M0 4 L2.5 1 L5 4 L7.5 1 L10 4 L12.5 1 L15 4 L17.5 1 L20 4'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 22px auto;
    padding-bottom: 4px;
    animation: waveMove 3s infinite linear;
    font-weight: 600;
    color: #ff3d00;
    display: inline-block;
}
@keyframes waveMove {
    from { background-position-x: 0; }
    to   { background-position-x: 44px; }
}
.home1 .p2 {
    font-size: 1.1em;
    margin: 0 auto;
    line-height: 1.6;
	font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- 通用输入框基础 --- */

input {
    width: 100%;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 16px;
    
    outline: none;
    height: 36px;
    line-height: 1;
    color: #ccc;
    transition: all 0.25s ease-out 0s;
    padding-top: 1px;
}
input::placeholder {
    font-family: "cmdpe2", -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
    color: rgba(255, 255, 255, 0.30);
    font-size: .9em;
}
/* 浏览器自动填充 */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    /* 将背景色的过渡时间设置得非常长（比如50000秒），让它“永远”无法变成白色 */
    transition: background-color 50000s ease-in-out 0s;
    /* 文字颜色同样可以这样处理 */
    -webkit-text-fill-color: #ccc !important;
}
input {
  /* Firefox 隐藏箭头 */
  -moz-appearance: textfield;
}
/* Chrome / Edge / Safari 隐藏箭头 */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- 购买表单 --- */

#form-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 12px auto;
    padding: 0 100px;
}
.form-input {
    flex: 1;
    min-width: 0;
    position: relative;
}
#form-box > div::before {
    top: 50%;
    transform: translateY(-50%);
}
.form-input:nth-child(1)::before {
    content: "\e60c";

    margin-right: 3px;
    vertical-align: 0px;
    position: relative;
    position: absolute;
    left: 5px;
    z-index: 1;
}
.form-input:nth-child(2)::before {
    content: "\e8e8";
    margin-right: 3px;
    vertical-align: 0px;
    position: relative;
    position: absolute;
    left: 7px;
    z-index: 1;
}
.form-input input {
    background-color: rgb(255 255 255 / 12%);
    background-color: rgb(255 255 255 / 8%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
}
/*
.form-input input:focus {
    box-shadow: 0 0 0 3px #222;
}
*/
.form-box-right {
    display: flex;
    gap: 15px;
}

#buy-channel-select .custom-select-btn {
    background: #222;
    color: #00dd70;
    font-weight: 100;
}
#buy-channel-select .custom-select-panel {
    background: #222;
    min-width: calc(100% + 17px);
}
#amount {
    padding-left: 22px;
}
#email {
    padding-left: 28px;
}
button {
	border:none;
	border-radius:10px;
	font-size:14px;
	cursor:pointer;
}
button:disabled {
	/*background:#999;
	cursor:default;*/
}
button.full {
    height: 36px;
    line-height: 38px;
    background: rgb(173 0 202 / 100%);
    color: #fff;
    font-weight: 700;
    width: 52px;
    font-family: "cmdpe1", "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    transition: transform 0.1s ease;
}
button.full:hover {
    background: #ff3d00;
    color: #fff;
}


/* 按钮点击特效 */
button.full:active {
  transform: scale(0.96);
}
.animate {
  animation: pulse 1s cubic-bezier(0, 0.60, 0, 0); 
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.3);
  }
  10% {
    box-shadow: 0 0 0 5px rgba(255, 61, 0, 0.3);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.1);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(255, 61, 0, 0);
  }
}
.animate1 {
  animation: pulse1 1s cubic-bezier(0, 0.60, 0, 0); 
}

@keyframes pulse1 {
  0% {
    box-shadow: 0 0 0 0 rgba(158, 0, 185, 0.3);
  }
  10% {
    box-shadow: 0 0 0 5px rgba(158, 0, 185, 0.3);
  }
  30% {
    box-shadow: 0 0 0 4px rgba(158, 0, 185, 0.1);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(158, 0, 185, 0);
  }
}
#submit-btn {
    background: #3e00ad;
    width: 36px;
    overflow: hidden;
    color: inherit;
}
#submit-btn:hover {
    background: #bc2d00;
}
#submit-btn::before {
    content: "\101e3";
    font-size: 18px;
    margin-right: 22px;
    margin-left: 8px;
    margin-top: -2px;
}
/* 复制按钮 */

/* --- 复制操作按钮 --- */

.icon-btn {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255,255,255,0.08);
	color: rgb(255 255 255 / 50%);
	cursor: pointer;
}
.icon-btn:hover {
	background: rgb(192 46 0);
	color: rgb(255 255 255 / 100%);
}
i.icon-copy {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.icon-copy:before {
    content: "\e791";
    font-size: 16px;
}
.icon-copy:after {
    content: '复制';
    font-size: 12px;
    background: rgb(192 46 0);
    position: absolute;
    top: -26px;
    right: -33px;
    padding: 4px 6px;
    border-radius: 9px 9px 9px 0px;
    color: #fff;
    font-style: normal;
    white-space: nowrap;
    font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    opacity: 0;
}
.icon-btn:hover .icon-copy:after {
    opacity: 1;
}
#modal-models .icon-copy:after {
    opacity: 0;
}
/* ========================================================================== */
/* 04. 通用弹窗与反馈组件
 * 对应各 .modal-overlay 弹窗、查询结果、二维码、成功状态和 Toast。
 * ========================================================================== */


/* --- 弹窗遮罩、容器与装饰背景 --- */

.modal-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.80);
    align-items:center;
    justify-content:center;
    z-index:100;
    padding:20px;
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
/*   zoom: 0.9091; */
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#modal-balance .modal-box {
    max-width: min-content;
    min-width: 660px;
}
#modal-balance .modal-box:has(> #balance-result > .stats) {
    padding: 16px 20px 38px;
}
.modal-box {
    padding: 16px 20px 20px;
    margin: 0 24px;
    width:100%;
    max-width: 660px;
    position:relative;
    transform: translateY(24px);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 88vh;

    isolation: isolate;
    --sq: 8px;    /* 上角：先切的正方形边长 */
    --rw: 8px;    /* 上角：紧挨着正方形的长方形宽 */
    --rh: 3px;    /* 上角：长方形高，必须小于 --sq */

    --c1: 8px;    /* 下角：贴着角的正方形边长 */
    --c2: 10px;    /* 下角：斜对着它的第二个正方形边长，和 --c1 互不影响 */

    --nd: 8px;    /* 两侧缺口深度 */
    --nh: 2px;    /* 两侧缺口高度 */
    --ny: 51px;   /* 缺口顶边距上沿，必须大于 --sq */
}

.home2 > .cascade-code-examples .modal-box {
    --ny: 47px;   /* 缺口顶边距上沿，必须大于 --sq */
}

.modal-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #3a3a3a;   
    /* 只做喷砂材质，不做强高光 */
    /*
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.58  0 0 0 0 0.58  0 0 0 0 0.58  0 0 0 0.68 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.48  0 0 0 0 0.48  0 0 0 0 0.48  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),linear-gradient(180deg, #3c3c3c 0%, #383838 48%, #343434 100%);
    background-size:
    52px 52px,
    84px 84px,
    auto;
    background-repeat:
    repeat,
    repeat,
    no-repeat;
    background-blend-mode:
    soft-light,
    overlay,
    normal;*/

    clip-path: polygon(evenodd,
        /* 上边 */
        calc(var(--sq) + var(--rw)) 0,
        calc(100% - var(--sq) - var(--rw)) 0,

        /* 右上角：长方形 + 正方形 */
        calc(100% - var(--sq) - var(--rw)) var(--rh),
        calc(100% - var(--sq)) var(--rh),
        calc(100% - var(--sq)) var(--sq),
        100% var(--sq),

        /* 右侧缺口 */
        100% var(--ny),
        calc(100% - var(--nd)) var(--ny),
        calc(100% - var(--nd)) calc(var(--ny) + var(--nh)),
        100% calc(var(--ny) + var(--nh)),

        /* 右下角：沿右边下来，切掉贴角的正方形 c1 */
        100% calc(100% - var(--c1)),
        calc(100% - var(--c1)) calc(100% - var(--c1)),      /* 两个方块相接的点 */
        /* 绕一圈挖出斜上方的正方形 c2 */
        calc(100% - var(--c1)) calc(100% - var(--c1) - var(--c2)),
        calc(100% - var(--c1) - var(--c2)) calc(100% - var(--c1) - var(--c2)),
        calc(100% - var(--c1) - var(--c2)) calc(100% - var(--c1)),
        calc(100% - var(--c1)) calc(100% - var(--c1)),      /* 回到相接的点 */
        calc(100% - var(--c1)) 100%,

        /* 下边 */
        var(--c1) 100%,

        /* 左下角（与右下角左右镜像） */
        var(--c1) calc(100% - var(--c1)),                   /* 两个方块相接的点 */
        calc(var(--c1) + var(--c2)) calc(100% - var(--c1)),
        calc(var(--c1) + var(--c2)) calc(100% - var(--c1) - var(--c2)),
        var(--c1) calc(100% - var(--c1) - var(--c2)),
        var(--c1) calc(100% - var(--c1)),                   /* 回到相接的点 */
        0 calc(100% - var(--c1)),

        /* 左侧缺口（往上走） */
        0 calc(var(--ny) + var(--nh)),
        var(--nd) calc(var(--ny) + var(--nh)),
        var(--nd) var(--ny),
        0 var(--ny),

        /* 左上角：正方形 + 长方形 */
        0 var(--sq),
        var(--sq) var(--sq),
        var(--sq) var(--rh),
        calc(var(--sq) + var(--rw)) var(--rh)
    );
}

.modal-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
    /* 1) 左下拐角光泽：贴圆角、柔反射 */
    radial-gradient(ellipse 58% 46% at 6% 100%,
        rgba(255,255,255,0.26) 0%,
        rgba(255,255,255,0.11) 24%,
        rgba(255,255,255,0.03) 48%,
        transparent 70%),
    /* 2) 右下拐角光泽 */
    radial-gradient(ellipse 58% 46% at 94% 100%,
        rgba(255,255,255,0.24) 0%,
        rgba(255,255,255,0.10) 24%,
        rgba(255,255,255,0.03) 48%,
        transparent 70%),
    /* 3) 底边横向柔光带：把两角光泽连起来，突出质感 */
    linear-gradient(0deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.05) 7%,
        rgba(255,255,255,0.015) 16%,
        transparent 28%),
    /* 4) 主体纵光：上偏亮、中过渡、下偏暗 */
    linear-gradient(180deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.045) 14%,
        rgba(255,255,255,0.01) 28%,
        transparent 42%,
        rgba(0,0,0,0.08) 58%,
        rgba(0,0,0,0.22) 76%,
        rgba(0,0,0,0.40) 92%,
        rgba(0,0,0,0.52) 100%),
    /* 5) 顶部微抬 + 底部再压一点，增强厚度 */
    radial-gradient(ellipse 110% 70% at 50% 0%,
        rgba(255,255,255,0.06) 0%,
        transparent 58%),
    /* 6) 底区整体收暗，避免下半发灰平 */
    radial-gradient(ellipse 120% 75% at 50% 100%,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.08) 42%,
        transparent 72%);
    background-repeat: no-repeat;
    /* soft-light：既能上提亮也能下压暗，底角光泽能出来 */
    mix-blend-mode: hard-light;
    opacity: 1;

    clip-path: polygon(evenodd,
        /* 上边 */
        calc(var(--sq) + var(--rw)) 0,
        calc(100% - var(--sq) - var(--rw)) 0,

        /* 右上角：长方形 + 正方形 */
        calc(100% - var(--sq) - var(--rw)) var(--rh),
        calc(100% - var(--sq)) var(--rh),
        calc(100% - var(--sq)) var(--sq),
        100% var(--sq),

        /* 右侧缺口 */
        100% var(--ny),
        calc(100% - var(--nd)) var(--ny),
        calc(100% - var(--nd)) calc(var(--ny) + var(--nh)),
        100% calc(var(--ny) + var(--nh)),

        /* 右下角：沿右边下来，切掉贴角的正方形 c1 */
        100% calc(100% - var(--c1)),
        calc(100% - var(--c1)) calc(100% - var(--c1)),      /* 两个方块相接的点 */
        /* 绕一圈挖出斜上方的正方形 c2 */
        calc(100% - var(--c1)) calc(100% - var(--c1) - var(--c2)),
        calc(100% - var(--c1) - var(--c2)) calc(100% - var(--c1) - var(--c2)),
        calc(100% - var(--c1) - var(--c2)) calc(100% - var(--c1)),
        calc(100% - var(--c1)) calc(100% - var(--c1)),      /* 回到相接的点 */
        calc(100% - var(--c1)) 100%,

        /* 下边 */
        var(--c1) 100%,

        /* 左下角（与右下角左右镜像） */
        var(--c1) calc(100% - var(--c1)),                   /* 两个方块相接的点 */
        calc(var(--c1) + var(--c2)) calc(100% - var(--c1)),
        calc(var(--c1) + var(--c2)) calc(100% - var(--c1) - var(--c2)),
        var(--c1) calc(100% - var(--c1) - var(--c2)),
        var(--c1) calc(100% - var(--c1)),                   /* 回到相接的点 */
        0 calc(100% - var(--c1)),

        /* 左侧缺口（往上走） */
        0 calc(var(--ny) + var(--nh)),
        var(--nd) calc(var(--ny) + var(--nh)),
        var(--nd) var(--ny),
        0 var(--ny),

        /* 左上角：正方形 + 长方形 */
        0 var(--sq),
        var(--sq) var(--sq),
        var(--sq) var(--rh),
        calc(var(--sq) + var(--rw)) var(--rh)
    );
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-overlay[data-route="qrcode"] .modal-box {
    max-width: 400px;
}
.modal-close {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: #ff000085;
    border-radius: 9px;
    z-index: 99999;
    color: transparent;
    /*box-shadow: 0 1px 3px rgb(0 0 0 / 10%);*/
}
.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #999;
}
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-close:hover {
    background: #ff0000c9;
}
.modal-close:hover::before,
.modal-close:hover::after {
    width: 12px;
    height: 3px;
    background: #fff;
}
.modal-overlay h2,
.modal-overlay h3 {
    font-size: 1.1em;
    position: relative;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%2300d26a' stroke-width='0.4' stroke-linecap='round' d='M0 4 L2.5 1 L5 4 L7.5 1 L10 4 L12.5 1 L15 4 L17.5 1 L20 4'/%3E%3C/svg%3E") repeat-x 0 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%23161616' stroke-width='0.4' stroke-linecap='round' d='M0 2 L20 2'/%3E%3C/svg%3E") repeat-x 0 calc(100% - -3px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%23161616' stroke-width='0.4' stroke-linecap='round' d='M0 4.8 L20 4.8'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 22px auto;
    padding-bottom: 14px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}
.modal-overlay h2 span {
    font-size: inherit;
    margin-left: 0px;
}
.modal-overlay h2::before, .modal-overlay h3::before {
    content: '';
    position: absolute;
    top: 0px;
    bottom: 14px;
    left: -23px;
    background: #00d26a;
    width: 6px;
}
.modal-box-bj {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;

  background-image:
    /* 1) 左下拐角光泽：贴圆角、柔反射 */
    radial-gradient(ellipse 58% 46% at 6% 100%,
      rgba(255,255,255,0.26) 0%,
      rgba(255,255,255,0.11) 24%,
      rgba(255,255,255,0.03) 48%,
      transparent 70%),
    /* 2) 右下拐角光泽 */
    radial-gradient(ellipse 58% 46% at 94% 100%,
      rgba(255,255,255,0.24) 0%,
      rgba(255,255,255,0.10) 24%,
      rgba(255,255,255,0.03) 48%,
      transparent 70%),
    /* 3) 底边横向柔光带：把两角光泽连起来，突出质感 */
    linear-gradient(0deg,
      rgba(255,255,255,0.12) 0%,
      rgba(255,255,255,0.05) 7%,
      rgba(255,255,255,0.015) 16%,
      transparent 28%),
    /* 4) 主体纵光：上偏亮、中过渡、下偏暗 */
    linear-gradient(180deg,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.045) 14%,
      rgba(255,255,255,0.01) 28%,
      transparent 42%,
      rgba(0,0,0,0.08) 58%,
      rgba(0,0,0,0.22) 76%,
      rgba(0,0,0,0.40) 92%,
      rgba(0,0,0,0.52) 100%),
    /* 5) 顶部微抬 + 底部再压一点，增强厚度 */
    radial-gradient(ellipse 110% 70% at 50% 0%,
      rgba(255,255,255,0.06) 0%,
      transparent 58%),
    /* 6) 底区整体收暗，避免下半发灰平 */
    radial-gradient(ellipse 120% 75% at 50% 100%,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.08) 42%,
      transparent 72%);

  background-repeat: no-repeat;
  /* soft-light：既能上提亮也能下压暗，底角光泽能出来 */
  mix-blend-mode: hard-light;
  opacity: 1;
  display: none;
}
/* 
.modal-box::before {
    content: "";
    position: absolute;
    top: 0px;
    z-index: 1;
    left: 0px;
    right: 0;
    height: 8px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
}
.modal-box::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0px;
    right: 0;
    height: 9px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
}
.modal-box-bj::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 8px;
    right: 8px;
    height: 4px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
}
.modal-box-bj::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 9px;
    right: 9px;
    height: 9px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
}
.modal-overlay h2::after,
.modal-overlay h3::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: -23px;
    right: -23px;
    height: 4px;
    border-left: 9px solid #050404;
    border-right: 9px solid #050404;
} */



/* --- 弹窗查询与续费表单 --- */

.query-btn-box {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
    justify-content: space-between;
    position: relative;
}
#modal-query .query-btn-box::before {
    content: "\e8e8";
    margin-right: 3px;
    vertical-align: 0px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}
#modal-balance .query-btn-box::before {
    content: "\e7be";
    margin-right: 3px;
    vertical-align: 0px;
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
#query-email, #balance-key {
    background: #00000080;
    border-radius: 10px 0 0 10px;
}
#query-email {
    padding: 0 30px;
}
#balance-key {
    padding: 0 42px 0 24px;
}
.balance-key-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.key-visibility-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    opacity: .7;
    transition: opacity .2s ease, background-color .2s ease;
}
.key-visibility-btn:hover,
.key-visibility-btn:focus-visible {
    background: rgb(255 255 255 / 8%);
    opacity: 1;
}
.key-visibility-btn img {
    display: block;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
#balance-key::-ms-reveal,
#balance-key::-ms-clear {
    display: none;
}
#modal-freekey .query-btn-box {
    flex-direction: column;
    gap: 10px;
}
#freekey-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 82px;
}
#freekey-info p:nth-child(3) {
    margin-bottom: 10px;
}
#renew-form {
    gap: 12px;
    flex-direction: column;
}
#renew-key, #renew-amount, #renew-email {
    background: #00000080;
    padding: 0 28px;
}
#renew-email {
    padding: 0 10px 0 28px;
}
#renew-form div {
    position: relative;
    width: 80%;
}
#renew-form div::before {
    top: 50%;
    transform: translateY(-50%);
}
#renew-form #renew-key-wrap::before {
    content: "\e7be";
    margin-right: 3px;
    vertical-align: 0px;
    position: absolute;
    left: 7px;
}
#renew-form #renew-amount-wrap::before {
    content: "\e60c";
    margin-right: 3px;
    vertical-align: 0px;
    position: absolute;
    left: 7px;
}
#renew-form #renew-email-wrap::before {
    content: "\e8e8";
    margin-right: 3px;
    vertical-align: 0px;
    position: absolute;
    left: 7px;
}

#balance-btn, #query-btn {
    border-radius: 0 10px 10px 0;
}

/* --- 查询结果与数据展示 --- */



/* 查询结果容器 */
#query-result, #renew-result {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px;
    margin-left: -20px;
    margin-right: -20px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#balance-result {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 14px 0 20px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
}
#freekey-result {
    display: flex;
    gap: 12px;
    flex-direction: column;
}
.item {
    background: rgb(0 0 0 / 20%);
    border-radius: 14px;
    padding: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.item>.row {
    display: flex;
    gap: 0;
    align-items: center;
}
.client-launcher-download {
    color: #00d26a;
    font-weight: 700;
    text-decoration: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 5'%3E%3Cpath fill='none' stroke='%2300d26a' stroke-width='1' stroke-linecap='round' d='M0 4 L2.5 1 L5 4 L7.5 1 L10 4 L12.5 1 L15 4 L17.5 1 L20 4'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 20px auto;
    padding-bottom: 4px;
	animation: waveMove 3s infinite linear;
}
.hint {
    font-size: 13px;
    color: #ff3d00;
    background: #ff3d001c;
    padding: 0 8px;
    border-radius: 8px;
    height: 28px;
    line-height: 28px;
    margin-right: 10px;
    display: none;
}
.hint span:nth-child(2) {
    color: #99e640;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgb(0 0 0 / 30%), rgb(0 0 0 / 30%));
}
.table-wrap {
    margin-left: -5px;
    margin-right: -5px;
}
.table-wrap h4 {
    font-size: 14px;
    margin: 0 20px;
    padding: 10px 0;
    font-weight: 100;
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 0px solid #333;
}
.stat {
    flex: 1 0 calc(33.333% - 8px);
    min-width: 0;
    background: #333;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
  	font-size: 13px;
  	font-weight:700;
}

.stat:nth-child(1) {
    background-color: color-mix(in oklab, oklch(72.3% .219 149.579) 20%, transparent);
    color: oklch(72.3% .219 149.579);
}
.stat:nth-child(2) {
    background-color: color-mix(in oklab, oklch(62.7% .265 303.9) 30%, transparent);
    color: oklch(0.7 0.22 306.22);
}
.stat:nth-child(3) {
    background-color: color-mix(in oklab, oklch(70.5% .213 47.604) 20%, transparent);
    color: oklch(70.5% .213 47.604);
}
.stat:nth-child(4) {
    background-color: color-mix(in oklab, oklch(58.5% .233 277.117) 30%, transparent);
    color: oklch(0.62 0.22 278.06);
}
.stat:nth-child(5) {
    background: #008eff3d;
    color: #2398f5;
}
.stat:nth-child(6) {
    background: #ff00002b;
    color: #ff2424;
}
.stat b {
  	display:block;
  	margin-bottom:0px;
}
.stat span {
	  max-width: 108px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
/*     text-overflow: ellipsis; */
}
.stat-sub {
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.35;
    opacity:.85;
    white-space:normal;
    display: none;
}
.row>span {
    flex: 0 0 auto;
    white-space: nowrap;
}
.row code {
    background: rgb(0 0 0 / 38%);
    margin-right: 10px;
    padding: 0 8px;
    height: 28px;
    line-height: 28px;
    border-radius: 8px;
    font-size: 13px;
    color: #99e640;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width:80px;
}
.row p {
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 auto;
}


table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}
th, td {
    text-align:left;
    padding: 6px 5px;
    border-bottom:1px solid #333;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.placeholder {
    color:#999;
    font-size:14px;
    padding:30px 0;
    text-align:center;
}
/* 查询密钥是金额变化时闪烁 */
.stat span.money-flash{animation:moneyFlash 2s ease;}
@keyframes moneyFlash{0%{color:#00e5ff;text-shadow:0 0 8px rgba(0,229,255,.55)}100%{color:inherit;text-shadow:none}}
tr.usage-row-flash td{animation:usageRowFlash 2s ease;}
@keyframes usageRowFlash{0%{color:#00e5ff;text-shadow:0 0 8px rgba(0,229,255,.55);background:rgba(0,229,255,.2)}100%{color:inherit;text-shadow:none;background:transparent}}


/* --- 扫码支付 --- */

#qrcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
#qrcode-box img {
    width:280px;
    height:280px;
}
#qrcode-box>p:not(.tip) {
    font-size: 1.1em;
    font-weight: 700;
}
#qrcode-box>p span {
	color: #00d26a;
}
.tip {
    font-size: 14px;
    font-weight: 600;
}
.tip span {
    color: #ff3d00 !important;
    font-weight: 700;
}


/* --- 支付成功 --- */

#success-content {

}


/* --- 通知图标 --- */

.notice-ico::before, .tl-text::before {
    content: "\e719";
    font-size: 1.1em;
    margin-right: 5px;
    vertical-align: 0px;
}

/* --- 顶部 Toast 通知 --- */

#toast-wrap {
    position: fixed;
    top: 0;
    right: 10px;
    display: flex;
    z-index: 200;
    pointer-events: none;
    width: auto;
    flex-direction: column;
    justify-content: center;
}
.toast {
	margin-top:10px;
	padding:10px 10px;
	border-radius:12px;
	font-size:14px;
	color:#fff;
	background:#333;
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
	box-shadow:0 4px 12px rgba(0,0,0,0.15);
	opacity:0;
	transform:translateY(-12px);
	transition:all 0.25s ease;
}
.toast::before {
    content: "\e719";
    font-size: 1.1em;
    margin-right: 5px;
    vertical-align: 0px;
}
.toast.show {
	opacity:1;
	transform:translateY(0);
}
.toast.error {
	background:rgb(188 45 0 / 69%);
}
.toast.success {
	background:rgb(55 0 153 / 69%);
}

/* ========================================================================== */
/* 05. 模型广场
 * 对应 #modal-models、筛选工具栏、模型卡片和可用性灯条。
 * ========================================================================== */


/* --- 广场弹窗与筛选工具栏 --- */

#modal-models .modal-box {
	max-width: 1122px;
    min-height: 88vh;
}
#models-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    justify-content: space-between;
    flex-shrink: 0;
}
.search-box {
    position: relative;
    flex: 1 1 160px;
    min-width: 140px;
}
.search-box::before {
    content: "\eda2";
    font-size: 1.1em;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.search-box input {
    width: 100%;
    padding-right: 28px;
    background: rgb(255 255 255 / 15%);
    padding: 0px 30px;
}
.search-box input:focus {
    /*box-shadow: 0 0 0 3px rgb(255 255 255 / 15%);*/
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 10%);
    width: 20px;
    height: 20px;
    border-radius: 8px;
}
.search-clear-btn:hover { 

}

.custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    /*min-width: 120px;*/
    text-align: left;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgb(255 255 255 / 15%);
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.custom-select-label.selected {
    color: #00d26a;
    /*font-weight: 600;*/
}
.custom-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: calc(100% + 30px);
    max-height: 300px;
    overflow-y: auto;
    background: #221529;
    border-radius: 13px;
    padding: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.custom-select-option.active {
    color: #00d26a;
    font-weight: 100;
}
.custom-select-arrow {
    font-size: 0;
    opacity: 1;
    transition: transform 0.15s ease;
    width: 6px;
    height: 6px;
    margin-right: 0px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(0deg);
}
.custom-select.open .custom-select-arrow { transform: rotate(45deg); }
.custom-select { position: relative; }
.custom-select.open .custom-select-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-select-option {padding: 6px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.custom-select-option:hover, .custom-select-option.active { background: rgb(255 255 255 / 10%); }
#models-toolbar label {
    display: none;
}

/* --- 模型卡片 --- */

#models-grid {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 0 14px 0 20px;
    margin-left: -20px;
    margin-right: -20px;
    flex: 1;
    min-height: 0;
}
.model-card {
	display: flex;
    position: relative;
	flex-direction: column;
	background: #17171c;
	border-radius: 14px;
	/*overflow: hidden;
	height: 300px;*/
    max-width: 260px;
    min-width: 240px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
 /* 固定高度，保证卡片整齐，内容多的截断、少的留白 */
    margin: 0 auto;
}
.model-card:hover {
    transform: translateY(0px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.model-card:hover .model-icon {
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(180deg, rgb(158 0 185 / 25%), rgba(0, 0, 0, 0));
}
.model-card-top {
	position: absolute;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
    width: 100%;
	padding: 0 10px;
	top: 10px;
	font-weight: 600;
}
.tag-vendor {
    font-size: 11px;
    border-radius: 8px;
    padding: 4px 8px;
    min-height: 18px;
    background: rgba(0, 0, 0, 0.35);
    color: rgb(100, 116, 139);
    background: rgba(100, 116, 139, 0.12);
}
.tag-category {
    font-size: 11px;
    border-radius: 8px;
    padding: 4px 8px;
    color: rgb(100, 116, 139);
    background: rgba(100, 116, 139, 0.08);
}
.model-icon {
	height: 74px;
    padding: 10px 0 0 0;
    border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(158,0,185,0.12), rgba(0,0,0,0));
	font-size: 32px;
	color: rgba(255,255,255,0.85);
}
  /* 图标本体交给外部 iconfont 的 ::before 规则去插入，这里只留一个居中的挂载点 */

.model-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 5px 10px 10px;
	min-height: 0;
    gap: 5px;
}
.model-name {
	font-weight: 600;
	font-size: 15px;
	word-break: break-all;
	
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.model-vendor-line {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}
.model-desc {
	font-size: 12px;
	color: rgb(255 255 255 / 45%);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/*min-height: 3.9em;*/
 /* 没有摘要时留出等高的空白，保证卡片不会参差不齐 */
}
.model-price-list {
	font-size: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* background: hsl(0 0% 92% / 0.05);
    padding: 6px 8px; */
    border-radius: 10px;
    position: relative;
}
.model-price-lines {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
    flex: 1;
}
.model-official-rate {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50px;
    height: 50px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    line-height: 1.2;
    color: #fff;
    /*text-shadow: 0 1px 2px rgb(80 0 18 / 55%);*/
    background: url("./img/official-discount.svg") center / contain no-repeat;
    white-space: nowrap;
    left: -5px; 
}
.model-official-rate::before {
    width: 32px;
    height: 32px;
    content: '';
    position: absolute;
    border-radius: 100%;
}
.model-official-rate .tooltip {
    left: auto;
    right: 0;
    bottom: calc(100% + 6px);
    border-radius: 8px 8px 0px 8px;
    background: rgb(249 31 62 / 86%);
}
.model-official-rate:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.price-line {
	display: flex;
	align-items: baseline;
	gap: 0px;
	color: rgb(255 255 255 / 45%);
    font-weight: 100;
}
.price-line span {
	/* color: #888;
	min-width: 62px; */
}
.price-line b {
	color: #f0b90b;
	font-weight: 100;
    margin-right: 5px;
    margin-left: -6px;
}
.price-line i {
    font-style: normal;
    color: #f0b90b;
    font-size: 12px;
    font-weight: 100;
}
.model-tags {
	margin: 3px 0 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.model-tags .tag {
	font-size: 11px;
	background: rgba(158,0,185,0.15);
	color: #c77dd6;
	border-radius: 6px;
	padding: 2px 4px;
	color: hsl(0 0% 92% / 0.50);
    background: hsl(0 0% 92% / 0.05);
}
.model-card:hover .model-tags .tag {
    /*background: rgb(0 142 255 / 20%);
    color: rgb(44 189 255);*/
}
.badge-billing {
	font-size: 11px;
	border-radius: 6px;
	padding: 2px 4px;
  margin-left: auto;
}
.badge-billing.usage {
	background: rgba(0,210,106,0.15);
	color: #00d26a;
}
.badge-billing.count {
	background: rgba(255,152,0,0.15);
	color: #ff9800;
}
.model-card-footer {
    position: relative;
	display: flex;
	gap: 8px;
	padding: 10px 10px;
	border-top: 0px solid rgba(255,255,255,0.06);
    align-items: center;
}
.model-card-footer::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 15px;
    right: 15px;
    height: 0;
    border-bottom: 1px solid hsl(217 19% 24%);
}
.tooltip {
    position: absolute;
    bottom: 45px;
    left: 10px;
    background: rgb(55 0 153 / 88%);
    color: #fff;
    padding: 8px 8px;
    border-radius: 8px 8px 8px 0px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 999;
    font-size: 12px;
    font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.icon-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.btn-try {
	flex: 1;
    height: 28px;
    padding-right: 5px;
	border-radius: 8px;
	font-size: 13px;
	cursor: not-allowed;
	font-family: "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: hsl(211 100% 64%);
    background-color: hsl(211 100% 64% / .08);
}
.model-icon::before {
	font-size: 2em;
}
:is([class*="-gpt"], [class*="-o1"], [class*="-o2"], [class*="-o3"], [class*="-o4"])::before {
    content: "\fcc7";
}
:is([class*="-claude"])::before {
    content: "\e619";
}
:is([class*="-deepseek"])::before {
    content: "\e603";
}
:is([class*="-llama"])::before {
    content: "\ea0e";
}
:is([class*="-grok"])::before {
    content: "\e672";
}
:is([class*="-doubao"])::before {
    content: "\e600";
}
:is([class*="-seedance"])::before {
    content: "\e600";
}
:is([class*="-codex"])::before {
    content: "\10218";
}
:is([class*="-gemini"])::before {
    content: "\e607";
}
:is([class*="-kimi"])::before {
    content: "\e6a0";
}
:is([class*="-glm"])::before {
    content: "\e673";
}
/* --- 模型可用性灯条 --- */

.model-health-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-content: center;
    height: 28px;
    max-height: 28px;
    max-width: 93px;
    min-width: 48px;
    flex: 0 0 auto;
    gap: 1px;
    padding: 8px;
    border-radius: 8px;
    background: hsl(211 100% 64% / .08);
    overflow: hidden;
    cursor: default;
}
.model-health-strip span:nth-last-child(n+2):nth-last-child(-n+7) {
  display: none;
}
.model-health-strip .tooltip {
    left: 45px;
}
.model-health-strip:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.model-health-strip .hb {
  display: block;
  width: 5px;
  height: 5px;
  min-width: 5px;
  min-height: 5px;
  flex: 0 0 5px;               /* 和宽高一致，别写 0 0 2px */
  border-radius: 10px;
  opacity: 0.8;
}
.model-health-strip .hb.green  { background: #00d26a; }
.model-health-strip .hb.yellow { background: #ffc107; }
.model-health-strip .hb.red    { background: #f44336; }
.model-health-strip .hb.gray   { background: #5a6570; }

/* ========================================================================== */
/* 06. 公告时间线
 * 对应 #modal-announcement 与 .announcement-timeline。
 * ========================================================================== */

#modal-announcement .modal-box {
    max-width: 888px;
}
.announcement-timeline {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 20px;
    flex: 1;
    min-height: 0;
    padding: 0 14px 0 20px;
    margin-left: -20px;
    margin-right: -20px;

}
/* 删掉父级竖线（如果还有的话）
#modal-announcement .announcement-timeline::before { ... }
*/
.tl-item {
    position: relative;
    width: 50%;
    padding-bottom: 28px;
}
.tl-item:hover .tl-dot {
    background: #ff3d00;
    box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.9), 0 0 10px rgb(255 61 0 / 40%);
}
/* 每条自己的竖线段：随 article 一起滚 */
.tl-item::before {
content: "";
    position: absolute;
    top: 25px;
    bottom: 5px;
    width: 0px;
    background: rgba(120, 130, 145, 0.45);
    pointer-events: none;
    z-index: 0;
    border-right: 1px solid rgba(120, 130, 145, 0.45);
}
.tl-item--left {
  margin-right: auto;
  padding-right: 28px;
  padding-left: 0px;
  text-align: right;
}
.tl-item--right {
  margin-left: auto;
  padding-left: 28px;
  padding-right: 0px;
  text-align: left;
}
/* 左右条目的线都落在中轴 50% 上 */
.tl-item--left::before {
  right: 0;
  transform: translateX(50%);
}
.tl-item--right::before {
  left: 0;
  transform: translateX(-50%);
}
/* 最后一条：线只到圆点附近，避免多拖一截（可选） */
.tl-item:last-child {
  padding-bottom: 8px;
}
.tl-item:last-child::before {
  bottom: auto;
  height: 0px; /* 约等于圆点中心 */
}
/* 圆点压在线上 */
.tl-dot {
  position: absolute;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 1;
}
.tl-item--left .tl-dot {
  right: 0;
  transform: translateX(50%);
}
.tl-item--right .tl-dot {
  left: 0;
  transform: translateX(-50%);
}
.tl-dot--green {
  background: #34d399;
  box-shadow:
    0 0 0 4px rgba(15, 20, 25, 0.9),
    0 0 10px rgba(52, 211, 153, 0.4);
}
.tl-dot--gray {
  background: #6b7280;
  box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.9);
}
.tl-dot--yellow {
    background: #ffbf00;
    box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.9);
}
.tl-dot--red {
    background: #ff1100;
    box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.9);
}
.tl-card {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 100%;
}
.tl-text {
    font-size: 15px;
    line-height: 1.75;
    color: #e5e7eb;
    word-break: break-word;
    background: rgb(255 255 255 / 10%);
    padding: 15px;
    padding-left: 38px;
}
.tl-text::before {
    content: "\e719";
    font-size: 1.3em;
    margin-right: 5px;
    vertical-align: 0px;
    position: absolute;
    left: 15px;
    top: 33px;
}
.tl-item--left .tl-text {
    border-radius: 20px 5px 20px 20px;
    text-align: left;
}
.tl-item--right .tl-text {
    border-radius: 5px 20px 20px 20px;
}
.tl-time {
    display: block;
    margin-top: 0px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}
@media (max-width: 768px) {
    .announcement-timeline {
    margin-left: -12px;
    margin-right: -20px;
    padding: 0 12px 0 12px;
    }
    .tl-item,
    .tl-item--left,
    .tl-item--right {
    width: 100%;
    text-align: left;
    padding: 0 4px 24px 28px;
    }
    .tl-item::before,
    .tl-item--left::before,
    .tl-item--right::before {
    left: 10px;
    right: auto;
    transform: translateX(-50%);
    }
    .tl-item--left .tl-dot,
    .tl-item--right .tl-dot {
    left: 10px;
    right: auto;
    transform: translateX(-50%);
    }
    .tl-item--left .tl-text {
    border-radius: 5px 20px 20px 20px;
    font-size: 14px;
    }
  
}

/* ========================================================================== */
/* 07. 数据图表
 * 查询密钥结果中的近 24 小时 Tokens 曲线。
 * ========================================================================== */

.token-chart-wrap {
  margin: 12px 0 12px;
  padding: 12px 0 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(0 0 0 / 30%), rgb(0 0 0 / 30%));
}
.token-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0px;
  font-size: 13px;
  margin: 0 15px;
}
.token-chart-title {
  color: #7df9ff;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.token-chart-meta {
  color: rgba(180, 220, 240, 0.55);
  font-size: 12px;
}
.token-chart-stage {
  position: relative;
}
.token-chart-svg {
  display: block;
  width: 100%;
  height: 160px;
}
.token-chart-svg .grid-h,
.token-chart-svg .grid-v {
    stroke: rgb(3 169 244 /16%);
    stroke-width: .5;
    stroke-dasharray: 2 0;
}
.token-chart-svg .line {
  fill: none;
  stroke: #00e5ff;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.token-chart-svg .hover-dot {
  fill: #FF5722;
  stroke: #00d26a;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.9));
}
.token-chart-svg .axis-y,
.token-chart-svg .axis-x {
  fill: rgba(180, 220, 240, 0.5);
  font-size: 10px;
}
.token-tooltip {
  position: absolute;
  z-index: 5;
  /* min-width: 148px; */
  padding: 8px 10px;
  pointer-events: none;
  border-radius: 16px;
  background: rgba(4, 16, 28, 0.92);
  /* box-shadow: 0 0 16px rgba(0, 200, 255, 0.2); */
  color: #c8f7ff;
  font-size: 12px;
  line-height: 1.45;
}
.token-tooltip .tip-time {
  color: #7df9ff;
  margin-bottom: 4px;
  font-weight: 600;
}
.token-tooltip b {
  color: #fff;
  font-weight: 600;
}
.token-chart-empty {
  color: rgba(180, 220, 240, 0.5);
  font-size: 13px;
  padding: 20px 0;
  text-align: center;
}

/* ========================================================================== */
/* 08. 页面背景与轨道特效
 * 对应 .orbit-stage，以及当前 HTML 中预留的 hero-art / fountain 特效节点。
 * ========================================================================== */


/* --- 模型轨道背景 --- */

.orbit-stage {
  /* 全屏舞台：贴齐文档顶部(body 顶边)。垂直偏移只改 .orbit-ring.top / --orbit-y */
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100%;
  max-width: 100%;
  /* 横向溢出继续由 html/body 的 overflow-x: clip 统一裁剪 */
  overflow: visible;
  isolation: isolate;
  pointer-events: none;
  /* 层级：header(100) > #home(20) > 模型轨道舞台(10) */
  z-index: 10;
}
/* CSS 变量只提供初始状态；运行时 JS 直接写内联 transform，避免每帧触发全部节点的样式重算。 */
.orbit-stage {
  --orbit-y: 0px;
  --orbit-scale: 1;
  --orbit-angle: 0deg;
  --orbit-glow-scale: 1;
}

.connection-field {
  /* 全屏固定：不随页面滚动；不用 100vw，避免 DPI/zoom 出横向滚动条 */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  opacity: 0.74;
  /* 层级：模型轨道(3) > 连线(2) > 星空(1) */
  z-index: 2;
}

.connection-line {
  fill: none;
  stroke: rgba(255, 87, 34, 0.12);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: connection-flow 12s linear infinite;
}

.connection-line--green {
  stroke: rgba(0, 229, 160, 0.11);
  animation-delay: -4s;
}

.connection-line--violet {
  stroke: rgba(120, 80, 255, 0.11);
  animation-delay: -8s;
}

@keyframes connection-flow {
  0% { stroke-dashoffset: 200; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

.starfield {
  /* 全屏固定：不随页面滚动；不用 100vw，避免 DPI/zoom 出横向滚动条 */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  display: block;
  /* 最底层背景 */
  z-index: 1;
  /* 暂时隐藏 */
  display: none;
}
.starfield .star {
  pointer-events: none;
  will-change: transform, opacity;
}
.starfield .star-core {
  shape-rendering: geometricPrecision;
}

.orbit-ring {
  /* 模型轨道垂直位置只在这里调：top / --orbit-y */
  position: absolute;
  top: 25px;
  left: 50%;
  width: 1080px;
  height: 1080px;
  pointer-events: none;
  transform: translateX(-50%) translateY(var(--orbit-y)) scale(var(--orbit-scale));
  /* 层级：轨道模型 > connection-field > starfield */
  z-index: 3;
  transform-origin: center; /* 原地缩放；垂直位置只改 top / --orbit-y */
  will-change: transform;
  /* 轨道本体很大且会缩放：强制不把溢出贡献给页面滚动宽度 */
  contain: layout paint;
  opacity:1;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
  /* 光晕独立离心缩放：由 effects1.js 写 --orbit-glow-scale（相对父级的本地倍数） */
  transform: scale(var(--orbit-glow-scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow: 0 0 24px rgba(64, 196, 255, 0.35), 0 0 80px rgba(40, 160, 255, 0.12), inset 0 0 30px rgba(70, 190, 255, 0.08);
  box-shadow: 0 0 12px rgba(54, 194, 255, .00), 0 0 36px rgba(20, 126, 255, .34), 0 0 88px rgba(36, 72, 255, .2), 0 0 160px rgba(18, 48, 180, .1), inset 0 0 28px rgba(36, 72, 255, .12);
  opacity:.6;
}

.orbit-wheel,
.orbit-wheel > div {
  position: absolute;
  inset: 0;
}

.orbit-wheel {
  transform: rotate(var(--orbit-angle));
  will-change: transform;
  opacity: .8;
}

.orbit-wheel > div {
  transform: rotate(var(--angle));
  pointer-events: none;
}

.orbit-node {
  position: absolute;
  top: 8%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle))) rotate(calc(-1 * var(--orbit-angle)));
  transition: opacity .3s ease;
  will-change: transform;
}

.orbit-node:hover { z-index: 3; }

.orbit-node.orbit-node--dragging,
.orbit-stage.orbit-stage--dragging .orbit-node { cursor: grabbing; }

/* 参考页图标：默认只有很淡的青色投影，悬停时不缩放，只增强边框和光晕。 */
.orbit-node > div {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 33%;
  background: #1a1a22;
  background: rgb(255 255 255 / 8%);
  box-shadow: 0 0 0 1px rgba(180, 230, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.35);
  /*-webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);*/
  transition: box-shadow .3s ease, background .3s ease, transform .3s ease;
}

.orbit-node:hover > div {
  border-color: rgba(0, 202, 224, 0.3);
  box-shadow: 0 0 0 1px rgba(20, 126, 255, .54), 0 0 16px rgba(20, 126, 255, .44);
  transform: scale(1.08);
}

.orbit-node img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
}

/* 参考页标题：半透明白色过渡为青色，不额外叠加第二层文字光晕。 */
.orbit-node > span {
  max-width: 3.81rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.35);
  font-size: .55rem;
  line-height: 1.15;
  letter-spacing: .02em;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: none;
  opacity: 1;
  white-space: nowrap;
  transition: color .3s ease;
}

.orbit-node:hover > span { color: rgba(20, 126, 255, 1.00); }

.orbit-stage.orbit-stage--locked .orbit-node { cursor: default; }
.orbit-stage.orbit-stage--locked .orbit-node:hover { z-index: 1; }

/* 入场和高速旋转锁定期间，鼠标经过图标仍保持默认状态。 */
.orbit-stage.orbit-stage--locked .orbit-node:hover > div {
  border-color: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 0 12px rgba(54, 194, 255, 0.12));
}

.orbit-stage.orbit-stage--locked .orbit-node:hover > span {
  color: rgba(54, 194, 255, .58);
}

@media (prefers-reduced-motion: reduce) {
  .ambient-flow,
  .ambient-orb,
  .ambient-grid,
  .connection-line { animation: none; }
  .orbit-ring { transform: translateX(-50%) translateY(var(--orbit-y)) scale(1) !important; }
}

/* --- znnz-tool 网页体验浮窗 --- */
#modal-znnz-tool {
    background: rgb(0 0 0 / 88%);
    /*-webkit-backdrop-filter: blur(9px) saturate(130%);
    backdrop-filter: blur(9px) saturate(130%);*/
    display: flex;
    flex-direction: column;
    gap: 10px;
    perspective: 900px;
}
#modal-znnz-tool > .popup {
    position: relative;
    margin: 20px 0;
}
#modal-znnz-tool > .notice-ico {
    width: 695px;
    line-height: 1.6;
    text-align: center;
}
#modal-znnz-tool > .download > a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    background: #0021d9;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    position: relative;
    top: 13px;
}
#modal-znnz-tool > .download > a:hover {
    color: #ffffff;
    background: #bc2d00;
}
#modal-znnz-tool .znnz-tool-frame {
    display: block;
    width: 400px;
    height: 416px;
    margin: 0 auto;
    border: 0;
    transform-origin: center;
    transition: transform .16s ease-out;
    will-change: transform;
    zoom: 100%;
}

/* --- 预留字符画背景 --- */

#hero-art {
    pointer-events: none;
    user-select: none;
    justify-content: center;
    align-items: center;
    height: min(22vh, 180px);
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(#0000 0%, #000 22% 78%, #0000 100%);
    top: 25px;
    width: 100%;
    z-index: -1;
    opacity: 1;
    position: absolute;
}
#art {
    font-family: ui-monospace, "SF Mono", "Fira Code", "JetBrains Mono", Menlo, monospace;
    letter-spacing: 1px;
    color: #ff2800;
    opacity: .5;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1.3;
    white-space: pre;
}

/* --- 预留喷泉图标背景 --- */

#fountain {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}
.icon {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    will-change: transform;
    user-select: none;
    line-height: 1;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.icon.iconfont {
    font-family: "iconfont" !important;
    speak: never;
}


/* --- 首页home2 --- */
.home2 {
    position: relative;
    top: 20px;
    flex: 0 0 100%;
    width: 100%;
    min-height: 250px;
    isolation: isolate;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.home2 > .cascade-flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    overflow: visible;
    pointer-events: none;
    opacity: 1;
}
.home2 > .API-URL {
    position: absolute;
    top: -6px;
    color: #7c33ff;
    z-index: 1;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgb(255 255 255 / 8%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 1px 0px rgba(0, 0, 0, .35);
}
.home2 > .API-URL::before {
    content: '';
    background: #00d26a;
    width: 6px;
    height: 6px;
    border-radius: 10px;
    margin-right: 7px;
    margin-bottom: 2px;
    animation: hv-live-pulse 1.2s infinite;
}
@keyframes hv-live-pulse {
  0% {
      box-shadow: 0 0 #62c55599;
  }
  70% {
      box-shadow: 0 0 0 8px #62c55500;
  }
  
  100% {
      box-shadow: 0 0 #62c55500;
  }
}
.home2 > .cascade-Models {
    position: absolute;
    top: 96px;
    left: 50%;
    width: min(760px, calc(100% - 32px));
    height: 180px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}
.home2 > .cascade-Models > .cascade-model-card {
    position: absolute;
    top: 0;
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .39);
    font: .70rem / 1.00 "cmdpe2", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    text-align: center;
    white-space: nowrap;
    pointer-events: auto;
    transition: color .25s ease, filter .25s ease, opacity .25s ease;
    padding-top: 2px;
    
}

.home2 > .cascade-Models > .cascade-model-card:nth-child(1) {
    left: 32%;
    top: 0px;
    transform: translateX(-50%);
}
.home2 > .cascade-Models > .cascade-model-card:nth-child(2) {
    left: 39%;
    top: 0px;
    transform: translateX(-50%);
}
.home2 > .cascade-Models > .cascade-model-card:nth-child(3) {
    left: 46%;
    top: 0px;
    transform: translateX(-50%);
}
.home2 > .cascade-Models > .cascade-model-card:nth-child(4) {
    right: 46%;
    top: 0px;
    transform: translateX(50%);
}
.home2 > .cascade-Models > .cascade-model-card:nth-child(5) {
    right: 39%;
    top: 0px;
    transform: translateX(50%);
}
.home2 > .cascade-Models > .cascade-model-card:nth-child(6) {
    right: 32%;
    top: 0px;
    transform: translateX(50%);
}
.home2 > .cascade-Models .cascade-model-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 33%;
    background: rgb(255 255 255 / 8%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 15%), 0 4px 14px rgba(0, 0, 0, .35);
    transition: box-shadow .25s ease, background .25s ease;
    position: relative;
}
.home2 > .cascade-Models > .cascade-model-card.is-flowing .cascade-model-icon {
    transform: scale(1.05);
    background: rgb(0 221 112 / 20%);
    box-shadow: inset 0 1px 0 rgba(230, 255, 240, 0.13), inset 0 0 0 1px rgba(120, 230, 180, 0.13);
}
.home2 > .cascade-Models .cascade-model-icon::before {

}
.home2 > .cascade-Models .cascade-model-card.is-flowing > .cascade-model-icon::before {
    content: '';
    background: rgb(255 255 255 / 20%);
    width: 6px;
    height: 6px;
    border-radius: 10px;
    margin-right: 3px;
    position: absolute;
    right: -4px;
    bottom: 0;
    background: rgb(0 221 112 / 100%);
    animation: hv-live-pulse 1.2s infinite;
}
.home2 > .cascade-Models .cascade-model-icon img {
    display: block;
    width: 60%;
    height: 60%;
    object-fit: contain;
}
.home2 > .cascade-Models .cascade-model-card > span {
    text-overflow: ellipsis;
    position: relative;
}
.home2 > .cascade-Models .cascade-model-card.is-flowing > span {
    color: rgba(255, 255, 255, 0.80);
}
.home2 > .cascade-flow-actions {
    position: absolute;
    top: 160px;
    left: 50%;
    height: auto;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    transition: opacity .15s ease;
    flex-direction: column;
    padding: 10px 10px 10px;
    border-radius: 14px;
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 6px;
    grid-template-columns: repeat(3, auto);
    background: rgb(255 255 255 / 3%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    backdrop-filter: blur(6px) saturate(140%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 1px 0px rgba(0, 0, 0, .35);
}
.home2 > .cascade-flow-actions > h3 {
    width: 100%;
    grid-column: 1 / -1;
    font-size: 12px;
    margin-bottom: 0px;
    padding: 6px 0;
    border-radius: 8px;
    background: rgb(255 255 255 / 8%);
    color: #bdbdbd;
    margin: auto;
    display: none;
}
.home2 > .cascade-flow-actions > button {
  font-size: 12px;
    padding: 5px 0;
    width: 96px;
    border-radius: 8px;
    background: rgb(255 255 255 / 7%);
    color: #bdbdbd;
    letter-spacing: .02em;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    font-family: "cmdpe1", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: box-shadow .25s ease, background .25s ease;
}
.home2 > .cascade-flow-actions > button.is-flowing {
    background: rgb(0 221 112 / 20%);
    color: #fff;
}
.home2 > .cascade-flow-actions > button:hover,
.home2 > .cascade-flow-actions > button.is-active {
    background: rgb(0 221 112 / 20%);
    background: #bc2d00;
    color: #fff;
}
.home2 > .cascade-flow-actions > button::before {
    content: '';
    background: rgb(255 255 255 / 20%);
    width: 6px;
    height: 6px;
    border-radius: 10px;
    position: absolute;
    left: 8px;
}
.home2 > .cascade-flow-actions > button.is-flowing::before {
    background: rgb(0 221 112 / 100%);
    animation: hv-live-pulse 1.2s infinite;
}
.home2 > .cascade-code-examples .modal-box {
    max-width: min-content;
    text-align: left;
}
.home2 > .cascade-code-examples section[hidden] {
    display: none !important;
}
.home2 > .cascade-code-examples section {
    text-align: left;
    width: 100%;
    position: relative;
    min-width: 380px;
    padding: 0 0 34px 0;
}
.home2 > .cascade-code-examples section::before {
    content: 'gpt-6-astra • tokens:6699 • cost:$0.00081';
    position: absolute;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgb(103 58 183 / 45%);
    color: #c19fff;
    left: 0;
    bottom: 0;
    font-family: system-ui;
    font: 9px / 1.65 Consolas, "Cascadia Code", monospace;
}
.home2 > .cascade-code-examples #cascade-code-claude::before {
    content: 'claude-fable-5 • tokens:6699 • cost:$0.00081';
}
.home2 > .cascade-code-examples #cascade-code-gemini::before {
    content: 'gemini-3.7-flash • tokens:6699 • cost:$0.00081';
}
.home2 > .cascade-code-examples section::after {
    content: 'P99 • US-East • 86ms';
    position: absolute;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgb(98 197 85 / 15%);
    color: #7dd96e;
    right: 0;
    bottom: 0;
    font-family: system-ui;
    font: 9px / 1.65 Consolas, "Cascadia Code", monospace;
}
.home2 > .cascade-code-examples h3 {
    font-size: .9em;
}
.home2 > .cascade-code-examples .cascade-window-dots {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    display: none;
}
.home2 > .cascade-code-examples .cascade-window-dots > i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.home2 > .cascade-code-examples .cascade-window-dots > i:nth-child(1) {
    background: rgba(254, 188, 46, 0.92);
}
.home2 > .cascade-code-examples .cascade-window-dots > i:nth-child(2) {
    background: rgba(40, 200, 64, 0.92);
}
.home2 > .cascade-code-examples .cascade-window-dots > i:nth-child(3) {
    background: rgba(255, 95, 87, 0.92);
}
.home2 > .cascade-code-examples pre {
    margin-top: 12px;
    padding: 20px;
    overflow: auto;
    color: #00BCD4;
    font: 13px / 1.65 Consolas, "Cascadia Code", monospace;
    tab-size: 2;
    white-space: pre;
    overflow-wrap: normal;
}
.home2 > .cascade-code-examples pre::after {
    content: '';
    background: #161616;
    border-radius: 14px;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    bottom: 34px;
}
.home2 > .cascade-code-examples code {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    white-space: pre;
    text-overflow: clip;
    position: relative;
    z-index: 1;
}
.home2 > .cascade-code-examples .cascade-token--comment {
    color: #7d8590;
}
.home2 > .cascade-code-examples .cascade-token--string {
    color: #ffd84d;
}
.home2 > .cascade-code-examples .cascade-token--property,
.home2 > .cascade-code-examples .cascade-token--url {
    color: #00BFFF;
}
.home2 > .cascade-code-examples .cascade-token--keyword,
.home2 > .cascade-code-examples .cascade-token--option {
    color: #0077ff;
}
.home2 > .cascade-code-examples .cascade-token--command {
    color: #1fe0b0;
}
.home2 > .cascade-code-examples .cascade-token--number,
.home2 > .cascade-code-examples .cascade-token--punctuation {
    color: #8b949e;
}

@media (max-width: 640px) {
    .home2 {
        top: 10px;
    }
    .home2 > .cascade-Models {
        width: calc(100% + 300px);
        top: 100px;
    }
    .home2 > .cascade-Models > .cascade-model-card {
        width: 62px;
        font-size: .55rem;
    }
    .home2 > .cascade-Models .cascade-model-icon {
        width: 32px;
        height: 32px;
    }
    .home2 > .cascade-flow-actions > button {
        padding: 6px 8px;
        font-size: 12px;
    }
    .home2 > .cascade-code-examples section {
        min-width: auto;
        padding: 0 0 30px 0;
    }
    .home2 > .cascade-code-examples section::before {
        content: 'tokens:6699 • cost:$0.00081' !important;
    }
    .home2 > .cascade-code-examples pre {
        padding: 12px 12px 18px 12px;
    }
    .home2 > .cascade-code-examples pre::after {
        bottom: 42px;
    }
    .home2 > .cascade-code-examples .cascade-window-dots {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home2 > .cascade-code-examples,
    .home2 > .cascade-code-examples .modal-box {
        transition: none;
    }
}


/* ========================================================================== */
/* 09. 全局移动端适配
 * 首页、表单、弹窗、模型工具栏和数据区域的窄屏覆盖。
 * ========================================================================== */
 /*大屏手机 + 小平板*/
@media (min-width:641px) and (max-width:768px){

}
/*手机竖屏*/
@media (max-width: 640px) {
    ::-webkit-scrollbar-thumb:vertical {
        min-height: auto;
    }
    ::-webkit-scrollbar-thumb:horizontal {
        min-width: auto;
    }
	body {
        letter-spacing: 0;
        zoom: 100%;
        font-size: 14px;
	}
	.orbit-ring {
		top: 10px
	}
	#hero-art {
		opacity: 0;
	}
	#line-svg {
	    display: none !important;
	}
	#home {
		top: 150px;
	}
    .home1 {
        gap: 8px;
    }
	.home1 h1 {
		font-size: 3em;
	}
	.home1 h2 {
		margin-top: -10px;
		font-size: 2em;
		margin-bottom: 5px;
	}
	.home1 .p1 {
		font-size: 14px;
	}
	#form-box {
		width: 70vw;
		padding: 0 10px;
		margin: 0 auto;
		gap: 12px;
		flex-direction: column;
	}
	#form-box > div {
		width: 100%;
	}
	.form-input:nth-child(1)::before {
		left: 7px;
	}
	#amount {
		padding-left: 26px;
	}
	#email {
		padding-left: 28px;
	}
	#submit-btn {
		flex: 1;
	}
	#submit-btn::before {
		margin-right: 6px;
	}
	.home1 .p2 {
		font-size: 14px;
	}
    .modal-overlay {
        padding: 10px;
    }
    .modal-box {
        padding: 14px 12px 20px;
        margin: 0;
        max-height: 82vh;

        --sq: 6px;
        --rw: 6px;
        --rh: 3px;
        --c1: 6px;
        --c2: 8px;
        --nd: 6px;
        --nh: 2px;
        --ny: 46px;
    }
    /*
    .modal-box::before {
        height: 5px;
        border-left: 6px solid #050404;
        border-right: 6px solid #050404;
    }
    .modal-box::after {
        height: 6px;
        border-left: 6px solid #050404;
        border-right: 6px solid #050404;
    }*/
    .modal-box-bj::before {
        left: 6px;
        right: 6px;
        height: 2px;
        border-left: 6px solid #050404;
        border-right: 6px solid #050404;
    }
    .modal-box-bj::after {
        bottom: 6px;
        left: 6px;
        right: 6px;
        height: 6px;
        border-left: 6px solid #050404;
        border-right: 6px solid #050404;
    }

    #modal-balance .modal-box {
        max-width: calc(100% - 0px);
        min-width: auto;
        padding: 16px 12px 20px !important;
    }

    .modal-overlay h2::before, .modal-overlay h3::before {
        left: -15px;
    }
    .modal-overlay h2::after, .modal-overlay h3::after {
        left: -16px;
        right: -16px;
        height: 2px;
    }
	.modal-close {
		right: 12px;
		top: 12px;
	}
    .modal-overlay h2, .modal-overlay h3 {
        padding-bottom: 12px;
    }
    #query-result, #renew-result {
        padding: 0px 12px 0 12px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .item {
        padding: 12px;
    }

    #models-toolbar {
        gap: 6px;
        justify-content: flex-start;
    }
    button#search-clear {
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
    #models-grid {
        padding: 0 6px 0 12px;
        margin-left: -12px;
        margin-right: -12px;
    }
	.token-chart-svg {
		height: 130px;
	}
	.table-wrap {
		overflow-x: auto;
		overflow-y: hidden;
		min-height: 50px;
        margin-left: 0;
        margin-right: 0;
	}
    .table-wrap h4 {
        display: none;
    }
    #modal-znnz-tool > .popup {
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin: 10px 0;
    }
    #modal-znnz-tool .znnz-tool-frame {
        zoom: 85%;
    }
    #modal-znnz-tool > .notice-ico {
        width: 100%;
    }
    #modal-znnz-tool .modal-close {
        top: -30px;
        right: 0px;
    }
    #balance-result {
        padding: 0 6px 0 12px;
        margin-right: -12px;
        margin-left: -12px;
    }
    .row p {
        overflow: hidden;
    }

    .announcement-timeline {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px 0 12px;
    }

}

