/* 台球竞猜 - 纯CSS实现，无JavaScript */
/* 兼容低版本浏览器，专注手机端 */

/* =========================
   基础重置样式
========================= */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    /* 移除固定高度，允许内容自然扩展 */
    min-height: 100%;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    margin: 0;
    padding-top: 50px;
    /* 增加底部padding确保内容不被底部导航遮挡 */
    padding-bottom: 50px;
    overflow-x: hidden;
    /* 确保垂直滚动可用 */
    overflow-y: auto;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea {
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 全局图片样式 - 确保所有图片都能正常显示 */
img {
    display: block;
    border: 0;
    max-width: 100%;
    height: auto;
    -ms-interpolation-mode: bicubic;
    /* 防止图片拖拽 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* =========================
   隐藏所有radio和checkbox
========================= */
.theme-radio,
.theme-toggle {
    display: none;
}

/* =========================
   黑色主题（默认）
========================= */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}
.header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #404040;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.theme-btn {
    background-color: transparent;
    color: #e0e0e0;
}
.theme-panel {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.bottom-nav {
    background-color: #2d2d2d;
    -webkit-box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}
.bottom-nav-app-buffer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    background-color: #2d2d2d;
    z-index: 900;
    pointer-events: none;
}
.app-safe-buffer {
    display: block;
    width: 100%;
    background-color: inherit;
    pointer-events: none;
}
.nav-item {
    color: #999999;
}
.main-content {
    background-color: #1a1a1a;
}

/* =========================
   白色主题
========================= */
#theme-light:checked ~ body {
    background-color: #f5f5f5 !important;
    color: #333333 !important;
}
#theme-light:checked ~ .header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}
#theme-light:checked ~ .header .btn-login {
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}
#theme-light:checked ~ .header .btn-register {
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}
#theme-light:checked ~ .header .theme-btn {
    background-color: transparent !important;
    color: #666666 !important;
}
#theme-light:checked ~ .header .theme-panel {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
#theme-light:checked ~ .bottom-nav {
    background-color: #ffffff !important;
    -webkit-box-shadow: 0 -2px 8px rgba(0,0,0,0.08) !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08) !important;
}
#theme-light:checked ~ .bottom-nav-app-buffer {
    background-color: #ffffff !important;
}
#theme-light:checked ~ .bottom-nav .nav-item {
    color: #999999 !important;
}
#theme-light:checked ~ #home:target ~ .bottom-nav .nav-item[href="#home"],
#theme-light:checked ~ .bottom-nav .nav-item[href="#home"] {
    color: #4CAF50 !important;
}
#theme-light:checked ~ #match:target ~ .bottom-nav .nav-item[href="#match"] {
    color: #4CAF50 !important;
}
#theme-light:checked ~ #bet:target ~ .bottom-nav .nav-item[href="#bet"],
#theme-light:checked ~ .bottom-nav .nav-item[href="/jiaoliu/"].active {
    color: #4CAF50 !important;
}
#theme-light:checked ~ #activity:target ~ .bottom-nav .nav-item[href="#activity"] {
    color: #4CAF50 !important;
}
#theme-light:checked ~ #user:target ~ .bottom-nav .nav-item[href="#user"] {
    color: #4CAF50 !important;
}
/* 通用 active 类支持（白色主题） */
#theme-light:checked ~ .bottom-nav .nav-item.active {
    color: #4CAF50 !important;
}
#theme-light:checked ~ .main-content {
    background-color: #f5f5f5 !important;
}
#theme-light:checked ~ .main-content .notice-text {
    color: #333333 !important;
}
#theme-light:checked ~ .main-content .notice-icon {
    color: #ff6b6b !important;
}

/* =========================
   浅蓝色主题
========================= */
#theme-blue:checked ~ * body,
#theme-blue:checked ~ body {
    background-color: #e3f2fd !important;
    color: #1565c0 !important;
}
/* Dark主题header样式 */
#theme-dark:checked ~ .header,
body:not([data-theme]) .header {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #404040 !important;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}
#theme-dark:checked ~ .header .btn-login,
body:not([data-theme]) .header .btn-login {
    border-color: #FFD54F !important;
    color: #FFD54F !important;
}
#theme-dark:checked ~ .header .btn-register,
body:not([data-theme]) .header .btn-register {
    border-color: #FFD54F !important;
    color: #FFD54F !important;
}
#theme-dark:checked ~ .header .theme-btn,
body:not([data-theme]) .header .theme-btn {
    background-color: transparent !important;
    color: #ffffff !important;
}
#theme-dark:checked ~ .header .theme-panel,
body:not([data-theme]) .header .theme-panel {
    background-color: #1a1a1a !important;
    border: 1px solid #404040 !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

#theme-blue:checked ~ .header {
    background-color: #bbdefb !important;
    border-bottom: 1px solid #90caf9 !important;
    -webkit-box-shadow: 0 2px 4px rgba(33,150,243,0.2) !important;
    box-shadow: 0 2px 4px rgba(33,150,243,0.2) !important;
}
#theme-blue:checked ~ .header .btn-login {
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}
#theme-blue:checked ~ .header .btn-register {
    border-color: #1976d2 !important;
    color: #1976d2 !important;
}
#theme-blue:checked ~ .header .theme-btn {
    background-color: transparent !important;
    color: #0d47a1 !important;
}
#theme-blue:checked ~ .header .theme-panel {
    background-color: #bbdefb !important;
    border: 1px solid #90caf9 !important;
    -webkit-box-shadow: 0 2px 8px rgba(33,150,243,0.3) !important;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3) !important;
}
#theme-blue:checked ~ .bottom-nav {
    background-color: #bbdefb !important;
    -webkit-box-shadow: 0 -2px 8px rgba(33,150,243,0.15) !important;
    box-shadow: 0 -2px 8px rgba(33,150,243,0.15) !important;
}
#theme-blue:checked ~ .bottom-nav-app-buffer {
    background-color: #bbdefb !important;
}
#theme-blue:checked ~ .bottom-nav .nav-item {
    color: #1976d2 !important;
}
#theme-blue:checked ~ #home:target ~ .bottom-nav .nav-item[href="#home"],
#theme-blue:checked ~ .bottom-nav .nav-item[href="#home"] {
    color: #2196F3 !important;
}
#theme-blue:checked ~ #match:target ~ .bottom-nav .nav-item[href="#match"] {
    color: #2196F3 !important;
}
#theme-blue:checked ~ #bet:target ~ .bottom-nav .nav-item[href="#bet"],
#theme-blue:checked ~ .bottom-nav .nav-item[href="/jiaoliu/"].active {
    color: #2196F3 !important;
}
#theme-blue:checked ~ #activity:target ~ .bottom-nav .nav-item[href="#activity"] {
    color: #2196F3 !important;
}
#theme-blue:checked ~ #user:target ~ .bottom-nav .nav-item[href="#user"] {
    color: #2196F3 !important;
}
/* 通用 active 类支持（浅蓝色主题） */
#theme-blue:checked ~ .bottom-nav .nav-item.active {
    color: #2196F3 !important;
}
#theme-blue:checked ~ .main-content {
    background-color: #e3f2fd !important;
}
#theme-blue:checked ~ .main-content .notice-text {
    color: #1565c0 !important;
}
#theme-blue:checked ~ .main-content .notice-icon {
    color: #1976d2 !important;
}
#theme-blue:checked ~ .main-content .notice-container {
    background: rgba(25, 118, 210, 0.08) !important;
}

/* =========================
   头部 Header
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.header-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* Logo样式 */
.site-logo {
    height: 50px;
    width: auto;
    aspect-ratio: 16 / 9;
    max-width: none;
    display: block;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    object-fit: contain;
}


.site-name-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-name-link:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.site-name-link:hover .site-logo {
    opacity: 0.9;
}

.site-name-link:active {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    -o-transform: scale(0.98);
    transform: scale(0.98);
}


.header-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    position: relative;
    /* 低版本浏览器兼容 */
    margin-left: -5px;
}

.header-right > * {
    margin-left: 5px;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.theme-icon {
    pointer-events: none;
    display: block;
}

.btn-login,
.btn-register {
    height: 32px;
    padding: 0 16px;
    margin-left: 5px;
    background-color: transparent;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.btn-login {
    border-color: #FFD54F;
    color: #FFD54F;
}

.btn-register {
    border-color: #FFD54F;
    color: #FFD54F;
}

/* =========================
   主题切换面板
========================= */
.theme-panel {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 50px;
    border-radius: 6px;
    padding: 6px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: scale(0.8) translateY(-10px);
    -moz-transform: scale(0.8) translateY(-10px);
    -ms-transform: scale(0.8) translateY(-10px);
    -o-transform: scale(0.8) translateY(-10px);
    transform: scale(0.8) translateY(-10px);
    -webkit-transform-origin: top right;
    -moz-transform-origin: top right;
    -ms-transform-origin: top right;
    -o-transform-origin: top right;
    transform-origin: top right;
    -webkit-transition: opacity 0.2s ease, visibility 0.2s ease, -webkit-transform 0.2s ease;
    -moz-transition: opacity 0.2s ease, visibility 0.2s ease, -moz-transform 0.2s ease;
    -o-transition: opacity 0.2s ease, visibility 0.2s ease, -o-transform 0.2s ease;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

#theme-toggle:checked ~ .header .theme-panel {
    opacity: 1;
    visibility: visible;
    -webkit-transform: scale(1) translateY(0);
    -moz-transform: scale(1) translateY(0);
    -ms-transform: scale(1) translateY(0);
    -o-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

.theme-option {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 3px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-option:active {
    opacity: 0.7;
}

/* 当前选中的主题选项 */
.theme-option.active {
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
}

.theme-option.active .theme-color {
    box-shadow: 0 0 0 2px #4CAF50;
}

/* 蓝色主题下的选中状态 */
#theme-blue:checked ~ .header .theme-option.active {
    background-color: rgba(33, 150, 243, 0.2);
}

#theme-blue:checked ~ .header .theme-option.active .theme-color {
    box-shadow: 0 0 0 2px #2196F3;
}

/* 白色主题下的选中状态 */
#theme-light:checked ~ .header .theme-option.active {
    background-color: rgba(76, 175, 80, 0.15);
}

#theme-light:checked ~ .header .theme-option.active .theme-color {
    box-shadow: 0 0 0 2px #4CAF50;
}

.theme-color {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* =========================
   主内容区域
========================= */
.main-content {
    /* 低版本浏览器兼容：为vh单位提供固定高度fallback */
    min-height: 500px;
    min-height: -webkit-calc(100vh - 105px);
    min-height: -moz-calc(100vh - 105px);
    min-height: calc(100vh - 105px);
    margin-top: 0;
    padding: 0;
    /* 移除overflow:hidden，允许内容正常滚动 */
    overflow: visible;
    position: relative;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 页面切换效果 - 使用:target伪类 */
.page {
    display: none;
    /* 低版本浏览器兼容：确保页面至少有最小高度 */
    min-height: 400px;
    -webkit-animation: fadeIn 0.3s ease;
    -moz-animation: fadeIn 0.3s ease;
    -o-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.page:target {
    display: block;
}

/* 默认显示首页 */
.page:first-child {
    display: block;
}

.page:target ~ .page:first-child {
    display: none;
}

/* 防止:target伪类触发滚动 */
.page:target {
    scroll-margin-top: 0;
    scroll-padding-top: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   底部导航
========================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-around;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-around;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1000;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.nav-item:active {
    opacity: 0.6;
}

/* 导航激活状态 - 默认黑色主题使用青色 */
#home:target ~ .bottom-nav .nav-item[href="#home"],
.bottom-nav .nav-item[href="#home"] {
    color: #FFB300;
}

#match:target ~ .bottom-nav .nav-item[href="#match"] {
    color: #FFB300;
}

#bet:target ~ .bottom-nav .nav-item[href="#bet"],
.bottom-nav .nav-item[href="/jiaoliu/"].active {
    color: #FFB300;
}

#activity:target ~ .bottom-nav .nav-item[href="#activity"] {
    color: #FFB300;
}

#user:target ~ .bottom-nav .nav-item[href="#user"] {
    color: #FFB300;
}

/* 通用 active 类支持（黑色主题） */
.bottom-nav .nav-item.active {
    color: #FFB300;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    display: block;
}

.nav-text {
    font-size: 11px;
}

/* =========================
   触摸反馈效果
========================= */
.btn-login:active,
.btn-register:active,
.theme-btn:active {
    opacity: 0.8;
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transform: scale(0.95);
}

/* =========================
   首页样式
========================= */
.page-home {
    /* 增加底部padding，确保最后的内容不被底部导航遮挡 */
    padding: 8px 10px 10px 10px; /* 顶部8px，左右10px，底部10px */
}

/* 交流中心页面：禁止上下滑动 */
/* 交流中心打开聊天室时，禁止底层页面点击（但允许滚动） */
body.jiaoliu-page.chat-room-open .main-content,
body.jiaoliu-page.chat-room-open .bottom-nav,
body.jiaoliu-page.chat-room-open .jiaoliu-container {
    pointer-events: none;
}

/* 交流中心打开平台公告时，禁止底层页面点击（但允许滚动） */
body.jiaoliu-page.announcement-modal-open .main-content,
body.jiaoliu-page.announcement-modal-open .bottom-nav,
body.jiaoliu-page.announcement-modal-open .jiaoliu-container {
    pointer-events: none;
}

/* 交流中心打开在线客服/意见反馈时，禁止底层页面点击（但允许滚动） */
body.jiaoliu-page.kefu-modal-open .main-content,
body.jiaoliu-page.kefu-modal-open .bottom-nav,
body.jiaoliu-page.kefu-modal-open .jiaoliu-container {
    pointer-events: none;
}

/* 我的页面：任意弹窗打开时，禁止底层页面点击（但允许滚动） */
body.me-page.me-modal-open .main-content,
body.me-page.me-modal-open .bottom-nav {
    pointer-events: none;
}

/* 我的页面：确保弹窗本身可以点击（排除在禁止规则之外） */
body.me-page.me-modal-open .vip-modal-overlay,
body.me-page.me-modal-open .vip-modal-overlay *,
body.me-page.me-modal-open .settings-modal-overlay,
body.me-page.me-modal-open .settings-modal-overlay *,
body.me-page.me-modal-open .password-modal-overlay,
body.me-page.me-modal-open .password-modal-overlay *,
body.me-page.me-modal-open .selection-modal-overlay,
body.me-page.me-modal-open .selection-modal-overlay *,
body.me-page.me-modal-open .birthday-modal-overlay,
body.me-page.me-modal-open .birthday-modal-overlay *,
body.me-page.me-modal-open .deposit-overlay,
body.me-page.me-modal-open .deposit-overlay *,
body.me-page.me-modal-open .withdraw-overlay,
body.me-page.me-modal-open .withdraw-overlay *,
body.me-page.me-modal-open .balance-records-overlay,
body.me-page.me-modal-open .balance-records-overlay *,
body.me-page.me-modal-open .bet-records-overlay,
body.me-page.me-modal-open .bet-records-overlay *,
body.me-page.me-modal-open .rebate-records-overlay,
body.me-page.me-modal-open .rebate-records-overlay *,
body.me-page.me-modal-open .withdraw-bind-overlay,
body.me-page.me-modal-open .withdraw-bind-overlay *,
body.me-page.me-modal-open .referral-overlay,
body.me-page.me-modal-open .referral-overlay * {
    pointer-events: auto;
}


/* =========================
   轮播图样式
========================= */
.banner-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
    overflow: visible;
}

.banner-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 42.857%; /* 21:9 比例 (9/21 = 0.428571 = 42.857%) */
    overflow: hidden;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out;
    -ms-transition: opacity 0.5s ease-in-out;
    -o-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    /* 图片渲染优化 */
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
    /* 强制显示 */
    opacity: 1;
    visibility: visible;
}

/* 轮播图指示器 */
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    z-index: 2;
    /* 低版本浏览器兼容 */
    margin-left: -8px;
}

.banner-indicators > * {
    margin-left: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #ffffff;
    width: 20px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

/* 公告区域 */
.notice-container {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    width: 100%;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.notice-container > * {
    margin-left: 10px;
}

.notice-icon {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #FFD700;
    animation: notice-bell 2s ease-in-out infinite;
    -webkit-animation: notice-bell 2s ease-in-out infinite;
    -moz-animation: notice-bell 2s ease-in-out infinite;
}

.notice-content {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.notice-text {
    font-size: 13px;
    line-height: 20px;
    color: #FFD700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    width: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    -ms-transition: opacity 0.5s ease;
    -o-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.notice-text.active {
    opacity: 1;
}

@keyframes notice-bell {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

@-webkit-keyframes notice-bell {
    0%, 100% {
        -webkit-transform: rotate(0deg);
    }
    10%, 30% {
        -webkit-transform: rotate(-10deg);
    }
    20%, 40% {
        -webkit-transform: rotate(10deg);
    }
    50% {
        -webkit-transform: rotate(0deg);
    }
}

@-moz-keyframes notice-bell {
    0%, 100% {
        -moz-transform: rotate(0deg);
    }
    10%, 30% {
        -moz-transform: rotate(-10deg);
    }
    20%, 40% {
        -moz-transform: rotate(10deg);
    }
    50% {
        -moz-transform: rotate(0deg);
    }
}

/* =========================
   比赛分类标签样式
========================= */
.match-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-around;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-around;
    gap: 0;
    margin: 0 10px;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 14px 16px;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #FFD54F;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
}

.tab-item.active::after {
    width: 60%;
}

.tab-text {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.tab-item.active .tab-text {
    font-weight: 600;
}


/* 默认黑色主题 - 标签颜色 */
body:not([data-theme]) .tab-text,
body[data-theme="green"] .tab-text {
    color: #FFD54F !important;
}

body:not([data-theme]) .tab-item.active .tab-text,
body[data-theme="green"] .tab-item.active .tab-text {
    color: #FFD54F !important;
}

/* 白色主题 - 标签样式 */
#theme-light:checked ~ .main-content .match-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .tab-item::after {
    background: #4CAF50;
}

#theme-light:checked ~ .main-content .tab-text,
body[data-theme="light"] .tab-text {
    color: #4CAF50 !important;
}

#theme-light:checked ~ .main-content .tab-item.active .tab-text,
body[data-theme="light"] .tab-item.active .tab-text {
    color: #4CAF50 !important;
}

/* tab-count 现在使用CSS变量，不需要主题特定样式 */

/* 浅蓝色主题 - 标签样式 */
#theme-blue:checked ~ .main-content .match-tabs {
    border-bottom-color: rgba(25, 118, 210, 0.2);
}

#theme-blue:checked ~ .main-content .tab-item::after {
    background: #1976d2;
}

#theme-blue:checked ~ .main-content .tab-text,
body[data-theme="blue"] .tab-text {
    color: #1976d2 !important;
}

#theme-blue:checked ~ .main-content .tab-item.active .tab-text,
body[data-theme="blue"] .tab-item.active .tab-text {
    color: #1976d2 !important;
}

/* tab-count 现在使用CSS变量，不需要主题特定样式 */

/* =========================
   赛事卡片样式
========================= */
.match-list {
    padding: 12px 10px;
    /* 确保最后一个卡片下方有足够空间 */
    padding-bottom: 0px;
}

.match-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    /* iOS触摸反馈 */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    /* 确保可点击 */
    position: relative;
    /* 禁止文本选择以避免干扰点击 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 平滑过渡 */
    -webkit-transition: background 0.2s ease, -webkit-transform 0.1s ease;
    -moz-transition: background 0.2s ease, -moz-transform 0.1s ease;
    -o-transition: background 0.2s ease, -o-transform 0.1s ease;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* 即将开始的比赛卡片悬停效果 */
.match-card[data-status="upcoming"]:hover,
.match-card[data-status="upcoming"]:active {
    background: rgba(255, 255, 255, 0.08);
}

/* iOS触摸激活效果 */
.match-card[data-status="upcoming"]:active {
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    -o-transform: scale(0.98);
    transform: scale(0.98);
}

/* 已结束和进行中的比赛不可点击 */
.match-card[data-status="finished"],
.match-card[data-status="ongoing"] {
    cursor: default;
}

.match-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.match-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.match-body {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 10px;
}

.player-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 80px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -moz-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    overflow: visible;
    border: none;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    margin-bottom: 6px;
    position: relative;
    background-color: transparent;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* 去除空白符影响 */
    font-size: 0;
    line-height: 0;
    /* 低版本浏览器兼容：使用flex居中代替transform */
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
}


.player-avatar.player-left::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-animation: avatarFlameLeft 4s linear infinite;
    -moz-animation: avatarFlameLeft 4s linear infinite;
    -ms-animation: avatarFlameLeft 4s linear infinite;
    -o-animation: avatarFlameLeft 4s linear infinite;
    animation: avatarFlameLeft 4s linear infinite;
    z-index: 2;
    pointer-events: none;
    /* 强制硬件加速 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.player-avatar.player-right::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-animation: avatarFlameRight 4s linear infinite;
    -moz-animation: avatarFlameRight 4s linear infinite;
    -ms-animation: avatarFlameRight 4s linear infinite;
    -o-animation: avatarFlameRight 4s linear infinite;
    animation: avatarFlameRight 4s linear infinite;
    z-index: 2;
    pointer-events: none;
    /* 强制硬件加速 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* 已结束的比赛不显示跑马灯动画 */
.match-card[data-status="finished"] .player-avatar.player-left::before,
.match-card[data-status="finished"] .player-avatar.player-right::before {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -ms-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    background: transparent !important;
}

/* 头像图片样式 */
.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

/* 左侧头像火焰动画 - 彩虹系 */
@-webkit-keyframes avatarFlameLeft {
    0% { 
        -webkit-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -webkit-transform: rotate(360deg) translateZ(0);
        transform: rotate(360deg) translateZ(0);
    }
}

@-moz-keyframes avatarFlameLeft {
    0% { 
        -moz-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -moz-transform: rotate(360deg) translateZ(0);
        transform: rotate(360deg) translateZ(0);
    }
}

@-ms-keyframes avatarFlameLeft {
    0% { 
        -ms-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -ms-transform: rotate(360deg) translateZ(0);
        transform: rotate(360deg) translateZ(0);
    }
}

@keyframes avatarFlameLeft {
    0% { 
        -webkit-transform: rotate(0deg) translateZ(0);
        -moz-transform: rotate(0deg) translateZ(0);
        -ms-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -webkit-transform: rotate(360deg) translateZ(0);
        -moz-transform: rotate(360deg) translateZ(0);
        -ms-transform: rotate(360deg) translateZ(0);
        transform: rotate(360deg) translateZ(0);
    }
}

/* 右侧头像火焰动画 - 彩虹系 */
@-webkit-keyframes avatarFlameRight {
    0% { 
        -webkit-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -webkit-transform: rotate(-360deg) translateZ(0);
        transform: rotate(-360deg) translateZ(0);
    }
}

@-moz-keyframes avatarFlameRight {
    0% { 
        -moz-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -moz-transform: rotate(-360deg) translateZ(0);
        transform: rotate(-360deg) translateZ(0);
    }
}

@-ms-keyframes avatarFlameRight {
    0% { 
        -ms-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -ms-transform: rotate(-360deg) translateZ(0);
        transform: rotate(-360deg) translateZ(0);
    }
}

@keyframes avatarFlameRight {
    0% { 
        -webkit-transform: rotate(0deg) translateZ(0);
        -moz-transform: rotate(0deg) translateZ(0);
        -ms-transform: rotate(0deg) translateZ(0);
        transform: rotate(0deg) translateZ(0);
    }
    100% { 
        -webkit-transform: rotate(-360deg) translateZ(0);
        -moz-transform: rotate(-360deg) translateZ(0);
        -ms-transform: rotate(-360deg) translateZ(0);
        transform: rotate(-360deg) translateZ(0);
    }
}

.player-avatar img {
    /* 关键修复：确保图片填满容器 */
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    
    /* 显示设置 */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    
    /* 定位：确保图片可以被居中 */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    
    /* object-fit 裁剪（现代浏览器） */
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center center;
    object-position: center center;
    
    /* 强制显示 */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* 图片渲染优化 */
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
    
    /* 防止图片被拖拽 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* 低版本浏览器不支持 object-fit 的兜底方案 */
@supports not (object-fit: cover) {
    .player-avatar img {
        /* 隐藏图片，使用背景图片替代（由 JS 设置） */
        opacity: 0 !important;
        pointer-events: none;
    }
}

/* 确保容器在没有 JS 的情况下也能显示背景色 */
.player-avatar:empty,
.player-avatar[data-avatar-loaded="true"] {
    /* 标准属性 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* 老版本浏览器兜底：使用 100% 100% 拉伸（如果不支持 cover） */
    background-size: 100% 100%;
    background-size: cover;
}

/* 针对非常老的浏览器（不支持 @supports）的强制方案 */
.player-avatar {
    /* 确保容器本身可以显示背景 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* 老版本浏览器兜底 */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.player-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 选手赔率显示（仅待开始状态显示） */
.player-odds {
    font-size: 16px;
    color: #FFD54F;
    font-weight: 700;
    margin-top: 4px;
    margin-top: 4px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    text-shadow: 0 0 8px rgba(255, 213, 79, 0.3);
}

.match-score {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.match-score-numbers {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 8px;
}

.score-number {
    font-size: 28px;
    font-weight: bold;
    color: #FFD54F;
}

.score-vs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin: 0 8px;
}

.match-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.time-icon {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
}

.match-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.match-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 152, 0, 0.2);
    color: #ffa726;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.match-status.status-live {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
    -webkit-animation: pulse 2s ease-in-out infinite;
    -moz-animation: pulse 2s ease-in-out infinite;
    -o-animation: pulse 2s ease-in-out infinite;
    animation: pulse 2s ease-in-out infinite;
}

.match-status.status-finished {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.score-number.winner {
    color: #FFB300;
    font-weight: bold;
    font-size: 28px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 浅色主题 - 赛事卡片 */
#theme-light:checked ~ .main-content .match-card {
    background: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .match-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .match-title {
    color: #333;
}

#theme-light:checked ~ .main-content .match-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

#theme-light:checked ~ .main-content .player-avatar.player-left::before {
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%) !important;
}

#theme-light:checked ~ .main-content .player-avatar.player-right::before {
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%) !important;
}

