/* ==========================================================================
   Yue theme for V2Board 1.7.x — modern split-layout restyle
   ========================================================================== */
:root {
  --yue-primary: #1f4e63;
  --yue-primary-hover: #183f50;
  --yue-primary-soft: #e8f0f2;
  --yue-primary-ring: rgba(31, 78, 99, .18);
  /* 护眼：页面底色和卡片都不用纯白，降低亮度和对比 */
  --yue-bg: #edece8;
  --yue-surface: #f8f7f4;
  --yue-input: #fdfcfa;
  --yue-header-bg: rgba(248, 247, 244, .92);
  --yue-border: #e1ded8;
  --yue-border-soft: #ebe9e4;
  --yue-text: #262321;
  --yue-text-2: #47423e;
  --yue-muted: #78716c;
  --yue-faint: #a8a29e;
  --yue-radius: 14px;
  --yue-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

html, body { background: var(--yue-bg) !important; }
body, .ant-modal, .ant-message, .ant-notification, .ant-dropdown, .ant-select-dropdown, .ant-drawer, .ant-popover {
  font-family: var(--yue-font) !important;
  color: var(--yue-text-2);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .block-title { color: var(--yue-text); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--yue-primary); }
a:hover { color: var(--yue-primary-hover); }
::selection { background: #c2d8e0; }

#page-container { background: var(--yue-bg) !important; }
#main-container { background: var(--yue-bg) !important; }

/* ---------- Sidebar ---------- */
#sidebar {
  background: var(--yue-surface) !important;
  border-right: 1px solid var(--yue-border);
  box-shadow: none !important;
}
#sidebar .bg-header-dark, #sidebar .bg-white-10, #sidebar .content-header { background: transparent !important; }
#sidebar .content-header { height: 64px; padding: 0 22px; justify-content: flex-start !important; }
#sidebar .content-header > a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--yue-text) !important; font-size: 16px !important; font-weight: 600; letter-spacing: -.01em;
}
#sidebar .content-header > a span { color: var(--yue-text) !important; }
#sidebar .content-header > a::before, .yue-logo-mark {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--yue-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='12' r='4'/%3E%3Ccircle cx='15.5' cy='12' r='4'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 1px 2px rgba(31, 78, 99, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
#sidebar .content-header .d-lg-none { margin-left: auto; }
#sidebar .content-header .d-lg-none a { color: var(--yue-faint) !important; font-size: 18px; }
#sidebar .content-side { padding: 8px 14px 24px !important; }
.nav-main-heading {
  color: var(--yue-faint) !important; font-size: 12px !important; font-weight: 500 !important;
  letter-spacing: .02em; text-transform: none !important; padding: 18px 12px 6px !important;
}
.nav-main-item { margin: 2px 0; }
.nav-main-link {
  position: relative; border-radius: 9px !important; min-height: 40px;
  padding: 9px 12px !important; color: var(--yue-text-2) !important;
  font-size: 14px; font-weight: 500 !important; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.nav-main-link .nav-main-link-icon { color: var(--yue-muted) !important; font-size: 15px; width: 18px; margin-right: 12px !important; opacity: 1 !important; }
.nav-main-link:hover { background: #f5f5f4 !important; color: var(--yue-text) !important; }
.nav-main-link.active {
  background: var(--yue-primary-soft) !important; color: var(--yue-primary-hover) !important; font-weight: 600 !important;
}
.nav-main-link.active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--yue-primary);
}
.nav-main-link.active .nav-main-link-icon { color: var(--yue-primary) !important; }
.v2board-copyright { color: var(--yue-faint) !important; padding-left: 26px !important; font-size: 12px !important; }

/* ---------- Header ---------- */
#page-header {
  background: var(--yue-header-bg) !important;
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--yue-border);
  box-shadow: none !important;
}
#page-header .content-header { height: 64px; }
#page-container.page-header-fixed #main-container { padding-top: 64px !important; }
#page-header .v2board-container-title {
  color: var(--yue-text) !important; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
