/* public/css/header-wip-2.css */
/* WIP — 从 header.html 第 2 个 inline <style> 抽出
 * 内容:.header / .header * 字体 + 主题样式 (~45KB)
 * 计划:docs/2026-05-28-header-wip-sandbox-plan.md
 * Cascade 位置:中间,login_reg_tpl include 等之后
 */

    .header,
    .header * {
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    html:lang(zh) .header,
    html:lang(zh) .header *,
    html:lang(zh-CN) .header,
    html:lang(zh-CN) .header *,
    html:lang(zh-TW) .header,
    html:lang(zh-TW) .header *,
    html[lang^="zh"] .header,
    html[lang^="zh"] .header * {
      font-family: "Noto Sans TC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    /* 左侧导航项样式 (Plugins, Tools, Pricing, Tutorial) */
    .head_left .plugins.head_rnav,
    .head_left .tools.head_rnav,
    .head_left .pricing.head_rnav,
    .head_left .tutorial.head_rnav {
      background: transparent !important;
      border: none !important;
      min-width: auto;
      max-width: none;
    }
    .head_left .plugins.head_rnav .hr-text,
    .head_left .tools.head_rnav .hr-text,
    .head_left .pricing.head_rnav .hr-text,
    .head_left .tutorial.head_rnav .hr-text {
      display: inline-flex;
      align-items: center;
      color: #374151;
      font-size: 15px;
      font-weight: 500;
      padding: 0 4px;
      min-width: auto;
      transition: color 0.2s;
      cursor: pointer;
    }
    .head_left .plugins.head_rnav:hover .hr-text,
    .head_left .tools.head_rnav:hover .hr-text,
    .head_left .pricing.head_rnav:hover .hr-text,
    .head_left .tutorial.head_rnav:hover .hr-text {
      color: #111827;
    }
    /* Canvas nav — 与 Tutorial 一致的纯文字导航项(取消浅蓝胶囊背景),
       右上角 NEW 徽章(.beta-badge)保留,挂在内层 .hr-text(position:relative)上 */
    .head_left .canvas.head_rnav {
      background: transparent;
      border: none;
      padding: 0;
      min-width: auto;
      max-width: none;
    }
    .head_left .canvas.head_rnav .hr-text {
      display: inline-flex;
      align-items: center;
      color: #374151;
      font-size: 15px;
      font-weight: 500;
      padding: 0 4px;
      box-sizing: border-box;
      min-width: auto;
      transition: color 0.2s;
      cursor: pointer;
    }
    .head_left .canvas.head_rnav:hover .hr-text {
      color: #111827;
    }
    /* Canvas span 颜色防御层 — 直接给 [data-i18n="canvas"] 打 !important,
       特异性高于 .head_left [data-i18n] { color: transparent !important },
       保证缓存命中旧版本 / 字体加载失败 / i18n-ready 没加上时 Canvas 仍可见 */
    .head_left .canvas.head_rnav [data-i18n="canvas"] {
      color: #374151 !important;
    }
    .head_left .canvas.head_rnav:hover [data-i18n="canvas"] {
      color: #111827 !important;
    }
    .head_left .nav-dropdown .hr-text svg {
      vertical-align: middle;
      transition: transform 0.2s;
    }
    .head_left .nav-dropdown:hover .hr-text svg {
      transform: rotate(180deg);
    }

    /* 下拉菜单样式 */
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 180px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      padding: 8px 16px;
      z-index: 10000;
    }
    .nav-dropdown:hover .nav-dropdown-menu {
      display: block;
    }
    .nav-dropdown-item {
      display: block;
      padding: 10px 0;
      color: #374151;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: background-color 0.15s, color 0.15s;
      white-space: nowrap;
      text-align: left;
    }
    .nav-dropdown-item:hover {
      background-color: #f3f4f6;
      color: #111827;
    }

    /* Windows App 按钮样式（带下载 icon） */
    .download-windows-btn {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background-color: transparent !important;
      color: #111827 !important;
      border: 1px solid #6b7280;
      border-radius: 6px;
      padding: 8px 16px;
      font-size: 13.5px;
      font-weight: 500;
      text-decoration: none !important;
      transition: all 0.2s;
      white-space: nowrap;
      height: 35px;
      box-sizing: border-box;
      margin-right: 5px;
    }
    .download-windows-btn .winapp-icon {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      stroke: currentColor;
    }
    .download-windows-btn:hover {
      background-color: #f3f4f6 !important;
      border-color: #4b5563;
      color: #111827 !important;
    }

    /* Try tools 按钮样式 */
    .try-tools-btn {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      background-color: #2563eb !important;
      color: white !important;
      border-radius: 6px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none !important;
      transition: background-color 0.2s;
      white-space: nowrap;
      height: 35px;
      box-sizing: border-box;
    }
    .try-tools-btn:hover {
      background-color: #1d4ed8 !important;
      color: white !important;
    }

    /* 移动端 Try tools 按钮 */
    .mobile-try-tools-btn {
      background-color: #2563eb !important;
      color: white !important;
      text-align: center;
      border-radius: 8px;
      margin-top: 6px;
    }
    .mobile-try-tools-btn:hover {
      background-color: #1d4ed8 !important;
    }

    /* 语言切换器样式更新 */
    .hr-new.head_right .lang-switch-container {
      background: transparent !important;
      border: none !important;
      min-width: auto;
      max-width: none;
    }
    .hr-new.head_right .lang-switch-container .hr-text {
      min-width: auto;
      text-align: center;
      justify-content: center;
      color: #374151;
      font-size: 15px;
      font-weight: 500;
    }
    .hr-new.head_right .lang-switch-container .globe-icon {
      vertical-align: middle;
      opacity: 0.7;
    }
    .hr-new.head_right .ai-flow.head_rnav.score .hr-text {
      min-width: 70px;
      text-align: center;
      justify-content: center;
    }

    .hr-new.head_right [data-i18n],
    .hr-new.head_right .lang-current-text {
      opacity: 0;
      transition: opacity 0.15s ease-in;
    }
    .hr-new.head_right.i18n-ready [data-i18n],
    .hr-new.head_right.i18n-ready .lang-current-text {
      opacity: 1;
    }
    .hr-new.head_right .ai-flow.head_rnav.score .hr-text,
    .hr-new.head_right .ai-flow.head_rnav.score .hr-text img,
    .hr-new.head_right .ai-flow.head_rnav.score .hr-text span {
      opacity: 1 !important;
    }

    .lang-switch-container {
      position: relative !important;
      overflow: visible !important;
      pointer-events: auto !important;
      cursor: pointer !important;
    }
    .lang-switch-container .hr-text {
      cursor: pointer !important;
      position: relative;
      z-index: 1;
      pointer-events: none !important;
    }
    .lang-switch-container .hr-text svg,
    .lang-switch-container .hr-text span,
    .lang-switch-container .hr-text * {
      pointer-events: none !important;
    }
    .lang-dropdown {
      display: none !important;
      visibility: hidden;
      position: absolute;
      top: 42px;
      right: 0;
      background: white;
      border: 1px solid #dedede;
      border-radius: 0.35rem;
      padding: 0.75rem 0;
      z-index: 9999;
      overflow: visible;
      pointer-events: auto !important;
    }
    .lang-dropdown.show {
      display: block !important;
      visibility: visible;
    }
    /* Hover-driven open: lang-switch-container is .nav-dropdown */
    .lang-switch-container.nav-dropdown .hr-text > svg:last-child {
      transition: transform 0.2s;
    }
    /* Hover bridge: trigger 与 dropdown 之间有 7px gap (container 35px height, dropdown top:42px)，
       透明 ::after 桥接这块区域，避免鼠标移动时 hover 丢失导致 dropdown 消失 */
    .lang-switch-container.nav-dropdown::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      height: 8px;
      background: transparent;
      pointer-events: auto;
    }
    .lang-switch-container.nav-dropdown:hover .lang-dropdown {
      display: block !important;
      visibility: visible !important;
    }
    .lang-switch-container.nav-dropdown:hover .hr-text > svg:last-child {
      transform: rotate(180deg);
    }
    .lang-option {
      display: flex;
      flex-direction: row;
      height: 32px;
      line-height: 32px;
      padding: 0 1rem;
      margin-bottom: 0.25rem;
      cursor: pointer;
      font-size: 0.9rem;
      color: #333;
      transition: background-color 0.2s;
      pointer-events: auto !important;
      white-space: nowrap;
    }
    .lang-option:last-child {
      margin-bottom: 0;
    }
    .lang-option:hover {
      background-color: #f4f4f4;
    }
    .lang-option.active {
      background-color: #f4f4f4;
      color: #1a73e8;
      font-weight: 500;
    }
    .lang-current-text {
      font-weight: 500;
    }
    
    .mobile-lang-options {
      display: none;
      padding-left: 1rem;
      background: #f8f9fa;
    }
    .mobile-lang-options.show {
      display: block;
    }
    .mobile-lang-option {
      display: block;
      padding: 10px 16px;
      color: #333;
      text-decoration: none;
      font-size: 14px;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      cursor: pointer;
    }
    .mobile-lang-option:hover {
      background: #e9ecef;
    }
    .mobile-lang-option.active {
      color: #1a73e8;
      font-weight: 500;
    }

    .login-disabled {
      opacity: 0.6 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
      background-color: #ccc !important;
      color: #666 !important;
      transition: all 0.3s ease;
    }
    
    .login-disabled:hover {
      background-color: #ccc !important;
      color: #666 !important;
    }

    .smsdenglu, .denglu-phone, .denglu, .emailcodedenglu {
      transition: all 0.3s ease;
      position: relative;
    }

    .login-disabled::after {
      content: '';
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      border: 2px solid #666;
      border-top: 2px solid transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0% { transform: translateY(-50%) rotate(0deg); }
      100% { transform: translateY(-50%) rotate(360deg); }
    }
    
    .captcha-container {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }
    
    .captcha-input {
      flex: 1;
      height: 40px;
      padding: 0 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-align: center;
    }
    
    .captcha-input:focus {
      border-color: #2563eb;
      outline: none;
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    }
    
    .captcha-img {
      height: 40px;
      width: 100px;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
      background-color: #f8f9fa;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }
    
    .captcha-img:hover {
      border-color: #2563eb;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .captcha-refresh {
      height: 40px;
      width: 40px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: #f8f9fa;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      font-size: 16px;
      color: #666;
    }
    
    .captcha-refresh:hover {
      background-color: #e9ecef;
      border-color: #2563eb;
      color: #2563eb;
    }
    
    .captcha-tips {
      font-size: 12px;
      color: #666;
      margin-top: 4px;
      text-align: center;
    }

    .captcha-error .captcha-input {
      border-color: #dc3545;
      animation: shake 0.5s ease-in-out;
    }
    
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }

    .login-btn-disabled {
      opacity: 0.6 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
      position: relative;
      transition: all 0.3s ease;
    }
    
    .login-btn-disabled::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.1);
      border-radius: inherit;
      pointer-events: none;
    }

    [lay-on="loginbtn"],
    [lay-on="regbtn"] {
      transition: all 0.3s ease;
      position: relative;
    }
    
    [lay-on="loginbtn"]:hover:not(.login-btn-disabled),
    [lay-on="regbtn"]:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    html,body{
      width: 100%;
      height: 100%;
    }
    
    .header,
    .wrapper,
    .head_box {
      overflow: visible !important;
    }

    /* === Homepage / marketing header column (ported from header-wip, 2026-06-05) ===
       Narrow the header from the global 94% wrapper to a 92% / 1680px centered column so the
       logo aligns with the homepage content's left edge and the action buttons with its right
       edge. Applies to all non-tool pages (homepage + marketing). Desktop only; mobile keeps
       its own padding. */
    @media (min-width: 769px) {
      .header .wrapper {
        width: 92%;
        max-width: 1680px;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-left: auto;
        margin-right: auto;
      }
    }

    /* === Tool-page / sidebar mode ===
       Tool pages set body[data-sidebar-active]; there the header reverts to the global 94%
       wrapper (no max-width / no extra padding) so the logo and action buttons sit near the
       window edges (~58px @1920, scales with width) — matching the tool-page layout. Higher
       specificity than the rule above (adds the body attribute), so it only wins when the
       attribute is present. */
    @media (min-width: 769px) {
      body[data-sidebar-active] .header .wrapper {
        width: 94%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
      }
    }

    /* === Hide the Canvas nav tab site-wide (ported from header-wip, 2026-06-05) ===
       !important overrides the inline display:inline-flex on .canvas.head_rnav. */
    .head_left .canvas.head_rnav {
      display: none !important;
    }

    .hr-new.head_right{
      display: flex;
      flex-direction: row;
      position: relative;
      overflow: visible;
    }

    @media (min-width: 651px) {
      .head_box{
        --dt-header-btn-gap: 10px;
      }

      .hr-new.head_right{
        gap: var(--dt-header-btn-gap);
      }

      .hr-new.head_right > .head_rnav{
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
    }

    .head_rnav{
      display: flex;
      flex-direction: row;
      height: 44px;
      margin-top: 2px;
      font-size: 1rem;
      font-weight: normal;
      cursor: pointer;
    }
    .hr-new .score.head_rnav,
    .hr-new .profile.head_rnav
    {
      display: flex;
      flex-direction: row;
      background-color: #ededed;
      padding-top: 0;
      padding-bottom: 0;
      height: 35px;
      margin-top: 2px;
    }

    .hr-new .profile.head_rnav{
      height: 35px;
      margin-top: 2px;
      padding: 0;
      border-radius: 50%;
      background-color: #0050f9;
    }

    .hr-new .profile .userimg{
      height: 31px;
      width: 31px;
      margin: 2px;
      border-radius: 50%;
      cursor: pointer;
    }

    .pph-close:hover{
      background-color: #444444;
    }

    .sbp-close:hover{
      background-color: #444444;
    }

    .profile-menu{
      position: absolute;
      background: white;
      border-radius: 0.35rem;
      right: 0;
      top: 42px;
      border: 1px solid #dedede;
      padding: 0.75rem 0;
      display: none;
    }

    .pm-item{
      display: flex;
      flex-direction: row;
      height: 32px;
      margin-bottom: 0.25rem;
      cursor: pointer;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .pm-item:last-child{
      margin-bottom: 0;
    }

    .pm-item:hover{
      background: #f4f4f4;
    }

    .pi-icon img{
      width: 20px;
      height: 20px;
      margin-top: 6px;
      object-fit: contain;
    }

    .pi-title{
      height: 32px;
      line-height: 32px;
      font-size: 0.9rem;
      margin-left: 0.5rem;
      font-weight: 500;
      white-space: nowrap;
    }
    /* === Theme toggle pill (Light/Dark) — 加在 profile-menu 末尾 === */
    .pm-item-theme { cursor: default; align-items: center; }
    .pm-item-theme:hover { background: transparent; }
    .pm-item-theme .pi-title { flex: 1; }
    .theme-pills {
      display: inline-flex;
      align-self: center;
      border: 1px solid #e5e7eb;
      border-radius: 0.35rem;
      overflow: hidden;
      margin-left: 0.5rem;
    }
    .theme-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 26px;
      padding: 0;
      background: white;
      color: #6b7280;
      border: 0 none;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .theme-pill:hover:not(.active) { background: #f3f4f6; color: #374151; }
    .theme-pill.active { background: #2563eb; color: white; }

    /* === Dark mode dropdown 自身翻色 — 用户点 Dark 立即看到反馈 === */
    body.dark-mode .profile-menu {
      background: #1f2937;
      border-color: #374151;
      color: #e5e7eb;
    }
    body.dark-mode .pm-item:hover { background: rgba(255,255,255,0.06); }
    body.dark-mode .pm-item-theme:hover { background: transparent; }
    body.dark-mode .pi-title { color: #e5e7eb; }
    body.dark-mode .pi-icon img { filter: invert(0.85); }
    body.dark-mode .pm-theme-icon { color: #e5e7eb; }
    body.dark-mode .theme-pills { border-color: #4b5563; }
    body.dark-mode .theme-pill { background: #1f2937; color: #9ca3af; }
    body.dark-mode .theme-pill:hover:not(.active) { background: #374151; color: #e5e7eb; }
    body.dark-mode .theme-pill.active { background: #2563eb; color: white; }


    .logout-cfm{
      width: 25%;
      min-width: 320px;
      height: auto;
      padding: 1.5rem;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      z-index: 66666;
      display: none;
      border-radius: 0.75rem;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .logout-mask{
      z-index: 66666;
      background-color: rgba(0, 0, 0, 0.6);
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      display: none;
    }

    .lc-title{
      margin: 0;
      margin-bottom: 1.5rem;
      font-size: 1.1rem;
      font-weight: 500;
      color: #374151;
      text-align: center;
    }

    .lc-btns{
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 1rem;
    }

    .lc-btn-cancel{
      width: 100%;
      height: 3rem;
      background: #f2f5fa;
      text-align: center;
      line-height: 3rem;
      border-radius: 0.35rem;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    
    .lc-btn-cancel:hover{
      background: #e5e8ed;
    }

    .lc-btn-ok{
      width: 100%;
      height: 3rem;
      text-align: center;
      line-height: 3rem;
      background-color: #1c3de8;
      color: white;
      font-size: 1.0rem;
      cursor: pointer;
      border-radius: 0.35rem;
      transition: background 0.2s ease;
    }
    
    .lc-btn-ok:hover{
      background-color: #5871f2;
    }

    .pp-head{
      height: 3rem;
      display: flex;
      flex-direction: row;
      position: relative;
    }

    .pph-close{
      position: absolute;
      top: -12px;
      right: -12px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      background-color: #666666;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 18px;
      font-weight: bold;
      transition: background-color 0.2s ease;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
      z-index: 10;
    }

    .pph-title{
      width: 100%;
    }

    .pp-avatar{
      width: 5rem;
      height: 5rem;
      border: 0.2rem solid blue;
      border-radius: 50%;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 2rem;
    }

    .ppa-avatar{
      width: 4.6rem;
      height: 4.6rem;
      border-radius: 50%;
      margin-bottom: 2rem;
    }

    .ppa-upload{
      width: 8rem;
      height: 3rem;
      background-color: #dedede;
      text-align: center;
      line-height: 3rem;
      border-radius: 0.3rem;
      margin-left: auto;
      margin-right: auto;
    }

    .pp-avatar-container{
      height: 9rem;
    }

    .ppa-upload:hover{
      cursor: pointer;
      background-color: #d0d0d0;
    }

    .pp-item{
      margin: 2rem;
    }

    .ppi-title{
      color: #4d4d4d;
      margin-bottom: 0.3rem;
    }

    .ppi-title span{
      color: red;
      padding-left: 0.3rem;
    }

    .ppi-input{
      background-color: #f2f5fa;
      height: 3rem;
      border-radius: 0.35rem;
    }

    #nickname,#intro{
      border: none;
      outline: none;
      width: 100%;
      height: 100%;
      background-color: transparent;
      padding-left: 0.5rem;
      font-size: 1.0rem;
    }

    #intro{
      background-color: #f2f5fa;
      border-radius: 0.35rem;
      font-size: 1.0rem;
      resize: none;
    }

    .nums{
      position: absolute;
      right: 1rem;
      bottom: 0.2rem;
      color: #bdbec1;
    }
    .ppi-input.intro{
      height: 6rem;
      position: relative;
      background: transparent;
    }

    .ppi-tips{
      font-size: 0.8rem;
      margin-top: 0.3rem;
      color: #b2b2b2;
    }

    .pp-btns{
      display: flex;
      flex-direction: row;
      justify-content: center;
      padding-left: 2rem;
      padding-right: 2rem;
      padding-bottom: 1.5rem;
      gap: 1rem;
    }

    .pp-btn-cancel,.pp-btn-ok{
      width: 100%;
      height: 3rem;
      background: #f2f5fa;
      text-align: center;
      line-height: 3rem;
      border-radius: 0.35rem;
      cursor: pointer;
    }

    .pp-btn-cancel:hover{
      background: #e5e8ed;
    }
    .pp-btn-ok:hover{
      background-color: #5871f2;
    }

    .pp-btn-ok{
      background-color: #1c3de8;
      color: white;
    }

    #upload-img{
      display: none;
    }

    .score-buy-panel{
      height: 100%;
      overflow: visible;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .layui-layer-page .layui-layer-content {
      overflow: visible !important;
    }

    .sbp-head{
      display: flex;
      flex-direction: row;
      padding: 1rem;
      background-color: #ffffff;
      border-radius: 20px 20px 0 0;
      flex-shrink: 0;
      position: relative;
      overflow: visible;
    }

    .sbp-uinfo{
      width: 100%;
      display: flex;
      flex-direction: row;
    }

    .sbp-top{
      height: 1.2rem;
      position: absolute;
      top: 0;
      width: calc(100% - 3rem);
    }

    .sbp-uavatar{
      height: 4.5rem;
      border: 0.2rem solid blue;
      width: 4.5rem;
      border-radius: 50%;
    }

    .sbp-uavatar img{
      height: 4.1rem;
      width: 4.1rem;
      border-radius: 50%;
    }

    .sbp-close{
      position: absolute;
      top: -12px;
      right: -12px;
      cursor: pointer;
      width: 32px;
      height: 32px;
      background-color: #666666;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 18px;
      font-weight: bold;
      transition: background-color 0.2s ease;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
      z-index: 10;
    }

    .sbp-detail{
      display: flex;
      flex-direction: column;
      padding-top: 0.5rem;
      padding-left: 0.5rem;
    }

    .sbp-nickname{
      height: 50%;
      color: #734925;
      padding-top: 0.5rem;
    }

    .sbp-account{
      color: #91897e;
    }

    .sbp-score-item{
      width: 48%;
      color: #875b38;
      height: 7rem;
      background-image: linear-gradient(to right, #f9f9f9, #f9f9f9);
      border-radius: 0.35rem;
      margin-bottom: 1rem;
      cursor: pointer;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .sbp-score-item:hover,
    .sbp-score-item.active{
      background-image: linear-gradient(to right, #fff1d8, #fddba5);
      border: 1px solid #e2d0a7;
    }

    .sbp-score-item:nth-child(n+5) {
      display: none !important;
    }

    .sbp-score-desc{
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 0.3rem;
      margin-top: 0.3rem;
    }

    .sbp-score-desc img{
      width: 1.5rem;
      height: 1.5rem;
      object-fit: contain;
      flex-shrink: 0;
    }

    .sbp-scores{
      padding: 0.5rem 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .sbp-score{
      font-size: 1.5rem;
      font-weight: 500;
    }
    .sbp-score-pay{
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: baseline;
      margin-top: 0.3rem;
    }
    
    .sbp-pay-unit{
      font-size: 1.5rem;
      font-weight: 500;
    }
    
    .sb-pay-vals{
      font-size: 2.2rem;
      font-weight: 600;
    }

    .sbp-user-scores{
      display: flex;
      flex-direction: row;
      align-items: baseline;
      margin-left: 0;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
      position: relative;
      font-size: 0.9rem;
    }

    .sbp-us-title{
      color: #9b9894;
    }

    .sbp-us-value{
      font-size: 2rem;
      color: #875b38;
      margin-left: 0.5rem;
    }

    .sbp-us-unit{
      color: #9b9894;
      font-size: 0.9rem;
      margin-left: 0.5rem;
    }

    .sbp-subscribe-btn {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      padding: 6px 16px;
      background: #f9f9f9;
      color: #875b38;
      border-radius: 6px;
      font-size: 0.85rem;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.2s ease;
      box-shadow: none;
    }

    .sbp-subscribe-btn:hover {
      background: linear-gradient(to right, #fff1d8, #fddba5);
      box-shadow: none;
      transform: translateY(-50%) scale(1.02);
      color: #875b38;
      text-decoration: none;
    }

    .sbp-tips{
      width: 100%;
      color: #bfbfbf;
      font-size: 0.8rem;
      margin-left: 0;
      flex-shrink: 0;
    }

    .sbp-pay{
      height: 6rem;
      display: flex;
      flex-direction: row;
      width: 100%;
      justify-content: center;
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
      flex-shrink: 0;
    }

    .sbp-pay-qrcode{
      height: 6rem;
      width: 6rem;
      background-color: #ededed;
      border-radius: 0.35rem;
      position: relative;
    }

    .sbp-pay-qrcode img{
      height: 100%;
    }

    .sbp-payinfo{
      display: flex;
      flex-direction: column;
      margin-left: 0.5rem;
    }

    .sbp-money-info{
      display: flex;
      flex-direction: row;
      height: 100%;
      position: relative;
    }

    .sbp-mi-title{
      position: absolute;
      left: 0;
      bottom: .4rem;
      color: #3d3b3a;
    }

    .sbp-mi-val{
      color: #875b38;
      margin-left: 2.2rem;
    }

    .sbp-money-unit{
      font-size: 1.5rem;
    }

    .spb-money-val{
      font-size: 2rem;
    }

    .sbp-pay-tips{
      height: 100%;
      margin-bottom: 0.3rem;
    }

    .sbp-pay-tips img{
      height: 1rem;
    }

    .sbp-pt-desc{
      color: #62605f;
      font-size: 0.9rem;
    }

    .sbp-agreement{
      display: flex;
      flex-direction: row;
      height: 100%;
      font-size: 0.75rem;
    }

    .sbp-a-desc{
      color: #adaba9;
    }

    .spb-a-link{
      color: #917b62;
      cursor: pointer;
    }

    .sbp-payment-method{
      display: flex;
      flex-direction: row;
      width: 100%;
      margin-left: 0;
      height: 2rem;
      margin-bottom: 1rem;
      margin-top: .5rem;
      flex-shrink: 0;
    }

    .sbp-payment-label{
      height: 2rem;
      line-height: 2rem;
      color: #9b9894;
      margin-right: 0.5rem;
    }

    .sbp-payment-title{
      color: #9b9894;
    }

    .sbp-payment-item{
      display: flex;
      flex-direction: row;
      margin-right: 1rem;
      border-radius: 0.5rem;
      height: 2.4rem;
      width: 8rem;
      justify-content: center;
      border: 1px solid #dedede;
      cursor: pointer;
    }

    .sbp-payment-item:hover{
      background-color: #f5f5f5;
    }

    .sbp-payment-item img{
      height: 2rem;
      margin-top: 0.2rem;
    }

    .sbp-payment-title{
      height: 2.4rem;
      line-height: 2.4rem;
      margin-left: 0.2rem;
    }

    .sbp-payment-item.alipay .sbp-payment-title{
      color: #00a7ff;
    }
    .sbp-payment-item.wechat .sbp-payment-title{
      color: #15ba11;
    }
    .sbp-payment-item.stripe .sbp-payment-title{
      color: #359ad5;
    }

    .sbp-payment-item.alipay{
      color: #00a7ff;
    }
    .sbp-payment-item.wechat{
      color: #15ba11;
    }
    .sbp-payment-item.stripe{
      color: #359ad5;
    }

    .sbp-payment-item.alipay.active{
      border: 2px solid #00a7ff;
    }
    .sbp-payment-item.wechat.active{
      border: 2px solid #15ba11;
    }
    .sbp-payment-item.stripe.active{
      border: 2px solid #359ad5;
    }

    #pay-qrcode-loading{
      position: absolute;
      top: 0;
      text-align: center;
      width: 100%;
      height: 6rem;
      line-height: 6rem;
      font-size: 0.9rem;
      color: #000000;
      background: rgb(197 197 197 / 85%);
      border-radius: 0.35rem;
      font-weight: bold;
      display: none;
    }

    .sbp-pay-qrcode.loading #pay-qrcode-loading{
      display: block;
    }

    .sbp-single-plan {
      padding: 1rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-image: linear-gradient(to right, #fff1d8, #fddba5);
      margin: 0.8rem;
      border-radius: 0.35rem;
      border: 1px solid #e2d0a7;
    }

    .sbp-plan-info {
      flex: 1;
    }

    .sbp-plan-name {
      font-size: 1.4rem;
      font-weight: bold;
      color: #875b38;
      margin-bottom: 0.3rem;
    }

    .sbp-plan-desc {
      font-size: 0.9rem;
      color: #91897e;
    }

    .sbp-plan-price {
      display: flex;
      align-items: baseline;
      color: #875b38;
    }

    .sbp-pay-unit {
      font-size: 1.5rem;
      margin-right: 0.2rem;
    }

    .sbp-pay-val {
      font-size: 2.2rem;
      font-weight: bold;
    }

    #simple-pay-qrcode-loading{
      position: absolute;
      top: 0;
      text-align: center;
      width: 100%;
      height: 6rem;
      line-height: 6rem;
      font-size: 0.9rem;
      color: #000000;
      background: rgb(197 197 197 / 85%);
      border-radius: 0.35rem;
      font-weight: bold;
      display: none;
    }

    .sbp-pay-qrcode.simple-loading #simple-pay-qrcode-loading{
      display: block;
    }

    .ai-flow.head_rnav
    {
      min-width: 5.4rem;
      max-width: 7.1rem;
      overflow: hidden;
      justify-content: center;
      align-items: center;
    }

    .ai-flow.head_rnav:hover{
      background-color: #cacaca;
    }

    .ai-flow.head_rnav .hr-text
    {
      height: 34px;
      line-height: 34px;
      font-weight: bold;
      text-align: center;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .header-text-title {
      display: none;
      font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    @media (max-width: 768px) {
      .plugins.head_rnav,
      .tools.head_rnav,
      .pricing.head_rnav,
      .tutorial.head_rnav,
      .lang-switch-container.head_rnav,
      .ai-flow.head_rnav,
      .try-tools-btn {
        display: none !important;
      }

      .head_box {
        display: flex;
        align-items: center;
        height: 44px;
        padding: 0 1rem;
      }

      .logo {
        height: 30px;
        display: flex;
        align-items: center;
      }

      .logo img {
        height: 30px;
        width: auto;
      }

      .hr-new.head_right {
        gap: 0.2rem;
      }
    }

    @media (max-width: 480px) {
      .plugins.head_rnav,
      .tools.head_rnav,
      .pricing.head_rnav,
      .tutorial.head_rnav,
      .lang-switch-container.head_rnav,
      .ai-flow.head_rnav,
      .try-tools-btn {
        display: none !important;
      }

      .head_box {
        height: 44px;
        padding: 0 0.8rem;
      }

      .logo {
        height: 26px;
      }

      .logo img {
        height: 26px;
      }
    }

    @media (max-width: 360px) {
      .head_box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 50px;
        padding: 0 0.5rem;
      }

      .logo {
        height: 24px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
      }

      .logo img {
        height: 24px;
        max-width: 75px;
      }

      .hr-new.head_right .head_rnav {
        display: none !important;
      }

      .hr-new.head_right .try-tools-btn {
        display: none !important;
      }

      .hr-new.head_right {
        display: flex !important;
        gap: 0;
      }

      .header {
        min-height: 50px;
      }
    }

    @media (max-width: 320px) {
      .head_box {
        height: 45px;
        padding: 0 0.3rem;
      }

      .logo {
        height: 21px;
      }

      .logo img {
        height: 21px;
        max-width: 60px;
      }

      .header {
        min-height: 45px;
      }
    }

    @media (max-width: 280px) {
      .logo {
        display: none !important;
      }

      .header-text-title {
        display: block !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.1rem;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        z-index: 10;
        height: 35px;
        line-height: 35px;
      }

      .header {
        min-height: 35px;
      }

      .head_box {
        height: 35px;
        justify-content: center !important;
        position: relative;
      }

      .hr-new.head_right {
        display: none !important;
      }
    }

    @media (max-width: 240px) {
      .header-text-title {
        font-size: 1.0rem;
      }
    }

    @media (max-width: 200px) {
      .header-text-title {
        font-size: 0.9rem;
      }
    }

    .head_rnav.score{
       background-color: #ffc000!important;
       border-radius: 6px;
       margin-right: 10px;
    }
    .head_rnav.score:hover{
      background-color: #eeb712 !important;
      cursor: pointer;
    }
    .head_rnav.score .hr-text{
      font-size: .95rem;
      margin-right: 0;
      color: black;
    }

    .stripe-confirm-dialog {
      border-radius: 16px !important;
      overflow: hidden !important;
      background: #ffffff !important;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    }
    
    .stripe-confirm-dialog .layui-layer-content {
      background: #ffffff !important;
      padding: 24px !important;
      font-size: 16px !important;
      color: #374151 !important;
      text-align: center !important;
    }
    
    .stripe-confirm-dialog .layui-layer-title {
      background: #ffffff !important;
      color: #374151 !important;
      border: none !important;
      font-weight: 600 !important;
      font-size: 18px !important;
      padding: 20px 24px 0 24px !important;
      text-align: center !important;
    }

    .stripe-confirm-dialog .layui-layer-btn {
      text-align: center !important;
      padding: 20px 24px !important;
      background: #ffffff !important;
      border-top: 1px solid #e5e7eb !important;
      display: flex !important;
      flex-direction: row-reverse !important; 
      gap: 12px !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn a {
      height: 48px !important;
      line-height: 48px !important;
      margin: 0 !important;
      padding: 0 32px !important;
      border-radius: 12px !important;
      font-size: 16px !important;
      font-weight: 600 !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      text-decoration: none !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      min-width: 120px !important;
      position: relative !important;
      overflow: hidden !important;
      flex: 1 !important;
    }

    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn0 {
      background: linear-gradient(135deg, #1E90FF 0%, #6A5ACD 100%) !important;
      color: white !important;
      border: none !important;
      box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3) !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn0:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4) !important;
      background: linear-gradient(135deg, #1C86EE 0%, #6347C7 100%) !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn0:active {
      transform: translateY(0) !important;
      box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3) !important;
    }

    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn1 {
      background: #ffffff !important;
      color: #64748B !important;
      border: 2px solid #e2e8f0 !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn1:hover {
      background: #f8fafc !important;
      color: #475569 !important;
      border-color: #cbd5e1 !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn .layui-layer-btn1:active {
      transform: translateY(0) !important;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .stripe-confirm-dialog .layui-layer-btn a::before {
      content: '' !important;
      position: absolute !important;
      top: 50% !important;
      left: 50% !important;
      width: 0 !important;
      height: 0 !important;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.3) !important;
      transform: translate(-50%, -50%) !important;
      transition: width 0.6s, height 0.6s !important;
    }
    
    .stripe-confirm-dialog .layui-layer-btn a:active::before {
      width: 300px !important;
      height: 300px !important;
    }

    @media (max-width: 480px) {
      .stripe-confirm-dialog {
        margin: 16px !important;
        max-width: calc(100vw - 32px) !important;
      }
      
      .stripe-confirm-dialog .layui-layer-btn {
        padding: 16px 20px !important;
        flex-direction: column-reverse !important; 
        gap: 8px !important;
      }
      
      .stripe-confirm-dialog .layui-layer-btn a {
        height: 44px !important;
        line-height: 44px !important;
        padding: 0 24px !important;
        font-size: 15px !important;
        min-width: 100px !important;
        margin: 0 !important;
        flex: none !important;
        width: 100% !important;
      }
      
      .stripe-confirm-dialog .layui-layer-content {
        padding: 20px !important;
        font-size: 15px !important;
      }
      
      .stripe-confirm-dialog .layui-layer-title {
        padding: 16px 20px 0 20px !important;
        font-size: 16px !important;
      }
    }

    .hr-new.head_right .head_rnav .hr-text {
      font-size: 14px !important;
      height: 34px !important;
      line-height: 34px !important;
      font-weight: normal !important;
      font-family: ui-sans-serif, system-ui, -apple-system, "Microsoft YaHei", Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji" !important;
    }
    .hr-new .hr-text .hr-ico{
      height: 1em;
      width: auto;
      display: inline-block;
      vertical-align: middle;
    }
    .hr-new.head_right .head_rnav {
      height: 35px !important;
      display: inline-flex !important;
      align-items: center !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      box-sizing: border-box !important;
      margin-top: 0 !important;
    }
    .hr-new.head_right .head_rnav .hr-text {
      height: 34px !important;
      line-height: 34px !important;
      display: inline-flex !important;
      align-items: center !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
    .hr-new.head_right .head_rnav .hr-text .hr-ico {
      width: 16px !important;
      height: 16px !important;
    }
    .hot-badge {
      position: absolute;
      top: -8px;
      right: -6px;
      background: linear-gradient(135deg, #FF1493, #FF69B4);
      color: white;
      font-size: 9px;
      font-weight: bold;
      padding: 2.9px 6px;
      border-radius: 8px;
      line-height: 1;
      letter-spacing: 0.5px;
      box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4);
      z-index: 10;
      pointer-events: none;
      animation: hot-pulse 2s ease-in-out infinite;
      white-space: nowrap;
    }
    
    @keyframes hot-pulse {
      0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4);
      }
      50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(255, 20, 147, 0.6);
      }
    }
    @media (max-width: 768px) {
      .hot-badge {
        font-size: 8px;
        padding: 1.4px 4.8px;
        top: -7px;
        right: -5px;
      }
    }
    /* Canvas nav item 用的 beta 徽章 — 仿 hot-badge 但不 pulse（nav 上动画太干扰） */
    .beta-badge {
      position: absolute;
      top: -5px;
      right: -6px;
      background: linear-gradient(135deg, #FF1493, #FF69B4);
      color: white;
      font-size: 8px;
      font-weight: bold;
      padding: 1.5px 4px;
      border-radius: 5px;
      line-height: 1;
      letter-spacing: 0.2px;
      box-shadow: 0 1px 3px rgba(255, 20, 147, 0.3);
      z-index: 10;
      pointer-events: none;
      white-space: nowrap;
    }
    @media (max-width: 768px) {
      .beta-badge {
        font-size: 8px;
        padding: 1.4px 4px;
        top: -6px;
        right: -18px;
      }
    }
    /* 移动端 nav <a> 里的 beta 徽章——relative 定位贴在文字右侧，不溢出 a 容器 */
    .beta-badge-mobile {
      position: relative;
      top: -6px;
      right: auto;
      margin-left: 6px;
    }

    .mobile-nav-entry { display: none; }

    /* 中等屏幕：隐藏部分导航项，防止元素重叠 */
    @media (max-width: 1100px) {
      .head_left .pricing.head_rnav,
      .head_left .tutorial.head_rnav {
        display: none !important;
      }
    }

    @media (max-width: 950px) {
      .head_left .plugins.head_rnav,
      .head_left .tools.head_rnav {
        display: none !important;
      }
    }

    /* 移动端 + 平板竖屏：隐藏 head_left 里的 Canvas (BETA),
       手机/触屏不引导进 Canvas (功能依赖桌面端) */
    @media (max-width: 768px) {
      .head_left .canvas.head_rnav {
        display: none !important;
      }
    }

    @media (max-width: 800px) {
      .hr-new.head_right .lang-switch-container {
        display: none !important;
      }
      .download-windows-btn {
        display: none !important;
      }
    }

    @media (max-width: 639px) {
      .head_left,
      .hr-new.head_right {
        display: none !important;
      }

      .head_box {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
      }

      .logo {
        flex-shrink: 0;
        height: 33px !important;
        display: flex !important;
        align-items: center !important;
      }

      .logo img {
        height: 33px !important;
        max-width: 135px !important;
        width: auto !important;
        object-fit: contain !important;
      }

      .mobile-nav-entry {
        display: flex !important;
        align-items: center;
        margin-left: auto;
        flex-shrink: 0;
      }

      .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        cursor: pointer;
      }

      .mobile-nav-icon {
        width: 18px;
        height: 14px;
        position: relative;
        display: inline-block;
      }

      .mobile-nav-icon::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 2px;
        background: #111827;
        border-radius: 2px;
        box-shadow: 0 6px 0 #111827, 0 12px 0 #111827;
      }

      .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 9998;
      }

      .mobile-nav-panel {
        position: fixed;
        left: auto;
        right: 16px;
        width: clamp(200px, calc((100vw - 32px) / 3), 260px);
        top: 62px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.18);
        z-index: 9999;
        overflow: hidden;
      }

      .mobile-nav-panel-inner {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .mobile-nav-item {
        width: 100%;
        text-align: left;
        padding: 12px 12px;
        border-radius: 12px;
        border: none;
        background: #f8fafc;
        color: #111827;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        display: flex;
        align-items: center;
      }

      .mobile-nav-item:hover {
        background: #eef2ff;
      }

      .mobile-nav-item-danger {
        background: #fff1f2;
        color: #be123c;
      }

      .mobile-nav-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 6px 4px;
      }
    }
  