/* 浅色主题下已结束的比赛不显示跑马灯 */
#theme-light:checked ~ .main-content .match-card[data-status="finished"] .player-avatar.player-left::before,
#theme-light:checked ~ .main-content .match-card[data-status="finished"] .player-avatar.player-right::before {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -ms-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    background: transparent !important;
}

#theme-light:checked ~ .main-content .player-name {
    color: #333;
}

#theme-light:checked ~ .main-content .player-odds {
    color: #FF6F00;
    text-shadow: 0 0 8px rgba(255, 111, 0, 0.2);
}

#theme-light:checked ~ .main-content .score-number {
    color: #4CAF50;
}

#theme-light:checked ~ .main-content .score-vs {
    color: rgba(0, 0, 0, 0.4);
}

#theme-light:checked ~ .main-content .match-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .time-icon {
    color: rgba(0, 0, 0, 0.5);
}

#theme-light:checked ~ .main-content .match-time {
    color: rgba(0, 0, 0, 0.6);
}

#theme-light:checked ~ .main-content .match-status {
    background: rgba(255, 152, 0, 0.15);
    color: #f57c00;
    border-color: rgba(255, 152, 0, 0.3);
}

#theme-light:checked ~ .main-content .match-status.status-live {
    background: rgba(76, 175, 80, 0.15);
    color: #43a047;
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ .main-content .match-status.status-finished {
    background: rgba(97, 97, 97, 0.1);
    color: #616161;
    border-color: rgba(97, 97, 97, 0.3);
}

#theme-light:checked ~ .main-content .score-number.winner {
    color: #2e7d32;
}

/* 蓝色主题 - 赛事卡片 */
#theme-blue:checked ~ .main-content .match-card {
    background: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

#theme-blue:checked ~ .main-content .match-header {
    border-bottom-color: rgba(25, 118, 210, 0.15);
}

#theme-blue:checked ~ .main-content .match-title {
    color: #0d47a1;
}

#theme-blue:checked ~ .main-content .match-subtitle {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .main-content .player-avatar.player-left::before {
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%) !important;
}

#theme-blue:checked ~ .main-content .player-avatar.player-right::before {
    background: linear-gradient(0deg, 
        #ff6b9d 0%,
        #c44569 12.5%,
        #f8b500 25%,
        #feca57 37.5%,
        #FFC107 50%,
        #FFB300 62.5%,
        #5f27cd 75%,
        #341f97 87.5%,
        #ff6b9d 100%) !important;
}

/* 蓝色主题下已结束的比赛不显示跑马灯 */
#theme-blue:checked ~ .main-content .match-card[data-status="finished"] .player-avatar.player-left::before,
#theme-blue:checked ~ .main-content .match-card[data-status="finished"] .player-avatar.player-right::before {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -ms-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    background: transparent !important;
}

#theme-blue:checked ~ .main-content .player-name {
    color: #0d47a1;
}

#theme-blue:checked ~ .main-content .player-odds {
    color: #FF6F00;
    text-shadow: 0 0 8px rgba(255, 111, 0, 0.2);
}

#theme-blue:checked ~ .main-content .score-number {
    color: #1976d2;
}

#theme-blue:checked ~ .main-content .score-vs {
    color: rgba(13, 71, 161, 0.4);
}

#theme-blue:checked ~ .main-content .match-footer {
    border-top-color: rgba(25, 118, 210, 0.15);
}

#theme-blue:checked ~ .main-content .time-icon {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .main-content .match-time {
    color: rgba(13, 71, 161, 0.7);
}

#theme-blue:checked ~ .main-content .match-status {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
    border-color: rgba(25, 118, 210, 0.3);
}

#theme-blue:checked ~ .main-content .match-status.status-live {
    background: rgba(76, 175, 80, 0.15);
    color: #43a047;
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-blue:checked ~ .main-content .match-status.status-finished {
    background: rgba(97, 97, 97, 0.1);
    color: #616161;
    border-color: rgba(97, 97, 97, 0.3);
}

#theme-blue:checked ~ .main-content .score-number.winner {
    color: #2e7d32;
}

/* 卡片隐藏状态 */
.match-card.hidden {
    display: none;
}

/* 加载中、空数据、错误提示 */
.loading-matches,
.no-matches,
.error-matches {
    text-align: center;
    padding: 40px 20px;
    padding-top: 40px;
    padding-right: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

#theme-light:checked ~ .main-content .loading-matches,
#theme-light:checked ~ .main-content .no-matches,
#theme-light:checked ~ .main-content .error-matches {
    color: #999999;
}

#theme-blue:checked ~ .main-content .loading-matches,
#theme-blue:checked ~ .main-content .no-matches,
#theme-blue:checked ~ .main-content .error-matches {
    color: #1565c0;
}

/* =========================
   其他页面样式
========================= */
.page-match,
.page-bet,
.page-user,
.page-login {
    padding: 10px 10px 70px 10px;
}

/* =========================
   登录/注册悬浮窗
========================= */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 9999;
    -webkit-animation: fadeIn 0.3s ease;
    -moz-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.auth-modal-overlay.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.auth-modal {
    background: #1a1a2e;
    border-radius: 12px;
    width: 85%;
    max-width: 340px;
    padding: 0;
    position: relative;
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    -webkit-animation: slideUp 0.3s ease;
    -moz-animation: slideUp 0.3s ease;
    animation: slideUp 0.3s ease;
}

.auth-modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 16px;
    text-align: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:first-child {
    border-radius: 12px 0 0 0;
}

.auth-tab:last-child {
    border-radius: 0 12px 0 0;
}

.auth-tab.active {
    color: #FFD54F;
    background: transparent;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFD54F;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 1;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.auth-modal-body {
    padding: 20px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FFD54F;
    background: rgba(255, 215, 0, 0.05);
}

.form-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* 记住密码 */
.form-remember {
    margin-top: 8px;
    margin-bottom: 0;
}

.remember-label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #FFD54F;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    outline: none;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.remember-checkbox:hover {
    border-color: #FFD54F;
}

.remember-checkbox:checked {
    background-color: #FFD54F;
    border-color: #FFD54F;
}

.remember-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.remember-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.remember-label:hover .remember-text {
    color: rgba(255, 255, 255, 0.9);
}

.form-submit {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #FFD54F, #FFD54F);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 16px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.form-submit:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

.form-submit:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* 浅色主题 */
#theme-light:checked ~ .auth-modal-overlay .auth-modal {
    background: #ffffff;
}

#theme-light:checked ~ .auth-modal-overlay .auth-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

#theme-light:checked ~ .auth-modal-overlay .auth-tab {
    color: rgba(0, 0, 0, 0.6);
}

#theme-light:checked ~ .auth-modal-overlay .auth-tab.active {
    color: #4CAF50;
    background: transparent;
}

#theme-light:checked ~ .auth-modal-overlay .auth-tab.active::after {
    background: #4CAF50;
}

#theme-light:checked ~ .auth-modal-overlay .auth-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
}

#theme-light:checked ~ .auth-modal-overlay .auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

#theme-light:checked ~ .auth-modal-overlay .form-label {
    color: rgba(0, 0, 0, 0.8);
}

#theme-light:checked ~ .auth-modal-overlay .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

#theme-light:checked ~ .auth-modal-overlay .form-input:focus {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

#theme-light:checked ~ .auth-modal-overlay .form-input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .auth-modal-overlay .form-input::-moz-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .auth-modal-overlay .form-input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .auth-modal-overlay .form-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .auth-modal-overlay .remember-checkbox {
    accent-color: #4CAF50;
    border-color: rgba(0, 0, 0, 0.2);
}

#theme-light:checked ~ .auth-modal-overlay .remember-checkbox:hover {
    border-color: #4CAF50;
}

#theme-light:checked ~ .auth-modal-overlay .remember-checkbox:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

#theme-light:checked ~ .auth-modal-overlay .remember-text {
    color: rgba(0, 0, 0, 0.7);
}

#theme-light:checked ~ .auth-modal-overlay .remember-label:hover .remember-text {
    color: rgba(0, 0, 0, 0.9);
}

#theme-light:checked ~ .auth-modal-overlay .form-submit {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

#theme-light:checked ~ .auth-modal-overlay .form-submit:hover {
    -webkit-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 白色主题 - 我的页面登录按钮 */
#theme-light:checked ~ .main-content .form-submit {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

#theme-light:checked ~ .main-content .form-submit:hover {
    -webkit-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 蓝色主题 */
#theme-blue:checked ~ .auth-modal-overlay .auth-modal {
    background: #e3f2fd;
}

#theme-blue:checked ~ .auth-modal-overlay .auth-modal-header {
    border-bottom-color: rgba(13, 71, 161, 0.1);
}

#theme-blue:checked ~ .auth-modal-overlay .auth-tab {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .auth-modal-overlay .auth-tab.active {
    color: #1976d2;
    background: transparent;
}

#theme-blue:checked ~ .auth-modal-overlay .auth-tab.active::after {
    background: #1976d2;
}

#theme-blue:checked ~ .auth-modal-overlay .auth-modal-close {
    background: rgba(13, 71, 161, 0.1);
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .auth-modal-overlay .auth-modal-close:hover {
    background: rgba(13, 71, 161, 0.2);
    color: #0d47a1;
}

#theme-blue:checked ~ .auth-modal-overlay .form-label {
    color: #0d47a1;
}

#theme-blue:checked ~ .auth-modal-overlay .form-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(13, 71, 161, 0.2);
    color: #0d47a1;
}

#theme-blue:checked ~ .auth-modal-overlay .form-input:focus {
    border-color: #1976d2;
    background: rgba(255, 255, 255, 1);
}

#theme-blue:checked ~ .auth-modal-overlay .form-input::-webkit-input-placeholder {
    color: rgba(13, 71, 161, 0.4);
}

#theme-blue:checked ~ .auth-modal-overlay .form-input::-moz-placeholder {
    color: rgba(13, 71, 161, 0.4);
}

#theme-blue:checked ~ .auth-modal-overlay .form-input:-ms-input-placeholder {
    color: rgba(13, 71, 161, 0.4);
}

#theme-blue:checked ~ .auth-modal-overlay .form-input::placeholder {
    color: rgba(13, 71, 161, 0.4);
}

#theme-blue:checked ~ .auth-modal-overlay .remember-checkbox {
    accent-color: #1976d2;
    border-color: rgba(13, 71, 161, 0.3);
}

#theme-blue:checked ~ .auth-modal-overlay .remember-checkbox:hover {
    border-color: #1976d2;
}

#theme-blue:checked ~ .auth-modal-overlay .remember-checkbox:checked {
    background-color: #1976d2;
    border-color: #1976d2;
}

#theme-blue:checked ~ .auth-modal-overlay .remember-text {
    color: rgba(13, 71, 161, 0.8);
}

#theme-blue:checked ~ .auth-modal-overlay .remember-label:hover .remember-text {
    color: rgba(13, 71, 161, 1);
}

#theme-blue:checked ~ .auth-modal-overlay .form-submit {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

#theme-blue:checked ~ .auth-modal-overlay .form-submit:hover {
    -webkit-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* =========================
   比赛详情悬浮窗样式
========================= */
/* 遮罩层 */
.match-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* 不使用display none，使用visibility和opacity控制显示隐藏 */
    display: block;
    visibility: hidden;
    z-index: 2000;
    opacity: 0;
    /* pointer-events防止隐藏时的点击 */
    pointer-events: none;
    -webkit-transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    -moz-transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    -o-transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    /* iOS Safari兼容性 */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.match-detail-overlay.active {
    opacity: 1;
    visibility: visible;
    /* 恢复点击事件 */
    pointer-events: auto;
    -webkit-transition-delay: 0s;
    -moz-transition-delay: 0s;
    -o-transition-delay: 0s;
    transition-delay: 0s;
}

/* 确保首页的赛事弹窗可以点击（优先级更高） */
body.home-page.match-modal-open .match-detail-overlay.active {
    pointer-events: auto !important;
}

body.home-page.match-modal-open .match-detail-overlay.active * {
    pointer-events: auto !important;
}

/* 弹窗主体 */
.match-detail-modal {
    background: #1a1a1a;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    /* 使用translate3d提升性能和兼容性 */
    -webkit-transform: translate3d(0, 100%, 0);
    -moz-transform: translate3d(0, 100%, 0);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100%);
    transform: translate3d(0, 100%, 0);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 强制硬件加速 */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    perspective: 1000;
}

.match-detail-overlay.active .match-detail-modal {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translate3d(0, 0, 0);
}

/* 关闭按钮 */
.match-detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.match-detail-close:hover {
    background: rgba(255, 77, 79, 0.8);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}

/* 头部标题 */
.match-detail-header {
    padding: 12px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    -webkit-flex-shrink: 0;
       -moz-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

.match-detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.match-detail-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* 主体内容 */
.match-detail-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
       -moz-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 15px;
    padding-bottom: 60px;
    min-height: 0;
    /* 低版本iOS兼容：确保内容有足够空间 */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 比赛信息卡片 */
.match-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.match-detail-players {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* 低版本iOS兼容：gap不支持时的间距fallback */
.match-detail-players > * {
    margin: 0 7.5px;
}
.match-detail-players > *:first-child {
    margin-left: 0;
}
.match-detail-players > *:last-child {
    margin-right: 0;
}

.player-section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.player-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 215, 79, 0.3);
}

.player-avatar-large img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.player-name-large {
    font-size: 15px;
    font-weight: 600;
    color: #FFD54F;
    text-align: center;
}

.match-score-center {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.match-score-display {
    text-align: center;
}

.match-status-large {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 215, 79, 0.15);
    color: #FFD54F;
    border: 1px solid rgba(255, 215, 79, 0.3);
}

.match-status-large.status-live {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border-color: rgba(76, 175, 80, 0.3);
}

.match-status-large.status-finished {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
    border-color: rgba(158, 158, 158, 0.3);
}

.match-detail-time {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 低版本iOS兼容：gap不支持时的间距fallback */
.match-detail-time > * {
    margin: 0 4px;
}
.match-detail-time > *:first-child {
    margin-left: 0;
}
.match-detail-time > *:last-child {
    margin-right: 0;
}

/* 投注区域 */
.bet-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
       -moz-box-orient: horizontal;
       -moz-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 12px;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
}

/* 低版本iOS兼容：为子元素添加右边距和下边距 */
.bet-section > .bet-game-type {
    margin-right: 12px;
    margin-bottom: 12px;
}
.bet-section > .bet-game-type:last-child {
    margin-right: 0;
}

.bet-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #FFD54F;
    margin-bottom: 15px;
    text-align: center;
}

.bet-game-type {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 8px);
       -moz-box-flex: 1;
        -ms-flex: 1 1 calc(50% - 8px);
            flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}

.bet-game-title {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 10px;
}

/* 低版本iOS兼容：gap不支持时的间距fallback */
.bet-game-title > * {
    margin: 0 4px;
}
.bet-game-title > *:first-child {
    margin-left: 0;
}
.bet-game-title > *:last-child {
    margin-right: 0;
}

.bet-game-icon {
    font-size: 16px;
}

.bet-rule-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    color: #4CAF50;
    cursor: pointer;
    margin-left: 6px;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.bet-rule-icon:hover {
    color: #66BB6A;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}

.bet-options {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -4px;
}

/* 低版本iOS兼容：为子元素添加间距 */
.bet-options > * {
    margin: 4px;
}

.bet-option {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 5px 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
}

/* hover 效果已禁用 */

.bet-option.selected {
    background: rgba(255, 215, 79, 0.2) !important;
    border-color: #FFD54F !important;
    -webkit-box-shadow: 0 0 15px rgba(255, 215, 79, 0.3) !important;
    -moz-box-shadow: 0 0 15px rgba(255, 215, 79, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 215, 79, 0.3) !important;
}

.bet-option-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.bet-option-odds {
    font-size: 15px;
    font-weight: 700;
    color: #FFD54F;
}

/* 投注金额区域 */
.bet-amount-section {
    -webkit-flex-basis: 100%;
        -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
    width: 100%;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-selected-info {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 215, 79, 0.1);
    border-radius: 6px;
    text-align: center;
}

.bet-selected-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

.bet-selected-text {
    font-size: 13px;
    font-weight: 600;
    color: #FFD54F;
}

.bet-amount-input-group {
    margin-bottom: 12px;
}

.bet-amount-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.bet-amount-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.bet-amount-input:focus {
    outline: none;
    border-color: #FFD54F;
    background: rgba(255, 255, 255, 0.12);
}

.bet-amount-quick {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin-left: -3px;
    margin-right: -3px;
}

/* 低版本iOS兼容：为子元素添加间距 */
.bet-amount-quick > * {
    margin: 0 3px;
}

.quick-amount-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: rgba(255, 215, 79, 0.15);
    border-color: #FFD54F;
}

.bet-submit-group {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -4px;
}

/* 低版本iOS兼容：为子元素添加间距 */
.bet-submit-group > * {
    margin: 4px;
}

.bet-cancel-btn,
.bet-submit-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.bet-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bet-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.bet-submit-btn {
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    color: #000000;
}

.bet-submit-btn:hover {
    -webkit-box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
    -moz-box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.4);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}

.bet-submit-btn:disabled,
.bet-cancel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
}

.bet-submit-btn:disabled:hover,
.bet-cancel-btn:disabled:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    -o-transform: none;
    transform: none;
}

/* 白色主题适配 */
#theme-light:checked ~ .match-detail-overlay .match-detail-modal {
    background: #ffffff;
}

#theme-light:checked ~ .match-detail-overlay .match-detail-close {
    background: rgba(0, 0, 0, 0.1);
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .match-detail-close:hover {
    background: rgba(255, 77, 79, 0.8);
    color: #ffffff;
}

#theme-light:checked ~ .match-detail-overlay .match-detail-title {
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .match-detail-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

#theme-light:checked ~ .match-detail-overlay .match-detail-card {
    background: rgba(0, 0, 0, 0.03);
}

#theme-light:checked ~ .match-detail-overlay .player-name-large {
    color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .player-avatar-large {
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ .match-detail-overlay .match-status-large {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ .match-detail-overlay .match-detail-time {
    color: rgba(0, 0, 0, 0.7);
}

#theme-light:checked ~ .match-detail-overlay .time-icon {
    color: rgba(0, 0, 0, 0.5);
}

#theme-light:checked ~ .match-detail-overlay .bet-rule-icon {
    color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .bet-rule-icon:hover {
    color: #66BB6A;
}

#theme-light:checked ~ .match-detail-overlay .bet-section {
    background: rgba(0, 0, 0, 0.02);
}

#theme-light:checked ~ .match-detail-overlay .bet-section-title {
    color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .bet-game-title {
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .bet-option {
    background: rgba(0, 0, 0, 0.05);
    border-color: #e0e0e0;
}

/* 浅色主题 hover 效果已禁用 */

#theme-light:checked ~ .match-detail-overlay .bet-option.selected {
    background: rgba(76, 175, 80, 0.15) !important;
    border-color: #4CAF50 !important;
    -webkit-box-shadow: 0 0 15px rgba(76, 175, 80, 0.2) !important;
    -moz-box-shadow: 0 0 15px rgba(76, 175, 80, 0.2) !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2) !important;
}


#theme-light:checked ~ .match-detail-overlay .bet-option-name {
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .bet-option-odds {
    color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .bet-selected-info {
    background: rgba(76, 175, 80, 0.1);
}

#theme-light:checked ~ .match-detail-overlay .bet-selected-text {
    color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .bet-amount-label {
    color: rgba(0, 0, 0, 0.8);
}

#theme-light:checked ~ .match-detail-overlay .bet-amount-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .bet-amount-input:focus {
    border-color: #4CAF50;
    background: rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .match-detail-overlay .quick-amount-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .quick-amount-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

#theme-light:checked ~ .match-detail-overlay .bet-cancel-btn {
    background: rgba(0, 0, 0, 0.08);
    color: #212121;
}

#theme-light:checked ~ .match-detail-overlay .bet-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.12);
}

#theme-light:checked ~ .match-detail-overlay .bet-submit-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

/* 蓝色主题适配 */
#theme-blue:checked ~ .match-detail-overlay .match-detail-modal {
    background: #e3f2fd;
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-close {
    background: rgba(13, 71, 161, 0.1);
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-close:hover {
    background: rgba(255, 77, 79, 0.8);
    color: #ffffff;
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-header {
    border-bottom-color: rgba(25, 118, 210, 0.15);
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-title {
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-subtitle {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-card {
    background: rgba(25, 118, 210, 0.08);
}

#theme-blue:checked ~ .match-detail-overlay .player-name-large {
    color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .player-avatar-large {
    border-color: rgba(25, 118, 210, 0.3);
}

#theme-blue:checked ~ .match-detail-overlay .match-status-large {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
    border-color: rgba(25, 118, 210, 0.3);
}

#theme-blue:checked ~ .match-detail-overlay .time-icon {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .match-detail-overlay .bet-rule-icon {
    color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .bet-rule-icon:hover {
    color: #42a5f5;
}

#theme-blue:checked ~ .match-detail-overlay .match-detail-time {
    color: rgba(13, 71, 161, 0.7);
}

#theme-blue:checked ~ .match-detail-overlay .bet-section {
    background: rgba(25, 118, 210, 0.05);
}

#theme-blue:checked ~ .match-detail-overlay .bet-section-title {
    color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .bet-game-title {
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .bet-option {
    background: rgba(25, 118, 210, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 蓝色主题 hover 效果已禁用 */

#theme-blue:checked ~ .match-detail-overlay .bet-option.selected {
    background: rgba(25, 118, 210, 0.2) !important;
    border-color: #1976d2 !important;
    -webkit-box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
    -moz-box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
}


#theme-blue:checked ~ .match-detail-overlay .bet-option-name {
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .bet-option-odds {
    color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .bet-selected-info {
    background: rgba(25, 118, 210, 0.1);
}

#theme-blue:checked ~ .match-detail-overlay .bet-selected-label {
    color: rgba(13, 71, 161, 0.7);
}

#theme-blue:checked ~ .match-detail-overlay .bet-selected-text {
    color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .bet-amount-label {
    color: rgba(13, 71, 161, 0.8);
}

#theme-blue:checked ~ .match-detail-overlay .bet-amount-input {
    background: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.3);
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .bet-amount-input:focus {
    border-color: #1976d2;
    background: rgba(25, 118, 210, 0.12);
}

#theme-blue:checked ~ .match-detail-overlay .quick-amount-btn {
    background: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.3);
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .quick-amount-btn:hover {
    background: rgba(25, 118, 210, 0.15);
    border-color: #1976d2;
}

#theme-blue:checked ~ .match-detail-overlay .bet-cancel-btn {
    background: rgba(25, 118, 210, 0.1);
    color: #0d47a1;
}

#theme-blue:checked ~ .match-detail-overlay .bet-cancel-btn:hover {
    background: rgba(25, 118, 210, 0.15);
}

