* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color: #333;
  background: #f5f7fb;
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #385fec; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }

.page { padding-bottom: 70px; min-height: 100vh; }
.page-inner { padding: 12px 14px 20px; }

/* 顶栏 */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 14px;
  background: linear-gradient(135deg, #4a6cf7, #385fec);
  color: #fff;
}
.header .title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; line-height: 1.3; }
.header .back, .header .link { color: #fff; font-size: 15px; min-width: 56px; font-weight: 500; }
.header .back { text-align: left; }
.header .link { text-align: right; }
/* 首页顶栏：站点名相对整栏水平居中（不受左右按钮宽度影响） */
.header-center { position: relative; }
.header-center .header-left,
.header-center .header-right {
  flex: 1; display: flex; align-items: center; min-width: 0; z-index: 1;
}
.header-center .header-left { justify-content: flex-start; }
.header-center .header-right { justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.header-center .header-right .login-theme-btn {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.header-center .header-right .login-theme-btn .icon-sun {
  color: #ea8c00;
}
.header-center .header-right .login-theme-btn .icon-moon {
  color: #5b6b8a;
}
.header-center .header-right .login-theme-btn:active {
  background: #fff;
}
html.xxb-theme-dark .header-center .header-right .login-theme-btn,
html.login-theme-dark .header-center .header-right .login-theme-btn {
  background: #2d3548;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
html.xxb-theme-dark .header-center .header-right .login-theme-btn .icon-moon,
html.login-theme-dark .header-center .header-right .login-theme-btn .icon-moon {
  color: #fde047;
}
html.xxb-theme-dark .header-center .header-right .login-theme-btn:active,
html.login-theme-dark .header-center .header-right .login-theme-btn:active {
  background: #3a4358;
}
.header-center .title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  flex: none; width: auto; max-width: 46%;
  padding: 0 4px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none; z-index: 0;
}
.header-right {
  display: flex; align-items: center; gap: 6px; min-width: 56px; justify-content: flex-end;
}

/* 首页：已登录时顶栏不闪「登录/注册」 */
html.xxb-logged-in #headerLogin {
  display: none !important;
}

/* 登录/注册等：白色顶栏（覆盖 .header 蓝色渐变） */
.header-light,
.page-login .header.header-light {
  background: #fff;
  background-image: none;
  color: #333;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.header-light .title,
.page-login .header.header-light .title {
  color: #333;
}
.header-light .back,
.header-light .link,
.page-login .header.header-light .back,
.page-login .header.header-light .link {
  color: #333;
}
.header-light .lang-switcher .lang-trigger,
.page-login .header.header-light .lang-switcher .lang-trigger {
  background: #f0f2f8;
  color: #385fec;
}
.header-light .lang-switcher .lang-trigger:active,
.page-login .header.header-light .lang-switcher .lang-trigger:active {
  background: #e4e8f2;
}

.page-login {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 24px;
  background: #eef1ff;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.page-login .auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  min-height: 0;
}
/* 登录页：Logo + 表单整体上移（注册页保持原布局） */
.page-login > .auth-wrap:not(.form-page) {
  justify-content: flex-start;
  padding-top: min(10vh, 72px);
  padding-bottom: 20px;
}
.page-login > .auth-wrap:not(.form-page) .auth-logo {
  margin-bottom: 22px;
}
.page-login .auth-wrap.form-page {
  padding-top: 24px;
}
.page-login .auth-wrap form { width: 100%; }

/* 全站：日间 / 夜间（与登录页共用 xxb_login_theme） */
html.xxb-theme-dark,
html.login-theme-dark,
html.xxb-theme-dark body,
html.login-theme-dark body {
  background: #12141c;
  color: #e8eaef;
}
html.xxb-theme-dark .page,
html.login-theme-dark .page {
  color: #e8eaef;
}
html.xxb-theme-dark .page-login,
html.login-theme-dark .page-login {
  background: #12141c;
}
html.xxb-theme-dark .header:not(.header-light),
html.login-theme-dark .header:not(.header-light) {
  background: linear-gradient(135deg, #2a3358, #1e2440);
  border-bottom: 1px solid #2a2e3d;
}
html.xxb-theme-dark .header:not(.header-light) .title,
html.xxb-theme-dark .header:not(.header-light) .back,
html.xxb-theme-dark .header:not(.header-light) .link,
html.login-theme-dark .header:not(.header-light) .title,
html.login-theme-dark .header:not(.header-light) .back,
html.login-theme-dark .header:not(.header-light) .link {
  color: #e8eaef;
}
html.xxb-theme-dark .header:not(.header-light) .back img,
html.login-theme-dark .header:not(.header-light) .back img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
html.xxb-theme-dark .header:not(.header-light) .login-theme-btn,
html.login-theme-dark .header:not(.header-light) .login-theme-btn {
  background: #2d3548;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
html.xxb-theme-dark .header:not(.header-light) .login-theme-btn .icon-moon,
html.login-theme-dark .header:not(.header-light) .login-theme-btn .icon-moon {
  color: #fde047;
}
html.xxb-theme-dark .header:not(.header-light) .login-theme-btn:active,
html.login-theme-dark .header:not(.header-light) .login-theme-btn:active {
  background: #3a4358;
}
html.xxb-theme-dark .page-login .header-light,
html.login-theme-dark .page-login .header-light {
  background: #1c1f2a;
  color: #e8eaef;
  border-bottom-color: #2a2e3d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
html.xxb-theme-dark .page-login .header-light .title,
html.xxb-theme-dark .page-login .header-light .back,
html.xxb-theme-dark .page-login .header-light .link,
html.login-theme-dark .page-login .header-light .title,
html.login-theme-dark .page-login .header-light .back,
html.login-theme-dark .page-login .header-light .link {
  color: #e8eaef;
}
html.xxb-theme-dark .page-login .header-light .back img,
html.login-theme-dark .page-login .header-light .back img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
html.xxb-theme-dark .page-login .auth-logo h1,
html.login-theme-dark .page-login .auth-logo h1 {
  color: #8eb4ff;
}
html.xxb-theme-dark .page-login .form-link,
html.login-theme-dark .page-login .form-link {
  color: #9aa3b8;
}
html.xxb-theme-dark .page-login .header-light .lang-switcher .lang-trigger,
html.xxb-theme-dark .header-light .login-theme-btn,
html.login-theme-dark .page-login .header-light .lang-switcher .lang-trigger,
html.login-theme-dark .page-login .login-theme-btn {
  background: #2a2e3d;
}
html.xxb-theme-dark .page-login .header-light .lang-switcher .lang-trigger:active,
html.xxb-theme-dark .header-light .login-theme-btn:active,
html.login-theme-dark .page-login .header-light .lang-switcher .lang-trigger:active,
html.login-theme-dark .page-login .login-theme-btn:active {
  background: #353a4d;
}
html.xxb-theme-dark .login-theme-btn .icon-sun,
html.login-theme-dark .login-theme-btn .icon-sun {
  display: none;
}
html.xxb-theme-dark .login-theme-btn .icon-moon,
html.login-theme-dark .login-theme-btn .icon-moon {
  display: block;
  color: #fde047;
}

/* 无顶栏页面：右上角悬浮主题按钮 */
.theme-btn-float {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 150;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
html.xxb-theme-dark .theme-btn-float,
html.login-theme-dark .theme-btn-float {
  background: #2a2e3d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* 全站夜间：卡片、列表、表单 */
html.xxb-theme-dark .grid-menu,
html.xxb-theme-dark .news-item,
html.xxb-theme-dark .product-card,
html.xxb-theme-dark .menu-list,
html.xxb-theme-dark .content-page,
html.xxb-theme-dark .empty,
html.xxb-theme-dark .record-card,
html.xxb-theme-dark .wallet-card,
html.xxb-theme-dark .cat-tabs,
html.login-theme-dark .grid-menu,
html.login-theme-dark .news-item,
html.login-theme-dark .product-card,
html.login-theme-dark .menu-list,
html.login-theme-dark .content-page,
html.login-theme-dark .empty,
html.login-theme-dark .record-card,
html.login-theme-dark .wallet-card,
html.login-theme-dark .cat-tabs {
  background: #252836;
  color: #e8eaef;
  border-color: #353a4d;
}
html.xxb-theme-dark .grid-item span,
html.xxb-theme-dark .news-item h3,
html.xxb-theme-dark .product-card h3,
html.xxb-theme-dark .section-title,
html.xxb-theme-dark .record-stats b,
html.login-theme-dark .grid-item span,
html.login-theme-dark .news-item h3,
html.login-theme-dark .product-card h3,
html.login-theme-dark .section-title,
html.login-theme-dark .record-stats b {
  color: #e8eaef;
}
html.xxb-theme-dark .section-title a,
html.xxb-theme-dark .news-item .meta,
html.xxb-theme-dark .product-meta,
html.xxb-theme-dark .form-link,
html.xxb-theme-dark .record-stats span,
html.login-theme-dark .section-title a,
html.login-theme-dark .news-item .meta,
html.login-theme-dark .product-meta,
html.login-theme-dark .form-link,
html.login-theme-dark .record-stats span {
  color: #9aa3b8;
}
html.xxb-theme-dark .menu-list a,
html.login-theme-dark .menu-list a {
  color: #e8eaef;
  border-bottom-color: #353a4d;
}
html.xxb-theme-dark .form-group,
html.login-theme-dark .form-group {
  background: #252836;
  border-color: #353a4d;
}
html.xxb-theme-dark .form-group input,
html.xxb-theme-dark .form-group textarea,
html.xxb-theme-dark .form-group select,
html.login-theme-dark .form-group input,
html.login-theme-dark .form-group textarea,
html.login-theme-dark .form-group select {
  color: #f0f2f5;
}
html.xxb-theme-dark .form-group input::placeholder,
html.login-theme-dark .form-group input::placeholder {
  color: #7a8199;
}
html.xxb-theme-dark .btn-outline,
html.login-theme-dark .btn-outline {
  background: transparent;
  border-color: #5b8cff;
  color: #8eb4ff;
}
html.xxb-theme-dark .tab-bar,
html.login-theme-dark .tab-bar {
  background: #1c1f2a;
  border-top-color: #2a2e3d;
}
html.xxb-theme-dark .tab-item,
html.login-theme-dark .tab-item {
  color: #9aa3b8;
}
html.xxb-theme-dark .tab-item.active,
html.login-theme-dark .tab-item.active {
  color: #8eb4ff;
}
html.xxb-theme-dark .cat-tabs span,
html.login-theme-dark .cat-tabs span {
  background: #353a4d;
  color: #b8c0d4;
}
html.xxb-theme-dark .cat-tabs span.on,
html.login-theme-dark .cat-tabs span.on {
  background: #385fec;
  color: #fff;
}
html.xxb-theme-dark .static-page-body,
html.login-theme-dark .static-page-body {
  color: #d0d5e0;
}
html.xxb-theme-dark .cs-item,
html.login-theme-dark .cs-item {
  background: #252836;
  color: #e8eaef;
}
html.xxb-theme-dark .user-header,
html.login-theme-dark .user-header {
  background: linear-gradient(135deg, #2a3358, #1a1f36);
}

/* 夜间模式：记录卡片、表单页、消息列表（个人中心子页面） */
html.xxb-theme-dark .record-item,
html.login-theme-dark .record-item {
  background: #252836;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
html.xxb-theme-dark .record-item .record-title,
html.login-theme-dark .record-item .record-title {
  color: #f0f2f5;
  font-weight: 500;
}
html.xxb-theme-dark .record-item .record-meta,
html.xxb-theme-dark .record-item .record-date,
html.login-theme-dark .record-item .record-meta,
html.login-theme-dark .record-item .record-date {
  color: #b8c0d4;
}
html.xxb-theme-dark .record-stats b,
html.login-theme-dark .record-stats b {
  color: #f0f2f5;
}
html.xxb-theme-dark .record-stats span,
html.login-theme-dark .record-stats span {
  color: #b8c0d4;
}
html.xxb-theme-dark .form-page .form-group label,
html.login-theme-dark .form-page .form-group label {
  color: #d0d5e0;
  font-weight: 500;
}
html.xxb-theme-dark .page-caption,
html.login-theme-dark .page-caption {
  color: #b8c0d4;
}
html.xxb-theme-dark .page-amount,
html.login-theme-dark .page-amount {
  color: #8eb4ff;
}
html.xxb-theme-dark .page-muted-link,
html.login-theme-dark .page-muted-link {
  color: #8eb4ff;
}
html.xxb-theme-dark .kyc-section-title,
html.login-theme-dark .kyc-section-title {
  color: #d0d5e0;
}
html.xxb-theme-dark .photo-box,
html.xxb-theme-dark .photo-upload-single .photo-box,
html.login-theme-dark .photo-box,
html.login-theme-dark .photo-upload-single .photo-box {
  background: #1e2230;
  border-color: #4a5068;
}
html.xxb-theme-dark .photo-box span,
html.xxb-theme-dark .photo-label,
html.login-theme-dark .photo-box span,
html.login-theme-dark .photo-label {
  color: #9aa3b8;
}
html.xxb-theme-dark .detail-stats .cell,
html.login-theme-dark .detail-stats .cell {
  background: #2a2e3d;
}
html.xxb-theme-dark .detail-stats .cell label,
html.login-theme-dark .detail-stats .cell label {
  color: #b8c0d4;
}
html.xxb-theme-dark .detail-stats .cell b,
html.login-theme-dark .detail-stats .cell b {
  color: #8eb4ff;
}
html.xxb-theme-dark .msg-card,
html.login-theme-dark .msg-card {
  background: #252836;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
html.xxb-theme-dark .msg-title,
html.login-theme-dark .msg-title {
  color: #f0f2f5;
}
html.xxb-theme-dark .msg-summary,
html.login-theme-dark .msg-summary {
  color: #b8c0d4;
}
html.xxb-theme-dark .msg-time,
html.login-theme-dark .msg-time {
  color: #9aa3b8;
}
html.xxb-theme-dark .btn-msg-view,
html.login-theme-dark .btn-msg-view {
  background: #2a2e3d;
  border-color: #5b8cff;
  color: #8eb4ff;
}
html.xxb-theme-dark .btn-msg-del,
html.login-theme-dark .btn-msg-del {
  background: #2a2e3d;
  border-color: #ff7875;
  color: #ff9c9c;
}
html.xxb-theme-dark .cs-hint,
html.login-theme-dark .cs-hint {
  color: #b8c0d4;
}
html.xxb-theme-dark .cs-sub,
html.login-theme-dark .cs-sub {
  color: #9aa3b8;
}
html.xxb-theme-dark .channel-option,
html.login-theme-dark .channel-option {
  color: #f0f2f5;
  border-bottom-color: #353a4d !important;
}
html.xxb-theme-dark .wallet-card b,
html.login-theme-dark .wallet-card b {
  color: #8eb4ff;
}
html.xxb-theme-dark .wallet-card span,
html.login-theme-dark .wallet-card span {
  color: #b8c0d4;
}
html.xxb-theme-dark .product-meta,
html.login-theme-dark .product-meta {
  color: #b8c0d4;
}
html.xxb-theme-dark .product-meta b,
html.login-theme-dark .product-meta b {
  color: #8eb4ff;
}

/* 登录/注册页：主题切换（小太阳 / 小月亮） */
.login-theme-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f0f2f8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-theme-btn:active {
  background: #e4e8f2;
}
.login-theme-btn .icon-sun {
  display: block;
  color: #ea8c00;
}
.login-theme-btn .icon-moon {
  display: none;
  color: #4a5568;
}
.login-theme-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

/* 登录页等：右下角悬浮客服 */
.float-cs-btn {
  position: fixed;
  right: 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 52px; height: 52px; padding: 0; border: none; border-radius: 50%;
  background: linear-gradient(145deg, #5b8cff 0%, #385fec 55%, #2f4fd4 100%);
  box-shadow: 0 6px 18px rgba(56, 95, 236, 0.42);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-sizing: border-box;
  color: #fff;
}
.float-cs-btn .float-cs-icon { width: 28px; height: 28px; display: block; }
.float-cs-btn:active { opacity: 0.9; transform: scale(0.96); }

/* 语言切换（图标 + 下拉） */
.lang-switcher { position: relative; display: inline-flex; flex-shrink: 0; }
.lang-switcher .lang-trigger {
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lang-switcher .lang-trigger:active { background: rgba(255, 255, 255, 0.28); }
.lang-switcher .lang-icon { display: block; }
.lang-switcher .lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 120px;
  background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden; z-index: 300; padding: 4px 0;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-switcher .lang-option {
  display: block; width: 100%; padding: 10px 14px; border: none; background: #fff;
  text-align: left; font-size: 14px; color: #333; cursor: pointer; white-space: nowrap;
}
.lang-switcher .lang-option:hover { background: #f5f7fb; }
.lang-switcher .lang-option.active { color: #385fec; font-weight: 600; background: #eef2ff; }
.user-header { position: relative; }

/* 个人中心菜单内语言切换（在线客服下方，点击居中弹窗） */
.menu-list .menu-lang-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f5f5f5;
  font-size: 15px; font-weight: 500; color: #333; cursor: pointer; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.menu-list .menu-lang-row:active { background: #fafafa; }
.menu-lang-right {
  display: flex; align-items: center; gap: 4px; color: #999; font-size: 14px;
}
.menu-lang-value { color: inherit; }
.menu-lang-chevron { color: #ccc; font-size: 16px; line-height: 1; }
html.xxb-theme-dark .menu-list .menu-lang-row,
html.login-theme-dark .menu-list .menu-lang-row {
  color: #e8eaef;
  border-bottom-color: #353a4d;
}
html.xxb-theme-dark .menu-list .menu-lang-row:active,
html.login-theme-dark .menu-list .menu-lang-row:active {
  background: #353a4d;
}
html.xxb-theme-dark .menu-lang-right,
html.login-theme-dark .menu-lang-right {
  color: #9aa3b5;
}
html.xxb-theme-dark .menu-lang-chevron,
html.login-theme-dark .menu-lang-chevron {
  color: #6b7289;
}

/* 语言选择居中弹窗 */
.lang-modal-mask {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.45);
  align-items: center; justify-content: center; padding: 24px;
}
.lang-modal-mask.show { display: flex; }
body.lang-modal-open { overflow: hidden; }
.lang-modal {
  width: 100%; max-width: 300px; background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.lang-modal-title {
  padding: 16px; font-size: 16px; font-weight: 600; text-align: center;
  border-bottom: 1px solid #f0f0f0; color: #333;
}
.lang-modal-list { padding: 8px 0; }
.lang-modal-option {
  display: block; width: 100%; padding: 14px 20px; border: none; background: #fff;
  font-size: 15px; color: #333; text-align: center; cursor: pointer;
}
.lang-modal-option:hover { background: #f5f7fb; }
.lang-modal-option.active { color: #385fec; font-weight: 600; background: #eef2ff; }

/* 轮播 */
.banner-wrap {
  margin: 10px 14px; border-radius: 12px; overflow: hidden;
  background: #e8ecf5; position: relative;
}
.banner-viewport {
  position: relative; overflow: hidden; width: 100%;
  background: #e8ecf5;
}
.banner-track {
  display: flex; width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 140px;
  background: #e8ecf5;
}
.banner-slide a { display: block; width: 100%; }
.banner-slide img {
  width: 100%; height: auto; max-height: 220px;
  display: block; object-fit: contain;
  vertical-align: middle;
}
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  z-index: 2; text-align: center; padding: 0;
  pointer-events: none;
}
.banner-dots span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  margin: 0 4px; transition: all 0.3s;
  pointer-events: auto; cursor: pointer;
}
.banner-dots span.on {
  background: #385fec; width: 16px; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(56, 95, 236, 0.5);
}

/* 滚动公告 */
.marquee-wrap {
  margin: 0 14px 10px; padding: 0 12px;
  background: #fff8e6; border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  height: 36px; overflow: hidden;
}
.marquee-icon {
  flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center;
}
.marquee-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.marquee-viewport {
  flex: 1; height: 20px; overflow: hidden; position: relative;
}
.marquee-inner {
  position: absolute; left: 0; top: 0; height: 20px; line-height: 20px;
  white-space: nowrap; will-change: transform;
}
.marquee-run {
  display: inline-flex; align-items: center; white-space: nowrap;
}
.marquee-copy {
  flex-shrink: 0; padding-right: 48px;
  font-size: 13px; color: #b8860b; white-space: nowrap;
}

/* 宫格菜单 */
.grid-menu {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px 4px; margin: 12px 14px; padding: 14px 8px;
  background: #fff; border-radius: 12px;
}
.grid-item { text-align: center; }
.grid-item .icon {
  width: 40px; height: 40px; margin: 0 auto 6px;
  display: block; background: transparent;
}
.grid-item .icon img {
  width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto;
}
.grid-item span { font-size: 11px; color: #555; display: block; line-height: 1.3; }

/* 区块标题 */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 14px 10px; font-size: 16px; font-weight: 600;
}
.section-title a { font-size: 13px; font-weight: normal; color: #888; }

/* 新闻条 */
.news-item {
  display: flex; gap: 10px; padding: 12px 14px; background: #fff;
  border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.news-item:first-child { border-radius: 12px 12px 0 0; }
.news-item:last-child { border-radius: 0 0 12px 12px; border-bottom: none; }
.news-item .news-body { flex: 1; min-width: 0; }
.news-item h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .meta { font-size: 12px; color: #999; }

/* 产品卡片 */
.product-list { padding: 0 14px; }
.product-card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 12px; box-shadow: 0 2px 8px rgba(56,95,236,.06);
}
.product-card h3 { font-size: 15px; line-height: 1.4; margin-bottom: 10px; color: #222; }
.product-card .tag-hot {
  display: inline-block; background: #ff4d4f; color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 6px;
}
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; color: #666; margin-bottom: 10px; }
.product-meta b { color: #385fec; font-size: 14px; }
.progress-wrap { margin: 10px 0; }
.progress-bar { height: 6px; background: #eef2ff; border-radius: 3px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4a6cf7, #385fec); border-radius: 3px; }
.progress-text { font-size: 12px; color: #888; margin-top: 4px; }
.btn-primary {
  display: block; width: 100%; padding: 11px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7, #385fec); color: #fff;
  font-size: 15px; font-weight: 500; cursor: pointer; text-align: center;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline {
  display: block; width: 100%; padding: 11px; border: 1px solid #385fec;
  border-radius: 10px; background: #fff; color: #385fec; font-size: 15px;
  text-align: center; cursor: pointer;
}

/* 登录 */
.auth-wrap { padding: 30px 20px; }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo img { max-width: 140px; max-height: 88px; object-fit: contain; }
.auth-logo h1 { font-size: 22px; color: #385fec; margin-top: 10px; }
.form-group {
  margin-bottom: 14px; background: #fff; border-radius: 12px;
  padding: 4px 12px 4px 8px; border: 1px solid #e8ecf5;
  display: flex; align-items: center; gap: 8px;
}
.form-group .field-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.form-group .field-icon img { width: 20px; height: 20px; object-fit: contain; }
.form-group input {
  flex: 1; min-width: 0; border: none; outline: none; padding: 12px 0;
  font-size: 15px; background: transparent;
}
.header .back img { width: 18px; height: 18px; vertical-align: middle; }
.form-actions { margin-top: 20px; }
.form-actions .btn-primary { margin-bottom: 12px; }
.form-link { text-align: center; font-size: 13px; color: #888; margin-top: 16px; }

/* 个人中心 */
.user-header {
  background: linear-gradient(135deg, #4a6cf7, #385fec);
  color: #fff; padding: 24px 20px 30px; border-radius: 0 0 20px 20px;
}
.user-header .phone { font-size: 20px; font-weight: 600; }
.user-header .balance { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.user-header .balance strong { font-size: 28px; display: block; margin-top: 4px; font-weight: 700; }
.user-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.9);
}
.user-meta #userLevel:empty { display: none; }
.user-credit {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.22); font-weight: 600;
  letter-spacing: 0.5px;
}
.wallet-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: -20px 14px 16px; position: relative; z-index: 2;
}
.wallet-grid.wallet-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}
.wallet-card {
  background: #fff; border-radius: 10px; padding: 14px 8px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.wallet-card-link {
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wallet-card-link:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wallet-card b { display: block; font-size: 17px; color: #385fec; margin-bottom: 4px; font-weight: 600; }
.wallet-card span { font-size: 13px; color: #666; line-height: 1.4; }
html.xxb-theme-dark .wallet-card-link,
html.login-theme-dark .wallet-card-link {
  color: inherit;
}
.points-balance-card { margin-bottom: 12px; }
.points-amount { color: #ff7a45; font-size: 32px; }
html.xxb-theme-dark .points-amount,
html.login-theme-dark .points-amount {
  color: #ffb86c;
}
.record-item .record-amount.points-plus { color: #52c41a; font-weight: 700; }
.record-item .record-amount.points-minus { color: #ff4d4f; font-weight: 700; }
html.xxb-theme-dark .record-item .record-amount.points-plus,
html.login-theme-dark .record-item .record-amount.points-plus {
  color: #7ee787;
}
html.xxb-theme-dark .record-item .record-amount.points-minus,
html.login-theme-dark .record-item .record-amount.points-minus {
  color: #ff9c9c;
}
.menu-list { margin: 0 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f5f5f5; color: #333;
  font-size: 15px; font-weight: 500; line-height: 1.4;
}
.menu-list a:last-child { border-bottom: none; }
html.xxb-theme-dark .menu-list a,
html.login-theme-dark .menu-list a {
  font-weight: 500;
}

/* 记录列表 */
.record-list { padding: 0 0 16px; }
.record-item {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; box-shadow: 0 2px 8px rgba(56, 95, 236, 0.06);
}
.record-item .record-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.record-item .record-title { font-size: 15px; color: #333; line-height: 1.45; flex: 1; min-width: 0; font-weight: 500; }
.record-item .record-amount { font-size: 17px; font-weight: 700; white-space: nowrap; }
.record-item .record-amount.in { color: #ff4d4f; }
.record-item .record-amount.out { color: #52c41a; }
.record-item .record-meta,
.record-item .record-date { font-size: 13px; color: #888; margin-top: 6px; line-height: 1.45; }
.record-item .record-extra { font-size: 13px; color: #52c41a; margin-top: 4px; line-height: 1.45; }
.record-item .record-meta.is-danger,
.record-item .record-meta--danger { color: #ff4d4f; }
html.xxb-theme-dark .record-item .record-meta.is-danger,
html.xxb-theme-dark .record-item .record-meta--danger,
html.login-theme-dark .record-item .record-meta.is-danger,
html.login-theme-dark .record-item .record-meta--danger {
  color: #ff9c9c;
}
.record-badge {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; margin-top: 6px;
}
.record-stats {
  display: flex; justify-content: space-between; margin-top: 12px; text-align: center;
}
.record-stats b { display: block; font-size: 17px; color: #333; margin-bottom: 4px; font-weight: 600; }
.record-stats span { font-size: 12px; color: #888; line-height: 1.4; }

/* 表单页通用文案（充值/提现等） */
.page-caption { font-size: 14px; color: #666; margin-bottom: 6px; line-height: 1.45; }
.page-amount { font-size: 28px; color: #385fec; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; }
.page-muted-link { font-size: 13px; margin-top: 8px; line-height: 1.45; }
.page-muted-link a { color: #385fec; }
.kyc-section-title { font-size: 14px; color: #666; margin: 12px 0 6px; line-height: 1.45; font-weight: 500; }
.channel-option {
  display: flex; align-items: center; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 15px; line-height: 1.45;
}
.channel-option input { margin-right: 10px; flex-shrink: 0; }

/* 余额宝页副文案（渐变卡片内保持浅色） */
.yuebao-hero-sub { font-size: 13px; line-height: 1.45; }
.yuebao-hero-note { font-size: 13px; margin-top: 10px; line-height: 1.45; }

/* 消息中心 */
.msg-list { padding: 12px 14px 20px; }
.msg-card {
  background: #fff; border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.msg-card.unread { border-left: 3px solid #385fec; }
.msg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.msg-title { font-size: 16px; font-weight: 600; color: #333; flex: 1; padding-right: 8px; line-height: 1.4; }
.msg-badge { font-size: 12px; color: #fff; background: #ff4d4f; border-radius: 3px; padding: 2px 6px; flex-shrink: 0; }
.msg-summary { font-size: 14px; color: #666; line-height: 1.55; margin-bottom: 8px; }
.msg-time { font-size: 13px; color: #999; margin-bottom: 12px; line-height: 1.4; }
.msg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.msg-actions button {
  padding: 6px 16px; border-radius: 5px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.btn-msg-view { border: 1px solid #385fec; background: #fff; color: #385fec; }
.btn-msg-del { border: 1px solid #ff4d4f; background: #fff; color: #ff4d4f; }

/* 底部导航 */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%; max-width: 750px; height: 56px; margin: 0 auto;
  display: flex; background: #fff; border-top: 1px solid #eee; z-index: 200;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 12px; color: #888; font-weight: 500; line-height: 1.3;
}
.tab-item.active { color: #385fec; }
.tab-icon {
  width: 22px; height: 22px; margin-bottom: 2px;
  display: flex; align-items: center; justify-content: center;
}
.tab-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* 内容页 */
.content-page { background: #fff; margin: 14px; padding: 16px; border-radius: 12px; line-height: 1.7; }
.content-page h2 { font-size: 18px; margin-bottom: 12px; font-weight: 600; line-height: 1.4; }
.content-page .msg-time { margin-bottom: 12px; }
.content-page .article-body { font-size: 15px; line-height: 1.65; color: #444; word-break: break-word; }
html.xxb-theme-dark .content-page h2,
html.login-theme-dark .content-page h2 {
  color: #f0f2f5;
}
html.xxb-theme-dark .content-page .article-body,
html.login-theme-dark .content-page .article-body {
  color: #d0d5e0;
}
.static-page-body { font-size: 15px; color: #333; word-break: break-word; line-height: 1.65; }
.static-page-body h1, .static-page-body h2, .static-page-body h3 { margin: 12px 0 8px; font-weight: 600; }
.static-page-body p { margin: 8px 0; }
.static-page-body img { max-width: 100%; height: auto; }
.static-page-body ul, .static-page-body ol { padding-left: 1.2em; margin: 8px 0; }

.cs-hint { margin: 12px 14px 0; font-size: 13px; color: #888; }
.cs-list { margin: 10px 14px 20px; }
.cs-item {
  display: flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px; text-decoration: none; color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cs-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-right: 14px; flex-shrink: 0; color: #fff;
  font-size: 13px; font-weight: 600;
}
.cs-body { flex: 1; min-width: 0; }
.cs-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.cs-sub { display: block; font-size: 13px; color: #888; margin-top: 4px; line-height: 1.45; }
.cs-arrow { font-size: 22px; color: #ccc; line-height: 1; }

.empty { text-align: center; padding: 40px 20px; color: #888; font-size: 14px; line-height: 1.5; }
html.xxb-theme-dark .empty,
html.login-theme-dark .empty {
  color: #b8c0d4;
}
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 12px 20px;
  border-radius: 8px; font-size: 14px; z-index: 9999; opacity: 0;
  pointer-events: none; transition: opacity .2s; max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; }
.loading-mask {
  position: fixed; inset: 0; background: rgba(255,255,255,.6);
  display: none; align-items: center; justify-content: center; z-index: 9998;
}

/* 首页弹窗 */
.app-popup-overlay {
  position: fixed; inset: 0; z-index: 13500;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.app-popup-image-wrap,
.app-popup-text-wrap {
  position: relative; width: 100%; max-width: 320px;
}
.app-popup-image-wrap img {
  width: 100%; display: block; border-radius: 12px;
}
.app-popup-text-wrap {
  background: #fff; border-radius: 12px; padding: 24px 20px 20px;
}
.app-popup-title {
  font-size: 17px; font-weight: 600; color: #333;
  margin-bottom: 12px; padding-right: 28px;
}
.app-popup-body {
  font-size: 14px; color: #666; line-height: 1.65;
  max-height: 50vh; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
}
.app-popup-close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; line-height: 26px;
  border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.08); color: #666;
  font-size: 14px; cursor: pointer; z-index: 1;
}
.app-popup-image-wrap .app-popup-close {
  background: #e8e8e8;
}

/* 首页弹窗：夜间模式 */
html.xxb-theme-dark .app-popup-overlay,
html.login-theme-dark .app-popup-overlay {
  background: rgba(0, 0, 0, 0.75);
}
html.xxb-theme-dark .app-popup-text-wrap,
html.login-theme-dark .app-popup-text-wrap {
  background: #252836;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
html.xxb-theme-dark .app-popup-title,
html.login-theme-dark .app-popup-title {
  color: #f0f2f5;
}
html.xxb-theme-dark .app-popup-body,
html.login-theme-dark .app-popup-body {
  color: #b8c0d4;
}
html.xxb-theme-dark .app-popup-close,
html.login-theme-dark .app-popup-close {
  background: #353a4d;
  color: #e8eaef;
}
html.xxb-theme-dark .app-popup-image-wrap .app-popup-close,
html.login-theme-dark .app-popup-image-wrap .app-popup-close {
  background: rgba(37, 40, 54, 0.92);
  color: #fde047;
}

html.xxb-theme-dark .lang-modal-mask,
html.login-theme-dark .lang-modal-mask {
  background: rgba(0, 0, 0, 0.65);
}
html.xxb-theme-dark .lang-modal,
html.login-theme-dark .lang-modal {
  background: #252836;
  color: #e8eaef;
}
html.xxb-theme-dark .lang-modal-title,
html.login-theme-dark .lang-modal-title {
  color: #f0f2f5;
  border-bottom-color: #353a4d;
}
html.xxb-theme-dark .lang-modal-option,
html.login-theme-dark .lang-modal-option {
  color: #e8eaef;
}
html.xxb-theme-dark .lang-modal-option:hover,
html.login-theme-dark .lang-modal-option:hover {
  background: #353a4d;
}
html.xxb-theme-dark .lang-modal-option.active,
html.login-theme-dark .lang-modal-option.active {
  color: #8eb4ff;
  background: #2a3358;
}

.loading-spinner {
  width: 36px; height: 36px; border: 3px solid #e8ecf5;
  border-top-color: #385fec; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.detail-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0;
}
.detail-stats .cell {
  background: #f8f9ff; padding: 12px; border-radius: 8px; text-align: center;
}
.detail-stats .cell label { font-size: 12px; color: #888; display: block; }
.detail-stats .cell b { font-size: 16px; color: #385fec; margin-top: 4px; display: block; }

.form-page .form-group label { display: block; font-size: 14px; color: #555; padding: 8px 0 0; font-weight: 500; line-height: 1.45; }
.form-page .form-group input,
.form-page .form-group select,
.form-page .form-group textarea { font-size: 16px; }
.form-page textarea { font-size: 16px; }

/* 图片上传框（实名认证 / 充值凭证等） */
.photo-row { display: flex; gap: 10px; margin-top: 8px; }
.photo-row > div { flex: 1; min-width: 0; }
.photo-row .photo-box {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border: 1px dashed #ccc; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; background: #fafafa;
}
.photo-upload-single { margin-top: 8px; }
.photo-upload-single .photo-box {
  width: 100%; height: 140px; border: 1px dashed #ccc; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; background: #fafafa;
}
.photo-box {
  border: 1px dashed #ccc; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; background: #fafafa;
}
.photo-box span { font-size: 14px; color: #999; pointer-events: none; line-height: 1.4; }
.photo-box img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.photo-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.photo-label { font-size: 13px; color: #888; text-align: center; margin-top: 4px; line-height: 1.45; }
.form-page textarea {
  width: 100%; min-height: 80px; border: none; outline: none; resize: vertical;
  font-size: 16px; padding: 8px 0;
}
