/* 品牌页样式：首页（landing）、登录、注册。
   只在 <body class="brand-site"> 的页面生效，员工"我的邮箱"页仍然用 staff.css。
   颜色：午夜蓝做底，金色只用在光标、主按钮和细线上。 */

.brand-site {
  --night: #0A1A30;      /* 主背景 */
  --night-2: #10243F;    /* 稍亮的面 */
  --gold: #D6B36A;       /* 唯一的强调色 */
  --gold-deep: #B8944C;
  --snow: #EEF1F6;       /* 深色背景上的正文 */
  --mist: #93A1B6;       /* 次要文字 */
  --rule: rgba(238, 241, 246, .12);
  --paper: #FFFFFF;      /* 表单区 */
  --ink: #0A1A30;
  --ink-soft: #5B6779;
  --field: #D5DAE2;

  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans", "Noto Sans CJK SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.brand-site a { color: inherit; }
.brand-site a:hover { text-decoration: none; }
.brand-site.auth-page { background: var(--paper); }
.lp-h2, .lp-statement, .lp-final-title, .auth-title, .lp-sub, .lp-statement-sub { text-wrap: balance; }
/* 中文大标题只在标点和空格处换行，不把一个词拆到两行 */
.lp-title, .lp-h2, .lp-statement, .lp-final-title, .auth-title { word-break: keep-all; overflow-wrap: anywhere; }
.brand-site :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- AI68 标志 ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--snow) !important; line-height: 1; }
.logo-mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.logo-a, .logo-line { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; }
.logo-a { stroke-width: 3.6; }
.logo-line { stroke-width: 3.2; }
.logo-spark { fill: #F4E2B8; transform-box: fill-box; transform-origin: center; }
.logo-text { font-size: 23px; font-weight: 800; letter-spacing: .01em; }
.logo-68 { color: var(--gold); }
/* 打开页面时标志自己画出来，星芒亮起，之后每隔几秒闪一下 */
.logo-a { stroke-dasharray: 100; animation: logo-draw .9s .1s cubic-bezier(.6,0,.2,1) both; }
.logo-line { stroke-dasharray: 100; animation: logo-draw .7s .75s cubic-bezier(.6,0,.2,1) both; }
.logo-spark { animation: logo-pop .5s 1.3s cubic-bezier(.3,1.6,.5,1) both, logo-twinkle 6s 2.5s ease-in-out infinite; }
@keyframes logo-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes logo-pop { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes logo-twinkle { 0%, 88%, 100% { transform: scale(1) rotate(0); } 94% { transform: scale(1.35) rotate(45deg); } }

/* ---------- 按钮 ---------- */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 0 28px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.b-btn-gold { background: var(--gold); color: var(--night) !important; }
.b-btn-gold:hover { background: #E2C27E; }
.b-btn-ghost { border-color: rgba(238, 241, 246, .35); color: var(--snow) !important; }
.b-btn-ghost:hover { border-color: var(--snow); }
.b-btn-ink { background: var(--ink); color: #fff !important; }
.b-btn-ink:hover { background: #17304F; }
.b-btn-sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.b-btn-block { width: 100%; }
.b-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 顶栏 ---------- */
.b-top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; height: 76px; padding: 0 clamp(20px, 5vw, 64px); }
.b-top-right { display: flex; align-items: center; gap: 18px; }
.b-link { font-size: 15px; color: var(--snow) !important; opacity: .85; }
.b-link:hover { opacity: 1; }

/* 语言菜单（深色背景） */
.brand-site .lang summary { border-color: var(--rule); color: var(--snow); font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.brand-site .lang summary:hover { border-color: rgba(238, 241, 246, .35); }
.brand-site .lang .menu { background: var(--night-2); border-color: var(--rule); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  top: 40px; z-index: 20; }
.brand-site .lang .menu a { color: var(--snow); }
.brand-site .lang .menu a:hover { background: rgba(238, 241, 246, .06); text-decoration: none; }
.brand-site .lang .menu a.on { background: rgba(214, 179, 106, .14); color: var(--gold); }

/* ---------- 首页 ---------- */
.lp-inner { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.lp-hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-start; padding: clamp(120px, 17vh, 180px) 0 0; }
.lp-hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 0; }
.lp-hero-art .art, .auth-art .art, .lp-final-art .art { display: block; width: 100%; height: 100%; }
.lp-hero .lp-inner { position: relative; z-index: 1; width: 100%; }
.lp-title { margin: 0; font-size: clamp(42px, 7.4vw, 96px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.025em; max-width: 17em; }
.lp-line { display: block; text-wrap: balance; }
.lp-line + .lp-line { color: var(--mist); }
.lp-sub { margin: 32px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: var(--mist); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }


/* 打字效果（只有在支持动画、且用户没有关闭动画时才启用） */
.lp-title .ch { opacity: 0; }
.lp-title .ch.on { opacity: 1; }
.lp-caret { display: inline-block; width: .08em; height: .92em; margin-left: .06em; vertical-align: -.1em;
  background: var(--gold); border-radius: 2px; }
.lp-caret.done { animation: lp-blink 1.1s steps(1) 3; }
@keyframes lp-blink { 50% { opacity: 0; } }

.lp-section { padding: clamp(72px, 10vw, 128px) 0; background: var(--night-2); }
.lp-section + .lp-section { border-top: 1px solid var(--rule); }
.lp-h2 { margin: 0 0 clamp(36px, 5vw, 56px); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.25; font-weight: 700;
  letter-spacing: -.015em; max-width: 20em; }

/* 效率 → 产出 → 收入：一条因果链，用细金线连起来 */
.lp-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.lp-chain li { position: relative; padding: 28px 40px 0 0; border-top: 1px solid var(--gold); }
.lp-chain li + li { padding-left: 40px; }
.lp-chain li + li::before { content: ""; position: absolute; left: -6px; top: -6px; width: 11px; height: 11px;
  border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); background: var(--night-2); }
.lp-chain h3, .lp-steps h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; font-weight: 600; }
.lp-chain p, .lp-steps p { margin: 0; color: var(--mist); font-size: 16px; line-height: 1.75; max-width: 24em; }

.lp-chain .art-card { display: block; width: auto; max-width: 100%; height: 150px; margin: 0 0 18px -8px; }

/* 差距不在人，在工具 */
.lp-gap-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.art-globe { display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; }
.lp-gap { background: var(--night); }
.lp-statement { margin: 0; font-size: clamp(32px, 5.2vw, 64px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 15em; }
.lp-statement-sub { margin: 28px 0 0; max-width: 32em; color: var(--mist); font-size: clamp(17px, 1.5vw, 19px); }

/* 三步开始 */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.lp-step-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.art-icon { width: 46px; height: 46px; flex: none; }
.lp-num { display: block; font-size: 44px; line-height: 1; font-weight: 300; color: var(--gold);
  font-variant-numeric: lining-nums; }

.lp-final { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 160px) 0 clamp(160px, 18vw, 240px); text-align: center; background: var(--night); }
.lp-final .lp-inner { position: relative; z-index: 1; }
.lp-final-art { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 0; opacity: .9; }
.lp-final-title { margin: 0 auto 40px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 16em; }

.lp-footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; background: var(--night); }
.lp-footer .lp-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-footer p { margin: 0; color: var(--mist); font-size: 14px; }
.lp-footer .wordmark { font-size: 16px; }

/* ---------- 登录 / 注册 ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px clamp(28px, 4.5vw, 64px) 64px; background: var(--night); }
.auth-brand-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.auth-lang-mobile { display: none; }
.auth-brand { justify-content: flex-start; }
.auth-brand-text { position: relative; z-index: 1; margin-top: clamp(48px, 12vh, 140px); }
.auth-art { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 0; }
.auth-title { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; max-width: 11em; }
.auth-sub { margin: 20px 0 0; color: var(--mist); font-size: clamp(17px, 1.4vw, 19px); max-width: 26em; }

.auth-panel { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.auth-panel-top { display: flex; justify-content: flex-end; padding: 22px clamp(24px, 4vw, 48px) 0; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 40px clamp(24px, 4vw, 48px) 64px; box-sizing: content-box; }
.auth-form h1 { margin: 0 0 32px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.auth-form label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-form label .muted { font-weight: 400; color: var(--ink-soft); }
.auth-form input { display: block; width: 100%; margin-top: 8px; height: 50px; padding: 0 16px; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff; border: 1px solid var(--field); border-radius: 12px; box-sizing: border-box; }
.auth-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 26, 48, .12); }
.auth-form .code-row { display: flex; gap: 10px; margin-top: 8px; }
.auth-form .code-row input { margin-top: 0; }
.auth-form .code-row button { height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--field); background: #fff;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.auth-form .code-row button:hover:not(:disabled) { border-color: var(--ink); }
.auth-form .b-btn-block { margin-top: 12px; min-height: 52px; }
.auth-form .flash { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.auth-switch { margin: 28px 0 0; text-align: center; font-size: 15px; }
.auth-switch a { color: var(--ink) !important; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* 表单区里的语言菜单（浅色背景） */
.auth-panel .lang summary { color: var(--ink); border-color: var(--field); }
.auth-panel .lang summary:hover { border-color: var(--ink-soft); }
.auth-panel .lang .menu { background: #fff; border-color: var(--field); box-shadow: 0 16px 40px rgba(10, 26, 48, .12); }
.auth-panel .lang .menu a { color: var(--ink); }
.auth-panel .lang .menu a:hover { background: #F2F4F7; }
.auth-panel .lang .menu a.on { background: #F6EFDF; color: #7A5D22; }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .lp-chain, .lp-steps { grid-template-columns: 1fr; gap: 0; }
  .lp-chain li, .lp-chain li + li { padding: 24px 0 28px 0; border-top: 0; border-left: 1px solid var(--gold); padding-left: 24px; }
  .lp-chain li + li::before { left: -6px; top: -6px; transform: rotate(135deg); }
  .lp-steps li { padding: 28px 0; border-top: 1px solid var(--rule); }
  .lp-steps li:first-child { border-top: 0; padding-top: 0; }
  .lp-num { font-size: 36px; margin-bottom: 12px; }

  .lp-gap-grid { grid-template-columns: 1fr; gap: 24px; }
  .art-globe { max-width: 420px; margin: 0 auto; }
  .lp-chain .art-card { height: 130px; }
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { height: 150px; }
  .auth-brand { padding: 20px 20px 168px; min-height: 0; }
  .auth-brand-text { margin: 36px 0 0; }
  .auth-title { font-size: clamp(30px, 8.5vw, 40px); }
  .auth-sub { margin-top: 12px; font-size: 16px; }
  .auth-lang-mobile { display: block; }
  .auth-panel-top { display: none; }
  .auth-form { margin: 0 auto; padding: 32px 20px 56px; max-width: 480px; box-sizing: border-box; }
  .auth-form h1 { font-size: 26px; margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .b-top { height: 64px; padding: 0 16px; }
  .b-top-right { gap: 10px; }
  .b-top .b-link { display: none; }
  .wordmark { font-size: 17px; }
  .lp-hero { padding: 104px 0 0; min-height: 100vh; min-height: 100svh; }
  .lp-hero-art { height: 42%; }
  .lp-title { font-size: clamp(30px, 8.6vw, 42px); }
  .lp-actions .b-btn { flex: 1 1 100%; }
  .lp-footer .lp-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
/* ---------- 插画动画 ---------- */
/* 只让会动的元素以自身为中心缩放/移动；其他元素保持原坐标，避免人物、标志错位 */
.art-pulse, .art-bar, .art-node, .art-coin, .art-float, .art-type, .art-stack, .art-drop { transform-box: fill-box; }
.art-win { animation: art-win 9s ease-in-out infinite; }
@keyframes art-win { 0%, 100% { opacity: .85; } 45% { opacity: .85; } 55% { opacity: .08; } 80% { opacity: .08; } }
.art-blink { animation: art-blink 2.4s steps(1) infinite; }
@keyframes art-blink { 50% { opacity: .15; } }
.art-star { animation: art-star 5s ease-in-out infinite; }
@keyframes art-star { 50% { opacity: .05; } }
.art-pulse { transform-origin: center; animation: art-pulse 2.6s ease-out infinite; }
@keyframes art-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.art-flow { stroke-dasharray: 5 9; animation: art-flow 3s linear infinite; }
@keyframes art-flow { to { stroke-dashoffset: -56; } }
.art-draw { stroke-dasharray: 100; animation: art-draw 7s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes art-draw { 0% { stroke-dashoffset: 100; } 35%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.art-bar { transform-origin: bottom; animation: art-bar 7s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes art-bar { 0% { transform: scaleY(0); } 30%, 92% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.art-node { transform-origin: center; animation: art-node 1.8s ease-in-out infinite; }
@keyframes art-node { 50% { transform: scale(1.7); } }
.art-coin { animation: art-bob 3.2s ease-in-out infinite; }
.art-float { animation: art-bob 3.6s ease-in-out infinite; }
@keyframes art-bob { 50% { transform: translateY(-7px); } }
.art-screen { animation: art-screen 4s ease-in-out infinite; }
@keyframes art-screen { 50% { opacity: .7; } }
.art-type { transform-origin: left; animation: art-type 4.2s ease-out infinite; }
@keyframes art-type { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.art-spin { transform-box: view-box; transform-origin: 0 0; animation: art-spin 1.6s linear infinite; }
.art-spin-slow { transform-box: view-box; transform-origin: 0 0; animation: art-spin 9s linear infinite; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.art-stack { animation: art-stack 6s cubic-bezier(.3,1.2,.5,1) infinite; }
@keyframes art-stack { 0% { transform: translateY(-40px); opacity: 0; } 12%, 88% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }
.art-drop { animation: art-drop 6s cubic-bezier(.4,1.4,.6,1) infinite; }
@keyframes art-drop { 0% { transform: translateY(-50px); opacity: 0; } 10%, 90% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }
/* 首屏插画：打开页面时整体从下面浮上来（只这一次） */
.lp-hero-art .art, .auth-art .art { animation: art-rise 1.4s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes art-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .b-btn { transition: none; }
  .lp-caret.done { animation: none; }
  .art *, .art, .logo-mark * { animation: none !important; }
  .logo-a, .logo-line { stroke-dasharray: none; }
}

/* =====================================================================
   登录后的页面（等待审核、主页面、出错页）
   ===================================================================== */
.page-app { min-height: 100vh; display: flex; flex-direction: column; }
.b-top.is-static { position: relative; border-bottom: 1px solid var(--rule); background: var(--night); }
.b-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; cursor: pointer; }
.page-app .wrap { flex: 1; width: 100%; }
.page-app .card { background: var(--night-2); border-color: var(--rule); color: var(--snow); border-radius: 16px; padding: 32px; }
.page-app .card h1 { color: var(--snow); font-size: 24px; }
.page-app .card a { color: var(--gold); }

/* 表单里的下拉框和提示 */
.auth-form select.b-select { display: block; width: 100%; margin-top: 8px; height: 50px; padding: 0 44px 0 16px; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230A1A30' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid var(--field); border-radius: 12px; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.auth-form select.b-select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 26, 48, .12); }
.auth-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #F6EFDF; color: #6E5420; font-size: 14px; line-height: 1.55; }

/* ---------- 等待审核 ---------- */
.pend { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px, 8vh, 96px) 20px 0; min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); }
.pend-panel { position: relative; z-index: 1; width: 100%; max-width: 560px; text-align: center; }
.pend-timer { width: 112px; height: 112px; margin: 0 auto 28px; }
.pend-timer svg { width: 100%; height: 100%; overflow: visible; }
.pend-track { fill: none; stroke: var(--rule); stroke-width: 3; }
.pend-arc { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 78;
  transform-origin: 60px 60px; animation: pend-spin 2.4s linear infinite; }
.pend-glass { fill: none; stroke: var(--snow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.pend-sand { fill: var(--gold); transform-origin: 60px 80px; animation: pend-sand 2.4s ease-in-out infinite; }
.pend-arc-full { fill: none; stroke: var(--gold); stroke-width: 3; }
.pend-check { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pend-spin { to { transform: rotate(360deg); } }
@keyframes pend-sand { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.pend-hello { margin: 0; color: var(--gold); font-weight: 600; font-size: 17px; }
.pend-title { margin: 10px 0 16px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.pend-body { margin: 0 auto; max-width: 30em; color: var(--mist); font-size: 17px; line-height: 1.75; text-wrap: balance; }
.pend-eta { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 32px 0 0; padding: 16px 32px;
  border: 1px solid rgba(214, 179, 106, .45); border-radius: 16px; background: rgba(214, 179, 106, .06); }
.pend-eta-value { font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1.2; }
.pend-eta-label { font-size: 14px; color: var(--mist); }
.pend-note { margin: 20px 0 0; font-size: 14px; color: var(--mist); }
.pend-actions { margin-top: 32px; }
.pend-art { position: relative; width: calc(100% + 40px); margin: auto -20px 0; height: clamp(180px, 34vh, 360px); }
.pend-art .art { display: block; width: 100%; height: 100%; }

/* ---------- 主页面 ---------- */
.dash { flex: 1; display: flex; flex-direction: column; }
.dash-inner { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); width: 100%; box-sizing: border-box; }
.dash-head { padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule);
  background: radial-gradient(ellipse at 85% 0%, rgba(214, 179, 106, .10), rgba(214, 179, 106, 0) 55%); }
.dash-head-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.dash-hello { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dash-lead { margin: 12px 0 0; color: var(--mist); font-size: clamp(16px, 1.4vw, 18px); }
.dash-apply { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 360px; }
.dash-apply-btn { min-height: 56px; padding: 0 32px; font-size: 17px; }
.dash-apply-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dash-apply-btn:disabled { background: rgba(238, 241, 246, .1); color: var(--mist) !important; opacity: 1; }
.dash-apply-note { margin: 0; font-size: 14px; color: var(--mist); text-align: right; line-height: 1.5; }
.dash-apply-note.is-wait { color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 50% { opacity: .25; } }

.dash-body { padding: clamp(28px, 4vw, 44px) 0 80px; flex: 1; }
.dash-flash { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; font-size: 15px; border: 1px solid; }
.dash-flash.ok { background: rgba(70, 180, 120, .1); border-color: rgba(70, 180, 120, .35); color: #9BE0B8; }
.dash-flash.error { background: rgba(232, 106, 90, .1); border-color: rgba(232, 106, 90, .35); color: #F3B1A8; }
.dash-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-list-head h2 { margin: 0; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.dash-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 999px; background: rgba(214, 179, 106, .16); color: var(--gold); font-size: 14px; }
.dash-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mist); }
.dash-live .dot { background: #5FD39A; }

/* 邮箱卡片：左边是邮箱，右边是验证码 */
.mb-list { display: flex; flex-direction: column; gap: 16px; }
.mb-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--night-2);
  border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.mb-card.is-latest { border-color: rgba(214, 179, 106, .6); box-shadow: 0 0 0 1px rgba(214, 179, 106, .15), 0 18px 48px rgba(0, 0, 0, .25); }
.mb-info { padding: 24px 26px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mb-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-index { font-size: 13px; font-weight: 700; color: var(--mist); }
.mb-tag-latest { font-size: 12px; font-weight: 700; color: var(--night); background: var(--gold); padding: 2px 10px; border-radius: 999px; }
.mb-status { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.mb-status.is-wait { color: var(--gold); border-color: rgba(214, 179, 106, .45); }
.mb-status.is-ok { color: #9BE0B8; border-color: rgba(95, 211, 154, .4); }
.mb-addr { font: 600 clamp(17px, 1.7vw, 21px)/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--snow);
  word-break: break-all; background: none; padding: 0; }
.mb-copy-addr { font: inherit; font-size: 14px; font-weight: 600; color: var(--snow); background: rgba(238, 241, 246, .06);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.mb-copy-addr:hover { border-color: rgba(238, 241, 246, .35); }
.mb-copy-addr.is-copied, .mb-copy.is-copied, .mb-chip.is-copied { border-color: #5FD39A; color: #9BE0B8; }
.mb-assigned { margin: auto 0 0; font-size: 13px; color: var(--mist); }

.mb-codes { padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mb-latest { border-radius: 14px; padding: 18px 20px; background: rgba(10, 26, 48, .55); border: 1px solid var(--rule); }
.mb-latest.is-fresh { border-color: rgba(214, 179, 106, .7); animation: mb-glow 2.4s ease-in-out infinite; }
@keyframes mb-glow { 50% { box-shadow: 0 0 0 4px rgba(214, 179, 106, .12); } }
.mb-latest-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mist); margin-bottom: 10px; }
.mb-latest-label { color: var(--gold); font-weight: 600; }
.mb-code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mb-digits { display: flex; gap: 6px; }
.mb-digit { display: inline-flex; align-items: center; justify-content: center; width: clamp(34px, 3.4vw, 44px); height: clamp(44px, 4.4vw, 56px);
  border-radius: 10px; background: rgba(214, 179, 106, .1); border: 1px solid rgba(214, 179, 106, .35);
  font: 700 clamp(24px, 2.6vw, 32px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold); font-variant-numeric: tabular-nums; }
.mb-copy { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--rule);
  background: transparent; color: var(--snow); }
.mb-copy.is-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.mb-copy.is-gold.is-copied { background: #5FD39A; border-color: #5FD39A; color: var(--night); }
.mb-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--gold) !important; border-bottom: 1px solid currentColor; }
.mb-from { margin: 12px 0 0; font-size: 13px; color: var(--mist); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-from strong { color: var(--snow); font-weight: 600; }
.mb-from span, .mb-from strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-latest.is-empty { display: flex; align-items: center; min-height: 110px; }
.mb-wait { display: flex; align-items: center; gap: 14px; }
.mb-wait-dots { flex: none; width: 36px; height: 10px; background:
  radial-gradient(circle, var(--gold) 4px, transparent 4.5px) 0 50% / 12px 10px repeat-x; animation: wait-dots 1.2s steps(3) infinite; opacity: .9; }
@keyframes wait-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.mb-empty, .mb-error { margin: 0; font-size: 14px; color: var(--mist); line-height: 1.6; }
.mb-error { color: #F3B1A8; margin-bottom: 8px; }

.mb-older-title { margin: 0 0 8px; font-size: 13px; color: var(--mist); }
.mb-older-list { list-style: none; margin: 0; padding: 0; }
.mb-older-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.mb-older-info { display: flex; flex-direction: column; min-width: 0; }
.mb-older-from { font-size: 14px; color: var(--snow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-older-time { font-size: 12px; color: var(--mist); }
.mb-chip { flex: none; font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--gold) !important;
  background: rgba(214, 179, 106, .08); border: 1px solid rgba(214, 179, 106, .35); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.mb-chip.is-link { font-family: inherit; letter-spacing: 0; font-size: 13px; }

.dash-empty { text-align: center; max-width: 520px; margin: clamp(20px, 6vh, 60px) auto 0; padding: 48px 28px;
  border: 1px dashed rgba(214, 179, 106, .4); border-radius: 20px; background: rgba(16, 36, 63, .6); }
.dash-empty-art .art-icon { width: 72px; height: 72px; }
.dash-empty h2 { margin: 18px 0 10px; font-size: 24px; }
.dash-empty p { margin: 0; color: var(--mist); line-height: 1.7; }

@media (max-width: 860px) {
  .dash-head-grid { align-items: stretch; flex-direction: column; }
  .dash-apply { align-items: stretch; max-width: none; }
  .dash-apply-btn { width: 100%; }
  .dash-apply-note { text-align: left; }
  .mb-card { grid-template-columns: 1fr; }
  .mb-info { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px; }
  .mb-codes { padding: 18px 20px 20px; }
  .mb-latest { padding: 16px; }
}
@media (max-width: 560px) {
  .b-top.is-static { height: 64px; }
  .b-top.is-static .b-link-btn { display: inline; font-size: 14px; }
  .pend { min-height: calc(100svh - 65px); }
  .pend-eta { padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pend-arc, .pend-sand, .dot, .mb-latest.is-fresh, .mb-wait-dots { animation: none !important; }
}

/* ---------- 收益地址 ---------- */
.icon-wallet { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-wallet .fill { fill: var(--gold); stroke: none; }
.dash-wallet { border-bottom: 1px solid var(--rule); background: rgba(16, 36, 63, .55); }
.dash-wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.dash-wallet-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-wallet-icon { width: 36px; height: 36px; flex: none; }
.dash-wallet-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-wallet-label { font-size: 13px; color: var(--mist); display: flex; align-items: center; gap: 8px; }
.dash-wallet-label .net { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid rgba(214, 179, 106, .45); border-radius: 999px; padding: 0 7px; }
.dash-wallet-addr { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--snow); background: none; padding: 0; word-break: break-all; }
.dash-wallet-pending { font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-wallet-rejected { font-size: 13px; color: #F3B1A8; }
.dash-wallet-pending code, .dash-wallet-rejected code { background: none; padding: 0; color: inherit; word-break: break-all; }
.dash-wallet-btn { flex: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--snow); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.dash-wallet-btn:hover { border-color: rgba(238, 241, 246, .4); }

/* ---------- 任务状态 ---------- */
.task { display: flex; flex-direction: column; gap: 8px; }
.task-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(10, 26, 48, .6); border: 1px solid var(--rule); }
.task-opt { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent;
  color: var(--mist); cursor: pointer; white-space: nowrap; line-height: 1.3; }
.task-opt.is-on { background: rgba(238, 241, 246, .1); color: var(--snow); cursor: default; }
button.task-opt:hover:not(:disabled) { color: var(--gold); }
button.task-opt:disabled { opacity: .45; cursor: not-allowed; }
.task-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid; }
.task-chip.is-review { color: var(--gold); border-color: rgba(214, 179, 106, .5); background: rgba(214, 179, 106, .08); }
.task-chip.is-done { color: #9BE0B8; border-color: rgba(95, 211, 154, .45); background: rgba(95, 211, 154, .08); }
.task-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.task-rejected { margin: 0; font-size: 13px; color: #F3B1A8; line-height: 1.5; }

/* ---------- 弹窗 ---------- */
.modal-lock { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 10, 20, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal.is-open .modal-box { animation: modal-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes modal-in { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; box-sizing: border-box;
  background: var(--night-2); border: 1px solid rgba(214, 179, 106, .55); border-radius: 22px; padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); color: var(--snow); }
.modal-icon { display: block; width: 52px; height: 52px; margin-bottom: 18px; }
.modal-box h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.modal-sub { margin: -4px 0 10px; }
.modal-sub code { background: none; padding: 0; color: var(--gold); font-size: 14px; word-break: break-all; }
.modal-text { margin: 0 0 22px; color: var(--mist); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.modal-form label { display: block; font-size: 14px; font-weight: 600; color: var(--snow); margin: 0 0 8px; }
.modal-form input, .modal-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 0 14px;
  font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--snow);
  background: rgba(4, 10, 20, .45); border: 1px solid rgba(238, 241, 246, .2); border-radius: 12px; }
.modal-form input { height: 52px; letter-spacing: .02em; }
.modal-form textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 179, 106, .18); }
.modal-form input.is-good { border-color: rgba(95, 211, 154, .7); }
.modal-form input.is-bad { border-color: #E86A5A; }
.modal-form input::placeholder, .modal-form textarea::placeholder { color: rgba(147, 161, 182, .7); letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif; }
.modal-error { margin: 10px 0 0; font-size: 13px; color: #F3B1A8; line-height: 1.5; }
.modal-help { margin: 12px 0 22px; font-size: 13px; color: var(--mist); line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-actions .b-btn { min-height: 48px; padding: 0 22px; }
.b-btn-line { background: transparent; border-color: var(--rule); color: var(--snow) !important; }
.b-btn-line:hover { border-color: rgba(238, 241, 246, .4); }

@media (max-width: 560px) {
  .dash-wallet-row { align-items: flex-start; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; border-radius: 22px 22px 0 0; border-bottom: 0; padding: 26px 20px 24px; max-height: 92vh; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .b-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .modal.is-open .modal-box { animation: none; }
}

/* 已完成的任务：不再显示验证码 */
.mb-locked { display: flex; align-items: center; gap: 14px; min-height: 110px; padding: 18px 20px; border-radius: 14px;
  border: 1px dashed rgba(95, 211, 154, .35); background: rgba(95, 211, 154, .05); }
.mb-locked svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #9BE0B8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mb-locked p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mist); }

/* ---------- 验证码区排版（第二版） ---------- */
.mb-latest-top { align-items: baseline; margin-bottom: 14px; }
.mb-code-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
.mb-digits { gap: 6px; }
.mb-digit { width: clamp(36px, 3.2vw, 44px); height: 52px; border-radius: 10px; font-size: clamp(24px, 2.4vw, 30px); }
.mb-copy-code { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--gold); background: var(--gold); color: var(--night); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; margin-left: 4px; }
.mb-copy-code:hover { background: #E2C27E; }
.mb-copy-code.is-copied { background: #5FD39A; border-color: #5FD39A; color: var(--night); }
.mb-link-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 10px;
  background: var(--gold); color: var(--night) !important; font-size: 15px; font-weight: 700; }
.mb-from { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--mist);
  display: flex; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; }
.mb-from-name { flex: none; color: var(--snow); font-weight: 600; }
.mb-from-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mb-older-title { margin: 2px 0 6px; font-size: 13px; font-weight: 600; color: var(--mist); }
.mb-older-item { padding: 12px 0; }
.mb-older-item:first-child { border-top: 0; }
.mb-older-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mb-older-from { flex: none; max-width: 50%; font-weight: 600; }
.mb-older-subject { min-width: 0; font-size: 13px; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-older-time { margin-top: 2px; }
.mb-chip { padding: 9px 14px; border-radius: 10px; }
.mb-chip.is-link { font-weight: 600; }

@media (max-width: 560px) {
  .mb-code-row { flex-wrap: wrap; }
  .mb-digit { width: 38px; height: 48px; font-size: 24px; }
  .mb-copy-code { height: 48px; margin-left: 0; flex: 1 1 100%; }
  .mb-from { flex-direction: column; gap: 2px; }
  .mb-from-subject { white-space: normal; }
}
.mb-older-info { flex: 1; }
.mb-older-from { flex: 0 1 auto; max-width: 60%; }