#theme-blue:checked ~ .match-detail-overlay .bet-submit-btn {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #ffffff;
}

/* 蓝色主题 - 我的页面登录按钮 */
#theme-blue:checked ~ .main-content .form-submit {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

#theme-blue:checked ~ .main-content .form-submit:hover {
    -webkit-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* 动画 */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   游戏页面样式
========================= */
/* ===========================
   游戏大厅页面 - 全新重写
   =========================== */

/* ===========================
   交流中心页面样式
   =========================== */

.jiaoliu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
}

/* 交流中心头部 */
.jiaoliu-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 5px 20px;
    background: transparent;
}

.jiaoliu-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jiaoliu-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 交流版块网格 */
.jiaoliu-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* IE9/10 Grid 回退 */
.jiaoliu-grid > .jiaoliu-card:nth-child(1) { -ms-grid-column: 1; -ms-grid-row: 1; }
.jiaoliu-grid > .jiaoliu-card:nth-child(2) { -ms-grid-column: 3; -ms-grid-row: 1; }
.jiaoliu-grid > .jiaoliu-card:nth-child(3) { -ms-grid-column: 5; -ms-grid-row: 1; }
.jiaoliu-grid > .jiaoliu-card:nth-child(4) { -ms-grid-column: 1; -ms-grid-row: 2; }
.jiaoliu-grid > .jiaoliu-card:nth-child(5) { -ms-grid-column: 3; -ms-grid-row: 2; }
.jiaoliu-grid > .jiaoliu-card:nth-child(6) { -ms-grid-column: 5; -ms-grid-row: 2; }

/* 交流卡片 */
.jiaoliu-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    padding: 12px;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
            transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.jiaoliu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(135deg, transparent, rgba(76, 175, 80, 0.1));
    background: -moz-linear-gradient(135deg, transparent, rgba(76, 175, 80, 0.1));
    background: linear-gradient(135deg, transparent, rgba(76, 175, 80, 0.1));
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
       -moz-transition: opacity 0.3s ease;
            transition: opacity 0.3s ease;
}