#page-header .btn, #page-header .btn.btn-primary {
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px !important;
  background: var(--yue-surface) !important; border: 1px solid var(--yue-border) !important;
  color: var(--yue-text-2) !important; box-shadow: none !important; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 6px;
}
#page-header .btn:hover { background: #f5f5f4 !important; }
#page-header .sidebar-toggle .btn { margin-left: 0; margin-right: 10px !important; }
#page-header .dropdown:last-child .btn .fa-user-circle { color: var(--yue-primary); font-size: 18px; }
#page-header .dropdown:last-child .btn span { font-weight: 500; }
.dropdown-menu {
  border: 1px solid var(--yue-border) !important; border-radius: 12px !important;
  box-shadow: 0 12px 32px -8px rgba(28, 25, 23, .14), 0 2px 6px rgba(28, 25, 23, .05) !important;
  overflow: hidden;
}
.dropdown-item { border-radius: 8px; padding: 8px 12px; color: var(--yue-text-2); }
.dropdown-item:hover, .dropdown-item:focus { background: #f5f5f4; color: var(--yue-text); }
.ant-dropdown-menu { border-radius: 12px !important; padding: 6px !important; border: 1px solid var(--yue-border); box-shadow: 0 12px 32px -8px rgba(28, 25, 23, .14) !important; }
.ant-dropdown-menu-item { border-radius: 8px; }
.ant-dropdown-menu-item:hover { background: #f5f5f4 !important; }

/* ---------- Content ---------- */
#main-container .content { padding-top: 28px; padding-bottom: 40px; background: transparent !important; }
#main-container > .content > h2, #main-container .content > h2.font-weight-normal { font-weight: 700 !important; font-size: 26px; letter-spacing: -.02em; color: var(--yue-text); }
.ant-table, .v2board-order-info > div > span:last-child { font-family: var(--yue-font) !important; font-variant-numeric: tabular-nums; }
@media (min-width: 1200px) {
  .main-content-boxed #main-container .content, .main-content-boxed #page-header .content-header { max-width: 1160px; }
}

.block {
  background: var(--yue-surface) !important;
  border: 1px solid var(--yue-border) !important;
  border-radius: var(--yue-radius) !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .03) !important;
  overflow: hidden;
}
.block.block-transparent { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.block-header, .block-header-default {
  background: var(--yue-surface) !important; padding: 18px 22px 6px !important; border-bottom: 0 !important;
}
.block-header .block-title { font-size: 16px; font-weight: 600; }
.block-content { padding-left: 22px; padding-right: 22px; }
.block-content.block-content-full { padding-bottom: 22px; }
.bg-body-light, .bg-gray-lighter { background-color: #f7f7f6 !important; }
.text-muted { color: var(--yue-muted) !important; }
.text-black { color: var(--yue-text) !important; }

/* Notice banner on dashboard → slim announcement bar */
a.v2board-bg-pixels {
  background: var(--yue-surface) !important; min-height: 0 !important; margin-bottom: 20px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.v2board-bg-pixels:hover { border-color: #c2d8e0 !important; box-shadow: 0 2px 10px -4px rgba(31, 78, 99, .25) !important; }
a.v2board-bg-pixels .block-content {
  background: transparent !important; display: flex; align-items: center; gap: 12px;
  padding: 13px 18px !important; min-height: 0;
}
a.v2board-bg-pixels .block-content > div:first-child { margin: 0 !important; display: flex !important; align-items: center; }
a.v2board-bg-pixels .block-content > div:first-child p { margin: 0 !important; display: flex; line-height: 1; }
a.v2board-bg-pixels .block-content > p { line-height: 1.4; }
a.v2board-bg-pixels .badge {
  display: block; font-size: 0 !important; padding: 0 !important; width: 20px; height: 20px; background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h2l5 4V6L6 10H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E") !important;
  background-size: 20px !important; background-repeat: no-repeat !important;
}
a.v2board-bg-pixels .font-size-lg { color: var(--yue-text) !important; font-size: 15px !important; font-weight: 500; margin: 0 !important; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.v2board-bg-pixels .text-white-75 { color: var(--yue-faint) !important; font-size: 13px; font-weight: 400 !important; margin: 0 !important; white-space: nowrap; }
a.v2board-bg-pixels .text-white-75::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
#main-container .row.mb-3.mb-md-0 > .col-12.mb-sm-4 { margin-bottom: 0 !important; }

/* Progress */
.progress { background: #f0efed !important; border-radius: 999px !important; height: 8px !important; overflow: hidden; }
.progress-bar { border-radius: 999px; background-image: none !important; animation: none !important; }
.progress-bar.bg-success { background: linear-gradient(90deg, #2d6a80, #1f4e63) !important; }
.progress-bar.bg-warning { background: linear-gradient(90deg, #fbbf24, #f59e0b) !important; }
.progress-bar.bg-danger { background: linear-gradient(90deg, #f87171, #ef4444) !important; }

/* Shortcuts list */
.v2board-shortcuts-item {
  position: relative; padding: 16px 64px 16px 22px !important; border-top: 1px solid var(--yue-border-soft) !important;
  border-bottom: 0 !important; color: var(--yue-text) !important; font-weight: 500; cursor: pointer;
  transition: background-color .15s ease;
}
.v2board-shortcuts-item:hover { background: #fafaf9 !important; }
.v2board-shortcuts-item .description { color: var(--yue-muted) !important; font-weight: 400; font-size: 13px; margin-top: 2px; }
.v2board-shortcuts-item > i {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); float: none !important;
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--yue-primary-soft); color: var(--yue-primary) !important; font-size: 16px !important; margin: 0 !important; opacity: 1 !important;
}
.block-content.p-0 .mb-3 { margin-bottom: 0 !important; }

/* Alerts */
.alert { border-radius: 12px !important; border: 1px solid transparent; padding: 12px 16px; font-size: 14px; }
.alert-danger { background: #fef2f2 !important; border-color: #fee2e2 !important; color: #b91c1c !important; }
.alert-warning { background: #fffbeb !important; border-color: #fef3c7 !important; color: #b45309 !important; }
.alert-success { background: #f0fdf4 !important; border-color: #dcfce7 !important; color: #15803d !important; }
.alert-info, .alert-primary { background: var(--yue-primary-soft) !important; border-color: #d5e5eb !important; color: var(--yue-primary-hover) !important; }
.alert .alert-link { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 500; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active {
  background: var(--yue-primary) !important; border-color: var(--yue-primary) !important; color: #fff !important;
  box-shadow: 0 1px 2px rgba(31, 78, 99, .3);
}
.btn-primary:hover, .btn-primary:focus { background: var(--yue-primary-hover) !important; border-color: var(--yue-primary-hover) !important; }
.btn-primary:focus { box-shadow: 0 0 0 4px var(--yue-primary-ring) !important; }
.btn-alt-primary { background: var(--yue-primary-soft) !important; border-color: var(--yue-primary-soft) !important; color: var(--yue-primary-hover) !important; }
.btn-alt-primary:hover { background: #d5e5eb !important; border-color: #d5e5eb !important; }
.btn-light, .btn-alt-secondary, .btn-secondary {
  background: var(--yue-surface) !important; border: 1px solid var(--yue-border) !important; color: var(--yue-text-2) !important;
}
.btn-light:hover, .btn-alt-secondary:hover, .btn-secondary:hover { background: #f5f5f4 !important; }

.ant-btn { border-radius: 8px !important; font-weight: 500; box-shadow: none !important; }
.ant-btn-primary { background: var(--yue-primary) !important; border-color: var(--yue-primary) !important; }
.ant-btn-primary:hover, .ant-btn-primary:focus { background: var(--yue-primary-hover) !important; border-color: var(--yue-primary-hover) !important; }

/* Forms */
.form-control, .form-control-alt, .custom-select {
  height: 42px; border-radius: 10px !important; border: 1px solid #dcd9d2 !important; background: var(--yue-input) !important;
  color: var(--yue-text) !important; font-size: 14px; padding: 8px 14px; box-shadow: 0 1px 1px rgba(28, 25, 23, .02);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; }
.form-control:hover { border-color: #d6d3d1 !important; }
.form-control:focus, .form-control-alt:focus {
  border-color: #5d93a6 !important; box-shadow: 0 0 0 4px var(--yue-primary-ring) !important; outline: none;
}
.form-control::placeholder { color: #b8b2ad; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group-text { border-radius: 10px; background: #f7f7f6; border-color: #e4e2df; }
.ant-input, .ant-select-selection, .ant-input-number { border-radius: 8px !important; }
.ant-input:focus, .ant-input:hover { border-color: #5d93a6 !important; }
.ant-input:focus { box-shadow: 0 0 0 3px var(--yue-primary-ring) !important; }

/* Badges, tags, tables, misc antd */
.badge { border-radius: 6px; font-weight: 500; padding: .35em .6em; }
.badge-primary { background: var(--yue-primary-soft); color: var(--yue-primary-hover); }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-secondary, .badge-light { background: #f0efed; color: var(--yue-text-2); }
.ant-tag { border-radius: 6px !important; }

.ant-table { color: var(--yue-text-2) !important; }
.ant-table-thead > tr > th { background: #fafaf9 !important; color: var(--yue-muted) !important; font-weight: 500 !important; border-bottom: 1px solid var(--yue-border) !important; }
.ant-table-tbody > tr > td { border-bottom: 1px solid var(--yue-border-soft) !important; }
.ant-table-tbody > tr:hover > td { background: #fafaf9 !important; }
.table thead th { border-top: 0; border-bottom: 1px solid var(--yue-border); color: var(--yue-muted); font-weight: 500; font-size: 13px; text-transform: none; }
.table td, .table th { border-top-color: var(--yue-border-soft); }
.ant-pagination-item, .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link { border-radius: 8px !important; }
.ant-pagination-item-active { border-color: var(--yue-primary) !important; }
.ant-pagination-item-active a { color: var(--yue-primary) !important; }

.ant-modal-content { border-radius: 16px !important; overflow: hidden; box-shadow: 0 24px 64px -12px rgba(28, 25, 23, .25) !important; }
.ant-modal-header { border-bottom: 0 !important; padding: 20px 24px 8px !important; }
.ant-modal-title { font-weight: 600 !important; color: var(--yue-text) !important; font-size: 16px !important; }
.ant-modal-footer { border-top: 0 !important; padding: 8px 24px 20px !important; }
.ant-drawer-content { border-radius: 16px 0 0 16px; }
.ant-tabs-ink-bar { background: var(--yue-primary) !important; }
.ant-tabs-nav .ant-tabs-tab-active, .ant-tabs-nav .ant-tabs-tab:hover { color: var(--yue-primary) !important; }
.ant-radio-button-wrapper:first-child { border-radius: 8px 0 0 8px !important; }
.ant-radio-button-wrapper:last-child { border-radius: 0 8px 8px 0 !important; }
.ant-switch-checked { background: var(--yue-primary) !important; }
.ant-message-notice-content, .ant-notification-notice { border-radius: 12px !important; }
.ant-spin-dot-item { background: var(--yue-primary) !important; }

/* Plan cards & pills */
.block-header.plan { padding-bottom: 14px !important; }
.block-content.bg-gray-light { background: #f3f8f9 !important; border-top: 1px solid #eaf2f4; border-bottom: 1px solid #eaf2f4; }
.block-content.bg-gray-light .h1 { color: var(--yue-text); font-weight: 700; letter-spacing: -.02em; }
a.block-link-pop { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.block-link-pop:hover { transform: translateY(-2px); border-color: #c2d8e0 !important; box-shadow: 0 10px 28px -12px rgba(31, 78, 99, .3) !important; }
.v2board-plan-tabs { border-radius: 999px; padding: 3px; }
.v2board-plan-tabs > span { border-radius: 999px; }
.nav-pills .nav-link { border-radius: 999px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--yue-primary) !important; }
.v2board-plan-tabs { border-color: var(--yue-border) !important; background: var(--yue-surface); }
.block-content.bg-body-light, .block-content.bg-gray-lighter { background: #f3f8f9 !important; }

/* Mobile nav mask */
.v2board-nav-mask { background: rgba(28, 25, 23, .35) !important; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ==========================================================================
   Auth pages (login / register / forget password) — split layout
   ========================================================================== */
body.yue-auth .v2board-background { display: none !important; }
body.yue-auth #page-container, body.yue-auth #main-container { background: var(--yue-bg) !important; min-height: 100vh; }
body.yue-auth #main-container { padding-left: var(--yue-brand-w); }
body.yue-auth { --yue-brand-w: clamp(340px, 28vw, 560px); }
body.yue-auth .v2board-auth-box { min-height: 100vh; display: flex; align-items: center; padding: 88px 16px 48px; }
body.yue-auth .v2board-auth-box > div { max-width: 380px !important; }
body.yue-auth .v2board-auth-box > div > div { margin: 0 !important; }
body.yue-auth .v2board-auth-box .block { background: transparent !important; border-width: 0 !important; border-style: none !important; box-shadow: none !important; }
body.yue-auth .v2board-auth-box .bg-white { background: transparent !important; }
body.yue-auth .v2board-auth-box .block-content { padding: 28px 24px 8px !important; }
body.yue-auth .v2board-auth-box .block-content > .mb-3.text-center:first-child { display: none; }
body.yue-auth .v2board-auth-box .block-content[data-yue-title]::before {
  content: attr(data-yue-title); display: block; font-size: 22px; font-weight: 700; color: var(--yue-text);
  letter-spacing: -.01em; margin-bottom: 22px;
}
body.yue-auth .v2board-auth-box .block-content[data-yue-sub]::after {
  content: attr(data-yue-sub); display: none;
}
body.yue-auth .form-group { margin-bottom: 16px; position: relative; }
body.yue-auth .form-group[data-yue-label]::before {
  content: attr(data-yue-label); display: block; font-size: 13px; font-weight: 500; color: var(--yue-text-2); margin-bottom: 7px;
}
body.yue-auth .form-group[data-yue-label] > .form-control::placeholder,
body.yue-auth .form-group[data-yue-label] > .input-group > .form-control::placeholder { color: transparent; }
body.yue-auth .form-group.mb-0 { margin-top: 24px; margin-bottom: 0 !important; }
body.yue-auth .form-group .btn-block { height: 42px; font-size: 15px; }
body.yue-auth .form-group .btn-block .si { display: none; }
body.yue-auth .yue-eye {
  position: absolute; right: 6px; bottom: 5px; width: 32px; height: 32px; border: 0; background: transparent; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--yue-muted); cursor: pointer; padding: 0;
}
body.yue-auth .yue-eye:hover { background: #f5f5f4; color: var(--yue-text); }
body.yue-auth .yue-eye svg { width: 18px; height: 18px; }
body.yue-auth .form-group.yue-has-eye > .form-control { padding-right: 44px; }

/* footer of the auth card → centered links */
body.yue-auth .v2board-auth-box .block > .text-left {
  background: transparent !important; text-align: center !important; padding: 16px 24px 24px !important;
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
body.yue-auth .v2board-auth-box .block > .text-left > a { color: var(--yue-primary) !important; font-size: 14px !important; }
body.yue-auth .v2board-auth-box .block > .text-left > a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.yue-auth .v2board-auth-box .block > .text-left .ant-divider { display: none; }
body.yue-auth .v2board-auth-box .block > .text-left > .yue-noacc ~ a:last-of-type { flex-basis: 100%; margin-top: 6px; }
body.yue-auth .v2board-auth-box .block > .text-left > div[style*="text-align"] { width: 100%; }

/* language switcher → top-right pill */
body.yue-auth .v2board-login-i18n-btn {
  position: fixed !important; top: 16px; right: 68px; z-index: 20; float: none !important;
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--yue-border); background: var(--yue-surface);
  display: inline-flex !important; align-items: center; gap: 4px; cursor: pointer; color: var(--yue-text-2);
  box-shadow: 0 1px 2px rgba(28, 25, 23, .04); transition: background-color .15s ease;
}
body.yue-auth .v2board-login-i18n-btn:hover { background: #f5f5f4; }
body.yue-auth .v2board-login-i18n-btn .text-muted { color: var(--yue-text-2) !important; font-size: 14px !important; vertical-align: baseline !important; }
body.yue-auth .v2board-login-i18n-btn::after {
  content: ""; width: 12px; height: 12px; margin-left: 2px; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.yue-theme-btn {
  position: fixed; top: 16px; right: 16px; z-index: 20; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--yue-border); background: var(--yue-surface); color: var(--yue-text-2); cursor: pointer;
  display: none; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
}
.yue-theme-btn:hover { background: #f5f5f4; }
.yue-theme-btn svg { width: 18px; height: 18px; }
body.yue-auth .yue-theme-btn { display: inline-flex; }

/* brand panel (injected outside React root) */
#yue-brand { display: none; }
body.yue-auth #yue-brand {
  display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--yue-brand-w); z-index: 10;
  padding: 40px; border-right: 1px solid var(--yue-border);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(45, 106, 128, .07), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(45, 106, 128, .06), transparent 60%),
    linear-gradient(180deg, var(--yue-surface), var(--yue-bg));
  background-size: cover; background-position: center;
}
#yue-brand.has-bg::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
}
#yue-brand > * { position: relative; }
#yue-brand .yue-brand-top { display: flex; align-items: center; gap: 12px; color: var(--yue-text); font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
#yue-brand .yue-logo-mark { display: inline-block; width: 38px; height: 38px; border-radius: 10px; background-size: 24px; }
#yue-brand .yue-logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; }
#yue-brand .yue-brand-mid { margin: auto 0; max-width: 360px; }
#yue-brand h1 { font-size: 26px; line-height: 1.35; font-weight: 700; margin: 0 0 14px; color: var(--yue-text); letter-spacing: -.02em; }
#yue-brand .yue-sub { color: var(--yue-muted); font-size: 15px; margin: 0 0 26px; }
#yue-brand ul { list-style: none; padding: 0; margin: 0; }
#yue-brand li { display: flex; align-items: center; gap: 10px; color: var(--yue-text-2); font-size: 15px; margin-bottom: 12px; }
#yue-brand li::before {
  content: ""; flex: none; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
#yue-brand .yue-copy { color: var(--yue-faint); font-size: 12px; }

@media (max-width: 991.98px) {
  body.yue-auth #main-container { padding-left: 0; }
  body.yue-auth #yue-brand {
    position: absolute; right: auto; bottom: auto; width: auto; padding: 18px 20px; border: 0; background: transparent;
  }
  body.yue-auth #yue-brand.has-bg::before { display: none; }
  body.yue-auth #yue-brand .yue-brand-mid, body.yue-auth #yue-brand .yue-copy { display: none; }
  body.yue-auth #yue-brand .yue-brand-top { font-size: 16px; }
  body.yue-auth #yue-brand .yue-logo-mark, body.yue-auth #yue-brand .yue-logo-img { width: 32px; height: 32px; background-size: 20px; }
  body.yue-auth .v2board-login-i18n-btn { top: 14px; right: 62px; }
  body.yue-auth .yue-theme-btn { top: 14px; right: 14px; }
  body.yue-auth .v2board-auth-box { padding-top: 84px; align-items: flex-start; }
}
@media (max-width: 420px) {
  body.yue-auth .v2board-login-i18n-btn .text-muted { display: none; }
  body.yue-auth .v2board-login-i18n-btn { padding: 0 10px; }
}

/* Mobile tweaks for app pages */
@media (max-width: 991.98px) {
  #page-header .v2board-container-title { font-size: 16px; }
  #main-container .content { padding: 16px 14px 32px !important; }
  #main-container .content .alert { margin-bottom: 14px; }
  #page-header .content-header { padding: 0 12px !important; }
  .block { margin-bottom: 14px !important; border-radius: var(--yue-radius) !important; }
  .block-content { border-radius: 0 !important; background-color: transparent; }
  .block.text-light[style*="background"] { margin-bottom: 14px !important; }
  .block-header, .block-header-default { padding: 16px 18px 4px !important; }
  .block-content { padding-left: 18px; padding-right: 18px; }
  .v2board-shortcuts-item { padding-left: 18px !important; }
  #sidebar { box-shadow: 0 0 40px rgba(28, 25, 23, .18) !important; }
}

/* Order summary (dark) cards on plan / order pages */
.block.text-light[style*="background"] {
  background: linear-gradient(160deg, #112f3c 0%, #1e1b4b 100%) !important; border-color: #112f3c !important;
  color: #d5e5eb !important; box-shadow: 0 10px 30px -14px rgba(49, 46, 129, .6) !important;
}
.block.text-light[style*="background"] h1, .block.text-light[style*="background"] h5 { color: #fff !important; }
.block.text-light[style*="background"] .row[style*="border-bottom"] { border-bottom-color: rgba(199, 210, 254, .22) !important; }
.block.text-light[style*="background"] .pt-3[style*="color"] { color: #9dc1cd !important; }
.block.text-light[style*="background"] .form-control {
  background: transparent !important; border: 0 !important; color: #fff !important; box-shadow: none !important; padding-left: 0;
}
.block.text-light[style*="background"] .form-control::placeholder { color: #9dc1cd !important; }
.block.text-light[style*="background"] .btn-primary { background: var(--yue-surface) !important; border-color: #fff !important; color: var(--yue-primary-hover) !important; box-shadow: none; }
.block.text-light[style*="background"] .btn-primary:hover { background: #e8f0f2 !important; }
.v2board-select { border-radius: 10px; }

/* Ticket conversation */
.js-chat-messages .bg-gray-lighter.rounded { background: var(--yue-primary) !important; color: #fff; border-radius: 14px 14px 4px 14px !important; }
.js-chat-messages .bg-success-lighter.rounded { background: var(--yue-surface) !important; border: 1px solid var(--yue-border); color: var(--yue-text); border-radius: 14px 14px 14px 4px !important; }
.js-chat-messages { background: var(--yue-bg) !important; }
.js-chat-form { background: var(--yue-surface) !important; border-top: 1px solid var(--yue-border); padding: 12px !important; }
.js-chat-form .form-control { background: #f5f5f4 !important; border: 1px solid transparent !important; }
.js-chat-form .form-control:focus { background: var(--yue-surface) !important; border-color: #5d93a6 !important; }

/* ==========================================================================
   孤狼加速 layout — matches the reference dashboard
   ========================================================================== */
:root { --yue-side-w: 224px; }
@media (min-width: 992px) {
  #sidebar { width: var(--yue-side-w) !important; }
  #page-container.side-scroll #sidebar .content-header, #page-container.side-scroll #sidebar .content-side { width: var(--yue-side-w) !important; }
  #page-container.sidebar-o { padding-left: var(--yue-side-w) !important; }
  #page-container.page-header-fixed.sidebar-o #page-header { padding-left: var(--yue-side-w) !important; }
}

/* brand in sidebar uses the real logo */
#sidebar .content-header { height: 58px; padding: 0 16px !important; }
#sidebar .content-header > a { font-size: 15px !important; gap: 9px; font-weight: 700; }
#sidebar .content-header > a::before {
  width: 30px; height: 30px; border-radius: 8px; box-shadow: none;
  background: #000 var(--yue-logo) center / cover no-repeat;
}
.v2board-copyright { display: none !important; }

/* own menu replaces the stock one */
#sidebar .content-side > ul.nav-main:not(.yue-nav) { display: none !important; }
#sidebar .content-side { padding: 6px 10px 24px !important; }
.yue-nav .nav-main-heading { padding: 16px 10px 6px !important; font-size: 12px !important; }
.yue-nav .nav-main-item { margin: 1px 0; }
.yue-nav .nav-main-link { min-height: 39px; padding: 8px 10px !important; font-weight: 400 !important; font-size: 14.5px; color: var(--yue-text-2) !important; }
.yue-nav .nav-main-link .yue-i { width: 17px; height: 17px; flex: none; margin-right: 10px; color: var(--yue-muted); }
.yue-nav .nav-main-link.active { font-weight: 600 !important; }
.yue-nav .nav-main-link.active .yue-i { color: var(--yue-primary); }
.yue-nav .nav-main-link.active::before { left: -6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; }

/* header: right-aligned tools only */
#page-header { background: var(--yue-header-bg) !important; }
#page-header .content-header { height: 58px; }
#page-container.page-header-fixed #main-container { padding-top: 58px !important; }
#page-header .v2board-container-title { display: none !important; }
#page-header .content-header > div:last-child { margin-left: auto; display: flex; align-items: center; gap: 8px; }
#page-header .content-header > div:last-child > .dropdown { display: flex !important; }
#page-header .btn { margin-left: 0 !important; margin-right: 0 !important; }
.yue-icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--yue-text-2);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: background-color .15s ease;
}
.yue-icon-btn:hover { background: #f5f5f4; }
.yue-icon-btn .yue-i { width: 20px; height: 20px; }
#page-header .yue-lang-btn { padding: 0 12px 0 10px !important; gap: 0; }
#page-header .yue-lang-btn > * { display: none !important; }
#page-header .yue-lang-btn::before {
  content: attr(data-yue-lang); padding-left: 24px; font-size: 14px; line-height: 20px; color: var(--yue-text-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 6 6'/%3E%3Cpath d='m4 14 6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='m22 22-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E") left center / 17px no-repeat;
}
#page-header .yue-lang-btn::after {
  content: ""; width: 12px; height: 12px; margin-left: 6px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
#page-header .yue-dm-btn { width: 38px; padding: 0 !important; }
#page-header .yue-dm-btn i { display: block; width: 18px; height: 18px; font-size: 0 !important; background: center / 18px no-repeat; }
#page-header .yue-dm-btn i::before { content: none !important; }
#page-header .yue-dm-btn .fa-sun { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E"); }
#page-header .yue-dm-btn .fa-moon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
#page-header .yue-user-btn { border: 0 !important; background: transparent !important; padding: 0 6px !important; gap: 10px; }
#page-header .yue-user-btn:hover { background: #f5f5f4 !important; }
#page-header .yue-user-btn > i { display: none !important; }
#page-header .yue-user-btn::before {
  content: ""; width: 32px; height: 32px; border-radius: 999px; flex: none;
  background: var(--yue-avatar, linear-gradient(135deg, #9dc1cd, #1f4e63)) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--yue-border);
}
#page-header .yue-user-btn span { margin: 0 !important; font-weight: 400 !important; font-size: 14px; color: var(--yue-text-2); }

/* content column */
@media (min-width: 1200px) {
  .main-content-boxed #main-container .content { max-width: 1152px; }
}
#main-container .content { padding-top: 22px !important; }
.yue-page-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--yue-text); margin: 0 0 18px; line-height: 1.3; }
#main-container .content > h2.font-weight-normal { display: none; }
#main-container .content > h2.font-weight-normal + div { margin-top: 0 !important; }

.block { border-radius: 16px !important; box-shadow: 0 1px 3px rgba(28, 25, 23, .05) !important; }

/* notice bar */
a.v2board-bg-pixels { border-radius: 12px !important; margin-bottom: 24px !important; }
a.v2board-bg-pixels .block-content { padding: 12px 18px !important; }
a.v2board-bg-pixels .badge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4e63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E") !important;
  width: 18px; height: 18px; background-size: 18px !important;
}
a.v2board-bg-pixels .font-size-lg { font-size: 14.5px !important; font-weight: 400; }
a.v2board-bg-pixels .text-white-75 { color: var(--yue-muted) !important; font-size: 12.5px; }
a.v2board-bg-pixels .text-white-75::before { content: attr(data-yue-pre); }

/* onboarding card (no subscription yet) */
.yue-onboard { margin-bottom: 24px; }
.yue-ob-in { padding: 26px 24px 24px; }
.yue-onboard h3 { font-size: 18.5px; font-weight: 700; margin: 0 0 6px; color: var(--yue-text); }
.yue-ob-sub { color: var(--yue-text-2); margin: 0 0 18px; font-size: 14.5px; }
.yue-ob-buy { display: inline-flex !important; align-items: center; gap: 7px; height: 38px; padding: 0 14px !important; font-size: 14.5px; border-radius: 9px !important; }
.yue-ob-buy .yue-i { width: 16px; height: 16px; }
.yue-steps { list-style: none; padding: 0; margin: 22px 0 0; }
.yue-steps li { display: flex; gap: 12px; margin-bottom: 14px; }
.yue-steps li:last-child { margin-bottom: 0; }
.yue-steps .n {
  flex: none; width: 26px; height: 26px; border-radius: 999px; margin-top: -1px; background: var(--yue-primary-soft); color: var(--yue-primary-hover);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.yue-steps b { display: block; font-weight: 500; color: var(--yue-text); font-size: 14.5px; margin-bottom: 4px; }
.yue-steps p { margin: 0; color: var(--yue-text-2); font-size: 14.5px; }
.yue-ghost {
  margin-top: 10px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--yue-border); background: var(--yue-surface);
  color: var(--yue-text); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s ease;
}
.yue-ghost:hover { background: #f5f5f4; }

/* message centre modal */
.yue-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(28, 25, 23, .35); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; animation: yueFade .15s ease; }
.yue-modal-card { width: 100%; max-width: 520px; max-height: 76vh; display: flex; flex-direction: column; background: var(--yue-surface); border-radius: 16px; box-shadow: 0 24px 64px -12px rgba(28, 25, 23, .3); overflow: hidden; }
.yue-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 22px; }
.yue-modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.yue-modal-body { overflow: auto; padding: 0 14px 14px; }
.yue-msg { border: 1px solid var(--yue-border); border-radius: 12px; margin-bottom: 8px; }
.yue-msg summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.yue-msg summary::-webkit-details-marker { display: none; }
.yue-msg summary .yue-i { width: 17px; height: 17px; color: var(--yue-primary); flex: none; }
.yue-msg summary .t { flex: 1; min-width: 0; color: var(--yue-text); font-weight: 500; }
.yue-msg summary .d { color: var(--yue-faint); font-size: 12.5px; }
.yue-msg .c { padding: 0 14px 14px 41px; color: var(--yue-text-2); white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.yue-msg img { display: block; max-width: calc(100% - 55px); margin: 0 14px 10px 41px; border-radius: 8px; }
.yue-msg-empty { padding: 32px 0; text-align: center; color: var(--yue-faint); }
@keyframes yueFade { from { opacity: 0; } to { opacity: 1; } }

.yue-flash { animation: yueFlash 1.4s ease; }
@keyframes yueFlash { 0%, 60% { box-shadow: 0 0 0 4px var(--yue-primary-ring) !important; border-color: #9dc1cd !important; } }

/* auth page details */
#yue-brand .yue-logo-img { background: #000; }
#yue-brand h1 { max-width: 210px; font-size: 24px; }
#yue-brand .yue-sub { font-size: 14.5px; }
#yue-brand li { font-size: 14.5px; }
body.yue-auth .v2board-login-i18n-btn > * { display: none !important; }
body.yue-auth .v2board-login-i18n-btn::before {
  content: attr(data-yue-lang); padding-left: 24px; font-size: 14px; line-height: 20px; color: var(--yue-text-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344403c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 6 6'/%3E%3Cpath d='m4 14 6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='m22 22-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E") left center / 17px no-repeat;
}
body.yue-auth .v2board-login-i18n-btn::after { margin-left: 6px; }
body.yue-auth .yue-noacc { color: var(--yue-text-2); font-size: 14px; }
.yue-eye .yue-i, .yue-theme-btn .yue-i { width: 18px; height: 18px; }

@media (max-width: 991.98px) {
  #page-header .yue-user-btn span { display: none !important; }
  #page-header .content-header > div:last-child { gap: 4px; }
  #page-header .yue-lang-btn { padding: 0 8px !important; }
  #page-header .yue-lang-btn::before { content: ""; padding-left: 0; display: inline-block; width: 18px; height: 18px; background-position: center; }
  #page-header .yue-lang-btn::after { display: none; }
  .yue-page-title { font-size: 22px; margin-bottom: 14px; }
  .yue-ob-in { padding: 20px 18px; }
  #sidebar .content-header > a::before { width: 28px; height: 28px; }
}
.main-content-boxed #page-header .content-header { max-width: none !important; padding: 0 20px !important; }
#page-header .content-header > div:last-child > .yue-bell { order: 0; }
#page-header .content-header > div:last-child > .dropdown:nth-child(2) { order: 2; }
#page-header .content-header > div:last-child > .dropdown:nth-child(3) { order: 1; }
#page-header .content-header > div:last-child > .dropdown:nth-child(4) { order: 3; margin-left: 4px; }
@media (max-width: 991.98px) { .main-content-boxed #page-header .content-header { padding: 0 12px !important; } }

body.yue-auth .btn-block[data-yue-text] > * { display: none !important; }
body.yue-auth .btn-block[data-yue-text]::after { content: attr(data-yue-text); }

#sidebar .content-header > a::before { display: none !important; }
#sidebar .content-header > a .yue-side-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; background: #000; object-fit: cover; }
#page-header .yue-user-btn { border-color: transparent !important; outline: 0; }
@media (max-width: 991.98px) { #sidebar .content-header > a .yue-side-logo { width: 28px; height: 28px; } }

/* ==========================================================================
   我的设备 / 自助诊断
   ========================================================================== */
body.yue-view-on #main-container > .content:not(.yue-view) { display: none !important; }
.yue-view .yue-card { padding: 22px 24px; margin-bottom: 20px; }
.yue-card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--yue-text); }
.yue-muted { color: var(--yue-muted); font-size: 14px; margin: 0; }
.yue-label { color: var(--yue-muted); font-size: 13.5px; margin-bottom: 4px; }
.yue-loading { display: flex; justify-content: center; padding: 60px 0; color: var(--yue-primary); }
.yue-loading .yue-i, .yue-dg-st.run .yue-i { animation: yueSpin .9s linear infinite; }
.yue-loading .yue-i { width: 26px; height: 26px; }
@keyframes yueSpin { to { transform: rotate(360deg); } }
.yue-view .btn, .yue-view .yue-ghost { display: inline-flex; align-items: center; gap: 7px; }
.yue-view .btn .yue-i, .yue-view .yue-ghost .yue-i { width: 16px; height: 16px; }
.yue-view .btn-primary { height: 38px; padding: 0 14px; border-radius: 9px !important; }

.yue-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px !important; gap: 14px; }
.yue-empty > .yue-i { width: 40px; height: 40px; color: var(--yue-faint); }
.yue-empty p { margin: 0; color: var(--yue-text-2); }

.yue-dv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.yue-dv-num b { font-size: 40px; font-weight: 700; color: var(--yue-text); letter-spacing: -.02em; line-height: 1.1; }
.yue-dv-num span { font-size: 18px; color: var(--yue-muted); }
.yue-dv-meta { display: flex; gap: 28px; }
.yue-dv-meta div { display: flex; flex-direction: column; gap: 2px; }
.yue-dv-meta span { color: var(--yue-muted); font-size: 13px; }
.yue-dv-meta b { color: var(--yue-text); font-weight: 600; font-size: 15px; }
.yue-bar { height: 8px; border-radius: 999px; background: #f0efed; overflow: hidden; margin: 16px 0 12px; }
.yue-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2d6a80, #1f4e63); }
.yue-bar.full i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.yue-dv-top + .yue-muted { margin-top: 14px; }
.yue-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 14px; }
.yue-alert .yue-i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.yue-alert.warn { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }

.yue-copy-row { display: flex; gap: 10px; margin: 14px 0 0; }
.yue-url {
  flex: 1; min-width: 0; display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 9px; background: #f7f7f6;
  border: 1px solid var(--yue-border); color: var(--yue-text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.yue-reset-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--yue-border-soft); }
.yue-reset-row p { margin: 0; color: var(--yue-muted); font-size: 13.5px; }
.yue-ghost.danger { color: #dc2626; border-color: #fecaca; margin-top: 0; flex: none; }
.yue-ghost.danger:hover { background: #fef2f2; }
.yue-ghost[disabled] { opacity: .5; cursor: default; }
.yue-view .yue-steps { margin-top: 14px; }
.yue-note { margin: 16px 0 0; color: var(--yue-faint); font-size: 12.5px; }

.yue-dg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.yue-dg-sum { display: flex; gap: 14px; align-items: center; min-width: 0; }
.yue-dg-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--yue-primary-soft); color: var(--yue-primary); }
.yue-dg-ic .yue-i { width: 22px; height: 22px; }
.yue-dg-head.all-good .yue-dg-ic { background: #dcfce7; color: #16a34a; }
.yue-dg-head.has-bad .yue-dg-ic { background: #fef3c7; color: #d97706; }
.yue-dg-head .yue-ghost { margin-top: 0; flex: none; }
.yue-dg-list { padding: 6px 0 !important; }
.yue-dg-item { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--yue-border-soft); }
.yue-dg-item:first-child { border-top: 0; }
.yue-dg-st { flex: none; width: 22px; height: 22px; display: flex; color: var(--yue-faint); }
.yue-dg-st .yue-i { width: 22px; height: 22px; }
.yue-dg-st.good { color: #16a34a; }
.yue-dg-st.warn { color: #d97706; }
.yue-dg-st.bad { color: #dc2626; }
.yue-dg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.yue-dg-txt b { font-weight: 500; color: var(--yue-text); font-size: 14.5px; }
.yue-dg-msg { color: var(--yue-muted); font-size: 13.5px; }
.yue-dg-item.bad .yue-dg-msg { color: #b91c1c; }
.yue-dg-item.warn .yue-dg-msg { color: #b45309; }
.yue-dg-act .yue-ghost { margin-top: 0; }
.yue-tips { margin: 10px 0 18px; padding-left: 20px; color: var(--yue-text-2); font-size: 14px; }
.yue-tips li { margin-bottom: 6px; }

.yue-confirm { max-width: 440px; }
.yue-confirm-in { display: flex; gap: 14px; padding: 22px 22px 8px; }
.yue-confirm-ic { flex: none; width: 40px; height: 40px; border-radius: 999px; background: #fef2f2; color: #dc2626; display: flex; align-items: center; justify-content: center; }
.yue-confirm-ic .yue-i { width: 20px; height: 20px; }
.yue-confirm h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--yue-text); }
.yue-confirm p { margin: 0; color: var(--yue-text-2); font-size: 14px; line-height: 1.6; }
.yue-confirm-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.yue-confirm-ft .yue-ghost { margin-top: 0; height: 38px; }
.yue-confirm-ft .btn-danger { height: 38px; border-radius: 8px; background: #dc2626; border-color: #dc2626; }

.yue-toast {
  position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 8px;
  background: var(--yue-surface); border: 1px solid var(--yue-border); border-radius: 12px; padding: 10px 16px; font-size: 14px; color: var(--yue-text);
  box-shadow: 0 12px 32px -8px rgba(28, 25, 23, .2); animation: yueFade .2s ease; transition: opacity .3s ease;
}
.yue-toast .yue-i { width: 18px; height: 18px; color: #16a34a; }
.yue-toast.bad .yue-i { color: #dc2626; }
.yue-toast.out { opacity: 0; }

@media (max-width: 767.98px) {
  .yue-view .yue-card { padding: 18px; }
  .yue-copy-row { flex-direction: column; }
  .yue-reset-row { flex-direction: column; align-items: flex-start; }
  .yue-dg-head { flex-direction: column; align-items: flex-start; }
  .yue-dg-item { padding: 12px 18px; flex-wrap: wrap; }
  .yue-dg-act { width: 100%; padding-left: 36px; }
  .yue-dg-act:empty { display: none; }
}
@media (max-width: 767.98px) { .yue-url { display: block; flex: none; width: 100%; line-height: 36px; } .yue-copy-row .btn { justify-content: center; } }

/* 我的设备 — device-plugin layout */
.yue-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.yue-head-row .yue-page-title { margin: 0 0 4px; }
.yue-page-sub { margin: 0; color: var(--yue-text-2); font-size: 14.5px; }
.yue-head-row .yue-ghost { margin-top: 2px; height: 38px; flex: none; }
.yue-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.yue-stat { padding: 22px 24px; margin: 0 !important; }
.yue-stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--yue-text-2); font-size: 13.5px; margin-bottom: 10px; }
.yue-stat-top .yue-i { width: 18px; height: 18px; color: var(--yue-muted); }
.yue-stat b { font-size: 24px; font-weight: 600; color: var(--yue-text); line-height: 1.2; }
.yue-stat b small { font-size: 15px; color: var(--yue-muted); font-weight: 500; }
.yue-stat b.yue-stat-sm { font-size: 20px; }
.yue-textlink { display: inline-block; color: var(--yue-primary) !important; font-size: 14.5px; margin-top: 2px; }
.yue-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.yue-dev-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 16px 40px; }
.yue-dev-empty > .yue-i { width: 34px; height: 34px; color: var(--yue-text-2); margin-bottom: 12px; }
.yue-dev-empty b { font-weight: 500; color: var(--yue-text); font-size: 15.5px; margin-bottom: 8px; }
.yue-dev-empty p { color: var(--yue-text-2); margin: 0 0 18px; font-size: 14.5px; }
.yue-dev-list { margin-top: 14px; border: 1px solid var(--yue-border-soft); border-radius: 12px; overflow: hidden; }
.yue-dev-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--yue-border-soft); }
.yue-dev-row:first-child { border-top: 0; }
.yue-dev-row.is-blocked { background: #fcfcfb; }
.yue-dev-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--yue-primary-soft); color: var(--yue-primary); display: flex; align-items: center; justify-content: center; }
.yue-dev-row.is-blocked .yue-dev-ic { background: #f5f5f4; color: var(--yue-faint); }
.yue-dev-ic .yue-i { width: 20px; height: 20px; }
.yue-dev-main { flex: 1; min-width: 0; }
.yue-dev-name { display: flex; align-items: center; gap: 8px; color: var(--yue-text); font-weight: 500; font-size: 14.5px; }
.yue-dev-meta { color: var(--yue-muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yue-dev-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.yue-dev-acts .yue-ghost { margin-top: 0; height: 32px; font-size: 13.5px; }
.yue-link-btn { border: 0; background: transparent; color: var(--yue-muted); font-size: 13.5px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.yue-link-btn:hover { background: #f5f5f4; color: #dc2626; }
.yue-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; }
.yue-pill.on { background: #dcfce7; color: #15803d; }
.yue-pill.on::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #16a34a; }
.yue-pill.off { background: #fee2e2; color: #b91c1c; }
.yue-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.yue-conn-list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.yue-conn { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--yue-border-soft); font-size: 14px; }
.yue-conn:first-child { border-top: 0; }
.yue-dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; flex: none; }
.yue-conn .yue-mono { color: var(--yue-text); min-width: 130px; }
.yue-conn-node { flex: 1; color: var(--yue-text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yue-conn-t { color: var(--yue-faint); font-size: 12.5px; }
.yue-none { margin: 22px 0 4px; color: var(--yue-text-2); font-size: 14.5px; }
.yue-info-in { padding: 22px 22px 6px; }
.yue-info-in h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--yue-text); }
.yue-info-in p { margin: 0 0 10px; color: var(--yue-text-2); font-size: 14px; line-height: 1.65; }
@media (max-width: 767.98px) {
  .yue-head-row { flex-direction: column; }
  .yue-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .yue-stats .yue-stat:last-child { grid-column: 1 / -1; }
  .yue-stat { padding: 16px 18px; }
  .yue-dev-row { flex-wrap: wrap; }
  .yue-dev-acts { width: 100%; padding-left: 54px; }
  .yue-dev-meta { white-space: normal; }
  .yue-conn { flex-wrap: wrap; }
  .yue-conn .yue-mono { min-width: 0; }
}

/* 客户端下载 */
.yue-dl-sub { margin: -10px 0 22px; }
.yue-dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.yue-dl-card { padding: 22px 20px !important; margin: 0 !important; display: flex; flex-direction: column; align-items: flex-start; }
.yue-dl-card.is-rec { border-color: #c2d8e0 !important; box-shadow: 0 0 0 3px var(--yue-primary-soft), 0 1px 3px rgba(28, 25, 23, .05) !important; }
.yue-dl-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 14px; }
.yue-dl-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--yue-primary-soft); color: var(--yue-primary); display: flex; align-items: center; justify-content: center; }
.yue-dl-ic .yue-i { width: 22px; height: 22px; }
.yue-pill.rec { background: var(--yue-primary); color: #fff; }
.yue-dl-name { font-size: 16px; font-weight: 600; color: var(--yue-text); }
.yue-dl-desc { color: var(--yue-muted); font-size: 13.5px; margin: 4px 0 16px; flex: 1; }
.yue-dl-btn { margin-top: 0 !important; height: 36px; padding: 0 14px !important; }
.yue-view .yue-dl-btn.btn-primary { height: 36px; }
.yue-dl-na { color: var(--yue-faint); font-size: 13.5px; line-height: 36px; }
.yue-dl-more { margin: 0 0 20px; }
@media (max-width: 1199.98px) { .yue-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .yue-dl-grid { gap: 12px; } .yue-dl-card { padding: 16px !important; } }

/* 礼品卡 */
.yue-gc-card { max-width: 640px; }
.yue-gc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--yue-primary-soft); color: var(--yue-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.yue-gc-ic .yue-i { width: 24px; height: 24px; }
.yue-gc-form label { display: block; font-size: 13.5px; font-weight: 500; color: var(--yue-text-2); margin-bottom: 7px; }
.yue-gc-row { display: flex; gap: 10px; }
.yue-gc-row .form-control { flex: 1; min-width: 0; letter-spacing: .04em; }
.yue-gc-row .btn { height: 42px !important; padding: 0 22px !important; flex: none; }
.yue-gc-result { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.yue-gc-result .yue-i { width: 18px; height: 18px; flex: none; }
.yue-gc-result.ok { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }
.yue-gc-result.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }
.yue-gc-tips { margin: 18px 0 0; color: var(--yue-muted); font-size: 13px; }
@media (max-width: 575.98px) { .yue-gc-row { flex-direction: column; } .yue-gc-row .btn { width: 100%; } }
.yue-conn-g { border-top: 1px solid var(--yue-border-soft); }
.yue-conn-g:first-child { border-top: 0; }
.yue-conn-g > summary { list-style: none; cursor: pointer; border-top: 0 !important; border-radius: 8px; }
.yue-conn-g > summary::-webkit-details-marker { display: none; }
.yue-conn-g > summary:hover { background: #fafaf9; }
.yue-conn-caret { width: 14px; height: 14px; flex: none; transition: transform .15s ease; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.yue-conn-g[open] .yue-conn-caret { transform: rotate(180deg); }
.yue-conn-nodes { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 12px 24px; }
.yue-conn-nodes span { font-size: 12.5px; color: var(--yue-text-2); background: #f5f5f4; border-radius: 6px; padding: 3px 8px; }
.yue-pill.gray { background: #f0efed; color: var(--yue-muted); }


/* ===== 护眼配色补充：覆盖原版组件里的纯白 ===== */
.bg-white, .block-content.bg-white, .content-header.bg-white { background-color: var(--yue-surface) !important; }
.dropdown-menu, .ant-dropdown-menu, .ant-modal-content, .ant-modal-header, .ant-select-dropdown, .ant-popover-inner, .ant-message-notice-content, .ant-notification-notice,
.ant-table, .ant-table-thead > tr > th, .ant-table-tbody > tr > td, .ant-card, .ant-tabs, .ant-collapse, .ant-collapse-content, .ant-drawer-content, .ant-drawer-header,
.ant-pagination-item, .ant-pagination-prev .ant-pagination-item-link, .ant-pagination-next .ant-pagination-item-link, .ant-radio-button-wrapper, .ant-select-selection,
.ant-input, .ant-input-number, .ant-btn:not(.ant-btn-primary):not(.ant-btn-danger), .v2board-select { background-color: var(--yue-surface) !important; }
.ant-input, .ant-select-selection { background-color: var(--yue-input) !important; }
.ant-table-thead > tr > th { background-color: #f1efeb !important; }
.ant-table-tbody > tr:hover > td, .yue-conn-g > summary:hover, .v2board-shortcuts-item:hover, .nav-main-link:hover, .dropdown-item:hover, .yue-ghost:hover, .yue-icon-btn:hover,
#page-header .btn:hover, .yue-link-btn:hover { background-color: #ebe8e3 !important; }
.nav-main-link.active { background: #e2ecef !important; }
.block-content.bg-gray-light { background: #ebf1f3 !important; }
.yue-dev-row.is-blocked { background: #f1efeb; }
.yue-url, .input-group-text { background: #f1efeb !important; }
body.yue-auth .v2board-login-i18n-btn, .yue-theme-btn { background: var(--yue-surface); }

/* 头像：用邮箱首字母，代替默认的随机图案 */
#page-header .yue-user-btn::before {
  content: attr(data-initial); display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5d93a6, #1f4e63) !important; color: #fff; font-size: 14px; font-weight: 600; box-shadow: none;
}

/* ===== 导入订阅 ===== */
.yue-imp-card { max-width: 720px; max-height: 86vh; }
.yue-modal.yue-import { padding-top: 6vh; }
.yue-imp-body { padding: 4px 22px 22px !important; }
.yue-imp-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--yue-border-soft); background: #f1efeb; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: background-color .15s ease; }
.yue-imp-row:hover { background: #e9e6e0; }
.yue-imp-row b { display: block; color: var(--yue-text); font-size: 15px; font-weight: 600; }
.yue-imp-row small { color: var(--yue-muted); font-size: 13px; }
.yue-imp-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.yue-imp-ic .yue-i { width: 20px; height: 20px; }
.yue-imp-ic.blue { background: #dfe6f3; color: #2563eb; }
.yue-imp-ic.green { background: #dcefe2; color: #16a34a; }
.yue-imp-qrbox { text-align: center; padding: 6px 0 14px; }
.yue-imp-qrbox svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--yue-border); }
.yue-imp-qrbox p { margin: 8px 0 0; color: var(--yue-muted); font-size: 13px; }
.yue-imp-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.yue-imp-tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--yue-border); background: var(--yue-surface); color: var(--yue-text-2); font-size: 14px; font-weight: 500; cursor: pointer; }
.yue-imp-tab .yue-i { width: 16px; height: 16px; }
.yue-imp-tab:hover { background: #ebe8e3; }
.yue-imp-tab.on { border-color: #9dc1cd; background: var(--yue-primary-soft); color: var(--yue-primary-hover); box-shadow: 0 2px 8px -2px rgba(31, 78, 99, .25); }
.yue-imp-sub { font-size: 13.5px; color: var(--yue-muted); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--yue-border-soft); }
.yue-imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.yue-imp-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 96px; border-radius: 14px; border: 1px solid var(--yue-border-soft); background: #f1efeb; cursor: pointer; color: var(--yue-text); font-size: 13.5px; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; }
.yue-imp-app:hover { background: var(--yue-primary-soft); border-color: #c2d8e0; transform: translateY(-1px); }
.yue-imp-app img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.yue-imp-letter { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: -.02em; }
.yue-imp-foot { margin: 16px 0 0; color: var(--yue-muted); font-size: 13px; text-align: center; }
@media (max-width: 575.98px) { .yue-imp-body { padding: 2px 14px 16px !important; } .yue-imp-grid { grid-template-columns: repeat(3, 1fr); } .yue-imp-app { height: 88px; font-size: 12.5px; } .yue-imp-tab { padding: 0 12px; } }

/* ==========================================================================
   登录页 v2：左侧墨蓝品牌区 + 右侧表单（参考奈鹿布局）
   ========================================================================== */
body.yue-auth {
  --yue-brand-w: clamp(380px, 50vw, 1100px);
  --ink-900: #102a35; --ink-800: #153643; --ink-700: #1a4252; --ink-600: #1f4e63; --ink-500: #2d6a80; --ink-link: #1f6f86;
  --auth-bg: #fbfbfa; --auth-input: #f2f5f7; --auth-line: #e3e7ea;
}
body.yue-auth #page-container, body.yue-auth #main-container { background: var(--auth-bg) !important; }

/* 左侧品牌区 */
body.yue-auth #yue-brand {
  padding: 40px 40px 32px; border-right: 0; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 55% at 32% 38%, rgba(64, 128, 148, .30), transparent 70%),
    radial-gradient(50% 45% at 85% 10%, rgba(45, 106, 128, .22), transparent 70%),
    linear-gradient(160deg, #1d4655 0%, #173a48 48%, #112d39 100%);
}
#yue-brand.has-bg::before { background: linear-gradient(160deg, rgba(23, 58, 72, .88), rgba(16, 42, 53, .94)) !important; }
#yue-brand .yue-arcs {
  position: absolute; left: -40%; bottom: -55%; width: 130%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 95px, rgba(255, 255, 255, .045) 96px 97px);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 68%); mask-image: radial-gradient(circle at center, #000 30%, transparent 68%);
}
#yue-brand .yue-brand-top { color: #fff; font-size: 16px; font-weight: 700; gap: 12px; }
#yue-brand .yue-brand-top span { color: #fff; }
#yue-brand .yue-logo-img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
#yue-brand .yue-brand-mid { margin: auto 0; padding-left: clamp(0px, 8%, 90px); max-width: 680px; }
#yue-brand h1 {
  max-width: none !important; color: #fff; font-size: clamp(30px, 3.1vw, 46px) !important; line-height: 1.25; font-weight: 700;
  letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance;
}
#yue-brand .yue-sub { color: rgba(226, 238, 242, .72); font-size: 16px !important; line-height: 1.7; margin: 0; }
#yue-brand ul { display: none; }
#yue-brand .yue-copy { color: rgba(226, 238, 242, .4); }

/* 右侧表单 */
body.yue-auth .v2board-auth-box > div { max-width: 420px !important; }

body.yue-auth .v2board-auth-box .block-content { padding: 8px 24px 0 !important; }
body.yue-auth .v2board-auth-box .block-content[data-yue-title]::before {
  font-size: 30px; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; margin-bottom: 10px;
}
.yue-auth-sub { color: #6b7780; font-size: 14px; margin: 0 0 26px; }
body.yue-auth .form-group { margin-bottom: 18px; }
body.yue-auth .form-group[data-yue-label]::before { font-size: 14px; color: #2b3a42; margin-bottom: 8px; }
body.yue-auth .v2board-auth-box .form-control {
  height: 48px; border-radius: 10px !important; background: var(--auth-input) !important; border: 1px solid var(--auth-line) !important;
  color: var(--ink-900); font-size: 15px; box-shadow: none !important; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.yue-auth .v2board-auth-box .form-control:focus { background: #fff !important; border-color: var(--ink-500) !important; box-shadow: 0 0 0 3px rgba(45, 106, 128, .16) !important; }
body.yue-auth .v2board-auth-box .input-group .btn { height: 48px; border-radius: 0 10px 10px 0 !important; }
body.yue-auth .v2board-auth-box .input-group > .form-control:not(:last-child) { border-radius: 10px 0 0 10px !important; }
body.yue-auth .yue-eye { bottom: 8px; }
body.yue-auth .yue-eye:hover { background: #e7edf0; }

/* 社交登录 */
.yue-social { margin-bottom: 4px; }
.yue-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yue-soc {
  height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
  border: 1px solid var(--auth-line); background: #fff; color: #2b3a42; cursor: pointer; font-size: 14.5px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.yue-soc:hover { background: #f5f8f9; border-color: #cfd8dd; box-shadow: 0 2px 8px -4px rgba(16, 42, 53, .18); }
.yue-soc:disabled { opacity: .6; cursor: progress; }
.yue-soc svg { width: 19px; height: 19px; flex: none; }
.yue-soc b { font-weight: 600; }
.yue-soc small { color: #8a959c; font-size: 12px; }
.yue-social-hint { margin: 10px 0 0; text-align: center; color: #8a959c; font-size: 12.5px; }
.yue-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; color: #8a959c; font-size: 12.5px; }
.yue-or::before, .yue-or::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }

/* 记住登录 */
.yue-remember { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 16px; font-size: 13.5px; }
.yue-remember label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #4a5860; cursor: pointer; font-weight: 400; }
.yue-remember input { width: 16px; height: 16px; accent-color: var(--ink-600); margin: 0; cursor: pointer; }
.yue-remember a { color: var(--ink-link) !important; }
.yue-remember a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 人机验证 */
.yue-ts { margin: 0 0 18px; border-radius: 10px; }
.yue-ts-box { min-height: 65px; }
.yue-ts-box:empty { border: 1px dashed var(--auth-line); border-radius: 10px; background: #f6f8f9; }
.yue-ts-hint { font-size: 12.5px; color: #8a959c; margin-top: 6px; min-height: 0; }
.yue-ts-hint:empty { display: none; }
.yue-ts-hint.ok { color: #3b6b5a; }
.yue-ts-hint.bad { color: #b42318; }
.yue-auth-msg { font-size: 13px; color: #4a5860; margin-top: 6px; }
.yue-auth-msg:empty { display: none; }
.yue-auth-msg.bad { color: #b42318; }

/* 提交按钮 */
body.yue-auth .form-group.mb-0 { margin-top: 0; }
body.yue-auth .v2board-auth-box .btn-block.btn-primary {
  height: 48px; border-radius: 10px !important; background: var(--ink-800) !important; border-color: var(--ink-800) !important;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; box-shadow: 0 6px 16px -8px rgba(16, 42, 53, .55);
}
body.yue-auth .v2board-auth-box .btn-block.btn-primary:hover { background: var(--ink-700) !important; border-color: var(--ink-700) !important; }

/* 底部链接 */
body.yue-auth .v2board-auth-box .block > .text-left { padding: 22px 24px 8px !important; }
body.yue-auth .v2board-auth-box .block > .text-left > a { color: var(--ink-link) !important; }
body.yue-auth .v2board-auth-box .block > .text-left[data-yue-route="login"] > a.yue-hide-forget { display: none !important; }
body.yue-auth .v2board-auth-box .block > .text-left > a[data-yue-text] { font-size: 0 !important; }
body.yue-auth .v2board-auth-box .block > .text-left > a[data-yue-text]::after { content: attr(data-yue-text); font-size: 14px; }
body.yue-auth .yue-noacc { color: #6b7780; }

/* Telegram 登录弹窗 */
.yue-tg-card { max-width: 420px; }
.yue-tg-hd { display: flex; align-items: center; gap: 10px; padding: 16px 14px 6px 22px; }
.yue-tg-hd h3 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.yue-tg-logo svg { width: 26px; height: 26px; display: block; }
.yue-tg-bd { padding: 6px 22px 22px; }
.yue-tg-steps { margin: 4px 0 14px; padding-left: 0; list-style: none; color: var(--yue-text-2); font-size: 14px; }
.yue-tg-open { display: flex !important; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px !important; background: #229ed9 !important; border-color: #229ed9 !important; color: #fff !important; }
.yue-tg-open svg { width: 18px; height: 18px; }
.yue-tg-open svg path { fill: #fff; }
.yue-tg-alt { margin: 16px 0 8px; font-size: 13px; color: var(--yue-muted); }
.yue-tg-cmd { display: flex; align-items: center; gap: 8px; background: #f1efeb; border-radius: 10px; padding: 6px 6px 6px 12px; }
.yue-tg-cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--yue-text); font-size: 13px; background: none; }
.yue-tg-cmd .yue-ghost { margin: 0; height: 32px; flex: none; }
.yue-tg-state { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--yue-text-2); }
.yue-tg-state p { margin: 0; }
.yue-tg-state .yue-i { width: 20px; height: 20px; flex: none; }
.yue-tg-state.ok { color: #15803d; }
.yue-tg-state.bad { color: #b42318; margin: 4px 0 16px; align-items: flex-start; }
.yue-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c2d8e0; border-top-color: var(--ink-600, #1f4e63); animation: yueSpin .8s linear infinite; flex: none; }
.yue-tg-loading .yue-loading { padding: 30px 0; }

/* 手机：品牌区只留顶部 logo */
@media (max-width: 991.98px) {
  body.yue-auth #yue-brand { background: transparent; color: var(--ink-900); padding: 15px 20px; }
  body.yue-auth #yue-brand .yue-arcs { display: none; }
  body.yue-auth #yue-brand .yue-brand-top, body.yue-auth #yue-brand .yue-brand-top span { color: var(--ink-900); }
  body.yue-auth .v2board-auth-box .block-content { padding: 0 4px !important; }
  body.yue-auth .v2board-auth-box .block-content[data-yue-title]::before { font-size: 26px; }
  body.yue-auth .v2board-auth-box .block > .text-left { padding: 18px 4px 8px !important; }
}
@media (max-width: 380px) { .yue-soc small { display: none; } }
body.yue-auth .v2board-auth-box .block-content > .yue-orig-head { display: none !important; }
@media (min-width: 992px) {
  body.yue-auth .v2board-auth-box { left: var(--yue-brand-w) !important; right: 0 !important; width: auto !important; overflow-y: auto; padding: 72px 32px 40px; }
  body.yue-auth #main-container { padding-left: 0; }
}
body.yue-auth .yue-auth-msg { margin: -6px 0 14px; }
.yue-soc.busy { opacity: .6; }

/* 个人中心：佣金划转 */
.yue-ct-btn { display: inline-flex !important; align-items: center; gap: 6px; height: 32px; margin: 0 0 0 10px !important; vertical-align: middle; }
.yue-ct-btn .yue-i { width: 15px; height: 15px; }
.yue-ct-note { display: inline-block; margin-left: 12px; color: var(--yue-muted); font-size: 13px; vertical-align: middle; }
.yue-ct-in { padding: 22px 22px 6px; }
.yue-ct-in h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.yue-ct-in p { margin: 0 0 14px; color: var(--yue-muted); font-size: 13.5px; }
.yue-ct-avail { display: flex; justify-content: space-between; align-items: baseline; background: #f1efeb; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; color: var(--yue-text-2); font-size: 13.5px; }
.yue-ct-avail b { font-size: 20px; color: var(--yue-text); }
.yue-ct-in label { display: block; font-size: 13.5px; font-weight: 500; color: var(--yue-text-2); margin-bottom: 7px; }
.yue-ct-row { display: flex; gap: 8px; }
.yue-ct-row .form-control { flex: 1; min-width: 0; height: 42px; }
.yue-ct-row .yue-ghost { margin: 0; height: 42px; flex: none; }
.yue-ct-err { min-height: 20px; margin-top: 6px; color: #b42318; font-size: 13px; }
@media (max-width: 575.98px) { .yue-ct-note { display: block; margin: 10px 0 0; } }
.yue-tg-for { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #e8f4fb; color: #1d5f80; font-size: 13px; line-height: 1.5; }
body.yue-auth .form-group.yue-opt-field[data-yue-label] > .form-control::placeholder { color: #9aa5ad; }