.jiaoliu-card:hover {
    -webkit-transform: translateY(-5px);
       -moz-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
            transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
       -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.jiaoliu-card:hover::before {
    opacity: 1;
}

.jiaoliu-card-icon {
    width: 51px;
    height: 51px;
    min-width: 51px;
    margin-right: 15px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
            transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
       -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 平台公告 - 橙色渐变 */
.jiaoliu-card:nth-child(1) .jiaoliu-card-icon {
    background: -webkit-linear-gradient(135deg, #FF6B6B, #FF8E53);
    background: -moz-linear-gradient(135deg, #FF6B6B, #FF8E53);
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

/* 交流群 - 紫色渐变 */
.jiaoliu-card:nth-child(2) .jiaoliu-card-icon {
    background: -webkit-linear-gradient(135deg, #A855F7, #EC4899);
    background: -moz-linear-gradient(135deg, #A855F7, #EC4899);
    background: linear-gradient(135deg, #A855F7, #EC4899);
}

/* 球友圈 - 青色渐变 */
.jiaoliu-card:nth-child(3) .jiaoliu-card-icon {
    background: -webkit-linear-gradient(135deg, #06B6D4, #3B82F6);
    background: -moz-linear-gradient(135deg, #06B6D4, #3B82F6);
    background: linear-gradient(135deg, #06B6D4, #3B82F6);
}

/* 在线客服 - 绿色渐变 */
.jiaoliu-card:nth-child(4) .jiaoliu-card-icon {
    background: -webkit-linear-gradient(135deg, #10B981, #34D399);
    background: -moz-linear-gradient(135deg, #10B981, #34D399);
    background: linear-gradient(135deg, #10B981, #34D399);
}

/* 意见反馈 - 粉色渐变 */
.jiaoliu-card:nth-child(5) .jiaoliu-card-icon {
    background: -webkit-linear-gradient(135deg, #F472B6, #FB923C);
    background: -moz-linear-gradient(135deg, #F472B6, #FB923C);
    background: linear-gradient(135deg, #F472B6, #FB923C);
}

.jiaoliu-card:hover .jiaoliu-card-icon {
    -webkit-transform: scale(1.1) rotate(5deg);
       -moz-transform: scale(1.1) rotate(5deg);
        -ms-transform: scale(1.1) rotate(5deg);
            transform: scale(1.1) rotate(5deg);
    -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
       -moz-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.jiaoliu-card-icon svg {
    color: #fff;
    -webkit-transition: transform 0.3s ease;
       -moz-transition: transform 0.3s ease;
            transition: transform 0.3s ease;
}

.jiaoliu-card:hover .jiaoliu-card-icon svg {
    -webkit-transform: scale(1.1);
       -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}

.jiaoliu-card-content {
    -webkit-box-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.jiaoliu-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.jiaoliu-card-desc {
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* 卡片徽章 */
.jiaoliu-card-badge {
    position: absolute;
    top: 8px;
    right: 16px;
    width: 52px;
    height: 52px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 2;
}

/* 红包图标样式和动画 */
.hongbao-badge {
    -webkit-animation: hongbao-bounce 1s ease-in-out infinite;
       -moz-animation: hongbao-bounce 1s ease-in-out infinite;
            animation: hongbao-bounce 1s ease-in-out infinite;
}

.hongbao-badge svg {
    -webkit-filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.3));
            filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.3));
}

.hongbao-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffeb3b;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    -webkit-animation: sparkle 0.8s ease-in-out infinite;
       -moz-animation: sparkle 0.8s ease-in-out infinite;
            animation: sparkle 0.8s ease-in-out infinite;
}

.hongbao-sparkle:nth-child(2) {
    top: -5px;
    right: 5px;
    -webkit-animation-delay: 0s;
       -moz-animation-delay: 0s;
            animation-delay: 0s;
}

.hongbao-sparkle:nth-child(3) {
    top: 5px;
    right: -5px;
    -webkit-animation-delay: 0.3s;
       -moz-animation-delay: 0.3s;
            animation-delay: 0.3s;
}

.hongbao-sparkle:nth-child(4) {
    bottom: -5px;
    right: 8px;
    -webkit-animation-delay: 0.6s;
       -moz-animation-delay: 0.6s;
            animation-delay: 0.6s;
}

@-webkit-keyframes hongbao-bounce {
    0%, 100% { -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
    50% { -webkit-transform: translateY(-5px) scale(1.1); transform: translateY(-5px) scale(1.1); }
}

@-moz-keyframes hongbao-bounce {
    0%, 100% { -moz-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
    50% { -moz-transform: translateY(-5px) scale(1.1); transform: translateY(-5px) scale(1.1); }
}

@keyframes hongbao-bounce {
    0%, 100% { -webkit-transform: translateY(0) scale(1); -moz-transform: translateY(0) scale(1); transform: translateY(0) scale(1); }
    50% { -webkit-transform: translateY(-5px) scale(1.1); -moz-transform: translateY(-5px) scale(1.1); transform: translateY(-5px) scale(1.1); }
}

@-webkit-keyframes sparkle {
    0%, 100% { opacity: 0; -webkit-transform: scale(0); transform: scale(0); }
    50% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

@-moz-keyframes sparkle {
    0%, 100% { opacity: 0; -moz-transform: scale(0); transform: scale(0); }
    50% { opacity: 1; -moz-transform: scale(1); transform: scale(1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; -webkit-transform: scale(0); -moz-transform: scale(0); transform: scale(0); }
    50% { opacity: 1; -webkit-transform: scale(1); -moz-transform: scale(1); transform: scale(1); }
}

/* 打赏图标样式和动画 */
.dashang-badge {
    -webkit-animation: dashang-rotate 1.5s linear infinite;
       -moz-animation: dashang-rotate 1.5s linear infinite;
            animation: dashang-rotate 1.5s linear infinite;
}

.dashang-badge svg {
    -webkit-filter: drop-shadow(0 2px 4px rgba(255, 165, 2, 0.3));
            filter: drop-shadow(0 2px 4px rgba(255, 165, 2, 0.3));
}

.dashang-coin {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    -webkit-animation: coin-fall 1s ease-in infinite;
       -moz-animation: coin-fall 1s ease-in infinite;
            animation: coin-fall 1s ease-in infinite;
    opacity: 0;
}

.dashang-coin-1 {
    left: 8px;
    -webkit-animation-delay: 0s;
       -moz-animation-delay: 0s;
            animation-delay: 0s;
}

.dashang-coin-2 {
    left: 16px;
    -webkit-animation-delay: 0.3s;
       -moz-animation-delay: 0.3s;
            animation-delay: 0.3s;
}

.dashang-coin-3 {
    left: 12px;
    -webkit-animation-delay: 0.6s;
       -moz-animation-delay: 0.6s;
            animation-delay: 0.6s;
}

@-webkit-keyframes dashang-rotate {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@-moz-keyframes dashang-rotate {
    0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes dashang-rotate {
    0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); transform: rotate(360deg); }
}

@-webkit-keyframes coin-fall {
    0% { opacity: 0; -webkit-transform: translateY(-20px) scale(0); transform: translateY(-20px) scale(0); }
    20% { opacity: 1; -webkit-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); }
    80% { opacity: 1; -webkit-transform: translateY(30px) scale(0.8); transform: translateY(30px) scale(0.8); }
    100% { opacity: 0; -webkit-transform: translateY(40px) scale(0); transform: translateY(40px) scale(0); }
}

@-moz-keyframes coin-fall {
    0% { opacity: 0; -moz-transform: translateY(-20px) scale(0); transform: translateY(-20px) scale(0); }
    20% { opacity: 1; -moz-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); }
    80% { opacity: 1; -moz-transform: translateY(30px) scale(0.8); transform: translateY(30px) scale(0.8); }
    100% { opacity: 0; -moz-transform: translateY(40px) scale(0); transform: translateY(40px) scale(0); }
}

@keyframes coin-fall {
    0% { opacity: 0; -webkit-transform: translateY(-20px) scale(0); -moz-transform: translateY(-20px) scale(0); transform: translateY(-20px) scale(0); }
    20% { opacity: 1; -webkit-transform: translateY(0px) scale(1); -moz-transform: translateY(0px) scale(1); transform: translateY(0px) scale(1); }
    80% { opacity: 1; -webkit-transform: translateY(30px) scale(0.8); -moz-transform: translateY(30px) scale(0.8); transform: translateY(30px) scale(0.8); }
    100% { opacity: 0; -webkit-transform: translateY(40px) scale(0); -moz-transform: translateY(40px) scale(0); transform: translateY(40px) scale(0); }
}

.jiaoliu-card-badge-online {
    background: rgba(255, 215, 0, 0.2);
    color: #FFB300;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #FF5722;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    -webkit-animation: pulse 2s ease-in-out infinite;
       -moz-animation: pulse 2s ease-in-out infinite;
            animation: pulse 2s ease-in-out infinite;
}

.badge-dot-online {
    background: #FFB300;
}

@-webkit-keyframes pulse {
    0%, 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
    50% { opacity: 0.7; -webkit-transform: scale(1.2); transform: scale(1.2); }
}

@-moz-keyframes pulse {
    0%, 100% { opacity: 1; -moz-transform: scale(1); transform: scale(1); }
    50% { opacity: 0.7; -moz-transform: scale(1.2); transform: scale(1.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.badge-text {
    font-weight: 500;
}

/* 快捷联系方式 */
.jiaoliu-contact {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    padding: 30px;
}

.contact-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    text-align: center;
}

.contact-list {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-border-radius: 8px;
       -moz-border-radius: 8px;
            border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(76, 175, 80, 0.1);
    -webkit-transform: translateX(5px);
       -moz-transform: translateX(5px);
        -ms-transform: translateX(5px);
            transform: translateX(5px);
}

.contact-item svg {
    color: #FFB300;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

.contact-item span {
    font-size: 14px;
}

/* 白色主题 - 交流中心 */
#theme-light:checked ~ .main-content .jiaoliu-header {
    background: transparent;
}

#theme-light:checked ~ .main-content .jiaoliu-title {
    color: #333;
    text-shadow: none;
}

#theme-light:checked ~ .main-content .jiaoliu-subtitle {
    color: #666;
}

#theme-light:checked ~ .main-content .jiaoliu-card {
    background: #fff;
    border-color: #e0e0e0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
       -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .jiaoliu-card:hover {
    -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
       -moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#theme-light:checked ~ .main-content .jiaoliu-card-title {
    color: #333;
}

#theme-light:checked ~ .main-content .jiaoliu-card-desc {
    color: #0b8a3e;
}

#theme-light:checked ~ .main-content .jiaoliu-card-badge {
    color: #4CAF50;
}

#theme-light:checked ~ .main-content .jiaoliu-contact {
    background: #fff;
    border-color: #e0e0e0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
       -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .contact-title {
    color: #333;
}

#theme-light:checked ~ .main-content .contact-item {
    background: #f5f5f5;
    color: #333;
}

#theme-light:checked ~ .main-content .contact-item:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* 蓝色主题 - 交流中心 */
#theme-blue:checked ~ .main-content .jiaoliu-header {
    background: transparent;
}

#theme-blue:checked ~ .main-content .jiaoliu-title {
    color: #1976D2;
}

#theme-blue:checked ~ .main-content .jiaoliu-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(33, 150, 243, 0.2);
}

#theme-blue:checked ~ .main-content .jiaoliu-card:hover {
    border-color: rgba(33, 150, 243, 0.5);
}

/* 蓝色主题 - 图标保持不变 */

#theme-blue:checked ~ .main-content .jiaoliu-card-title {
    color: #1565C0;
}

#theme-blue:checked ~ .main-content .jiaoliu-card-desc {
    color: #1e90ff;
}

#theme-blue:checked ~ .main-content .jiaoliu-card-badge {
    color: #1976D2;
}

#theme-blue:checked ~ .main-content .jiaoliu-card-badge-online {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

#theme-blue:checked ~ .main-content .jiaoliu-contact {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(33, 150, 243, 0.2);
}

#theme-blue:checked ~ .main-content .contact-title {
    color: #1976D2;
}

#theme-blue:checked ~ .main-content .contact-item {
    background: rgba(33, 150, 243, 0.05);
    color: #37474F;
}

#theme-blue:checked ~ .main-content .contact-item:hover {
    background: rgba(33, 150, 243, 0.15);
}

#theme-blue:checked ~ .main-content .contact-item svg {
    color: #2196F3;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .jiaoliu-grid {
        -ms-grid-columns: 1fr 15px 1fr;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* IE9/10 Grid 回退 - 平板 */
    .jiaoliu-grid > .jiaoliu-card:nth-child(1) { -ms-grid-column: 1; -ms-grid-row: 1; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(2) { -ms-grid-column: 3; -ms-grid-row: 1; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(3) { -ms-grid-column: 1; -ms-grid-row: 2; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(4) { -ms-grid-column: 3; -ms-grid-row: 2; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(5) { -ms-grid-column: 1; -ms-grid-row: 3; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(6) { -ms-grid-column: 3; -ms-grid-row: 3; }
    
    .jiaoliu-title {
        font-size: 28px;
    }
    
    .jiaoliu-card {
        padding: 10px;
    }
    
    .jiaoliu-card-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
    
    .jiaoliu-card-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .jiaoliu-card-title {
        font-size: 15px;
    }
    
    .jiaoliu-card-desc {
        font-size: 12px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .jiaoliu-container {
        padding: 10px 15px 15px 15px;
    }
    
    .jiaoliu-header {
        padding: 5px 15px;
        margin-bottom: 15px;
    }
    
    .jiaoliu-title {
        font-size: 24px;
    }
    
    .jiaoliu-subtitle {
        font-size: 14px;
    }
    
    .jiaoliu-grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    /* IE9/10 Grid 回退 - 手机 */
    .jiaoliu-grid > .jiaoliu-card:nth-child(1) { -ms-grid-column: 1; -ms-grid-row: 1; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(2) { -ms-grid-column: 1; -ms-grid-row: 2; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(3) { -ms-grid-column: 1; -ms-grid-row: 3; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(4) { -ms-grid-column: 1; -ms-grid-row: 4; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(5) { -ms-grid-column: 1; -ms-grid-row: 5; }
    .jiaoliu-grid > .jiaoliu-card:nth-child(6) { -ms-grid-column: 1; -ms-grid-row: 6; }
    
    .jiaoliu-card {
        padding: 12px;
    }
    
    .jiaoliu-card-icon {
        width: 51px;
        height: 51px;
        min-width: 51px;
    }
    
    .jiaoliu-card-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .jiaoliu-card-title {
        font-size: 16px;
    }
    
    .jiaoliu-card-desc {
        font-size: 13px;
    }
    
    .jiaoliu-card-badge {
        width: 44px;
        height: 44px;
        top: 6px;
        right: 12px;
    }
    
    .jiaoliu-card-badge svg {
        width: 40px;
        height: 40px;
    }
    
    .jiaoliu-contact {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .contact-item {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .contact-item svg {
        width: 18px;
        height: 18px;
    }
}

/* ==================== 活动中心样式 ==================== */
.huodong-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 100px;
}

.huodong-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.huodong-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

/* 活动列表 */
.huodong-list {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 25px;
}

/* 活动项 */
.huodong-item {
    width: 100%;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
       -moz-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
            transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.huodong-item:hover {
    -webkit-transform: translateY(-5px);
       -moz-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
            transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
       -moz-box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.huodong-item a {
    display: block;
    text-decoration: none;
    position: relative;
}

/* 活动图片 */
.huodong-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    -webkit-transition: opacity 0.5s ease;
       -moz-transition: opacity 0.5s ease;
            transition: opacity 0.5s ease;
}

/* 占位符样式 */
.huodong-placeholder {
    width: 100%;
    min-height: 300px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    background: -moz-linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: rgba(255, 255, 255, 0.6);
}

.huodong-placeholder svg {
    margin-bottom: 15px;
    opacity: 0.5;
}

.huodong-placeholder p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 活动中心主题适配 ==================== */

/* 浅色主题 */
#theme-light:checked ~ .main-content .huodong-title {
    color: #333;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#theme-light:checked ~ .main-content .huodong-item {
    background: #fff;
    border-color: #e0e0e0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
       -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .huodong-item:hover {
    -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
       -moz-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

#theme-light:checked ~ .main-content .huodong-placeholder {
    background: -webkit-linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    background: -moz-linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    color: #666;
}

#theme-light:checked ~ .main-content .huodong-placeholder p {
    color: #999;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .huodong-title {
    color: #1976D2;
    text-shadow: 0 2px 10px rgba(25, 118, 210, 0.2);
}

#theme-blue:checked ~ .main-content .huodong-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(33, 150, 243, 0.2);
    -webkit-box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
       -moz-box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
            box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

#theme-blue:checked ~ .main-content .huodong-item:hover {
    -webkit-box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
       -moz-box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
            box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
}

#theme-blue:checked ~ .main-content .huodong-placeholder {
    background: -webkit-linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(25, 118, 210, 0.05));
    background: -moz-linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(25, 118, 210, 0.05));
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(25, 118, 210, 0.05));
    color: #1976D2;
}

#theme-blue:checked ~ .main-content .huodong-placeholder p {
    color: #64B5F6;
}

/* 活动中心响应式 - 移动端 */
@media screen and (max-width: 768px) {
    .huodong-container {
        padding: 20px 15px 100px;
    }
    
    .huodong-header {
        margin-bottom: 25px;
    }
    
    .huodong-title {
        font-size: 24px;
    }
    
    .huodong-list {
        gap: 15px;
    }
    
    .huodong-item {
        -webkit-border-radius: 8px;
           -moz-border-radius: 8px;
                border-radius: 8px;
    }
    
    .huodong-placeholder {
        min-height: 200px;
    }
    
    .huodong-placeholder svg {
        width: 48px;
        height: 48px;
    }
    
    .huodong-placeholder p {
        font-size: 13px;
    }
}

/* =========================
   我的页面样式
========================= */

/* 用户信息卡片 - 黑色主题（默认） */
.me-user-card {
    background: transparent;
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
    padding: 15px;
    margin: 0 15px 8px 15px;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-user-card {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-user-card {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

/* 未登录状态容器 - 黑色主题（默认） */
.me-not-logged-in {
    background: #1a1a1a;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    padding: 15px;
    margin: 0 15px 8px 15px;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-align: center;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-not-logged-in {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-not-logged-in {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
       -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
}

.me-user-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
       -moz-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

/* 左侧用户信息 */
.me-user-left {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    /* 低版本浏览器兼容：gap不支持时使用margin */
    gap: 10px;
    margin-left: -20px; /* 往左移动，减少移动距离以改善低版本iOS间距 */
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 低版本浏览器兼容：为头像添加右边距作为fallback */
.me-user-left > * + * {
    margin-left: 10px;
}

.me-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 100px;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/* 白色主题 */
/* 头像边框已移除 */

/* 蓝色主题 */
/* 头像边框已移除 */

/* SVG头像主题适配 */
#theme-blue:checked ~ .main-content .me-avatar-wrapper svg circle:first-child {
    fill: #2196F3 !important;
}

/* 背景动画层 - 比头像大 */
.avatar-animation-bg {
    position: absolute;
    width: 180px;
    height: 100px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
       -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.avatar-animation-bg .frame-wrapper {
    width: 100%;
    height: 100%;
}

/* 头像叠加层 - 保持原大小 */
.avatar-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
       -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
         -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    z-index: 2;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    font-size: 28px;
    font-weight: 600;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

/* 深色主题头像 - 青色 */
#theme-dark:checked ~ * .avatar-overlay {
    background: -webkit-linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    background: -moz-linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
       -moz-box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* 浅色主题头像 - 绿色 */
#theme-light:checked ~ * .avatar-overlay {
    background: -webkit-linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    background: -moz-linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
       -moz-box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* 蓝色主题头像 - 蓝色 */
#theme-blue:checked ~ * .avatar-overlay {
    background: -webkit-linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    background: -moz-linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
       -moz-box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.avatar-text {
    line-height: 1;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

/* 当avatar-text包含图片时的样式 */
.avatar-text img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.me-avatar-wrapper img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

/* 头像容器 */
.me-avatar-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    margin-left: 0px; /* 往右移动 */
    /* 移除点击高亮效果 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    /* 移除点击时的背景变化 */
    -webkit-transition: none;
       -moz-transition: none;
         -o-transition: none;
            transition: none;
}

/* 移除头像容器的active状态背景 */
.me-avatar-container:active {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

/* 用户等级标签 */
.user-level-badge {
    position: relative;
    padding: 2px 10px;
    margin-top: 12px;
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
    background: -webkit-linear-gradient(left, #FFD700, #FFA500, #FFD700);
    background: -moz-linear-gradient(left, #FFD700, #FFA500, #FFD700);
    background: linear-gradient(to right, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
       -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
    overflow: hidden;
    -webkit-animation: levelBadgeGlow 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
       -moz-animation: levelBadgeGlow 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
        -ms-animation: levelBadgeGlow 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
            animation: levelBadgeGlow 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
}

/* 等级文字 */
.level-text {
    position: relative;
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    z-index: 2;
}

/* 闪光扫过效果 */
.level-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(left, transparent, rgba(255, 255, 255, 0.6), transparent);
    background: -moz-linear-gradient(left, transparent, rgba(255, 255, 255, 0.6), transparent);
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    -webkit-animation: levelShine 3s ease-in-out infinite;
       -moz-animation: levelShine 3s ease-in-out infinite;
        -ms-animation: levelShine 3s ease-in-out infinite;
            animation: levelShine 3s ease-in-out infinite;
    -webkit-transform: skewX(-20deg);
       -moz-transform: skewX(-20deg);
        -ms-transform: skewX(-20deg);
            transform: skewX(-20deg);
    z-index: 1;
}

/* 不同等级的颜色 */
/* 超级代理 - 金色 */
.user-level-badge[data-level="super-agent"] {
    background: -webkit-linear-gradient(left, #FFD700, #FFA500, #FFD700);
    background: -moz-linear-gradient(left, #FFD700, #FFA500, #FFD700);
    background: linear-gradient(to right, #FFD700, #FFA500, #FFD700);
    -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
       -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
}

/* 代理 - 紫色 */
.user-level-badge[data-level="agent"] {
    background: -webkit-linear-gradient(left, #9C27B0, #E91E63, #9C27B0);
    background: -moz-linear-gradient(left, #9C27B0, #E91E63, #9C27B0);
    background: linear-gradient(to right, #9C27B0, #E91E63, #9C27B0);
    -webkit-box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4), 0 0 15px rgba(233, 30, 99, 0.3);
       -moz-box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4), 0 0 15px rgba(233, 30, 99, 0.3);
            box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4), 0 0 15px rgba(233, 30, 99, 0.3);
}

/* 普通用户 - 蓝色 */
.user-level-badge[data-level="normal"] {
    background: -webkit-linear-gradient(left, #2196F3, #03A9F4, #2196F3);
    background: -moz-linear-gradient(left, #2196F3, #03A9F4, #2196F3);
    background: linear-gradient(to right, #2196F3, #03A9F4, #2196F3);
    -webkit-box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4), 0 0 15px rgba(3, 169, 244, 0.3);
       -moz-box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4), 0 0 15px rgba(3, 169, 244, 0.3);
            box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4), 0 0 15px rgba(3, 169, 244, 0.3);
}

/* VIP用户 - 红金色 */
.user-level-badge[data-level="vip"] {
    background: -webkit-linear-gradient(left, #FF6B6B, #FFD700, #FF6B6B);
    background: -moz-linear-gradient(left, #FF6B6B, #FFD700, #FF6B6B);
    background: linear-gradient(to right, #FF6B6B, #FFD700, #FF6B6B);
    -webkit-box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
       -moz-box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
            box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 发光脉冲动画 */
@-webkit-keyframes levelBadgeGlow {
    0%, 100% {
        -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
                box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
    }
    50% {
        -webkit-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
                box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
    }
}

@-moz-keyframes levelBadgeGlow {
    0%, 100% {
        -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
             box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
    }
    50% {
        -moz-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
             box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
    }
}

@-ms-keyframes levelBadgeGlow {
    0%, 100% {
        -ms-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
    }
    50% {
        -ms-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
            box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
    }
}

@keyframes levelBadgeGlow {
    0%, 100% {
        -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
           -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
            -ms-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
                box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 165, 0, 0.3);
    }
    50% {
        -webkit-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
           -moz-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
            -ms-box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
                box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 165, 0, 0.5);
    }
}

/* 渐变位移动画 */
@-webkit-keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@-moz-keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@-ms-keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 闪光扫过动画 */
@-webkit-keyframes levelShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@-moz-keyframes levelShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@-ms-keyframes levelShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes levelShine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.me-user-details {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    /* 减少行间距，提升紧凑度 */
    gap: 8px;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
    margin-left: 0px; /* 确保与头像区域有足够间距，兼容低版本iOS */
    min-width: 0; /* 防止flex子元素溢出 */
}

/* 低版本浏览器兼容：为子元素添加上边距作为fallback */
.me-user-details > * + * {
    margin-top: 8px;
}

/* 账号信息顶部区域（账号+邀请码） */
.me-user-info-top {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 8px;
}

/* 头衔在账号行内时不需要额外的上边距 */
.me-user-row .user-level-badge {
    margin-top: 0;
    margin-left: 0;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

.me-user-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    /* 元素间距 */
    gap: 8px;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    margin-bottom: 10px; /* 增加行间距（旧版浏览器兼容） */
}

/* 最后一个行不需要下边距 */
.me-user-row:last-child {
    margin-bottom: 0;
}

/* 特殊元素的左边距（覆盖 gap 设置） */
.me-user-value {
    margin-left: 0; /* 值紧跟标签，由标签的 margin-right 控制间距 */
}

.me-user-row > .user-level-badge {
    margin-left: 12px; /* 头衔徽章前的间距 */
}

.me-refresh-btn {
    margin-left: 2px; /* 刷新按钮前的间距 */
}

.me-invite-label {
    margin-left: 0;
}

.me-balance-row {
    /* 增加余额行与账号行的间距 */
    margin-top: 12px;
    margin-bottom: 0;
}

.me-user-label {
    font-size: 14px;
    color: #999999;
    margin-right: 0; /* 冒号和值之间无间距 */
    flex-shrink: 0; /* 防止标签被压缩 */
}

.me-user-value {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
}

/* 账号显示/隐藏切换图标 - 使用Unicode字符更兼容 */
.account-toggle-icon {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    cursor: pointer;
    vertical-align: middle;
    color: #888888;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0.7;
    text-align: center;
    overflow: hidden;
}

.account-toggle-icon:hover {
    color: #FFD54F;
    opacity: 1;
}

.account-toggle-icon:active {
    opacity: 0.5;
}

/* 确保邀请码和头衔之间有间距（旧版浏览器兼容） */
.me-user-value + .user-level-badge {
    margin-left: 8px;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-user-label {
    color: #999999 !important;
}

#theme-light:checked ~ .main-content .me-user-value {
    color: #333333 !important;
}

#theme-light:checked ~ .main-content .account-toggle-icon {
    color: #999999;
}

#theme-light:checked ~ .main-content .account-toggle-icon:hover {
    color: #4CAF50;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-user-label {
    color: rgba(13, 71, 161, 0.6) !important;
}

#theme-blue:checked ~ .main-content .me-user-value {
    color: #0d47a1 !important;
}

#theme-blue:checked ~ .main-content .account-toggle-icon {
    color: rgba(13, 71, 161, 0.6);
}

#theme-blue:checked ~ .main-content .account-toggle-icon:hover {
    color: #1976d2;
}

/* 余额值样式 */
.me-balance-value {
    font-size: 20px;
    font-weight: 600;
    color: #FFB300;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-balance-value {
    color: #4CAF50 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-balance-value {
    color: #2196F3 !important;
}

.me-refresh-btn {
    background: transparent;
    border: none;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    width: 24px;
    height: 24px;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
            transition: all 0.3s ease;
    padding: 0;
    margin-left: 5px;
}

.me-refresh-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

.me-refresh-btn:active {
    -webkit-transform: scale(0.95);
       -moz-transform: scale(0.95);
        -ms-transform: scale(0.95);
         -o-transform: scale(0.95);
            transform: scale(0.95);
}

.me-refresh-btn svg {
    color: #FFB300;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-refresh-btn svg {
    color: #4CAF50 !important;
}

#theme-light:checked ~ .main-content .me-refresh-btn:hover {
    background: rgba(76, 175, 80, 0.1) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-refresh-btn svg {
    color: #2196F3 !important;
}

#theme-blue:checked ~ .main-content .me-refresh-btn:hover {
    background: rgba(33, 150, 243, 0.1) !important;
}

/* 刷新动画 */
@-webkit-keyframes meRotate {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes meRotate {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-o-keyframes meRotate {
    from { -o-transform: rotate(0deg); }
    to { -o-transform: rotate(360deg); }
}
@keyframes meRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.me-refresh-btn.refreshing svg {
    -webkit-animation: meRotate 1s linear infinite;
       -moz-animation: meRotate 1s linear infinite;
         -o-animation: meRotate 1s linear infinite;
            animation: meRotate 1s linear infinite;
}

/* 快捷操作区 - 黑色主题（默认） */
.me-quick-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    background: #1a1a1a;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    padding: 10px 8px;
    margin: 0 15px 8px 15px;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-quick-actions {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-quick-actions {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
       -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
}

.me-action-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-decoration: none;
    color: #e0e0e0;
    -webkit-transition: -webkit-transform 0.2s ease;
       -moz-transition: -moz-transform 0.2s ease;
         -o-transition: -o-transform 0.2s ease;
        -ms-transition: -ms-transform 0.2s ease;
            transition: transform 0.2s ease;
    /* 4列布局：每个占25%宽度，减去间距 */
    width: 25%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    padding: 8px 4px;
    margin-bottom: 8px;
}

/* 低版本浏览器兼容：为子元素添加上边距 */
.me-action-item > * + * {
    margin-top: 6px;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-action-item {
    color: #333333 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-action-item {
    color: #0d47a1 !important;
}

.me-action-item:active {
    -webkit-transform: scale(0.95);
       -moz-transform: scale(0.95);
        -ms-transform: scale(0.95);
         -o-transform: scale(0.95);
            transform: scale(0.95);
}

.me-action-icon {
    width: 50px;
    height: 50px;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: #FFB300;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-action-icon {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-action-icon {
    background: rgba(33, 150, 243, 0.2) !important;
    color: #2196F3 !important;
}

.me-action-text {
    font-size: 13px;
    color: #e0e0e0;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-action-text {
    color: #333333 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-action-text {
    color: #0d47a1 !important;
}

/* 功能菜单列表 - 黑色主题（默认） */
.me-menu-list {
    background: #1a1a1a;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    margin: 0 15px 10px 15px;
    overflow: hidden;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-menu-list {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-menu-list {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
       -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
}

.me-menu-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #e0e0e0;
    border-bottom: 1px solid #404040;
    -webkit-transition: background-color 0.2s ease;
       -moz-transition: background-color 0.2s ease;
         -o-transition: background-color 0.2s ease;
        -ms-transition: background-color 0.2s ease;
            transition: background-color 0.2s ease;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-menu-item {
    color: #333333 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-menu-item {
    color: #0d47a1 !important;
    border-bottom: 1px solid rgba(25, 118, 210, 0.15) !important;
}

.me-menu-item:last-child {
    border-bottom: none !important;
}

.me-menu-item:active {
    background: rgba(255,255,255,0.05);
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-menu-item:active {
    background: rgba(0,0,0,0.05) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-menu-item:active {
    background: rgba(25, 118, 210, 0.08) !important;
}

.me-menu-icon {
    width: 40px;
    height: 40px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
            border-radius: 8px;
    background: rgba(255, 215, 0, 0.15);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: #FFB300;
    margin-right: 15px;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-menu-icon {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-menu-icon {
    background: rgba(33, 150, 243, 0.2) !important;
    color: #2196F3 !important;
}

.me-menu-text {
    -webkit-flex: 1;
        -ms-flex: 1;
       -moz-box-flex: 1;
            flex: 1;
    font-size: 15px;
}

.me-menu-arrow {
    color: #999999;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-menu-arrow {
    color: #999999 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-menu-arrow {
    color: rgba(13, 71, 161, 0.6) !important;
}

/* 充值提现功能区域 - 黑色主题（默认） */
.me-finance-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 15px 10px 15px;
    padding: 0;
}

.me-finance-item {
    background: #1a1a1a;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    padding: 20px 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-decoration: none;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

.me-finance-item:active {
    -webkit-transform: scale(0.95);
       -moz-transform: scale(0.95);
        -ms-transform: scale(0.95);
         -o-transform: scale(0.95);
            transform: scale(0.95);
    background: #252525;
}

.me-finance-icon {
    width: 50px;
    height: 50px;
    -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
            border-radius: 12px;
    background: rgba(255, 215, 0, 0.15);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    color: #FFB300;
    margin-bottom: 10px;
}

.me-finance-text {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-finance-item {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
       -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

#theme-light:checked ~ .main-content .me-finance-item:active {
    background: #f5f5f5 !important;
}

#theme-light:checked ~ .main-content .me-finance-icon {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
}

#theme-light:checked ~ .main-content .me-finance-text {
    color: #333333 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-finance-item {
    background: #ffffff !important;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
       -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1) !important;
}

#theme-blue:checked ~ .main-content .me-finance-item:active {
    background: rgba(25, 118, 210, 0.05) !important;
}

#theme-blue:checked ~ .main-content .me-finance-icon {
    background: rgba(33, 150, 243, 0.2) !important;
    color: #2196F3 !important;
}

#theme-blue:checked ~ .main-content .me-finance-text {
    color: #0d47a1 !important;
}

/* 我的页面响应式 */
@media (max-width: 360px) {
    .me-user-info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
           -moz-box-orient: vertical;
           -moz-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 10px;
    }
    
    /* 低版本浏览器兼容：为子元素添加上边距作为fallback */
    .me-user-info > * + * {
        margin-top: 10px;
    }
    
    .me-user-right {
        width: 100%;
    }
    
    .me-balance-box {
        width: 100%;
    }
    
    /* 小屏幕设备上的图标更小 */
    .account-toggle-icon {
        font-size: 12px;
        margin-left: 4px;
    }
}

/* =========================
   低版本浏览器滚动修复
========================= */
/* 针对iOS 9及以下、Android 4.4及以下的滚动优化 */
html {
    -webkit-overflow-scrolling: touch;
}

/* 确保body可以正常滚动 */
body {
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 确保所有页面内容可以滚动 */
.page {
    padding-bottom: 10px;
}

/* 修复iOS低版本position:fixed元素导致的滚动问题 */
.header,
.bottom-nav {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 确保主内容区域在fixed元素之下正确显示 */
.main-content {
    position: relative;
    z-index: 1;
}

/* =========================
   真实姓名警告样式（三种主题）
========================= */
.realname-warning {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #ff6b6b;
    font-weight: normal;
}

/* 亮色主题 */
#theme-light:checked ~ * .realname-warning,
body[data-theme="light"] .realname-warning {
    color: #e63946;
}

/* 蓝色主题 */
#theme-blue:checked ~ * .realname-warning,
body[data-theme="blue"] .realname-warning {
    color: #d32f2f;
}

/* =========================
   滑块验证码弹窗样式（兼容低版本）
========================= */
.captcha-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    -webkit-overflow-scrolling: touch;
}

.captcha-modal-overlay.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.captcha-modal {
    position: relative;
    width: 90%;
    max-width: 360px;
    background-color: #2d2d2d;
    border-radius: 12px;
    -webkit-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: visible !important;
    -webkit-animation: captchaFadeIn 0.3s ease;
    animation: captchaFadeIn 0.3s ease;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    clip-path: none !important;
    contain: none !important;
}

.captcha-modal::before {
    content: none;
}

@-webkit-keyframes captchaFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes captchaFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.captcha-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    color: #999;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.captcha-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.captcha-modal-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #404040;
}

.captcha-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.captcha-modal-body {
    padding: 20px;
    position: relative;
    overflow: visible !important;
}

/* 验证码图片容器 */
.captcha-image-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    overflow: visible !important;
    background-color: #1a1a1a;
}

/* 确保canvas元素有圆角 */
#captchaCanvas {
    border-radius: 8px;
}

/* 滑块块（拼图块）不需要圆角 */
#captchaBlockCanvas {
    border-radius: 0;
}

#captchaCanvas {
    width: 300px;
    height: 150px;
    display: block;
}

#captchaBlockCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 50px;
    display: block;
    overflow: visible !important;
    object-fit: none;
}

/* 滑块容器 */
.captcha-slider-container {
    position: relative;
    width: 300px;
    margin: 0 auto;
    overflow: visible;
}

.captcha-slider-track {
    position: relative;
    width: 100%;
    height: 44px;
    background-color: #1a1a1a;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #404040;
    /* 确保轨道不会撑开容器高度 */
    flex-shrink: 0;
}

.captcha-slider-track-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 2;
}

.captcha-slider-track-text span {
    display: none;
}

.captcha-slider-track-text .slider-text-default {
    display: block;
}

.captcha-slider-track.success .slider-text-default,
.captcha-slider-track.fail .slider-text-default {
    display: none;
}

.captcha-slider-track.success .slider-text-success {
    display: block;
    color: #4caf50;
}

.captcha-slider-track.fail .slider-text-fail {
    display: block;
    color: #f44336;
}

.captcha-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: -webkit-gradient(linear, left top, right top, from(#FFB300), to(#FFCA28));
    background: -webkit-linear-gradient(left, #FFB300, #FFCA28);
    background: -moz-linear-gradient(left, #FFB300, #FFCA28);
    background: linear-gradient(to right, #FFB300, #FFCA28);
    border-radius: 22px 0 0 22px;
    -webkit-transition: width 0.1s ease;
    transition: width 0.1s ease;
    z-index: 1;
}

/* 拖动时禁用transition，让进度条立即响应 */
.captcha-slider-track.dragging .captcha-slider-fill {
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}

.captcha-slider-button {
    position: absolute;
    top: 0;
    left: 0;
    /* 滑块按钮尺寸与拼图块一致：blockSize = 40px，但按钮是圆形，需要至少44px才能覆盖 */
    width: 44px;
    height: 44px;
    background-color: #fff;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    /* 阴影设置：向下延伸约10px，需要足够空间 */
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
    /* 关键：z-index要足够高，确保在所有父元素之上 */
    z-index: 999 !important;
    /* 确保滑块按钮不会被裁剪 */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    /* 防止任何裁剪机制 */
    -webkit-mask-image: none !important;
    mask-image: none !important;
    clip-path: none !important;
    overflow: visible !important;
    /* 使用transform来避免阴影被裁剪（某些浏览器优化） */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* 确保阴影完整渲染 */
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    /* 确保按钮可以超出父容器边界 */
    contain: none !important;
    /* 确保按钮和阴影都能完整显示，不被裁剪 */
    will-change: transform;
    /* 关键：确保按钮可以超出所有父元素的边界 */
    position: absolute !important;
}

.captcha-slider-button:active {
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

.captcha-slider-button.success {
    background-color: #4caf50;
}

.captcha-slider-button.fail {
    background-color: #f44336;
}

.slider-icon {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.captcha-slider-button.success .slider-icon,
.captcha-slider-button.fail .slider-icon {
    color: #fff;
}

/* 刷新按钮 */
.captcha-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    color: #FFB300;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    color: #FFCA28;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* 亮色主题 */
#theme-light:checked ~ * .captcha-modal,
body[data-theme="light"] .captcha-modal {
    background-color: #ffffff;
}

#theme-light:checked ~ * .captcha-modal-header,
body[data-theme="light"] .captcha-modal-header {
    border-bottom: 1px solid #e0e0e0;
}

#theme-light:checked ~ * .captcha-title,
body[data-theme="light"] .captcha-title {
    color: #333;
}

#theme-light:checked ~ * .captcha-image-container,
body[data-theme="light"] .captcha-image-container {
    background-color: #f5f5f5;
}

#theme-light:checked ~ * .captcha-slider-track,
body[data-theme="light"] .captcha-slider-track {
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
}

#theme-light:checked ~ * .captcha-slider-fill,
body[data-theme="light"] .captcha-slider-fill {
    background: -webkit-gradient(linear, left top, right top, from(#4caf50), to(#66bb6a));
    background: -webkit-linear-gradient(left, #4caf50, #66bb6a);
    background: -moz-linear-gradient(left, #4caf50, #66bb6a);
    background: linear-gradient(to right, #4caf50, #66bb6a);
}

#theme-light:checked ~ * .captcha-modal-close,
body[data-theme="light"] .captcha-modal-close {
    color: #666;
}

#theme-light:checked ~ * .captcha-modal-close:hover,
body[data-theme="light"] .captcha-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

#theme-light:checked ~ * .captcha-refresh,
body[data-theme="light"] .captcha-refresh {
    color: #4caf50;
}

#theme-light:checked ~ * .captcha-refresh:hover,
body[data-theme="light"] .captcha-refresh:hover {
    color: #66bb6a;
}

/* 蓝色主题 */
#theme-blue:checked ~ * .captcha-modal,
body[data-theme="blue"] .captcha-modal {
    background-color: #ffffff;
}

#theme-blue:checked ~ * .captcha-modal-header,
body[data-theme="blue"] .captcha-modal-header {
    border-bottom: 1px solid #e0e0e0;
}

#theme-blue:checked ~ * .captcha-title,
body[data-theme="blue"] .captcha-title {
    color: #1976d2;
}

#theme-blue:checked ~ * .captcha-image-container,
body[data-theme="blue"] .captcha-image-container {
    background-color: #e3f2fd;
}

#theme-blue:checked ~ * .captcha-slider-track,
body[data-theme="blue"] .captcha-slider-track {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

#theme-blue:checked ~ * .captcha-slider-fill,
body[data-theme="blue"] .captcha-slider-fill {
    background: -webkit-gradient(linear, left top, right top, from(#1976d2), to(#42a5f5));
    background: -webkit-linear-gradient(left, #1976d2, #42a5f5);
    background: -moz-linear-gradient(left, #1976d2, #42a5f5);
    background: linear-gradient(to right, #1976d2, #42a5f5);
}

#theme-blue:checked ~ * .captcha-slider-button.success,
body[data-theme="blue"] .captcha-slider-button.success {
    background-color: #1976d2;
}

#theme-blue:checked ~ * .captcha-modal-close,
body[data-theme="blue"] .captcha-modal-close {
    color: #666;
}

#theme-blue:checked ~ * .captcha-modal-close:hover,
body[data-theme="blue"] .captcha-modal-close:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

#theme-blue:checked ~ * .captcha-refresh,
body[data-theme="blue"] .captcha-refresh {
    color: #1976d2;
}

#theme-blue:checked ~ * .captcha-refresh:hover,
body[data-theme="blue"] .captcha-refresh:hover {
    color: #42a5f5;
}

/* ==================== 设置页面样式 ==================== */

/* 设置弹窗遮罩层 */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 设置弹窗容器 */
.settings-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* 设置弹窗头部 */
.settings-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.settings-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.settings-close-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.settings-close-btn:hover {
    background: #e0e0e0;
}

.settings-close-btn:active {
    transform: scale(0.95);
}

/* 设置弹窗主体 */
.settings-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 设置项 */
.settings-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-item:hover {
    background-color: #f9f9f9;
}

.settings-item:active {
    background-color: #f0f0f0;
}

/* 退出登录特殊样式 - 红色主题 */
.settings-item.logout {
    background-color: transparent;
}

.settings-item.logout:hover {
    background-color: #fff5f5 !important;
}

.settings-item.logout:active {
    background-color: #ffe5e5 !important;
}

.settings-item.logout .settings-item-icon {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%) !important;
}

.settings-item.logout .settings-item-label {
    color: #f44336 !important;
}

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.settings-avatar-display {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
}

.settings-avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-item-info {
    flex: 1;
}

.settings-item-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.settings-item-value {
    font-size: 13px;
    color: #999;
}

.settings-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-item-arrow {
    width: 20px;
    height: 20px;
    color: #ccc;
}

/* 设置页面 - 主题选择样式 */
.settings-modal .theme-options {
    display: flex;
    gap: 12px;
}

.settings-modal .theme-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.settings-modal .theme-option.active {
    border-color: #4CAF50;
    transform: scale(1.1);
}

.settings-modal .theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.settings-modal .theme-option[data-theme="green"] {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.settings-modal .theme-option[data-theme="purple"] {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.settings-modal .theme-option[data-theme="blue"] {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%);
}

/* 退出登录按钮 */
.settings-logout-item {
    border-bottom: none;
    justify-content: center;
    color: #f44336;
    font-weight: 500;
}

.settings-logout-item:hover {
    background-color: #ffebee;
}

/* 隐藏的文件输入 */
#avatarInput {
    display: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .settings-modal {
        width: 95%;
        max-height: 85vh;
        border-radius: 16px;
    }
    
    .settings-modal-header {
        padding: 16px;
    }
    
    .settings-title {
        font-size: 16px;
    }
    
    .settings-item {
        padding: 14px 16px;
    }
    
    .settings-avatar-display {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .settings-item-label {
        font-size: 14px;
    }
    
    .settings-item-value {
        font-size: 12px;
    }
    
    .settings-modal .theme-option {
        width: 32px;
        height: 32px;
    }
}

/* ==================== 设置页面 - 深色主题（默认） ==================== */
#theme-dark:checked ~ * .settings-modal,
body:not([data-theme]) .settings-modal {
    background: #1a1a2e;
}

#theme-dark:checked ~ * .settings-modal-header,
body:not([data-theme]) .settings-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#theme-dark:checked ~ * .settings-title,
body:not([data-theme]) .settings-title {
    color: #ffffff;
}

#theme-dark:checked ~ * .settings-close-btn,
body:not([data-theme]) .settings-close-btn {
    background: rgba(255, 255, 255, 0.1);
}

#theme-dark:checked ~ * .settings-close-btn svg,
body:not([data-theme]) .settings-close-btn svg {
    color: #ffffff;
}

#theme-dark:checked ~ * .settings-close-btn:hover,
body:not([data-theme]) .settings-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#theme-dark:checked ~ * .settings-item,
body:not([data-theme]) .settings-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#theme-dark:checked ~ * .settings-item:hover,
body:not([data-theme]) .settings-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#theme-dark:checked ~ * .settings-item:active,
body:not([data-theme]) .settings-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

#theme-dark:checked ~ * .settings-item-label,
body:not([data-theme]) .settings-item-label {
    color: #ffffff;
}

#theme-dark:checked ~ * .settings-item-value,
body:not([data-theme]) .settings-item-value {
    color: rgba(255, 255, 255, 0.6);
}

#theme-dark:checked ~ * .settings-item-icon svg,
body:not([data-theme]) .settings-item-icon svg {
    color: #FFD54F;
}

#theme-dark:checked ~ * .settings-item-right svg,
body:not([data-theme]) .settings-item-right svg {
    color: rgba(255, 255, 255, 0.3);
}

#theme-dark:checked ~ * .settings-logout-item,
body:not([data-theme]) .settings-logout-item {
    color: #ff6b6b;
}

#theme-dark:checked ~ * .settings-logout-item:hover,
body:not([data-theme]) .settings-logout-item:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

#theme-dark:checked ~ * .settings-avatar-display,
body:not([data-theme]) .settings-avatar-display {
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
}

/* ==================== 设置页面 - 浅色主题 ==================== */
#theme-light:checked ~ * .settings-modal,
body[data-theme="light"] .settings-modal {
    background: #ffffff;
}

#theme-light:checked ~ * .settings-modal-header,
body[data-theme="light"] .settings-modal-header {
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .settings-title,
body[data-theme="light"] .settings-title {
    color: #333333;
}

#theme-light:checked ~ * .settings-close-btn,
body[data-theme="light"] .settings-close-btn {
    background: #f5f5f5;
}

#theme-light:checked ~ * .settings-close-btn svg,
body[data-theme="light"] .settings-close-btn svg {
    color: #666666;
}

#theme-light:checked ~ * .settings-close-btn:hover,
body[data-theme="light"] .settings-close-btn:hover {
    background: #e0e0e0;
}

#theme-light:checked ~ * .settings-item,
body[data-theme="light"] .settings-item {
    border-bottom-color: #f0f0f0;
}

#theme-light:checked ~ * .settings-item:hover,
body[data-theme="light"] .settings-item:hover {
    background-color: #f9f9f9;
}

#theme-light:checked ~ * .settings-item:active,
body[data-theme="light"] .settings-item:active {
    background-color: #f0f0f0;
}

#theme-light:checked ~ * .settings-item-label,
body[data-theme="light"] .settings-item-label {
    color: #333333;
}

#theme-light:checked ~ * .settings-item-value,
body[data-theme="light"] .settings-item-value {
    color: #999999;
}

#theme-light:checked ~ * .settings-item-icon svg,
body[data-theme="light"] .settings-item-icon svg {
    color: #4CAF50;
}

#theme-light:checked ~ * .settings-item-right svg,
body[data-theme="light"] .settings-item-right svg {
    color: #cccccc;
}

#theme-light:checked ~ * .settings-logout-item,
body[data-theme="light"] .settings-logout-item {
    color: #f44336;
}

#theme-light:checked ~ * .settings-logout-item:hover,
body[data-theme="light"] .settings-logout-item:hover {
    background-color: #ffebee;
}

#theme-light:checked ~ * .settings-avatar-display,
body[data-theme="light"] .settings-avatar-display {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

/* ==================== 设置页面 - 绿色主题 ==================== */
#theme-green:checked ~ * .settings-modal,
body[data-theme="green"] .settings-modal {
    background: #fff;
}

#theme-green:checked ~ * .settings-modal-header,
body[data-theme="green"] .settings-modal-header {
    border-bottom-color: #eee;
}

#theme-green:checked ~ * .settings-title,
body[data-theme="green"] .settings-title {
    color: #333;
}

#theme-green:checked ~ * .settings-close-btn,
body[data-theme="green"] .settings-close-btn {
    background: #f5f5f5;
}

#theme-green:checked ~ * .settings-close-btn:hover,
body[data-theme="green"] .settings-close-btn:hover {
    background: #e0e0e0;
}

#theme-green:checked ~ * .settings-item,
body[data-theme="green"] .settings-item {
    border-bottom-color: #f0f0f0;
}

#theme-green:checked ~ * .settings-item:hover,
body[data-theme="green"] .settings-item:hover {
    background-color: #f9f9f9;
}

#theme-green:checked ~ * .settings-item:active,
body[data-theme="green"] .settings-item:active {
    background-color: #f0f0f0;
}

#theme-green:checked ~ * .settings-item-label,
body[data-theme="green"] .settings-item-label {
    color: #333;
}

#theme-green:checked ~ * .settings-item-value,
body[data-theme="green"] .settings-item-value {
    color: #999;
}

#theme-green:checked ~ * .theme-option.active,
body[data-theme="green"] .theme-option.active {
    border-color: #4CAF50;
}

#theme-green:checked ~ * .settings-logout-item,
body[data-theme="green"] .settings-logout-item {
    color: #f44336;
}

#theme-green:checked ~ * .settings-logout-item:hover,
body[data-theme="green"] .settings-logout-item:hover {
    background-color: #ffebee;
}

/* ==================== 设置页面 - 紫色主题 ==================== */
#theme-purple:checked ~ * .settings-modal,
body[data-theme="purple"] .settings-modal {
    background: #fff;
}

#theme-purple:checked ~ * .settings-modal-header,
body[data-theme="purple"] .settings-modal-header {
    border-bottom-color: #e1bee7;
}

#theme-purple:checked ~ * .settings-title,
body[data-theme="purple"] .settings-title {
    color: #4a148c;
}

#theme-purple:checked ~ * .settings-close-btn,
body[data-theme="purple"] .settings-close-btn {
    background: #f3e5f5;
}

#theme-purple:checked ~ * .settings-close-btn svg,
body[data-theme="purple"] .settings-close-btn svg {
    color: #7b1fa2;
}

#theme-purple:checked ~ * .settings-close-btn:hover,
body[data-theme="purple"] .settings-close-btn:hover {
    background: #e1bee7;
}

#theme-purple:checked ~ * .settings-item,
body[data-theme="purple"] .settings-item {
    border-bottom-color: #f3e5f5;
}

#theme-purple:checked ~ * .settings-item:hover,
body[data-theme="purple"] .settings-item:hover {
    background-color: #fce4ec;
}

#theme-purple:checked ~ * .settings-item:active,
body[data-theme="purple"] .settings-item:active {
    background-color: #f8bbd0;
}

#theme-purple:checked ~ * .settings-item-label,
body[data-theme="purple"] .settings-item-label {
    color: #4a148c;
}

#theme-purple:checked ~ * .settings-item-value,
body[data-theme="purple"] .settings-item-value {
    color: #7b1fa2;
}

#theme-purple:checked ~ * .theme-option.active,
body[data-theme="purple"] .theme-option.active {
    border-color: #9c27b0;
}

#theme-purple:checked ~ * .settings-logout-item,
body[data-theme="purple"] .settings-logout-item {
    color: #c2185b;
}

#theme-purple:checked ~ * .settings-logout-item:hover,
body[data-theme="purple"] .settings-logout-item:hover {
    background-color: #fce4ec;
}

/* ==================== 设置页面 - 蓝色主题 ==================== */
#theme-blue:checked ~ * .settings-modal,
body[data-theme="blue"] .settings-modal {
    background: #e3f2fd;
}

#theme-blue:checked ~ * .settings-modal-header,
body[data-theme="blue"] .settings-modal-header {
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .settings-title,
body[data-theme="blue"] .settings-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .settings-close-btn,
body[data-theme="blue"] .settings-close-btn {
    background: #e3f2fd;
}

#theme-blue:checked ~ * .settings-close-btn svg,
body[data-theme="blue"] .settings-close-btn svg {
    color: #1976d2;
}

#theme-blue:checked ~ * .settings-close-btn:hover,
body[data-theme="blue"] .settings-close-btn:hover {
    background: #bbdefb;
}

#theme-blue:checked ~ * .settings-item,
body[data-theme="blue"] .settings-item {
    border-bottom-color: #e3f2fd;
}

#theme-blue:checked ~ * .settings-item:hover,
body[data-theme="blue"] .settings-item:hover {
    background-color: #e1f5fe;
}

#theme-blue:checked ~ * .settings-item:active,
body[data-theme="blue"] .settings-item:active {
    background-color: #b3e5fc;
}

#theme-blue:checked ~ * .settings-item-label,
body[data-theme="blue"] .settings-item-label {
    color: #0d47a1;
}

#theme-blue:checked ~ * .settings-item-value,
body[data-theme="blue"] .settings-item-value {
    color: #1976d2;
}

#theme-blue:checked ~ * .theme-option.active,
body[data-theme="blue"] .theme-option.active {
    border-color: #2196F3;
}

#theme-blue:checked ~ * .settings-logout-item,
body[data-theme="blue"] .settings-logout-item {
    color: #d32f2f;
}

#theme-blue:checked ~ * .settings-logout-item:hover,
body[data-theme="blue"] .settings-logout-item:hover {
    background-color: #ffebee;
}

#theme-blue:checked ~ * .settings-avatar-display,
body[data-theme="blue"] .settings-avatar-display {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
}

/* ==================== 性别选择弹窗样式 ==================== */

/* 性别选择弹窗遮罩层 */
.selection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.selection-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 性别选择弹窗容器 */
.selection-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    margin: 20px 0;
}

/* 性别选择弹窗头部 */
.selection-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.selection-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 性别选择弹窗主体 */
.selection-modal-body {
    padding: 20px;
}

/* 性别选项 */
.selection-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.selection-option:last-child {
    margin-bottom: 0;
}

.selection-option:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.selection-option.active {
    background: #4CAF50;
    color: #fff;
}

.selection-icon {
    font-size: 24px;
    margin-right: 16px;
}

/* 女性图标始终为粉红色 */
.selection-option[data-value="female"] .selection-icon {
    color: #ff69b4 !important;
}

.selection-text {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.selection-check {
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.selection-option.active .selection-check {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .selection-modal {
        width: 95%;
        border-radius: 16px;
    }
    
    .selection-modal-header {
        padding: 16px;
    }
    
    .selection-modal-title {
        font-size: 16px;
    }
    
    .selection-modal-body {
        padding: 16px;
    }
    
    .selection-option {
        padding: 14px 16px;
    }
}

/* ==================== 性别选择弹窗 - 深色主题 ==================== */
#theme-dark:checked ~ * .selection-modal,
body:not([data-theme]) .selection-modal {
    background: #2a2a2a;
}

#theme-dark:checked ~ * .selection-modal-header,
body:not([data-theme]) .selection-modal-header {
    border-bottom-color: #3a3a3a;
}

#theme-dark:checked ~ * .selection-modal-title,
body:not([data-theme]) .selection-modal-title {
    color: #e0e0e0;
}

#theme-dark:checked ~ * .selection-option,
body:not([data-theme]) .selection-option {
    background: #3a3a3a;
    color: #e0e0e0;
}

#theme-dark:checked ~ * .selection-option:hover,
body:not([data-theme]) .selection-option:hover {
    background: #454545;
}

#theme-dark:checked ~ * .selection-option.active,
body:not([data-theme]) .selection-option.active {
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    color: #ffffff;
}

#theme-dark:checked ~ * .selection-icon,
body:not([data-theme]) .selection-icon {
    color: #FFB300;
}

/* 深色主题下女性图标也保持粉红色 */
#theme-dark:checked ~ * .selection-option[data-value="female"] .selection-icon,
body:not([data-theme]) .selection-option[data-value="female"] .selection-icon {
    color: #ff69b4 !important;
}

/* ==================== 性别选择弹窗 - 浅色主题 ==================== */
#theme-light:checked ~ * .selection-modal,
body[data-theme="light"] .selection-modal {
    background: #ffffff;
}

#theme-light:checked ~ * .selection-modal-header,
body[data-theme="light"] .selection-modal-header {
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .selection-modal-title,
body[data-theme="light"] .selection-modal-title {
    color: #333333;
}

#theme-light:checked ~ * .selection-option,
body[data-theme="light"] .selection-option {
    background: #f8f8f8;
    color: #333333;
}

#theme-light:checked ~ * .selection-option:hover,
body[data-theme="light"] .selection-option:hover {
    background: #f0f0f0;
}

#theme-light:checked ~ * .selection-option.active,
body[data-theme="light"] .selection-option.active {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #ffffff;
}

#theme-light:checked ~ * .selection-icon,
body[data-theme="light"] .selection-icon {
    color: #4CAF50;
}

/* 浅色主题下女性图标也保持粉红色 */
#theme-light:checked ~ * .selection-option[data-value="female"] .selection-icon,
body[data-theme="light"] .selection-option[data-value="female"] .selection-icon {
    color: #ff69b4 !important;
}

/* ==================== 性别选择弹窗 - 绿色主题 ==================== */
#theme-green:checked ~ * .selection-option.active,
body[data-theme="green"] .selection-option.active {
    background: #4CAF50;
}

/* ==================== 性别选择弹窗 - 紫色主题 ==================== */
#theme-purple:checked ~ * .selection-modal-title,
body[data-theme="purple"] .selection-modal-title {
    color: #4a148c;
}

#theme-purple:checked ~ * .selection-option.active,
body[data-theme="purple"] .selection-option.active {
    background: #9c27b0;
}

/* ==================== 性别选择弹窗 - 蓝色主题 ==================== */
#theme-blue:checked ~ * .selection-modal,
body[data-theme="blue"] .selection-modal {
    background: #ffffff;
}

#theme-blue:checked ~ * .selection-modal-header,
body[data-theme="blue"] .selection-modal-header {
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .selection-modal-title,
body[data-theme="blue"] .selection-modal-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .selection-option,
body[data-theme="blue"] .selection-option {
    background: #e3f2fd;
    color: #0d47a1;
}

#theme-blue:checked ~ * .selection-option:hover,
body[data-theme="blue"] .selection-option:hover {
    background: #bbdefb;
}

#theme-blue:checked ~ * .selection-option.active,
body[data-theme="blue"] .selection-option.active {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    color: #ffffff;
}

#theme-blue:checked ~ * .selection-icon,
body[data-theme="blue"] .selection-icon {
    color: #2196F3;
}

/* 蓝色主题下女性图标也保持粉红色 */
#theme-blue:checked ~ * .selection-option[data-value="female"] .selection-icon,
body[data-theme="blue"] .selection-option[data-value="female"] .selection-icon {
    color: #ff69b4 !important;
}

/* ==================== 生日选择弹窗样式 ==================== */

/* 生日弹窗遮罩层 */
.birthday-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.birthday-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 生日弹窗容器 */
.birthday-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    margin: 20px 0;
}

/* 生日弹窗头部 */
.birthday-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.birthday-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.birthday-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.birthday-close-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.birthday-close-btn:hover {
    background: #e0e0e0;
}

/* 生日弹窗主体 */
.birthday-modal-body {
    padding: 20px;
}

/* 生日选择器 */
.birthday-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.birthday-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.birthday-column-title {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.birthday-scroll {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.birthday-item {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}

.birthday-item:hover {
    background: #f0f0f0;
}

.birthday-item.active {
    background: #4CAF50;
    color: #fff;
    font-weight: 600;
}

/* 确认按钮 */
.birthday-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthday-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.birthday-confirm-btn:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .birthday-modal {
        width: 95%;
        border-radius: 16px;
    }
    
    .birthday-modal-header {
        padding: 16px;
    }
    
    .birthday-title {
        font-size: 16px;
    }
    
    .birthday-modal-body {
        padding: 16px;
    }
    
    .birthday-scroll {
        height: 150px;
    }
    
    .birthday-item {
        padding: 10px;
        font-size: 14px;
    }
}

/* ==================== 生日选择弹窗 - 深色主题 ==================== */
#theme-dark:checked ~ * .birthday-modal,
body:not([data-theme]) .birthday-modal {
    background: #2a2a2a;
}

#theme-dark:checked ~ * .birthday-modal-header,
body:not([data-theme]) .birthday-modal-header {
    border-bottom-color: #3a3a3a;
}

#theme-dark:checked ~ * .birthday-title,
body:not([data-theme]) .birthday-title {
    color: #e0e0e0;
}

#theme-dark:checked ~ * .birthday-close-btn,
body:not([data-theme]) .birthday-close-btn {
    background: #3a3a3a;
}

#theme-dark:checked ~ * .birthday-close-btn svg,
body:not([data-theme]) .birthday-close-btn svg {
    color: #e0e0e0;
}

#theme-dark:checked ~ * .birthday-close-btn:hover,
body:not([data-theme]) .birthday-close-btn:hover {
    background: #454545;
}

#theme-dark:checked ~ * .birthday-scroll,
body:not([data-theme]) .birthday-scroll {
    background: #1a1a1a;
    border-color: #3a3a3a;
}

#theme-dark:checked ~ * .birthday-column-title,
body:not([data-theme]) .birthday-column-title {
    color: #e0e0e0;
}

#theme-dark:checked ~ * .birthday-item,
body:not([data-theme]) .birthday-item {
    color: rgba(255, 255, 255, 0.7);
}

#theme-dark:checked ~ * .birthday-item:hover,
body:not([data-theme]) .birthday-item:hover {
    background: #3a3a3a;
    color: #e0e0e0;
}

#theme-dark:checked ~ * .birthday-item.active,
body:not([data-theme]) .birthday-item.active {
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
    color: #ffffff;
}

#theme-dark:checked ~ * .birthday-confirm-btn,
body:not([data-theme]) .birthday-confirm-btn {
    background: linear-gradient(135deg, #FFB300 0%, #FFCA28 100%);
}

#theme-dark:checked ~ * .birthday-confirm-btn:hover,
body:not([data-theme]) .birthday-confirm-btn:hover {
    background: linear-gradient(135deg, #FFA000 0%, #FFB300 100%);
}

/* ==================== 生日选择弹窗 - 浅色主题 ==================== */
#theme-light:checked ~ * .birthday-modal,
body[data-theme="light"] .birthday-modal {
    background: #ffffff;
}

#theme-light:checked ~ * .birthday-modal-header,
body[data-theme="light"] .birthday-modal-header {
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .birthday-title,
body[data-theme="light"] .birthday-title {
    color: #333333;
}

#theme-light:checked ~ * .birthday-close-btn,
body[data-theme="light"] .birthday-close-btn {
    background: #f5f5f5;
}

#theme-light:checked ~ * .birthday-close-btn svg,
body[data-theme="light"] .birthday-close-btn svg {
    color: #666666;
}

#theme-light:checked ~ * .birthday-close-btn:hover,
body[data-theme="light"] .birthday-close-btn:hover {
    background: #e0e0e0;
}

#theme-light:checked ~ * .birthday-scroll,
body[data-theme="light"] .birthday-scroll {
    background: #ffffff;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .birthday-column-title,
body[data-theme="light"] .birthday-column-title {
    color: #333333;
}

#theme-light:checked ~ * .birthday-item,
body[data-theme="light"] .birthday-item {
    color: #666666;
}

#theme-light:checked ~ * .birthday-item:hover,
body[data-theme="light"] .birthday-item:hover {
    background: #f5f5f5;
    color: #333333;
}

#theme-light:checked ~ * .birthday-item.active,
body[data-theme="light"] .birthday-item.active {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #ffffff;
}

#theme-light:checked ~ * .birthday-confirm-btn,
body[data-theme="light"] .birthday-confirm-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

#theme-light:checked ~ * .birthday-confirm-btn:hover,
body[data-theme="light"] .birthday-confirm-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #5cb860 100%);
}

/* ==================== 生日选择弹窗 - 蓝色主题 ==================== */
#theme-blue:checked ~ * .birthday-modal,
body[data-theme="blue"] .birthday-modal {
    background: #fff;
}

#theme-blue:checked ~ * .birthday-modal-header,
body[data-theme="blue"] .birthday-modal-header {
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .birthday-title,
body[data-theme="blue"] .birthday-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .birthday-close-btn,
body[data-theme="blue"] .birthday-close-btn {
    background: #e3f2fd;
}

#theme-blue:checked ~ * .birthday-close-btn svg,
body[data-theme="blue"] .birthday-close-btn svg {
    color: #1976d2;
}

#theme-blue:checked ~ * .birthday-close-btn:hover,
body[data-theme="blue"] .birthday-close-btn:hover {
    background: #bbdefb;
}

#theme-blue:checked ~ * .birthday-scroll,
body[data-theme="blue"] .birthday-scroll {
    background: #f1f8fe;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .birthday-column-title,
body[data-theme="blue"] .birthday-column-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .birthday-item,
body[data-theme="blue"] .birthday-item {
    color: #1565c0;
}

#theme-blue:checked ~ * .birthday-item:hover,
body[data-theme="blue"] .birthday-item:hover {
    background: #e3f2fd;
    color: #0d47a1;
}

#theme-blue:checked ~ * .birthday-item.active,
body[data-theme="blue"] .birthday-item.active {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    color: #ffffff;
}

#theme-blue:checked ~ * .birthday-confirm-btn,
body[data-theme="blue"] .birthday-confirm-btn {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
}

#theme-blue:checked ~ * .birthday-confirm-btn:hover,
body[data-theme="blue"] .birthday-confirm-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #2196F3 100%);
}

#theme-blue:checked ~ * .birthday-confirm-btn:hover,
body[data-theme="blue"] .birthday-confirm-btn:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ==================== 密码修改弹窗样式 ==================== */
.password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.password-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.password-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    margin: 20px 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.password-modal-overlay.active .password-modal {
    opacity: 1;
}

.password-modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.password-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.password-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.password-close-btn:hover {
    background: #e0e0e0;
}

.password-close-btn svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.password-modal-body {
    padding: 24px 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.password-form-group {
    margin-bottom: 20px;
}

.password-form-group:last-of-type {
    margin-bottom: 24px;
}

.password-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #f9f9f9;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

.password-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    -webkit-box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.password-input::placeholder {
    color: #999;
}

.password-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: -webkit-gradient(linear, left top, right bottom, from(#4CAF50), to(#45a049));
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.password-submit-btn:hover {
    background: -webkit-gradient(linear, left top, right bottom, from(#45a049), to(#4CAF50));
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    -webkit-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.password-submit-btn:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* ==================== 密码弹窗 - 深色主题 ==================== */
#theme-dark:checked ~ * .password-modal,
body[data-theme="dark"] .password-modal {
    background: #1a1a1a;
}

#theme-dark:checked ~ * .password-modal-header,
body[data-theme="dark"] .password-modal-header {
    border-bottom-color: rgba(255, 215, 0, 0.2);
}

#theme-dark:checked ~ * .password-modal-title,
body[data-theme="dark"] .password-modal-title {
    color: #FFB300;
}

#theme-dark:checked ~ * .password-close-btn,
body[data-theme="dark"] .password-close-btn {
    background: rgba(255, 215, 0, 0.1);
}

#theme-dark:checked ~ * .password-close-btn:hover,
body[data-theme="dark"] .password-close-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

#theme-dark:checked ~ * .password-close-btn svg,
body[data-theme="dark"] .password-close-btn svg {
    color: #FFB300;
}

#theme-dark:checked ~ * .password-label,
body[data-theme="dark"] .password-label {
    color: #FFB300;
}

#theme-dark:checked ~ * .password-input,
body[data-theme="dark"] .password-input {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#theme-dark:checked ~ * .password-input:focus,
body[data-theme="dark"] .password-input:focus {
    background: #0a0a0a;
    border-color: #FFD54F;
    -webkit-box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

#theme-dark:checked ~ * .password-input::placeholder,
body[data-theme="dark"] .password-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#theme-dark:checked ~ * .password-submit-btn,
body[data-theme="dark"] .password-submit-btn {
    background: #FFB300;
}

#theme-dark:checked ~ * .password-submit-btn:hover,
body[data-theme="dark"] .password-submit-btn:hover {
    background: #FFA000;
    -webkit-box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ==================== 密码弹窗 - 浅色主题 ==================== */
#theme-light:checked ~ * .password-modal,
body[data-theme="light"] .password-modal {
    background: #fff;
}

#theme-light:checked ~ * .password-modal-header,
body[data-theme="light"] .password-modal-header {
    border-bottom-color: #eee;
}

#theme-light:checked ~ * .password-modal-title,
body[data-theme="light"] .password-modal-title {
    color: #333;
}

#theme-light:checked ~ * .password-close-btn,
body[data-theme="light"] .password-close-btn {
    background: #f5f5f5;
}

#theme-light:checked ~ * .password-close-btn:hover,
body[data-theme="light"] .password-close-btn:hover {
    background: #e0e0e0;
}

#theme-light:checked ~ * .password-close-btn svg,
body[data-theme="light"] .password-close-btn svg {
    color: #666;
}

#theme-light:checked ~ * .password-label,
body[data-theme="light"] .password-label {
    color: #555;
}

#theme-light:checked ~ * .password-input,
body[data-theme="light"] .password-input {
    background: #f9f9f9;
    border-color: #e0e0e0;
    color: #333;
}

#theme-light:checked ~ * .password-input:focus,
body[data-theme="light"] .password-input:focus {
    background: #fff;
    border-color: #4CAF50;
    -webkit-box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#theme-light:checked ~ * .password-input::placeholder,
body[data-theme="light"] .password-input::placeholder {
    color: #999;
}

#theme-light:checked ~ * .password-submit-btn,
body[data-theme="light"] .password-submit-btn {
    background: -webkit-gradient(linear, left top, right bottom, from(#4CAF50), to(#45a049));
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

#theme-light:checked ~ * .password-submit-btn:hover,
body[data-theme="light"] .password-submit-btn:hover {
    background: -webkit-gradient(linear, left top, right bottom, from(#45a049), to(#4CAF50));
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    -webkit-box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ==================== 密码弹窗 - 蓝色主题 ==================== */
#theme-blue:checked ~ * .password-modal,
body[data-theme="blue"] .password-modal {
    background: #e3f2fd;
}

#theme-blue:checked ~ * .password-modal-header,
body[data-theme="blue"] .password-modal-header {
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .password-modal-title,
body[data-theme="blue"] .password-modal-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .password-close-btn,
body[data-theme="blue"] .password-close-btn {
    background: #e3f2fd;
}

#theme-blue:checked ~ * .password-close-btn:hover,
body[data-theme="blue"] .password-close-btn:hover {
    background: #bbdefb;
}

#theme-blue:checked ~ * .password-close-btn svg,
body[data-theme="blue"] .password-close-btn svg {
    color: #1976d2;
}

#theme-blue:checked ~ * .password-label,
body[data-theme="blue"] .password-label {
    color: #0d47a1;
}

#theme-blue:checked ~ * .password-input,
body[data-theme="blue"] .password-input {
    background: #ffffff;
    border-color: #bbdefb;
    color: #0d47a1;
}

#theme-blue:checked ~ * .password-input:focus,
body[data-theme="blue"] .password-input:focus {
    background: #ffffff;
    border-color: #1976d2;
    -webkit-box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

#theme-blue:checked ~ * .password-input::placeholder,
body[data-theme="blue"] .password-input::placeholder {
    color: #90caf9;
}

#theme-blue:checked ~ * .password-submit-btn,
body[data-theme="blue"] .password-submit-btn {
    background: -webkit-gradient(linear, left top, right bottom, from(#1976d2), to(#2196F3));
    background: linear-gradient(135deg, #1976d2 0%, #2196F3 100%);
}

#theme-blue:checked ~ * .password-submit-btn:hover,
body[data-theme="blue"] .password-submit-btn:hover {
    background: -webkit-gradient(linear, left top, right bottom, from(#0d47a1), to(#1976d2));
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    -webkit-box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

/* ==================== 移动设备弹窗优化 ==================== */
@media (max-width: 480px) {
    /* 密码弹窗移动优化 */
    .password-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .password-modal-header {
        padding: 16px;
    }
    
    .password-modal-title {
        font-size: 16px;
    }
    
    .password-modal-body {
        padding: 16px;
        max-height: calc(90vh - 60px);
    }
    
    .password-form-group {
        margin-bottom: 16px;
    }
    
    .password-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .password-input {
        padding: 10px 14px;
        font-size: 16px; /* 保持16px防止iOS缩放 */
    }
    
    .password-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* ==================== VIP等级进度条样式 ==================== */
/* VIP进度区域容器 - 黑色主题（默认） */
.me-vip-progress-section {
    background: transparent;
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
    padding: 15px;
    margin-top: 15px;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-progress-section {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-progress-section {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
}

/* VIP头部信息（旧版，保留兼容） */
.me-vip-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 15px;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
}

/* 低版本浏览器兼容 */
.me-vip-header > * + * {
    margin-left: 10px;
}

/* VIP头部信息 - 单行布局（新版） */
.me-vip-header-inline {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 12px;
    -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
}

/* 单行布局中的信息项 */
.me-vip-info-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 低版本浏览器兼容 - 子元素间距 */
.me-vip-info-item > * + * {
    margin-left: 5px;
}

.me-vip-current,
.me-vip-total-bet {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 5px;
}

/* 低版本浏览器兼容 */
.me-vip-current > * + *,
.me-vip-total-bet > * + * {
    margin-left: 5px;
}

.me-vip-label {
    font-size: 13px;
    color: #999999;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-label {
    color: #666666 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-label {
    color: rgba(13, 71, 161, 0.6) !important;
}

.me-vip-level {
    font-size: 16px;
    font-weight: 600;
    color: #FFB300;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-level {
    color: #FF6F00 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-level {
    color: #1976d2 !important;
}

.me-vip-amount {
    font-size: 15px;
    font-weight: 600;
    color: #4CAF50;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-amount {
    color: #2E7D32 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-amount {
    color: #0D47A1 !important;
}

/* VIP进度条容器 */
.me-vip-progress-container {
    margin-bottom: 0;
    cursor: pointer;
    /* 移除点击高亮效果 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    /* 移除过渡动画，避免视觉上的"闪现" */
    -webkit-transition: none;
       -moz-transition: none;
         -o-transition: none;
            transition: none;
}

/* 移除hover效果，避免视觉上的"闪现" */
.me-vip-progress-container:hover {
    -webkit-transform: none;
       -moz-transform: none;
        -ms-transform: none;
         -o-transform: none;
            transform: none;
    opacity: 1;
}

/* 移除active状态背景 */
.me-vip-progress-container:active {
    background: transparent !important;
    -webkit-box-shadow: none !important;
       -moz-box-shadow: none !important;
            box-shadow: none !important;
    -webkit-transform: none !important;
       -moz-transform: none !important;
        -ms-transform: none !important;
         -o-transform: none !important;
            transform: none !important;
}

.me-vip-progress-bar {
    width: 100%;
    height: 12px;
    background: #2d2d2d;
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-progress-bar {
    background: #E0E0E0 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-progress-bar {
    background: #BBDEFB !important;
}

.me-vip-progress-fill {
    height: 100%;
    width: 0%;  /* 初始宽度为0，由JavaScript动态设置 */
    background: -webkit-gradient(linear, left top, right top, from(#FFB300), to(#FFA000));
    background: -webkit-linear-gradient(left, #FFB300 0%, #FFA000 100%);
    background: -moz-linear-gradient(left, #FFB300 0%, #FFA000 100%);
    background: -o-linear-gradient(left, #FFB300 0%, #FFA000 100%);
    background: linear-gradient(to right, #FFB300 0%, #FFA000 100%);
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
    -webkit-transition: width 0.5s ease;
       -moz-transition: width 0.5s ease;
         -o-transition: width 0.5s ease;
            transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-progress-fill {
    background: -webkit-gradient(linear, left top, right top, from(#4CAF50), to(#66BB6A)) !important;
    background: -webkit-linear-gradient(left, #4CAF50 0%, #66BB6A 100%) !important;
    background: -moz-linear-gradient(left, #4CAF50 0%, #66BB6A 100%) !important;
    background: -o-linear-gradient(left, #4CAF50 0%, #66BB6A 100%) !important;
    background: linear-gradient(to right, #4CAF50 0%, #66BB6A 100%) !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-progress-fill {
    background: -webkit-gradient(linear, left top, right top, from(#1976d2), to(#2196F3)) !important;
    background: -webkit-linear-gradient(left, #1976d2 0%, #2196F3 100%) !important;
    background: -moz-linear-gradient(left, #1976d2 0%, #2196F3 100%) !important;
    background: -o-linear-gradient(left, #1976d2 0%, #2196F3 100%) !important;
    background: linear-gradient(to right, #1976d2 0%, #2196F3 100%) !important;
}

/* 进度条动画 */
@-webkit-keyframes vipProgressShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@-moz-keyframes vipProgressShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@-o-keyframes vipProgressShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes vipProgressShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.me-vip-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, from(rgba(255,255,255,0)), color-stop(50%, rgba(255,255,255,0.3)), to(rgba(255,255,255,0)));
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    -webkit-animation: vipProgressShine 2s infinite;
       -moz-animation: vipProgressShine 2s infinite;
         -o-animation: vipProgressShine 2s infinite;
            animation: vipProgressShine 2s infinite;
}

.me-vip-progress-text {
    font-size: 12px;
    color: #999999;
    text-align: center;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .me-vip-progress-text {
    color: #666666 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .me-vip-progress-text {
    color: rgba(13, 71, 161, 0.7) !important;
}

/* VIP日俸禄容器 */
.me-daily-salary-container {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    background: -webkit-linear-gradient(315deg, #2d2d2d 0%, #1f1f1f 100%);
    background: -moz-linear-gradient(315deg, #2d2d2d 0%, #1f1f1f 100%);
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: 1px solid #FFB300;
    box-shadow: 0 2px 10px rgba(255, 179, 0, 0.1);
}

#theme-light:checked ~ .main-content .me-daily-salary-container {
    background: -webkit-linear-gradient(315deg, #FFF8E1 0%, #FFECB3 100%) !important;
    background: -moz-linear-gradient(315deg, #FFF8E1 0%, #FFECB3 100%) !important;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%) !important;
    border: 1px solid #FFA726 !important;
    -webkit-box-shadow: 0 2px 10px rgba(255, 167, 38, 0.15) !important;
    -moz-box-shadow: 0 2px 10px rgba(255, 167, 38, 0.15) !important;
    box-shadow: 0 2px 10px rgba(255, 167, 38, 0.15) !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-container {
    background: -webkit-linear-gradient(315deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    background: -moz-linear-gradient(315deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%) !important;
    border: 1px solid #2196F3 !important;
    -webkit-box-shadow: 0 2px 10px rgba(33, 150, 243, 0.15) !important;
    -moz-box-shadow: 0 2px 10px rgba(33, 150, 243, 0.15) !important;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.15) !important;
}

.me-daily-salary-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.me-daily-salary-info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.me-daily-salary-info > * {
    margin-right: 10px;
}

.me-daily-salary-info > *:last-child {
    margin-right: 0;
}

.me-daily-salary-info svg {
    color: #FFB300;
}

#theme-light:checked ~ .main-content .me-daily-salary-info svg {
    color: #FF6F00 !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-info svg {
    color: #1976D2 !important;
}

.me-daily-salary-text {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.me-daily-salary-text > * {
    margin-bottom: 2px;
}

.me-daily-salary-text > *:last-child {
    margin-bottom: 0;
}

.me-daily-salary-label {
    font-size: 12px;
    color: #999;
}

#theme-light:checked ~ .main-content .me-daily-salary-label {
    color: #666 !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-label {
    color: rgba(13, 71, 161, 0.7) !important;
}

.me-daily-salary-amount {
    font-size: 16px;
    font-weight: bold;
    color: #FFB300;
}

#theme-light:checked ~ .main-content .me-daily-salary-amount {
    color: #FF6F00 !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-amount {
    color: #1976D2 !important;
}

.me-daily-salary-btn {
    padding-top: 8px;
    padding-right: 20px;
    padding-bottom: 8px;
    padding-left: 20px;
    background: -webkit-linear-gradient(315deg, #FFB300 0%, #FFA000 100%);
    background: -moz-linear-gradient(315deg, #FFB300 0%, #FFA000 100%);
    background: linear-gradient(135deg, #FFB300 0%, #FFA000 100%);
    color: #fff;
    border: none;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
    -moz-box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

.me-daily-salary-btn:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
    -moz-box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.4);
}

.me-daily-salary-btn:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.me-daily-salary-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

#theme-light:checked ~ .main-content .me-daily-salary-btn {
    background: -webkit-linear-gradient(315deg, #FF6F00 0%, #F57C00 100%) !important;
    background: -moz-linear-gradient(315deg, #FF6F00 0%, #F57C00 100%) !important;
    background: linear-gradient(135deg, #FF6F00 0%, #F57C00 100%) !important;
    -webkit-box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3) !important;
    -moz-box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3) !important;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3) !important;
}

#theme-light:checked ~ .main-content .me-daily-salary-btn:hover {
    -webkit-box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4) !important;
    -moz-box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4) !important;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4) !important;
}

#theme-light:checked ~ .main-content .me-daily-salary-btn:disabled {
    background: #ccc !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-btn {
    background: -webkit-linear-gradient(315deg, #1976D2 0%, #2196F3 100%) !important;
    background: -moz-linear-gradient(315deg, #1976D2 0%, #2196F3 100%) !important;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%) !important;
    -webkit-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3) !important;
    -moz-box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3) !important;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3) !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-btn:hover {
    -webkit-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
    -moz-box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
}

#theme-blue:checked ~ .main-content .me-daily-salary-btn:disabled {
    background: #ccc !important;
}

/* VIP等级弹窗遮罩 */
.vip-modal-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 55px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-animation: vipModalFadeIn 0.3s ease;
       -moz-animation: vipModalFadeIn 0.3s ease;
         -o-animation: vipModalFadeIn 0.3s ease;
            animation: vipModalFadeIn 0.3s ease;
}

@-webkit-keyframes vipModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-moz-keyframes vipModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-o-keyframes vipModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vipModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* VIP弹窗主体 */
.vip-modal {
    background: #1a1a1a;
    -webkit-border-radius: 16px;
       -moz-border-radius: 16px;
            border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 50px - 55px - 40px);
    height: auto;
    -webkit-box-shadow: 0 10px 40px rgba(0,0,0,0.5);
       -moz-box-shadow: 0 10px 40px rgba(0,0,0,0.5);
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    -webkit-animation: vipModalSlideUp 0.3s ease;
       -moz-animation: vipModalSlideUp 0.3s ease;
         -o-animation: vipModalSlideUp 0.3s ease;
            animation: vipModalSlideUp 0.3s ease;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

/* 白色主题弹窗 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal {
    background: #ffffff !important;
}

/* 蓝色主题弹窗 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal {
    background: #ffffff !important;
}

@-webkit-keyframes vipModalSlideUp {
    from { 
        opacity: 0;
        -webkit-transform: translateY(30px);
                transform: translateY(30px);
    }
    to { 
        opacity: 1;
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@-moz-keyframes vipModalSlideUp {
    from { 
        opacity: 0;
        -moz-transform: translateY(30px);
             transform: translateY(30px);
    }
    to { 
        opacity: 1;
        -moz-transform: translateY(0);
             transform: translateY(0);
    }
}

@-o-keyframes vipModalSlideUp {
    from { 
        opacity: 0;
        -o-transform: translateY(30px);
           transform: translateY(30px);
    }
    to { 
        opacity: 1;
        -o-transform: translateY(0);
           transform: translateY(0);
    }
}

@keyframes vipModalSlideUp {
    from { 
        opacity: 0;
        -webkit-transform: translateY(30px);
           -moz-transform: translateY(30px);
            -ms-transform: translateY(30px);
             -o-transform: translateY(30px);
                transform: translateY(30px);
    }
    to { 
        opacity: 1;
        -webkit-transform: translateY(0);
           -moz-transform: translateY(0);
            -ms-transform: translateY(0);
             -o-transform: translateY(0);
                transform: translateY(0);
    }
}

/* VIP弹窗头部 */
.vip-modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2d2d2d;
}

/* 白色主题头部边框 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-header {
    border-bottom-color: #e0e0e0 !important;
}

/* 蓝色主题头部边框 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-header {
    border-bottom-color: #BBDEFB !important;
}

.vip-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}

/* 白色主题标题 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-title {
    color: #333333 !important;
}

/* 蓝色主题标题 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-title {
    color: #0d47a1 !important;
}

.vip-modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-transition: all 0.2s ease;
       -moz-transition: all 0.2s ease;
         -o-transition: all 0.2s ease;
            transition: all 0.2s ease;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
}

.vip-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* 白色主题关闭按钮 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-close {
    color: #666666 !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-close:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333333 !important;
}

/* 蓝色主题关闭按钮 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-close {
    color: #1976d2 !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-close:hover {
    background: rgba(25, 118, 210, 0.1) !important;
    color: #1976d2 !important;
}

/* VIP弹窗内容区 */
.vip-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

/* 弹窗内容区滚动条 */
.vip-modal-body::-webkit-scrollbar {
    width: 6px;
}

.vip-modal-body::-webkit-scrollbar-track {
    background: #2d2d2d;
    -webkit-border-radius: 3px;
            border-radius: 3px;
}

.vip-modal-body::-webkit-scrollbar-thumb {
    background: #404040;
    -webkit-border-radius: 3px;
            border-radius: 3px;
}

.vip-modal-body::-webkit-scrollbar-thumb:hover {
    background: #505050;
}

/* 白色主题滚动条 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-thumb {
    background: #bdbdbd !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e !important;
}

/* 蓝色主题滚动条 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-track {
    background: #E3F2FD !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-thumb {
    background: #90CAF9 !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-modal-body::-webkit-scrollbar-thumb:hover {
    background: #64B5F6 !important;
}

/* VIP等级列表 */
.me-vip-levels {
    max-height: none;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-top: 0;
}

/* VIP等级项 */
.me-vip-level-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #2d2d2d;
    -webkit-border-radius: 8px;
       -moz-border-radius: 8px;
            border-radius: 8px;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

/* 低版本浏览器兼容 */
.me-vip-level-item > * + * {
    margin-left: 10px;
}

/* 白色主题 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-item {
    background: #F5F5F5 !important;
}

/* 蓝色主题 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-item {
    background: #E3F2FD !important;
}

/* 已达到的等级 */
.me-vip-level-item.achieved {
    background: -webkit-gradient(linear, left top, right top, from(rgba(255, 179, 0, 0.1)), to(rgba(255, 160, 0, 0.1)));
    background: -webkit-linear-gradient(left, rgba(255, 179, 0, 0.1) 0%, rgba(255, 160, 0, 0.1) 100%);
    background: -moz-linear-gradient(left, rgba(255, 179, 0, 0.1) 0%, rgba(255, 160, 0, 0.1) 100%);
    background: -o-linear-gradient(left, rgba(255, 179, 0, 0.1) 0%, rgba(255, 160, 0, 0.1) 100%);
    background: linear-gradient(to right, rgba(255, 179, 0, 0.1) 0%, rgba(255, 160, 0, 0.1) 100%);
    border: 1px solid rgba(255, 179, 0, 0.3);
}

/* 白色主题已达到等级 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.achieved {
    background: -webkit-gradient(linear, left top, right top, from(rgba(76, 175, 80, 0.1)), to(rgba(102, 187, 106, 0.1))) !important;
    background: -webkit-linear-gradient(left, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%) !important;
    background: -moz-linear-gradient(left, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%) !important;
    background: -o-linear-gradient(left, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%) !important;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* 蓝色主题已达到等级 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.achieved {
    background: -webkit-gradient(linear, left top, right top, from(rgba(25, 118, 210, 0.1)), to(rgba(33, 150, 243, 0.1))) !important;
    background: -webkit-linear-gradient(left, rgba(25, 118, 210, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%) !important;
    background: -moz-linear-gradient(left, rgba(25, 118, 210, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%) !important;
    background: -o-linear-gradient(left, rgba(25, 118, 210, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%) !important;
    background: linear-gradient(to right, rgba(25, 118, 210, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%) !important;
    border-color: rgba(25, 118, 210, 0.3) !important;
}

/* 当前等级 */
.me-vip-level-item.current {
    background: -webkit-gradient(linear, left top, right top, from(rgba(255, 179, 0, 0.2)), to(rgba(255, 160, 0, 0.2)));
    background: -webkit-linear-gradient(left, rgba(255, 179, 0, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
    background: -moz-linear-gradient(left, rgba(255, 179, 0, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
    background: -o-linear-gradient(left, rgba(255, 179, 0, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
    background: linear-gradient(to right, rgba(255, 179, 0, 0.2) 0%, rgba(255, 160, 0, 0.2) 100%);
    border: 2px solid #FFB300;
    -webkit-box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
       -moz-box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
            box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
}

/* 白色主题当前等级 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.current {
    background: -webkit-gradient(linear, left top, right top, from(rgba(76, 175, 80, 0.15)), to(rgba(102, 187, 106, 0.15))) !important;
    background: -webkit-linear-gradient(left, rgba(76, 175, 80, 0.15) 0%, rgba(102, 187, 106, 0.15) 100%) !important;
    background: -moz-linear-gradient(left, rgba(76, 175, 80, 0.15) 0%, rgba(102, 187, 106, 0.15) 100%) !important;
    background: -o-linear-gradient(left, rgba(76, 175, 80, 0.15) 0%, rgba(102, 187, 106, 0.15) 100%) !important;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.15) 0%, rgba(102, 187, 106, 0.15) 100%) !important;
    border-color: #4CAF50 !important;
    -webkit-box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
       -moz-box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
            box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
}

/* 蓝色主题当前等级 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.current {
    background: -webkit-gradient(linear, left top, right top, from(rgba(25, 118, 210, 0.15)), to(rgba(33, 150, 243, 0.15))) !important;
    background: -webkit-linear-gradient(left, rgba(25, 118, 210, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%) !important;
    background: -moz-linear-gradient(left, rgba(25, 118, 210, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%) !important;
    background: -o-linear-gradient(left, rgba(25, 118, 210, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%) !important;
    background: linear-gradient(to right, rgba(25, 118, 210, 0.15) 0%, rgba(33, 150, 243, 0.15) 100%) !important;
    border-color: #1976d2 !important;
    -webkit-box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
       -moz-box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
            box-shadow: 0 0 15px rgba(25, 118, 210, 0.3) !important;
}

.me-vip-level-icon {
    width: 32px;
    height: 32px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
    background: rgba(255, 179, 0, 0.1);
    color: #FFB300;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 白色主题图标 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-icon {
    background: rgba(255, 111, 0, 0.1) !important;
    color: #FF6F00 !important;
}

/* 蓝色主题图标 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-icon {
    background: rgba(25, 118, 210, 0.1) !important;
    color: #1976d2 !important;
}

/* 已达到等级的图标 */
.me-vip-level-item.achieved .me-vip-level-icon,
.me-vip-level-item.current .me-vip-level-icon {
    background: rgba(255, 179, 0, 0.2);
    color: #FFB300;
}

/* 白色主题已达到图标 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.achieved .me-vip-level-icon,
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.current .me-vip-level-icon {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4CAF50 !important;
}

/* 蓝色主题已达到图标 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.achieved .me-vip-level-icon,
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-item.current .me-vip-level-icon {
    background: rgba(25, 118, 210, 0.2) !important;
    color: #1976d2 !important;
}

.me-vip-level-info {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
       -moz-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.me-vip-level-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 2px;
}

/* 白色主题名称 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-name {
    color: #4CAF50 !important;
}

/* 蓝色主题名称 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-name {
    color: #0d47a1 !important;
}

/* VIP等级要求 */
.me-vip-level-requirement {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

/* 白色主题要求 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-requirement {
    color: rgba(76, 175, 80, 0.7) !important;
}

/* 蓝色主题要求 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-requirement {
    color: rgba(13, 71, 161, 0.6) !important;
}

/* VIP等级返点 */
.me-vip-level-rebate {
    color: #4caf50;
    font-weight: bold;
    margin-left: 8px;
}

/* 白色主题返点 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-rebate {
    color: #2e7d32 !important;
}

/* 蓝色主题返点 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-rebate {
    color: #1976d2 !important;
}

/* VIP等级晋级奖金 */
.me-vip-level-reward {
    font-size: 12px;
    color: #ffd700;
    font-weight: bold;
}

/* 白色主题晋级奖金 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-reward {
    color: #ff9800 !important;
}

/* 蓝色主题晋级奖金 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-reward {
    color: #ff9800 !important;
}

/* VIP等级日俸禄 */
.me-vip-level-salary {
    color: #ff6b9d;
    font-weight: bold;
    margin-left: 12px;
    display: inline-block;
}

/* 白色主题日俸禄 */
#theme-light:checked ~ .main-content .vip-modal-overlay .me-vip-level-salary {
    color: #e91e63 !important;
}

/* 蓝色主题日俸禄 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .me-vip-level-salary {
    color: #d81b60 !important;
}

.me-vip-level-status {
    font-size: 18px;
    -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
            flex-shrink: 0;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .me-vip-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
           -moz-box-orient: vertical;
           -moz-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
           -moz-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
        gap: 8px;
    }
    
    .me-vip-header > * + * {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .me-vip-level-item {
        padding: 8px;
    }
    
    .me-vip-level-icon {
        width: 28px;
        height: 28px;
    }
    
    .me-vip-level-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .me-vip-level-name {
        font-size: 14px;
    }
    
    .me-vip-level-requirement,
    .me-vip-level-reward {
        font-size: 11px;
    }
    
    /* 移动端VIP弹窗优化 */
    .vip-modal {
        width: 95%;
        height: 70vh;
        -webkit-border-radius: 12px;
           -moz-border-radius: 12px;
                border-radius: 12px;
    }
    
    .vip-modal-header {
        padding: 16px;
    }
    
    .vip-modal-title {
        font-size: 16px;
    }
    
    .vip-modal-body {
        padding: 16px;
    }
}

/* ==================== 横屏模式优化 ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    /* 性别选择弹窗 */
    .selection-modal {
        margin: 10px 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* 生日选择弹窗 */
    .birthday-modal {
        margin: 10px 0;
        max-height: 90vh;
    }
    
    .birthday-scroll {
        height: 120px;
    }
    
    .birthday-modal-body {
        padding: 12px;
    }
    
    .birthday-picker {
        margin-bottom: 12px;
    }
    
    /* 密码弹窗 */
    .password-modal {
        margin: 10px 0;
        max-height: 90vh;
    }
    
    .password-modal-header {
        padding: 12px 16px;
    }
    
    .password-modal-body {
        padding: 12px 16px;
        max-height: calc(90vh - 50px);
    }
    
    .password-form-group {
        margin-bottom: 12px;
    }
    
    .password-input {
        padding: 8px 12px;
    }
    
    .password-submit-btn {
        padding: 10px;
    }
}

/* =========================
   投注记录CSS - 三主题全新配色
========================= */

/* 基础布局 - Tab切换区域 */
.bet-tabs {
    position: relative;
    background-color: #2d2d2d;
    margin-bottom: 10px;
}

.bet-tab-radio {
    display: none;
}

.bet-tab-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-around;
    -webkit-justify-content: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
    padding: 0;
}

.bet-tab-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    position: relative;
    color: #808080;
}

/* =========================
   投注记录 - 基础样式
   兼容低版本iOS和Android
========================= */

/* 隐藏tab的radio输入框 */
.bet-tab-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Tab标签栏容器 */
.bet-tabs {
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    margin-bottom: 0;
}

.bet-tab-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    margin: 0;
}

/* Tab按钮 - 默认状态 */
.bet-tab-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    position: relative;
    color: #808080;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 2px solid transparent;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.bet-tab-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.bet-tab-btn .tab-text {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Tab选中状态 - 主页面模式 */
#bet-tab-match:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="match"],
#bet-tab-lottery:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="lottery"],
#bet-tab-other:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="other"] {
    color: #FFD54F;
    border-bottom-color: #FFD54F;
}

/* Tab内容显示控制 - 主页面模式 */
.bet-tab-content {
    display: none;
}

#bet-tab-match:checked ~ .bet-list-container #matchContent,
#bet-tab-lottery:checked ~ .bet-list-container #lotteryContent,
#bet-tab-other:checked ~ .bet-list-container #otherContent {
    display: block;
}

/* 筛选栏 */
.bet-filters {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    margin: 0;
}

.filter-select {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 32px 10px 12px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23999" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    cursor: pointer;
    margin-right: 12px;
}

.filter-select:last-child {
    margin-right: 0;
}

.filter-select:focus {
    outline: none;
    border-color: #FFD54F;
}

/* 投注列表容器 */
.bet-list-container {
    position: relative;
    min-height: 300px;
}

.bet-list {
    padding: 12px 12px 0 12px;
}

/* 投注项 */
.bet-item {
    background-color: #2d2d2d;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bet-item-header {
    padding: 14px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 12px;
}

.bet-item-header:active {
    background-color: rgba(255, 255, 255, 0.03);
}

.bet-item-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.bet-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 6px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
}

.bet-item-subtitle {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bet-item-info {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.bet-item-info span {
    margin-right: 14px;
    white-space: nowrap;
}

.bet-item-right {
    text-align: right;
    padding-left: 12px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 6px;
}

.bet-amount {
    font-size: 17px;
    font-weight: bold;
    color: #FFD54F;
    line-height: 1.3;
    white-space: nowrap;
}

.bet-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.bet-status.pending {
    background-color: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.bet-status.won {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.bet-status.lost {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.bet-status.tie {
    background-color: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.bet-status.cancelled {
    background-color: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

/* 展开图标 */
.expand-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    vertical-align: top;
    opacity: 0.6;
}

.bet-item.expanded .expand-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* 详情区域 */
.bet-item-detail {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.3s ease;
    -o-transition: max-height 0.3s ease;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.bet-item.expanded .bet-item-detail {
    max-height: 1000px;
}

.bet-detail-content {
    padding: 16px;
    border-top: 1px solid #404040;
}

.bet-detail-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    gap: 12px;
}

.bet-detail-row:last-child {
    margin-bottom: 0;
}

.bet-detail-label {
    color: #999;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 70px;
}

.bet-detail-value {
    color: #e0e0e0;
    text-align: right;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    word-wrap: break-word;
    word-break: break-all;
}

.bet-detail-divider {
    height: 1px;
    background-color: #404040;
    margin: 12px 0;
}

/* 加载中状态 */
.bet-loading {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 3px solid #404040;
    border-top-color: #4CAF50;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.bet-loading p {
    font-size: 14px;
    line-height: 1.5;
}

/* 空状态 */
.bet-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.bet-empty svg {
    opacity: 0.3;
    margin: 0 auto 16px;
    display: block;
}

.bet-empty p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 分页控件 */
.bet-pagination {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    border-top: 1px solid #404040;
}

.pagination-btn {
    background-color: #3a3a3a;
    color: #fff;
    border: 1px solid #505050;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pagination-btn:hover {
    background-color: #505050;
    border-color: #606060;
}

.pagination-btn:active {
    background-color: #2a2a2a;
    transform: scale(0.98);
}

.pagination-info {
    color: #999;
    font-size: 13px;
    padding: 0 8px;
}

/* 加载更多按钮容器 */
.bet-load-more {
    padding: 16px;
    text-align: center;
    background-color: #1a1a1a;
    border-top: 1px solid #404040;
}

/* 统计信息 */
.bet-stats {
    background-color: #2d2d2d;
    margin: 0;
    padding: 16px;
    border-radius: 0;
    border-top: 1px solid #404040;
}

.stats-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-around;
    -webkit-justify-content: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
    gap: 16px;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -8px;
}

/* 低版本iOS兼容：为子元素添加margin */
.stats-row > * {
    margin: 8px;
}

.stats-item {
    text-align: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.stats-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    line-height: 1.4;
}

.stats-value {
    font-size: 14px;
    font-weight: bold;
    color: #FFD54F;
    line-height: 1.3;
}

/* =========================
   投注记录弹窗容器
========================= */

/* 遮罩层 */
.bet-records-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.bet-records-overlay.active {
    display: block;
}

/* 弹窗主体 - 全屏模式 */
.bet-records-modal {
    background-color: #1a1a1a;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-animation: slideUp 0.3s ease;
    animation: slideUp 0.3s ease;
}

/* 头部 */
.bet-records-header {
    position: relative;
    padding: 16px 56px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.bet-records-title {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.4;
}

/* 关闭按钮 */
.bet-records-close {
    position: absolute;
    top: 50%;
    right: 14px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #999;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.bet-records-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.bet-records-close:active {
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-transform: translateY(-50%) scale(0.95);
    -ms-transform: translateY(-50%) scale(0.95);
    transform: translateY(-50%) scale(0.95);
}

/* 弹窗主体内容区 */
.bet-records-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #1a1a1a;
    min-height: 0;
}

/* 弹窗内的Tab选中状态 */
.bet-records-modal .bet-records-body #bet-tab-match:checked ~ .bet-tabs .bet-tab-btn[data-tab="match"],
.bet-records-modal .bet-records-body #bet-tab-lottery:checked ~ .bet-tabs .bet-tab-btn[data-tab="lottery"],
.bet-records-modal .bet-records-body #bet-tab-other:checked ~ .bet-tabs .bet-tab-btn[data-tab="other"] {
    color: #FFD54F;
    border-bottom-color: #FFD54F;
}

/* 弹窗内Tab内容显示控制 */
.bet-records-modal .bet-records-body #bet-tab-match:checked ~ .bet-list-container #matchContent,
.bet-records-modal .bet-records-body #bet-tab-lottery:checked ~ .bet-list-container #lotteryContent,
.bet-records-modal .bet-records-body #bet-tab-other:checked ~ .bet-list-container #otherContent {
    display: block;
}

/* 动画 */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes slideUp {
    from {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================
   投注记录 - 白色主题适配
========================= */

/* Tab和筛选栏 */
#theme-light:checked ~ * .bet-tabs,
#theme-light:checked ~ * .bet-filters {
    background-color: #ffffff;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .bet-tab-btn {
    color: #95a5a6;
}

#theme-light:checked ~ * .bet-tab-btn:active {
    background-color: rgba(0, 0, 0, 0.03);
}

/* 主页面Tab选中状态 */
#theme-light:checked ~ * #bet-tab-match:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="match"],
#theme-light:checked ~ * #bet-tab-lottery:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="lottery"],
#theme-light:checked ~ * #bet-tab-other:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="other"] {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

/* 弹窗Tab选中状态 */
#theme-light:checked ~ * .bet-records-modal .bet-records-body #bet-tab-match:checked ~ .bet-tabs .bet-tab-btn[data-tab="match"],
#theme-light:checked ~ * .bet-records-modal .bet-records-body #bet-tab-lottery:checked ~ .bet-tabs .bet-tab-btn[data-tab="lottery"],
#theme-light:checked ~ * .bet-records-modal .bet-records-body #bet-tab-other:checked ~ .bet-tabs .bet-tab-btn[data-tab="other"] {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

/* 筛选栏 */
#theme-light:checked ~ * .filter-select {
    background-color: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
}

#theme-light:checked ~ * .filter-select:focus {
    border-color: #4CAF50;
}

/* 投注项 */
#theme-light:checked ~ * .bet-item {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .bet-item-header:active {
    background-color: rgba(0, 0, 0, 0.03);
}

#theme-light:checked ~ * .bet-item-title {
    color: #333;
}

#theme-light:checked ~ * .bet-item-subtitle {
    color: #666;
}

#theme-light:checked ~ * .bet-item-info {
    color: #999;
}

#theme-light:checked ~ * .bet-amount {
    color: #4CAF50;
}

/* 状态标签 */
#theme-light:checked ~ * .bet-status.pending {
    background-color: rgba(255, 152, 0, 0.12);
    color: #F57C00;
}

#theme-light:checked ~ * .bet-status.won {
    background-color: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
}

#theme-light:checked ~ * .bet-status.lost {
    background-color: rgba(198, 40, 40, 0.12);
    color: #C62828;
}

#theme-light:checked ~ * .bet-status.tie {
    background-color: rgba(117, 117, 117, 0.12);
    color: #757575;
}

#theme-light:checked ~ * .bet-status.cancelled {
    background-color: rgba(97, 97, 97, 0.12);
    color: #616161;
}

/* 详情区域 */
#theme-light:checked ~ * .bet-item-detail {
    background-color: rgba(0, 0, 0, 0.02);
}

#theme-light:checked ~ * .bet-detail-content {
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .bet-detail-label {
    color: #999;
}

#theme-light:checked ~ * .bet-detail-value {
    color: #333;
}

#theme-light:checked ~ * .bet-detail-divider {
    background-color: #e0e0e0;
}

/* 加载和空状态 */
#theme-light:checked ~ * .bet-loading,
#theme-light:checked ~ * .bet-empty {
    color: #999;
}

#theme-light:checked ~ * .loading-spinner {
    border-color: #e0e0e0;
    border-top-color: #2196F3;
}

/* 分页控件 */
#theme-light:checked ~ * .bet-pagination {
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .pagination-btn {
    background-color: #f5f5f5;
    color: #333;
    border-color: #d0d0d0;
}

#theme-light:checked ~ * .pagination-btn:hover {
    background-color: #e8e8e8;
    border-color: #c0c0c0;
}

#theme-light:checked ~ * .pagination-btn:active {
    background-color: #d8d8d8;
}

#theme-light:checked ~ * .pagination-info {
    color: #666;
}

/* 加载更多按钮 */
#theme-light:checked ~ * .bet-load-more {
    background-color: #f5f5f5;
    border-top-color: #e0e0e0;
}

/* 统计信息 */
#theme-light:checked ~ * .bet-stats {
    background-color: #ffffff;
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .stats-label {
    color: #999;
}

#theme-light:checked ~ * .stats-value {
    color: #4CAF50;
}

/* 弹窗 */
#theme-light:checked ~ * .bet-records-modal {
    background-color: #ffffff;
}

#theme-light:checked ~ * .bet-records-header {
    background-color: #f5f5f5;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .bet-records-title {
    color: #333;
}

#theme-light:checked ~ * .bet-records-close {
    color: #999;
}

#theme-light:checked ~ * .bet-records-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

#theme-light:checked ~ * .bet-records-close:active {
    background-color: rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ * .bet-records-body {
    background-color: #fafafa;
}

/* =========================
   投注记录 - 蓝色主题适配
========================= */

/* Tab和筛选栏 */
#theme-blue:checked ~ * .bet-tabs,
#theme-blue:checked ~ * .bet-filters {
    background-color: #ffffff;
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .bet-tab-btn {
    color: #90a4ae;
}

#theme-blue:checked ~ * .bet-tab-btn:active {
    background-color: rgba(33, 150, 243, 0.05);
}

/* 主页面Tab选中状态 */
#theme-blue:checked ~ * #bet-tab-match:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="match"],
#theme-blue:checked ~ * #bet-tab-lottery:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="lottery"],
#theme-blue:checked ~ * #bet-tab-other:checked ~ .bet-tab-buttons .bet-tab-btn[data-tab="other"] {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

/* 弹窗Tab选中状态 */
#theme-blue:checked ~ * .bet-records-modal .bet-records-body #bet-tab-match:checked ~ .bet-tabs .bet-tab-btn[data-tab="match"],
#theme-blue:checked ~ * .bet-records-modal .bet-records-body #bet-tab-lottery:checked ~ .bet-tabs .bet-tab-btn[data-tab="lottery"],
#theme-blue:checked ~ * .bet-records-modal .bet-records-body #bet-tab-other:checked ~ .bet-tabs .bet-tab-btn[data-tab="other"] {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

/* 筛选栏 */
#theme-blue:checked ~ * .filter-select {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231565c0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
}

#theme-blue:checked ~ * .filter-select:focus {
    border-color: #2196F3;
}

/* 投注项 */
#theme-blue:checked ~ * .bet-item {
    background-color: #ffffff;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .bet-item-header:active {
    background-color: rgba(33, 150, 243, 0.05);
}

#theme-blue:checked ~ * .bet-item-title {
    color: #1565c0;
}

#theme-blue:checked ~ * .bet-item-subtitle {
    color: #42a5f5;
}

#theme-blue:checked ~ * .bet-item-info {
    color: #64b5f6;
}

#theme-blue:checked ~ * .bet-amount {
    color: #1976d2;
}

/* 状态标签 */
#theme-blue:checked ~ * .bet-status.pending {
    background-color: rgba(255, 143, 0, 0.12);
    color: #EF6C00;
}

#theme-blue:checked ~ * .bet-status.won {
    background-color: rgba(27, 94, 32, 0.12);
    color: #1B5E20;
}

#theme-blue:checked ~ * .bet-status.lost {
    background-color: rgba(183, 28, 28, 0.12);
    color: #B71C1C;
}

#theme-blue:checked ~ * .bet-status.tie {
    background-color: rgba(97, 97, 97, 0.12);
    color: #616161;
}

#theme-blue:checked ~ * .bet-status.cancelled {
    background-color: rgba(66, 66, 66, 0.12);
    color: #424242;
}

/* 详情区域 */
#theme-blue:checked ~ * .bet-item-detail {
    background-color: rgba(33, 150, 243, 0.03);
}

#theme-blue:checked ~ * .bet-detail-content {
    border-top-color: #bbdefb;
}

#theme-blue:checked ~ * .bet-detail-label {
    color: #64b5f6;
}

#theme-blue:checked ~ * .bet-detail-value {
    color: #1565c0;
}

#theme-blue:checked ~ * .bet-detail-divider {
    background-color: #bbdefb;
}

/* 加载和空状态 */
#theme-blue:checked ~ * .bet-loading,
#theme-blue:checked ~ * .bet-empty {
    color: #64b5f6;
}

#theme-blue:checked ~ * .loading-spinner {
    border-color: #bbdefb;
    border-top-color: #1565c0;
}

/* 分页控件 */
#theme-blue:checked ~ * .bet-pagination {
    border-top-color: #bbdefb;
}

#theme-blue:checked ~ * .pagination-btn {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .pagination-btn:hover {
    background-color: #bbdefb;
    border-color: #90caf9;
}

#theme-blue:checked ~ * .pagination-btn:active {
    background-color: #90caf9;
}

#theme-blue:checked ~ * .pagination-info {
    color: #64b5f6;
}

/* 加载更多按钮 */
#theme-blue:checked ~ * .bet-load-more {
    background-color: #f3f9ff;
    border-top-color: #bbdefb;
}

/* 统计信息 */
#theme-blue:checked ~ * .bet-stats {
    background-color: #ffffff;
    border-top-color: #bbdefb;
}

#theme-blue:checked ~ * .stats-label {
    color: #64b5f6;
}

#theme-blue:checked ~ * .stats-value {
    color: #1565c0;
}

/* 弹窗 */
#theme-blue:checked ~ * .bet-records-modal {
    background-color: #ffffff;
}

#theme-blue:checked ~ * .bet-records-header {
    background-color: #e3f2fd;
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .bet-records-title {
    color: #1565c0;
}

#theme-blue:checked ~ * .bet-records-close {
    color: #64b5f6;
}

#theme-blue:checked ~ * .bet-records-close:hover {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

#theme-blue:checked ~ * .bet-records-close:active {
    background-color: rgba(33, 150, 243, 0.15);
}

#theme-blue:checked ~ * .bet-records-body {
    background-color: #f3f9ff;
}

/* =========================
   账变记录弹窗容器
========================= */

/* 遮罩层 */
.balance-records-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.balance-records-overlay.active {
    display: block;
}

/* 弹窗主体 - 全屏模式 */
.balance-records-modal {
    background-color: #1a1a1a;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-animation: slideUp 0.3s ease;
    animation: slideUp 0.3s ease;
}

/* 头部 */
.balance-records-header {
    position: relative;
    padding: 16px 56px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.balance-records-title {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.4;
}

/* 关闭按钮 */
.balance-records-close {
    position: absolute;
    top: 50%;
    right: 14px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #999;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.balance-records-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.balance-records-close:active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 主体区域 */
.balance-records-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #1a1a1a;
}

/* 隐藏radio */
.balance-tab-radio {
    display: none;
}

/* Tab导航 */
.balance-tabs {
    padding: 0;
    background-color: #2d2d2d;
    border-bottom: 1px solid #505050;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.balance-tab-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.balance-tab-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    position: relative;
    color: #999;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 2px solid transparent;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.balance-tab-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.balance-tab-btn .tab-text {
    font-size: 15px;
    font-weight: 500;
}

/* Tab选中状态 */
#balance-tab-all:checked ~ .balance-tabs .balance-tab-btn[data-tab="all"],
#balance-tab-income:checked ~ .balance-tabs .balance-tab-btn[data-tab="income"],
#balance-tab-expense:checked ~ .balance-tabs .balance-tab-btn[data-tab="expense"] {
    color: #FFD54F;
    border-bottom-color: #FFD54F;
}

/* 筛选栏 */
.balance-filters {
    padding: 12px 16px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -5px;
}

/* 低版本iOS兼容：为子元素添加margin */
.balance-filters > * {
    margin: 5px;
}

/* 列表容器 */
.balance-list-container {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Tab内容显示控制 */
.balance-tab-content {
    display: none;
    height: 100%;
}

#balance-tab-all:checked ~ .balance-list-container #allContent,
#balance-tab-income:checked ~ .balance-list-container #incomeContent,
#balance-tab-expense:checked ~ .balance-list-container #expenseContent {
    display: block;
}

/* 列表 */
.balance-list {
    padding: 12px 16px;
}

/* 账变项 */
.balance-item {
    background-color: #2d2d2d;
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
    border: 1px solid transparent;
}

.balance-item-header {
    padding: 14px 16px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.balance-item-header:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.balance-item-left {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -6px;
}

/* 低版本iOS兼容：为子元素添加margin */
.balance-item-left > * {
    margin: 6px;
}

.balance-item-icon {
    font-size: 24px;
    line-height: 1;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.balance-item-info {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.balance-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-item-time {
    font-size: 13px;
    color: #999;
}

.balance-item-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: -4px;
}

/* 低版本iOS兼容：为子元素添加margin */
.balance-item-right > * {
    margin: 4px;
}

.balance-amount {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.balance-amount-income {
    color: #4CAF50;
}

.balance-amount-expense {
    color: #F44336;
}

.expand-icon {
    width: 20px;
    height: 20px;
    color: #999;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.balance-item.expanded .expand-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* 详情区域 */
.balance-item-detail {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.3s ease;
    -o-transition: max-height 0.3s ease;
    transition: max-height 0.3s ease;
}

.balance-item.expanded .balance-item-detail {
    max-height: 500px;
}

.balance-detail-content {
    padding: 0 16px 14px;
    background-color: #252525;
}

.balance-detail-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 8px 0;
    gap: 16px;
    /* 低版本iOS兼容：gap不支持时的负margin */
    margin: 0 -8px;
}

/* 低版本iOS兼容：为子元素添加margin */
.balance-detail-row > * {
    margin: 0 8px;
}

.balance-detail-label {
    font-size: 14px;
    color: #999;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 80px;
}

.balance-detail-value {
    font-size: 14px;
    color: #e0e0e0;
    text-align: right;
    word-break: break-all;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.balance-detail-divider {
    height: 1px;
    background-color: #404040;
    margin: 8px 0;
}

/* 加载更多 */
.balance-load-more {
    padding: 16px;
    text-align: center;
    background-color: #1a1a1a;
    border-top: 1px solid #404040;
}

.load-more-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    background-color: #2d2d2d;
    color: #FFD54F;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.load-more-btn:hover {
    background-color: #3d3d3d;
    border-color: #FFD54F;
}

.load-more-btn:active {
    background-color: #4d4d4d;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 空状态 */
.balance-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.balance-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.balance-empty p {
    font-size: 15px;
    margin: 0;
}

/* 加载中 */
.balance-loading {
    padding: 60px 20px;
    text-align: center;
}

.balance-loading p {
    margin-top: 16px;
    font-size: 15px;
    color: #999;
}

/* 统计信息 */
.balance-stats {
    padding: 16px;
    background-color: #2d2d2d;
    border-top: 1px solid #404040;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.stats-income {
    color: #4CAF50 !important;
}

.stats-expense {
    color: #F44336 !important;
}

/* =========================
   账变记录 - 白色主题
========================= */

#theme-light:checked ~ * .balance-records-modal {
    background-color: #ffffff;
}

#theme-light:checked ~ * .balance-records-header {
    background-color: #f5f5f5;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .balance-records-title {
    color: #333333;
}

#theme-light:checked ~ * .balance-records-close {
    color: #999999;
}

#theme-light:checked ~ * .balance-records-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333333;
}

#theme-light:checked ~ * .balance-records-close:active {
    background-color: rgba(0, 0, 0, 0.1);
}

#theme-light:checked ~ * .balance-records-body {
    background-color: #f5f5f5;
}

#theme-light:checked ~ * .balance-tabs {
    background-color: #ffffff;
    border-bottom-color: #d0d0d0;
}

#theme-light:checked ~ * .balance-tab-btn {
    color: #999999;
}

#theme-light:checked ~ * #balance-tab-all:checked ~ .balance-tabs .balance-tab-btn[data-tab="all"],
#theme-light:checked ~ * #balance-tab-income:checked ~ .balance-tabs .balance-tab-btn[data-tab="income"],
#theme-light:checked ~ * #balance-tab-expense:checked ~ .balance-tabs .balance-tab-btn[data-tab="expense"] {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

#theme-light:checked ~ * .balance-filters {
    background-color: #ffffff;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .balance-item {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .balance-item-header:active {
    background-color: rgba(0, 0, 0, 0.03);
}

#theme-light:checked ~ * .balance-item-title {
    color: #333333;
}

#theme-light:checked ~ * .balance-item-time {
    color: #999999;
}

#theme-light:checked ~ * .balance-detail-content {
    background-color: #fafafa;
}

#theme-light:checked ~ * .balance-detail-label {
    color: #999999;
}

#theme-light:checked ~ * .balance-detail-value {
    color: #333333;
}

#theme-light:checked ~ * .balance-detail-divider {
    background-color: #e0e0e0;
}

#theme-light:checked ~ * .balance-load-more {
    background-color: #f5f5f5;
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .load-more-btn {
    background-color: #ffffff;
    color: #4CAF50;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .load-more-btn:hover {
    background-color: #f5f5f5;
    border-color: #4CAF50;
}

#theme-light:checked ~ * .load-more-btn:active {
    background-color: #eeeeee;
}

#theme-light:checked ~ * .balance-empty {
    color: #999999;
}

#theme-light:checked ~ * .balance-loading p {
    color: #999999;
}

#theme-light:checked ~ * .balance-stats {
    background-color: #ffffff;
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .stats-label {
    color: #999999;
}

#theme-light:checked ~ * .stats-value {
    color: #4CAF50;
}

/* =========================
   账变记录 - 蓝色主题
========================= */

#theme-blue:checked ~ * .balance-records-modal {
    background-color: #ffffff;
}

#theme-blue:checked ~ * .balance-records-header {
    background-color: #e3f2fd;
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .balance-records-title {
    color: #1565c0;
}

#theme-blue:checked ~ * .balance-records-close {
    color: #64b5f6;
}

#theme-blue:checked ~ * .balance-records-close:hover {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

#theme-blue:checked ~ * .balance-records-close:active {
    background-color: rgba(33, 150, 243, 0.15);
}

#theme-blue:checked ~ * .balance-records-body {
    background-color: #f3f9ff;
}

#theme-blue:checked ~ * .balance-tabs {
    background-color: #ffffff;
    border-bottom-color: #90caf9;
}

#theme-blue:checked ~ * .balance-tab-btn {
    color: #90caf9;
}

#theme-blue:checked ~ * #balance-tab-all:checked ~ .balance-tabs .balance-tab-btn[data-tab="all"],
#theme-blue:checked ~ * #balance-tab-income:checked ~ .balance-tabs .balance-tab-btn[data-tab="income"],
#theme-blue:checked ~ * #balance-tab-expense:checked ~ .balance-tabs .balance-tab-btn[data-tab="expense"] {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

#theme-blue:checked ~ * .balance-filters {
    background-color: #ffffff;
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .balance-item {
    background-color: #ffffff;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .balance-item-header:active {
    background-color: rgba(33, 150, 243, 0.05);
}

#theme-blue:checked ~ * .balance-item-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .balance-item-time {
    color: #90caf9;
}

#theme-blue:checked ~ * .balance-detail-content {
    background-color: #f3f9ff;
}

#theme-blue:checked ~ * .balance-detail-label {
    color: #90caf9;
}

#theme-blue:checked ~ * .balance-detail-value {
    color: #0d47a1;
}

#theme-blue:checked ~ * .balance-detail-divider {
    background-color: #bbdefb;
}

#theme-blue:checked ~ * .balance-load-more {
    background-color: #f3f9ff;
    border-top-color: #bbdefb;
}

#theme-blue:checked ~ * .load-more-btn {
    background-color: #ffffff;
    color: #2196F3;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .load-more-btn:hover {
    background-color: #e3f2fd;
    border-color: #2196F3;
}

#theme-blue:checked ~ * .load-more-btn:active {
    background-color: #bbdefb;
}

#theme-blue:checked ~ * .balance-empty {
    color: #90caf9;
}

#theme-blue:checked ~ * .balance-loading p {
    color: #90caf9;
}

#theme-blue:checked ~ * .balance-stats {
    background-color: #ffffff;
    border-top-color: #bbdefb;
}

#theme-blue:checked ~ * .stats-label {
    color: #90caf9;
}

#theme-blue:checked ~ * .stats-value {
    color: #1565c0;
}

/* =========================
   响应式适配和iOS兼容性
========================= */

/* 小屏幕优化（手机横屏和小屏手机） */
@media (max-width: 480px) {
    /* 缩小Tab按钮间距 */
    .bet-tab-btn {
        padding: 12px 8px;
    }
    
    .bet-tab-btn .tab-text {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    
    /* 缩小筛选栏间距 */
    .bet-filters {
        padding: 10px 12px;
    }
    
    .filter-select {
        padding: 9px 30px 9px 10px;
        font-size: 13px;
        background-position: right 6px center;
        background-size: 18px;
        margin-right: 10px;
    }
    
    .filter-select:last-child {
        margin-right: 0;
    }
    
    /* 缩小列表间距 */
    .bet-list {
        padding: 10px 10px 0 10px;
    }
    
    .bet-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .bet-item-header {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .bet-item-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .bet-item-subtitle {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .bet-item-info {
        font-size: 12px;
    }
    
    .bet-item-info span {
        margin-right: 12px;
    }
    
    .bet-item-right {
        padding-left: 10px;
        gap: 5px;
    }
    
    .bet-amount {
        font-size: 16px;
    }
    
    .bet-status {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .expand-icon {
        width: 16px;
        height: 16px;
    }
    
    /* 详情区域 */
    .bet-detail-content {
        padding: 14px;
    }
    
    .bet-detail-row {
        margin-bottom: 9px;
        font-size: 13px;
        gap: 10px;
    }
    
    .bet-detail-label {
        min-width: 65px;
        font-size: 13px;
    }
    
    .bet-detail-divider {
        margin: 10px 0;
    }
    
    /* 加载和空状态 */
    .bet-loading {
        padding: 40px 15px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        margin: 0 auto 14px;
    }
    
    .bet-loading p,
    .bet-empty p {
        font-size: 13px;
    }
    
    .bet-empty {
        padding: 50px 15px;
    }
    
    .bet-empty svg {
        width: 50px;
        height: 50px;
        margin: 0 auto 14px;
    }
    
    /* 统计信息 */
    .bet-stats {
        padding: 14px;
    }
    
    .stats-row {
        gap: 12px;
        /* 低版本iOS兼容：gap不支持时的负margin */
        margin: -6px;
    }
    
    /* 低版本iOS兼容：为子元素添加margin */
    .stats-row > * {
        margin: 6px;
    }
    
    .stats-label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .stats-value {
        font-size: 13px;
    }
    
    /* 弹窗头部 */
    .bet-records-header {
        padding: 14px 52px;
    }
    
    .bet-records-title {
        font-size: 17px;
    }
    
    .bet-records-close {
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 28px;
        line-height: 28px;
    }
}

/* 超小屏幕优化（小于360px宽度） */
@media (max-width: 359px) {
    .bet-tab-btn {
        padding: 10px 6px;
    }
    
    .bet-tab-btn .tab-text {
        font-size: 13px;
    }
    
    .bet-filters {
        padding: 8px 10px;
    }
    
    .filter-select {
        font-size: 12px;
        padding: 8px 28px 8px 8px;
        margin-right: 8px;
    }
    
    .filter-select:last-child {
        margin-right: 0;
    }
    
    .bet-list {
        padding: 8px 8px 0 8px;
    }
    
    .bet-item {
        margin-bottom: 8px;
    }
    
    .bet-item-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .bet-item-title {
        font-size: 13px;
    }
    
    .bet-item-subtitle,
    .bet-item-info {
        font-size: 12px;
    }
    
    .bet-item-info span {
        margin-right: 10px;
    }
    
    .bet-amount {
        font-size: 15px;
    }
    
    .bet-status {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .bet-detail-content {
        padding: 12px;
    }
    
    .bet-detail-row {
        font-size: 12px;
        gap: 8px;
    }
    
    .bet-detail-label {
        min-width: 60px;
        font-size: 12px;
    }
}

/* iOS Safari特定优化 */
@supports (-webkit-touch-callout: none) {
    /* 确保iOS上的滚动流畅 */
    .bet-records-body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* iOS上input元素的样式修复 */
    .bet-tab-radio {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* iOS上select元素的优化 */
    .filter-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-border-radius: 6px;
        border-radius: 6px;
    }
    
    /* iOS上按钮点击反馈优化 */
    .bet-tab-btn,
    .bet-item-header,
    .bet-records-close {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* 旧版iOS（iOS 9-10）兼容性增强 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* 修复旧版iOS的flexbox bug */
    .bet-tab-buttons,
    .bet-filters,
    .bet-item-header,
    .bet-item-right,
    .bet-detail-row,
    .stats-row {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }
    
    .bet-tab-btn,
    .filter-select,
    .bet-item-left,
    .stats-item {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
    }
    
    /* 修复旧版iOS的transform问题 */
    .expand-icon {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    
    .bet-item.expanded .expand-icon {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    
    .bet-records-close {
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    
    .bet-records-close:active {
        -webkit-transform: translateY(-50%) scale(0.95);
        transform: translateY(-50%) scale(0.95);
    }
}

/* Android 4.x兼容性 */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-width: 1px) {
    /* 确保border-radius在旧版Android上正常显示 */
    .bet-item,
    .filter-select,
    .bet-status,
    .bet-records-close {
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
}

/* 高分辨率屏幕优化 */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    /* 在高分辨率屏幕上使用更细的边框 */
    .bet-tabs,
    .bet-filters,
    .bet-item {
        border-width: 0.5px;
    }
    
    .bet-detail-content,
    .bet-detail-divider {
        border-width: 0.5px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    /* 在横屏且高度较小时减小垂直间距 */
    .bet-tab-btn {
        padding: 10px 10px;
    }
    
    .bet-tab-btn .tab-text {
        margin-bottom: 2px;
    }
    
    .bet-filters {
        padding: 8px 15px;
    }
    
    .bet-item {
        margin-bottom: 8px;
    }
    
    .bet-item-header {
        padding: 10px 14px;
    }
    
    .bet-detail-content {
        padding: 12px;
    }
    
    .bet-stats {
        padding: 12px;
    }
    
    .bet-loading,
    .bet-empty {
        padding: 30px 15px;
    }
}

/* 打印样式 */
@media print {
    .bet-records-overlay {
        display: none !important;
    }
    
    .bet-tab-radio,
    .bet-records-close,
    .filter-select,
    .expand-icon {
        display: none !important;
    }
    
    .bet-item-detail {
        max-height: none !important;
        display: block !important;
    }
    
    .bet-item {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
    }
}

/* =========================
   账变记录响应式适配
========================= */

/* 小屏幕优化（手机横屏和小屏手机） */
@media (max-width: 480px) {
    /* 缩小Tab按钮间距 */
    .balance-tab-btn {
        padding: 12px 8px;
    }
    
    .balance-tab-btn .tab-text {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    /* 缩小筛选栏间距 */
    .balance-filters {
        padding: 10px 12px;
    }
    
    .filter-select {
        padding: 9px 30px 9px 10px;
        font-size: 13px;
        background-position: right 6px center;
        background-size: 18px;
        margin-right: 10px;
    }
    
    .filter-select:last-child {
        margin-right: 0;
    }
    
    /* 缩小列表间距 */
    .balance-list {
        padding: 10px 10px 0 10px;
    }
    
    .balance-item {
        margin-bottom: 10px;
        -webkit-border-radius: 8px;
           -moz-border-radius: 8px;
                border-radius: 8px;
    }
    
    .balance-item-header {
        padding: 12px 14px;
        gap: 10px;
    }
    
    /* 低版本iOS兼容：gap不支持时的负margin */
    .balance-item-left {
        margin: -5px;
    }
    
    .balance-item-left > * {
        margin: 5px;
    }
    
    .balance-item-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .balance-item-time {
        font-size: 12px;
    }
    
    .balance-amount-income,
    .balance-amount-expense {
        font-size: 15px;
    }
    
    .expand-icon {
        width: 18px;
        height: 18px;
    }
    
    .balance-detail-content {
        padding: 10px 14px;
    }
    
    .balance-detail-label {
        font-size: 12px;
    }
    
    .balance-detail-value {
        font-size: 13px;
    }
    
    /* 统计信息 */
    .balance-stats {
        padding: 14px;
    }
    
    .stats-row {
        gap: 12px;
        /* 低版本iOS兼容：gap不支持时的负margin */
        margin: -6px;
    }
    
    /* 低版本iOS兼容：为子元素添加margin */
    .stats-row > * {
        margin: 6px;
    }
    
    .stats-label {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .stats-value {
        font-size: 13px;
    }
    
    /* 弹窗头部 */
    .balance-records-header {
        padding: 14px 52px;
    }
    
    .balance-records-title {
        font-size: 17px;
    }
    
    .balance-records-close {
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 28px;
        line-height: 28px;
    }
}

/* 超小屏幕优化（小于360px宽度） */
@media (max-width: 359px) {
    .balance-tab-btn {
        padding: 10px 6px;
    }
    
    .balance-tab-btn .tab-text {
        font-size: 13px;
    }
    
    .balance-filters {
        padding: 8px 10px;
    }
    
    .filter-select {
        font-size: 12px;
        padding: 8px 28px 8px 8px;
        margin-right: 8px;
    }
    
    .filter-select:last-child {
        margin-right: 0;
    }
    
    .balance-list {
        padding: 8px 8px 0 8px;
    }
    
    .balance-item {
        margin-bottom: 8px;
    }
    
    .balance-item-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    /* 低版本iOS兼容：gap不支持时的负margin */
    .balance-item-left {
        margin: -4px;
    }
    
    .balance-item-left > * {
        margin: 4px;
    }
    
    .balance-item-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .balance-item-time {
        font-size: 11px;
    }
    
    .balance-amount-income,
    .balance-amount-expense {
        font-size: 14px;
    }
    
    .expand-icon {
        width: 16px;
        height: 16px;
    }
    
    .balance-detail-content {
        padding: 8px 12px;
    }
    
    .balance-detail-label {
        font-size: 11px;
    }
    
    .balance-detail-value {
        font-size: 12px;
    }
    
    .balance-stats {
        padding: 12px;
    }
}

/* iOS 7+ 兼容性 */
@supports (-webkit-overflow-scrolling: touch) {
    .balance-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    .balance-item-header {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
           -moz-user-select: none;
            -ms-user-select: none;
                user-select: none;
    }
}

/* Android 4.x 兼容性 */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-width: 1px) {
    /* 确保border-radius在旧版Android上正常显示 */
    .balance-item,
    .filter-select,
    .balance-records-close {
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }
}

/* 高分辨率屏幕优化 */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    /* 在高分辨率屏幕上使用更细的边框 */
    .balance-tabs,
    .balance-filters,
    .balance-item {
        border-width: 0.5px;
    }
    
    .balance-detail-content,
    .balance-detail-divider {
        border-width: 0.5px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    /* 在横屏且高度较小时减小垂直间距 */
    .balance-tab-btn {
        padding: 10px 10px;
    }
    
    .balance-tab-btn .tab-text {
        margin-bottom: 2px;
    }
    
    .balance-filters {
        padding: 8px 15px;
    }
    
    .balance-item {
        margin-bottom: 8px;
    }
    
    .balance-item-header {
        padding: 10px 14px;
    }
    
    .balance-detail-content {
        padding: 12px;
    }
    
    .balance-stats {
        padding: 12px;
    }
    
    .stats-row {
        gap: 10px;
        margin: -5px;
    }
    
    .stats-row > * {
        margin: 5px;
    }
}

/* 打印样式 */
@media print {
    .balance-records-overlay {
        position: static;
        background: transparent;
    }
    
    .balance-tab-radio,
    .balance-records-close,
    .filter-select,
    .expand-icon {
        display: none !important;
    }
    
    .balance-item-detail {
        max-height: none !important;
        display: block !important;
    }
    
    .balance-item {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
    }
}

/* =========================
   分页组件样式
   兼容低版本iOS和三种主题配色
========================= */
.pagination-container {
    width: 100%;
    padding: 10px 15px 15px 15px;
    margin-top: -5px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.pagination-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* .pagination-info 已移除 - 不再显示"共多少场比赛" */

.pagination-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -4px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    /* iOS兼容性 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pagination-btn:active {
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transform: scale(0.95);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #1a1a1a;
    -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    cursor: default;
}

.pagination-btn:not(.disabled):not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.pagination-ellipsis {
    color: rgba(224, 224, 224, 0.4);
    font-size: 14px;
    padding: 0 4px;
    margin: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 浅色主题 - 分页（绿色系） */
/* .pagination-info 已移除 */

#theme-light:checked ~ .main-content .pagination-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #333;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .pagination-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    color: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    -moz-box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

#theme-light:checked ~ .main-content .pagination-btn:not(.disabled):not(.active):hover {
    background: #f5f5f5;
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ .main-content .pagination-btn.disabled {
    background: #f9f9f9;
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .main-content .pagination-ellipsis {
    color: rgba(0, 0, 0, 0.4);
}

/* 蓝色主题 - 分页（深蓝色系） */
/* .pagination-info 已移除 */

#theme-blue:checked ~ .main-content .pagination-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: #1565C0;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#theme-blue:checked ~ .main-content .pagination-btn.active {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-color: #1976D2;
    color: #ffffff;
    -webkit-box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
    -moz-box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
}

#theme-blue:checked ~ .main-content .pagination-btn:not(.disabled):not(.active):hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(25, 118, 210, 0.4);
}

#theme-blue:checked ~ .main-content .pagination-btn.disabled {
    background: rgba(255, 255, 255, 0.6);
    color: rgba(0, 0, 0, 0.3);
}

#theme-blue:checked ~ .main-content .pagination-ellipsis {
    color: rgba(0, 0, 0, 0.4);
}

/* 移动端优化 */
@media screen and (max-width: 480px) {
    .pagination-container {
        padding: 8px 10px 12px 10px;
        margin-top: -5px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        margin: 3px;
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        margin: 3px;
    }
    
    .pagination-buttons {
        margin: -3px;
    }
    
    /* .pagination-info 已移除 */
}

/* iOS 7+ 兼容性 */
@supports (-webkit-overflow-scrolling: touch) {
    .pagination-btn {
        -webkit-touch-callout: none;
    }
}
/* =========================
   VIP领取按钮样式
========================= */
.me-vip-level-claim {
    margin-top: 8px;
}

.vip-claim-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

/* 暗黑主题 - 可领取按钮 */
.vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #FFB300 0%, #FFA000 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

.vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.5);
    transform: translateY(-1px);
}

.vip-claim-btn:not(.claimed):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
}

.vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #999 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 暗黑主题 - 已领取按钮 */
.vip-claim-btn.claimed {
    background: #2d2d2d;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #404040;
}

/* 白色主题 - 可领取按钮 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn.claimed {
    background: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #e0e0e0 !important;
}

/* 蓝色主题 - 可领取按钮 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%) !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.5) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn.claimed {
    background: #E3F2FD !important;
    color: #90CAF9 !important;
    border: 1px solid #BBDEFB !important;
}

/* .pagination-info 已移除 - 不再显示"共多少场比赛" */

.pagination-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -4px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    margin: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    /* iOS兼容性 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pagination-btn:active {
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transform: scale(0.95);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #1a1a1a;
    -webkit-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    -moz-box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    cursor: default;
}

.pagination-btn:not(.disabled):not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.pagination-ellipsis {
    color: rgba(224, 224, 224, 0.4);
    font-size: 14px;
    padding: 0 4px;
    margin: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 浅色主题 - 分页（绿色系） */
/* .pagination-info 已移除 */

#theme-light:checked ~ .main-content .pagination-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: #ffffff;
    color: #333;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#theme-light:checked ~ .main-content .pagination-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    color: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    -moz-box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

#theme-light:checked ~ .main-content .pagination-btn:not(.disabled):not(.active):hover {
    background: #f5f5f5;
    border-color: rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ .main-content .pagination-btn.disabled {
    background: #f9f9f9;
    color: rgba(0, 0, 0, 0.3);
}

#theme-light:checked ~ .main-content .pagination-ellipsis {
    color: rgba(0, 0, 0, 0.4);
}

/* 蓝色主题 - 分页（深蓝色系） */
/* .pagination-info 已移除 */

#theme-blue:checked ~ .main-content .pagination-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: #1565C0;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#theme-blue:checked ~ .main-content .pagination-btn.active {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    border-color: #1976D2;
    color: #ffffff;
    -webkit-box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
    -moz-box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.5);
}

#theme-blue:checked ~ .main-content .pagination-btn:not(.disabled):not(.active):hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(25, 118, 210, 0.4);
}

#theme-blue:checked ~ .main-content .pagination-btn.disabled {
    background: rgba(255, 255, 255, 0.6);
    color: rgba(0, 0, 0, 0.3);
}

#theme-blue:checked ~ .main-content .pagination-ellipsis {
    color: rgba(0, 0, 0, 0.4);
}

/* 移动端优化 */
@media screen and (max-width: 480px) {
    .pagination-container {
        padding: 8px 10px 12px 10px;
        margin-top: -5px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        margin: 3px;
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        margin: 3px;
    }
    
    .pagination-buttons {
        margin: -3px;
    }
    
    /* .pagination-info 已移除 */
}

/* iOS 7+ 兼容性 */
@supports (-webkit-overflow-scrolling: touch) {
    .pagination-btn {
        -webkit-touch-callout: none;
    }
}
/* =========================
   VIP领取按钮样式
========================= */
.me-vip-level-claim {
    margin-top: 8px;
}

.vip-claim-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

/* 暗黑主题 - 可领取按钮 */
.vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #FFB300 0%, #FFA000 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
}

.vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.5);
    transform: translateY(-1px);
}

.vip-claim-btn:not(.claimed):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
}

.vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #999 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 暗黑主题 - 已领取按钮 */
.vip-claim-btn.claimed {
    background: #2d2d2d;
    color: #666;
    cursor: not-allowed;
    border: 1px solid #404040;
}

/* 白色主题 - 可领取按钮 */
#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%) !important;
}

#theme-light:checked ~ .main-content .vip-modal-overlay .vip-claim-btn.claimed {
    background: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #e0e0e0 !important;
}

/* 蓝色主题 - 可领取按钮 */
#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed) {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976d2 100%) !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.5) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn:not(.claimed):disabled {
    background: linear-gradient(135deg, #90CAF9 0%, #64B5F6 100%) !important;
}

#theme-blue:checked ~ .main-content .vip-modal-overlay .vip-claim-btn.claimed {
    background: #E3F2FD !important;
    color: #90CAF9 !important;
    border: 1px solid #BBDEFB !important;
}

