/**
 * ========================================
 * 主题配置文件 - Theme Configuration
 * 基于Bootstrap 5，覆盖样式实现深色主题
 * ========================================
 */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    min-height: 100vh;
}

/* ==================== CSS 变量 ==================== */
:root {
    /* 主题色 */
    --theme-primary: #595fd2;
    --theme-accent-green: #1de95e;
    --theme-accent-green-dark: #0fbc4a;
    --theme-accent-gold: #ffd700;
    --theme-success: #1D9E57;
    --theme-success-hover: #178a4a;
    
    /* 背景色 */
    --theme-bg-primary: #0a0a1a;
    --theme-bg-secondary: #121633;
    --theme-bg-input: rgba(30, 35, 80, 0.4);
    --theme-bg-input-focus: rgba(30, 35, 80, 0.6);
    --theme-bg-glass: rgba(89, 95, 210, 0.35);
    
    /* 文字色 */
    --theme-text-primary: #ffffff;
    --theme-text-secondary: #5E7BA9;
    --theme-text-secondary-hover: #7a92ba;
    --theme-text-muted: rgba(255, 255, 255, 0.5);
    
    /* 边框色 */
    --theme-border: rgba(100, 120, 200, 0.25);
    --theme-border-focus: rgba(100, 120, 200, 0.5);
    
    /* 字体 */
    --theme-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --theme-font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== Bootstrap 主题覆盖 ==================== */
body {
    --bs-primary: #595fd2;
    --bs-success: #1D9E57;
    --bs-warning: #ffd700;
    --bs-body-bg: #0a0a1a;
    --bs-body-color: #ffffff;
    --bs-border-color: rgba(100, 120, 200, 0.25);
}

/* ==================== 覆盖Bootstrap表单样式 ==================== */
.form-control {
    padding: 18px 24px;
    background: var(--theme-bg-input) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    color: var(--theme-text-primary) !important;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: var(--theme-text-secondary);
}

.form-control:focus {
    background: var(--theme-bg-input-focus) !important;
    border-color: var(--theme-border-focus) !important;
    color: var(--theme-text-primary) !important;
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 覆盖Bootstrap按钮样式 ==================== */
.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

/* 成功按钮 - 绿色主题 */
.btn-success {
    background: var(--theme-success) !important;
    border: none !important;
    color: var(--theme-text-primary) !important;
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
}

.btn-success:hover {
    background: var(--theme-success-hover) !important;
    transform: translateY(-1px);
    box-shadow: 4px 5px 13px 0px rgba(0, 0, 0, 0.3) !important;
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
}

/* 主要按钮 */
.btn-primary {
    background: var(--theme-primary) !important;
    border: none !important;
    color: var(--theme-text-primary) !important;
}

.btn-primary:hover {
    background: #4a54c2 !important;
}

/* 链接按钮 */
.btn-link {
    color: var(--theme-text-muted);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--theme-text-primary);
}

/* ==================== 覆盖Bootstrap卡片样式 ==================== */
.card {
    background: var(--theme-bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--theme-text-primary);
}

.card-body {
    padding: 32px;
}

/* ==================== 覆盖Bootstrap表格样式 ==================== */
.table {
    color: var(--theme-text-primary);
}

.table thead th {
    background: rgba(59, 65, 153, 0.7);
    border-bottom: 1px solid var(--theme-border);
    font-weight: 600;
}

.table tbody tr {
    background: rgba(59, 65, 153, 0.45);
    border-bottom: 1px solid rgba(181, 199, 235, 0.2);
}

.table tbody tr:hover {
    background: rgba(59, 65, 153, 0.6);
}

/* ==================== 通用表单组 ==================== */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

/* ==================== 通用链接样式 ==================== */
a {
    color: var(--theme-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--theme-text-secondary-hover);
}

/* ==================== 工具类 ==================== */
.text-green {
    color: var(--theme-accent-green) !important;
}

.text-gold {
    color: var(--theme-accent-gold) !important;
}

.text-secondary-theme {
    color: var(--theme-text-secondary) !important;
}

.bg-glass {
    background: var(--theme-bg-glass);
    backdrop-filter: blur(25px);
}

/* ==================== 页面标题样式 ==================== */
.page-title-green {
    font-size: 36px;
    font-weight: 700;
    color: #0FC861;
    letter-spacing: 0;
    line-height: 100%;
    text-align: center;
    font-family: var(--theme-font-inter);
}

.page-subtitle {
    font-size: 16px;
    color: var(--theme-text-secondary);
    font-weight: 400;
    text-align: center;
}

/* ==================== 分隔符 ==================== */
.divider {
    text-align: center;
    margin: 24px 0;
    color: var(--theme-text-secondary);
    font-size: 14px;
}

/* ==================== 加载动画 ==================== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== 淡入动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ==================== 响应式基础 ==================== */
@media (max-width: 768px) {
    .form-control {
        padding: 16px 20px;
        font-size: 14px;
    }

    .btn {
        padding: 16px;
        font-size: 15px;
    }
    
    .page-title-green {
        font-size: 30px;
    }

    .page-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title-green {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 13px;
    }
}

/* ==================== 登录/注册页面样式 ==================== */

/* 登录页面特殊背景 */
body.page-login {
    height: 100%;
    overflow: hidden;
    background: #1a1d3f url('../images/login_bg1.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 深色遮罩层 */
body.page-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 45, 0.92);
    z-index: 0;
    pointer-events: none;
}

/* 底部线条装饰 */
body.page-login::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    background: url('../images/login_bg3.png') no-repeat center bottom;
    background-size: contain;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* 登录页面app容器 */
body.page-login #app {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* 光晕圆圈 - 左下角 */
body.page-login #app::before {
    content: '';
    position: absolute;
    left: -10%;
    bottom: -15%;
    width: 600px;
    height: 600px;
    background: url('../images/login_bg2.png') no-repeat center center;
    background-size: contain;
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

/* 光晕圆圈 - 右上角 */
body.page-login #app::after {
    content: '';
    position: absolute;
    right: -5%;
    top: -10%;
    width: 500px;
    height: 500px;
    background: url('../images/login_bg2.png') no-repeat center center;
    background-size: contain;
    opacity: 0.45;
    z-index: 2;
    pointer-events: none;
}

/* 登录容器 */
.login-container {
    max-width: 500px;
    position: relative;
    z-index: 10;
    padding: 40px 50px 50px;
}

/* Logo 样式 */
.logo {
    width: 300px;
    height: 61px;
    object-fit: contain;
}

/* 欢迎文字 */
.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #0FC861;
    letter-spacing: 0;
    line-height: 100%;
    font-family: var(--theme-font-inter);
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--theme-text-secondary);
    font-weight: 400;
}

/* 密码显示/隐藏按钮 */
.password-toggle {
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 忘记密码链接 */
.forgot-password {
    color: var(--theme-text-secondary);
    font-size: 14px;
}

.forgot-password:hover {
    color: var(--theme-text-secondary-hover);
}

/* 登录/注册按钮 */
.btn-signin,
.btn-register {
    height: 60px;
    padding: 18px 65px;
    border-radius: 50px !important;
    font-size: 17px;
    margin-bottom: 20px;
}

/* Google 登录按钮 */
.btn-google {
    padding: 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--theme-text-secondary) !important;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
}

.btn-google:hover {
    color: var(--theme-text-secondary-hover) !important;
}

.google-icon {
    width: 22px;
    height: 22px;
}

/* 创建账户/登录链接 */
.create-account-link,
.login-link a {
    color: var(--theme-text-secondary);
    font-size: 15px;
}

.create-account-link:hover,
.login-link a:hover {
    color: var(--theme-text-secondary-hover);
}

/* ==================== 登录页面响应式 ==================== */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        margin: 0 20px;
        padding: 40px 30px;
    }

    body.page-login #app::before {
        left: -25%;
        bottom: -25%;
        width: 400px;
        height: 400px;
        opacity: 0.35;
    }
    
    body.page-login #app::after {
        right: -15%;
        top: -15%;
        width: 350px;
        height: 350px;
        opacity: 0.3;
    }
    
    body.page-login::after {
        height: 200px;
        opacity: 0.5;
    }

    .welcome-title {
        font-size: 30px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 0 16px;
        padding: 32px 24px;
    }

    .logo {
        height: 50px;
    }

    .welcome-title {
        font-size: 26px;
    }

    .welcome-subtitle {
        font-size: 13px;
    }

    body.page-login #app::before {
        width: 300px;
        height: 300px;
        opacity: 0.3;
    }
    
    body.page-login #app::after {
        width: 250px;
        height: 250px;
        opacity: 0.25;
    }
    
    body.page-login::after {
        height: 150px;
        opacity: 0.4;
    }
}

/* ==================== 全局布局样式 (来自 style.css) ==================== */

#app {
    display: flex;
    height: 100%;
    min-height: 100vh;
    width: 100vw;
}

/* ==================== Sidebar ==================== */
.sidebar {
    width: 110px;
    height: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--theme-bg-glass) 0%, rgba(46, 49, 108, 0.3) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
    box-shadow: 8px 0 8px 0 rgba(18, 22, 51, 1);
    border-radius: 16px;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, 
        rgba(73, 98, 139, 0.15) 0%, 
        rgba(94, 123, 169, 1) 50%, 
        rgba(73, 98, 139, 0.2) 100%);
    border-radius: 0 20px 20px 0;
}

.sidebar.expanded {
    width: 240px;
}

.sidebar-top {
    margin-bottom: 12px;
    width: 100%;
}

.folder-btn {
    width: 70px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8b86ff;
    padding: 0 6px;
}

.sidebar.expanded .folder-btn {
    width: 100%;
    justify-content: center;
    padding: 0;
    height: 50px;
    position: relative;
}

.folder-btn svg {
    width: 16px;
    height: 16px;
}

.folder-logo {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar.expanded .folder-logo {
    width: 150px;
    height: auto;
    max-width: 150px;
}

.dropdown-icon {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.sidebar.expanded .dropdown-icon {
    transform: rotate(-90deg);
    position: absolute;
    right: 12px;
}

.folder-btn:hover {
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 8px 0;
    width: 100%;
    align-items: center;
}

.nav-icon {
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-icon-img {
    width: 70px;
    height: 62px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.sidebar.expanded .nav-icon-img {
    width: 200px;
    height: 56px;
}

.sidebar.expanded .nav-icon.active .nav-icon-img {
    width: 200px;
    height: 56px;
}

.nav-icon:hover {
    opacity: 0.8;
}

.nav-icon.active {
    opacity: 1;
}

.nav-icon.active .nav-icon-img {
    width: 70px;
    height: 62px;
}

/* 选中状态的左侧竖线 */
.nav-icon.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 44%;
    transform: translateY(-50%);
    width: 3px;
    height: 35px;
    background: linear-gradient(180deg, #1de95e 0%, #0fbc4a 50%, #1de95e 100%);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(29, 233, 94, 0.8), 0 0 20px rgba(29, 233, 94, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.sidebar.expanded .nav-icon.active::before {
    height: 30px;
    top: 43%;
    left: -20px;
    width: 4px;
    box-shadow: 0 0 15px rgba(29, 233, 94, 0.9), 0 0 25px rgba(29, 233, 94, 0.5);
}

/* 选中状态的阴影效果 */
.nav-icon.active::after {
    content: '';
    position: absolute;
    left: 10%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 85px;
    background-image: url('../images/btn_shadow.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sidebar.expanded .nav-icon.active::after {
    left: 10%;
    top: 43%;
    width: 220px;
    height: 70px;
    background-size: 100% 100%;
    filter: blur(1px);
    opacity: 0.95;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 12px;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.6;
}

/* ==================== Main Container ==================== */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: 0;
}

/* ==================== Top Bar ==================== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 40px;
    background: transparent;
    position: relative;
    z-index: 100;
    gap: 20px;
}

.search-container {
    flex: 0 1 550px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(90deg, #49628B 0%, #5E7BA9 50%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.search-icon-left {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 20px 10px 45px;
    background: rgba(89, 95, 210, 0.4);
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    background: rgba(89, 95, 210, 0.5);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(90, 80, 255, 0.15);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: rgba(89, 95, 210, 0.4);
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
    position: relative;
}

.user-profile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(90deg, #49628B 0%, #5E7BA9 50%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.user-profile:hover {
    background: rgba(89, 95, 210, 0.5);
}

.user-arrow {
    width: 14px;
    height: 14px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.user-profile.active .user-arrow {
    content: url('../images/icon_arrow_right_active.png');
    transform: rotate(90deg);
}

/* User Profile Popup */
.user-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    padding: 20px 24px;
    background: rgba(73, 76, 142, 0.95);
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
}

.user-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(180deg, #49628B 15%, #5E7BA9 50%, #5E7BA9 80%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.user-profile.active .user-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-popup-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 134, 255, 0.4);
    flex-shrink: 0;
}

.user-popup-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.user-popup-name {
    font-size: 18px;
    font-weight: 600;
    color: #1de95e;
    white-space: nowrap;
}

.user-popup-level {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.level-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 134, 255, 0.4);
}

.username {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.chevron-right {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.icon-button {
    width: 32px;
    height: 32px;
    background: rgba(89, 95, 210, 0.4);
    border: 1px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
    position: relative;
}

.icon-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(90deg, #49628B 0%, #5E7BA9 50%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.icon-button:hover {
    background: rgba(89, 95, 210, 0.5);
    color: #ffffff;
}

/* Settings Button */
.settings-button {
    position: relative;
}

.settings-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: rgba(73, 76, 142, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
    padding: 20px;
}

.settings-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(180deg, #49628B 15%, #5E7BA9 50%, #5E7BA9 80%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.settings-button.active .settings-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-item {
    margin-bottom: 16px;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.settings-label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.volume-icon {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#soundFxSlider {
    background: linear-gradient(to right, var(--theme-accent-green) 0%, var(--theme-accent-green) 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2) 100%) !important;
}

#bgMusicSlider {
    background: linear-gradient(to right, var(--theme-accent-green) 0%, var(--theme-accent-green) 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 100%) !important;
}

/* Notification Button */
.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #1de95e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(29, 233, 94, 0.6);
}

.notification-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: rgba(73, 76, 142, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
    overflow: hidden;
}

.notification-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg, #49628B 15%, #5E7BA9 50%, #5E7BA9 80%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.notification-button.active .notification-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    margin: 12px;
    background: rgba(89, 95, 210, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.6);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(89, 95, 210, 0.5);
    border-color: rgba(94, 123, 169, 0.8);
}

.notification-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    text-align: left;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    background: rgba(89, 95, 210, 0.4);
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
    position: relative;
}

.language-selector::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(90deg, #49628B 0%, #5E7BA9 50%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.language-selector:hover {
    background: rgba(89, 95, 210, 0.5);
}

.language-selector.active {
    background: rgba(29, 233, 94, 0.3);
    border-color: rgba(29, 233, 94, 0.4);
}

.language-selector.active::before {
    background: linear-gradient(90deg, var(--theme-accent-green) 0%, #0fbc4a 50%, var(--theme-accent-green) 100%);
}

.globe-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.lang-text {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.chevron-down {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.language-selector.active .chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(73, 76, 142, 0.95);
    border-radius: 19px;
    padding: 12px 0;
    min-width: 150px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
}

.language-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 19px;
    padding: 1px;
    background: linear-gradient(180deg, #49628B 15%, #5E7BA9 50%, #5E7BA9 80%, #49628B 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 10px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.language-option:hover {
    background: rgba(29, 233, 94, 0.2);
    color: #ffffff;
}

/* ==================== Game Display ==================== */
.game-display {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: auto;
}

.main-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(61, 40, 99, 0.3) 0%, rgba(26, 21, 51, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(30, 26, 61, 0.8) 0%, 
        rgba(45, 32, 85, 0.5) 15%, 
        rgba(61, 40, 99, 0.2) 35%,
        rgba(45, 32, 85, 0.1) 60%,
        rgba(30, 26, 61, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.game-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-top: 120px;
}

.game-logo {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
    position: relative;
    z-index: 2;
}

.download-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    bottom: 30px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.download-button .download-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: rgba(73, 98, 139, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-button:active .download-icon {
    filter: brightness(0) saturate(100%) invert(73%) sepia(48%) saturate(2331%) hue-rotate(93deg) brightness(96%) contrast(87%);
}

/* ==================== Diagonal Shadow Effects ==================== */
.diagonal-shadow-left {
    position: absolute;
    left: -8%;
    top: 2%;
    width: 60%;
    height: 120%;
    background: linear-gradient(to right, 
        rgba(74, 156, 237, 0.4) 0%, 
        rgba(74, 156, 237, 0.2) 60%, 
        transparent 100%);
    transform: rotate(38deg);
    transform-origin: top left;
    z-index: 2;
    pointer-events: none;
}

.diagonal-shadow-right {
    position: absolute;
    right: -8%;
    top: 2%;
    width: 60%;
    height: 120%;
    background: linear-gradient(to left, 
        rgba(124, 197, 240, 0.4) 0%, 
        rgba(124, 197, 240, 0.2) 60%, 
        transparent 100%);
    transform: rotate(-38deg);
    transform-origin: top right;
    z-index: 2;
    pointer-events: none;
}

/* ==================== Mobile Header & Bottom Nav (Hidden on Desktop) ==================== */
.mobile-header {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* ==================== Mobile Side Menu ==================== */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, rgba(45, 38, 84, 0.95) 0%, rgba(31, 26, 64, 0.95) 50%, rgba(26, 21, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px 100px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-side-menu.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 134, 255, 0.2);
}

.mobile-menu-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:active {
    opacity: 0.6;
    transform: scale(0.95);
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-user {
    background: linear-gradient(135deg, rgba(89, 95, 210, 0.35) 0%, rgba(73, 76, 142, 0.35) 100%);
    border: 1px solid rgba(139, 134, 255, 0.35);
    border-radius: 24px;
    padding: 20px;
    padding-left: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mobile-menu-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 134, 255, 0.4);
    flex-shrink: 0;
    position: absolute;
    top: -32px;
    left: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-username {
    font-size: 20px;
    font-weight: 600;
    color: #1de95e;
}

.mobile-menu-level {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-level-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-menu-section {
    margin-bottom: 24px;
    position: relative;
    padding-top: 0;
}

.mobile-menu-notification-btn,
.mobile-menu-settings-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(89, 95, 210, 0.5) 0%, rgba(73, 76, 142, 0.5) 100%);
    border: 1px solid rgba(139, 134, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: -32px;
    left: 0;
    z-index: 2;
}

.mobile-menu-notification-btn:active,
.mobile-menu-settings-btn:active {
    background: linear-gradient(135deg, rgba(89, 95, 210, 0.6) 0%, rgba(73, 76, 142, 0.6) 100%);
    transform: scale(0.95);
}

.mobile-menu-icon {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-notifications,
.mobile-menu-settings {
    background: rgba(89, 95, 210, 0.2);
    border: 1px solid rgba(139, 134, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 40px;
}

.mobile-menu-notification-item {
    background: rgba(89, 95, 210, 0.3);
    border: 1px solid rgba(94, 123, 169, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.mobile-menu-notification-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-notification-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.mobile-menu-settings-item {
    margin-bottom: 16px;
}

.mobile-menu-settings-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mobile-menu-settings-label {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.mobile-menu-volume-icon {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.mobile-menu-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(to right, #1de95e 0%, #1de95e 75%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.2) 100%);
}

.mobile-menu-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==================== Loading Animation ==================== */
.loading-animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    z-index: 1;
}

.loading-rotate {
    width: 380px;
    height: 380px;
    animation: rotate 4s linear infinite;
}

.loading-pulse {
    width: 190px;
    height: 190px;
    animation: splush 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes splush {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==================== Navigation Links ==================== */
/* 确保导航链接样式正常工作 */
a.nav-icon {
    text-decoration: none;
    color: inherit;
}

a.mobile-nav-btn {
    text-decoration: none;
    color: inherit;
}

/* 移动端导航激活状态 */
.mobile-nav-btn.active {
    opacity: 1;
}

.mobile-nav-btn.active .mobile-nav-icon {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(29, 233, 94, 0.5));
}

/* ==================== Computer 页面样式 (来自 computer.css) ==================== */

/* 为body添加computer背景 + 蓝色渐变遮罩 */
body.page-computer {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.7), rgba(20, 19, 63, 0.5)), 
        url('../images/bg_pc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* 隐藏main-container的默认背景 */
body.page-computer .main-container::before,
body.page-computer .main-container::after {
    display: none;
}

/* 移除main-container的背景，使用body的背景 */
body.page-computer .main-container {
    background: none;
}

/* Computer Section - 覆盖Bootstrap container样式 */
.computer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

/* Computer Card - 覆盖Bootstrap card样式 */
.computer-card {
    background: rgba(73, 76, 142, 0.8) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px !important;
    padding: 32px 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(94, 123, 169, 0.6) !important;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease;
    text-align: center;
    pointer-events: auto;
}

.computer-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theme-accent-green);
    margin: 0 0 28px 0;
    padding: 0;
    letter-spacing: 4px;
    position: relative;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.5);
    display: inline-block;
    width: auto;
}

.computer-title::before,
.computer-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: var(--theme-accent-green);
}

.computer-title::before {
    right: 100%;
    margin-right: 3px;
}

.computer-title::after {
    left: 100%;
    margin-left: 3px;
}

/* Computer Info */
.computer-info {
    margin-bottom: 0;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(94, 123, 169, 0.3) !important;
}

.info-row:last-child {
    border-bottom: none !important;
}

/* 覆盖Bootstrap的border-bottom */
.computer-card .border-bottom {
    border-bottom: 1px solid rgba(94, 123, 169, 0.3) !important;
}

.info-label {
    color: var(--theme-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.info-value {
    color: var(--theme-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    text-align: right;
}

/* Computer Input Wrapper */
.computer-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.computer-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    max-width: 480px;
    position: relative;
}

.computer-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 60px);
    bottom: 0;
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(
        90deg,
        rgba(73, 98, 139, 0.5) 0%,
        rgba(94, 123, 169, 1) 50%,
        rgba(73, 98, 139, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Computer Input - 覆盖Bootstrap form-control */
.computer-input {
    flex: 1;
    width: 100%;
    max-width: 380px;
    height: 53px;
    background: rgba(73, 76, 142, 0.8) !important;
    backdrop-filter: blur(10px);
    border: none !important;
    border-radius: 50px !important;
    color: var(--theme-text-primary) !important;
    padding: 0 20px !important;
    font-size: 0.92rem !important;
    font-family: 'Inter', sans-serif;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3) !important;
    position: relative;
    z-index: 1;
}

.computer-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.computer-input:focus {
    background: rgba(89, 95, 210, 0.5) !important;
    box-shadow: 0 0 10px 0 rgba(29, 233, 94, 0.5) !important;
}

/* Computer Icon */
.computer-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    margin-left: 15px !important;
    position: relative;
    z-index: 2;
}

/* Action Buttons - 覆盖Bootstrap btn样式 */
.computer-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.action-btn {
    width: 191px;
    height: 49px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: capitalize;
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
    background: linear-gradient(135deg, #5E7BA9 0%, #49628B 100%) !important;
    color: var(--theme-text-primary) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 4px 6px 15px 0px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #6a8bb5 0%, #547396 100%) !important;
}

.action-btn:active {
    transform: translateY(0) !important;
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
}

/* Character Images */
.character-left {
    position: fixed !important;
    left: 8%;
    bottom: 0 !important;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
}

.character-img-left {
    width: auto;
    height: 80vh;
    max-height: 720px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease 0.2s forwards;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    display: block;
    vertical-align: bottom;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.character-right {
    position: fixed !important;
    right: 2% !important;
    bottom: 0 !important;
    pointer-events: none;
    z-index: 1;
    line-height: 0;
}

.character-img-right {
    width: auto;
    height: 80vh;
    max-height: 720px;
    opacity: 0;
    animation: fadeInRight 0.8s ease 0.2s forwards;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    display: block;
    vertical-align: bottom;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 全局响应式样式 ==================== */

@media (max-width: 1200px) {
    .game-logo {
        max-width: 600px;
    }
    
    .loading-animation-container {
        gap: 100px;
    }
    
    .loading-rotate {
        width: 320px;
        height: 320px;
    }
    
    .loading-pulse {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 1024px) {
    /* Tablet landscape - keep desktop layout */
    .sidebar {
        width: 70px;
    }
    
    .nav-icon,
    .folder-btn {
        width: 48px;
        height: 48px;
    }
    
    .top-bar {
        padding: 15px 25px;
        gap: 15px;
    }
    
    .search-container {
        flex: 0 1 400px;
    }
    
    .game-logo {
        max-width: 500px;
    }
    
    .loading-animation-container {
        gap: 80px;
    }
    
    .loading-rotate {
        width: 260px;
        height: 260px;
    }
    
    .loading-pulse {
        width: 130px;
        height: 130px;
    }
}

/* Computer页面响应式 */
@media (max-width: 1600px) {
    .character-img-left,
    .character-img-right {
        height: 70vh;
        max-height: 600px;
    }
}

@media (max-width: 1400px) {
    .character-left,
    .character-right {
        display: none;
    }
    
    .computer-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    /* Allow scrolling on mobile */
body {
        overflow: auto;
        height: auto;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Hide desktop elements */
    .sidebar {
        display: none;
    }
    
    .top-bar {
        display: none;
    }
    
    /* Show mobile elements */
    .mobile-header {
        display: flex;
        flex-direction: column;
        padding: 12px 16px 14px 16px;
        background: linear-gradient(180deg, #2d2758 0%, #1f1a40 100%);
        position: relative;
        z-index: 1000;
        gap: 12px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-logo-row {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-logo {
        height: 28px;
        width: auto;
        object-fit: contain;
    }
    
    .mobile-search-row {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-search-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 11px 16px;
        background: rgba(89, 95, 210, 0.3);
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(90, 80, 255, 0.2);
    }
    
    .mobile-search-wrapper:active {
        background: rgba(89, 95, 210, 0.4);
        border-color: rgba(90, 80, 255, 0.3);
    }
    
    .mobile-search-icon {
        width: 20px;
        height: 20px;
        color: rgba(255, 255, 255, 0.5);
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu-btn:active {
        opacity: 0.6;
    }
    
    /* Adjust app layout */
    #app {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
    
    .main-container {
        padding-bottom: 80px;
        overflow: hidden;
        flex: 1;
        position: relative;
    }
    
    .main-container::before {
        background-attachment: fixed;
    }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        padding: 0 16px calc(12px + env(safe-area-inset-bottom)) 16px;
        background: transparent;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        min-height: calc(80px + env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-nav::before {
        content: '';
        position: absolute;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        height: 68px;
        background: rgba(89, 95, 210, 0.4);
        border-radius: 20px;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: -1;
    }
    
    .mobile-nav-btn {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.2s ease;
        border-radius: 12px;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }
    
    .mobile-nav-btn .mobile-nav-icon {
        width: 44px;
        height: 44px;
        object-fit: contain;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-btn:active {
        background: rgba(90, 80, 255, 0.3);
        color: rgba(255, 255, 255, 1);
    }
    
    /* Game content adjustments */
    .game-display {
        padding: 40px 16px 40px 16px;
        align-items: center;
        justify-content: center;
        flex: 1;
        display: flex;
        position: relative;
        overflow: hidden;
    }
    
    .game-content {
        position: relative;
        width: 100%;
        height: auto;
        background: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 3;
    }
    
    .game-logo {
        width: 80%;
        max-width: 340px;
        padding: 0;
        position: relative;
        z-index: 4;
        margin-top: 0;
        object-fit: contain;
    }
    
    .download-button {
        position: fixed;
        bottom: calc(100px + env(safe-area-inset-bottom));
        left: 30px;
        z-index: 999;
        width: 56px;
        height: 56px;
    }
    
    .download-button:active {
        transform: scale(0.95);
    }
    
    .download-button .download-icon {
        width: 56px;
        height: 56px;
    }
    
    /* Show diagonal shadows on mobile */
    .diagonal-shadow-left {
        display: block;
        position: absolute;
        left: -20%;
        top: -13%;
        width: 30%;
        height: 90%;
        background: linear-gradient(to right, 
            rgba(74, 156, 237, 0.35) 0%, 
            rgba(74, 156, 237, 0.18) 60%, 
            transparent 100%);
        transform: rotate(-42deg);
        transform-origin: top left;
        z-index: 2;
        pointer-events: none;
    }
    
    .diagonal-shadow-right {
        display: block;
        position: absolute;
        right: 60%;
        top: 25%;
        width: 30%;
        height: 90%;
        background: linear-gradient(to left, 
            rgba(124, 197, 240, 0.35) 0%, 
            rgba(124, 197, 240, 0.18) 60%, 
            transparent 100%);
        transform: rotate(47deg);
        transform-origin: bottom right;
        z-index: 2;
        pointer-events: none;
    }
    
    .loading-animation-container {
        gap: 50px;
        flex-wrap: wrap;
    }
    
    .loading-rotate {
        width: 180px;
        height: 180px;
    }
    
    .loading-pulse {
        width: 90px;
        height: 90px;
    }
    
    /* Computer页面移动端样式 */
    .computer-section {
        padding: 80px 10px 140px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: auto;
        min-height: auto;
    }

    .computer-card {
        padding: 18px 16px;
        max-width: 100%;
        width: 95%;
        border-radius: 16px;
        margin: 0 auto;
        position: relative;
    }

    .computer-title {
        font-size: 1rem;
        margin-bottom: 15px;
        letter-spacing: 2px;
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .computer-title::before,
    .computer-title::after {
        width: 35px;
    }

    .computer-actions {
        margin-top: 15px;
        position: absolute;
        bottom: -90px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }

    .action-btn {
        width: 100% !important;
        height: 38px !important;
        font-size: 0.8rem !important;
        border-radius: 35px !important;
    }

    .info-label,
    .info-value {
        font-size: 0.7rem;
    }
    
    .info-row {
        padding: 5px 0;
    }
    
    .computer-input-wrapper {
        max-width: 100%;
        gap: 10px;
    }
    
    .computer-input-wrapper::before {
        right: 40px;
    }
    
    .computer-input {
        width: 100% !important;
        height: 45px !important;
        font-size: 0.7rem !important;
        padding: 0 15px !important;
    }
    
    .computer-icon {
        width: 30px;
        height: 30px;
    }
    
    /* 移动端显示两侧人物 */
    .character-left {
        display: block !important;
        left: 0 !important;
        bottom: 100px;
        width: 130px;
    }
    
    .character-img-left {
        height: auto;
        max-height: 230px;
    }
    
    .character-right {
        display: block !important;
        right: -30px !important;
        bottom: 100px;
        width: 150px;
    }
    
    .character-img-right {
        height: auto;
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 10px 12px 12px 12px;
        gap: 10px;
    }
    
    .mobile-logo {
        height: 26px;
    }
    
    .mobile-search-wrapper {
        padding: 10px 14px;
    }
    
    .mobile-search-icon {
        width: 18px;
        height: 18px;
    }
    
    .mobile-bottom-nav {
        padding: 0 12px calc(10px + env(safe-area-inset-bottom)) 12px;
        min-height: calc(78px + env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-nav::before {
        left: 12px;
        right: 12px;
        height: 68px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        border-radius: 18px;
    }
    
    .mobile-nav-btn {
        padding: 6px;
    }
    
    .mobile-nav-btn .mobile-nav-icon {
        width: 38px;
        height: 38px;
    }
    
    .game-display {
        padding: 30px 12px 30px 12px;
    }
    
    .game-logo {
        width: 75%;
        max-width: 300px;
    }
    
    .loading-animation-container {
        gap: 40px;
    }
    
    .loading-rotate {
        width: 140px;
        height: 140px;
    }
    
    .loading-pulse {
        width: 70px;
        height: 70px;
    }
    
    .download-button {
        bottom: calc(95px + env(safe-area-inset-bottom));
        left: 24px;
        width: 50px;
        height: 50px;
    }
    
    .download-button .download-icon {
        width: 50px;
        height: 50px;
    }
    
    .diagonal-shadow-left {
        left: 60%;
        top: 25%;
        width: 31%;
        height: 88%;
        transform: rotate(-42deg);
    }
    
    .diagonal-shadow-right {
        right: 60%;
        top: 25%;
        width: 31%;
        height: 88%;
        transform: rotate(47deg);
    }
    
    /* Computer页面小屏幕样式 */
    .computer-section {
        padding: 70px 10px 130px;
    }

    .computer-card {
        padding: 15px 12px;
        border-radius: 14px;
        max-width: 100%;
        width: 90%;
    }

    .computer-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
        top: -55px;
    }

    .computer-title::before,
    .computer-title::after {
        width: 30px;
    }

    .info-row {
        padding: 4px 0;
    }
    
    .info-label,
    .info-value {
        font-size: 0.65rem;
    }

    .computer-actions {
        margin-top: 12px;
        bottom: -85px;
        width: 92%;
        max-width: 300px;
    }

    .action-btn {
        height: 36px !important;
        font-size: 0.75rem !important;
    }
    
    .computer-input-wrapper {
        gap: 8px;
    }
    
    .computer-input-wrapper::before {
        right: 33px;
    }
    
    .computer-input {
        height: 40px !important;
        font-size: 0.65rem !important;
        padding: 0 12px !important;
    }
    
    .computer-icon {
        width: 25px;
        height: 25px;
    }
    
    .character-left {
        left: 0 !important;
        bottom: 90px;
        width: 120px;
    }
    
    .character-img-left {
        max-height: 210px;
    }
    
    .character-right {
        right: -40px !important;
        bottom: 90px;
        width: 140px;
    }
    
    .character-img-right {
        max-height: 230px;
    }
}

/* ==================== Account 页面样式 (来自 account.css) ==================== */

/* 为body添加account背景 + 蓝色渐变遮罩 */
body.page-account {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.7), rgba(20, 19, 63, 0.5)), 
        url('../images/bg_account.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* 隐藏main-container的默认背景 */
body.page-account .main-container::before,
body.page-account .main-container::after {
    display: none;
}

/* 移除main-container的背景，使用body的背景 */
body.page-account .main-container {
    background: none;
}

/* Account Section */
.account-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

/* Account Card */
.account-card {
    background: rgba(73, 76, 142, 0.8) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px !important;
    padding: 32px 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(94, 123, 169, 0.6) !important;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease;
    text-align: center;
    pointer-events: auto;
}

.account-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theme-accent-green);
    margin: 0 0 28px 0;
    padding: 0;
    letter-spacing: 4px;
    position: relative;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.5);
    display: inline-block;
    width: auto;
}

.account-title::before,
.account-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: var(--theme-accent-green);
}

.account-title::before {
    right: 100%;
    margin-right: 3px;
}

.account-title::after {
    left: 100%;
    margin-left: 3px;
}

/* Account Info */
.account-info {
    margin-bottom: 0;
    text-align: left;
}

.account-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(94, 123, 169, 0.3) !important;
}

.account-info .info-row:last-child {
    border-bottom: none !important;
}

/* Referral Section */
.account-referral {
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(94, 123, 169, 0.3) !important;
}

.referral-item:last-child {
    border-bottom: none !important;
}

.referral-label {
    color: var(--theme-text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
}

.referral-value {
    color: var(--theme-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0;
    text-align: right;
}

/* Account Action Buttons */
.account-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.account-actions .action-btn {
    width: 191px;
    height: 49px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-transform: capitalize;
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
    background: linear-gradient(135deg, #5E7BA9 0%, #49628B 100%) !important;
    color: var(--theme-text-primary) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-actions .action-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 4px 6px 15px 0px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #6a8bb5 0%, #547396 100%) !important;
}

.account-actions .action-btn:active {
    transform: translateY(0) !important;
    box-shadow: 4px 4px 11px 0px rgba(0, 0, 0, 0.25) !important;
}

/* Account页面人物动画 */
body.page-account .character-img-left {
    animation: fadeInLeftAccount 0.8s ease 0.2s forwards;
}

@keyframes fadeInLeftAccount {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 0.5;
        transform: translateX(0);
    }
}

/* Account页面右侧人物特殊z-index */
body.page-account .character-right {
    z-index: 100 !important;
}

/* Account页面响应式 */
@media (max-width: 768px) {
    .account-section {
        padding: 80px 10px 140px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: auto;
        min-height: auto;
    }

    .account-card {
        padding: 18px 16px;
        max-width: 100%;
        width: 95%;
        border-radius: 16px;
        margin: 0 auto;
        position: relative;
    }

    .account-title {
        font-size: 1rem;
        margin-bottom: 15px;
        letter-spacing: 2px;
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }

    .account-title::before,
    .account-title::after {
        width: 35px;
    }

    .account-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin-top: 15px;
        position: absolute;
        bottom: -90px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }

    .account-actions .action-btn {
        width: calc(50% - 4px) !important;
        height: 38px !important;
        font-size: 0.8rem !important;
        border-radius: 35px !important;
    }
    
    .account-actions .action-btn.btn-booking {
        width: calc(50% - 4px) !important;
    }

    .account-info .info-label,
    .account-info .info-value {
        font-size: 0.7rem;
    }
    
    .referral-label,
    .referral-value {
        font-size: 0.7rem;
    }
    
    .account-info .info-row,
    .referral-item {
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .account-section {
        padding: 70px 10px 130px;
    }

    .account-card {
        padding: 15px 12px;
        border-radius: 14px;
        max-width: 100%;
        width: 90%;
    }

    .account-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
        top: -55px;
    }

    .account-title::before,
    .account-title::after {
        width: 30px;
    }

    .account-info .info-row,
    .referral-item {
        padding: 4px 0;
    }
    
    .account-info .info-label,
    .account-info .info-value,
    .referral-label,
    .referral-value {
        font-size: 0.65rem;
    }

    .account-actions {
        margin-top: 12px;
        gap: 6px;
        bottom: -85px;
        width: 92%;
        max-width: 300px;
    }

    .account-actions .action-btn {
        height: 36px !important;
        font-size: 0.75rem !important;
    }
}

/* ==================== Booking 页面样式 (来自 booking.css) ==================== */

/* 为body添加背景 + 深蓝色渐变遮罩 */
body.page-booking {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.8), rgba(30, 28, 80, 0.6)), 
        url('../images/bg_pc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 隐藏main-container的默认背景 */
body.page-booking .main-container::before,
body.page-booking .main-container::after {
    display: none;
}

/* 移除main-container的背景，使用body的背景 */
body.page-booking .main-container {
    background: none;
}

/* Booking Section */
.booking-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

/* Booking Card */
.booking-card {
    background: rgba(57, 63, 126, 0.75) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px !important;
    padding: 36px 48px 42px;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(94, 123, 169, 0.5) !important;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease;
    pointer-events: auto;
    margin-left: -80px;
}

.booking-card .card-body {
    padding: 0 !important;
}

/* Booking Title */
.booking-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theme-accent-green);
    margin: 0 0 32px 0;
    padding: 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.booking-title::before,
.booking-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--theme-accent-green), transparent);
    max-width: 80px;
}

.booking-title::before {
    background: linear-gradient(to right, transparent, var(--theme-accent-green));
}

.booking-title::after {
    background: linear-gradient(to left, transparent, var(--theme-accent-green));
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form .form-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.booking-form .form-row.time-type-row {
    justify-content: flex-start;
}

.booking-form .form-label {
    color: rgba(181, 199, 235, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    min-width: 110px;
    flex-shrink: 0;
    background: rgba(66, 72, 150, 0.6);
    border: 1px solid rgba(94, 123, 169, 0.4);
    border-radius: 50px;
    padding: 10px 16px;
    text-align: center;
    white-space: nowrap;
}

.booking-form .input-group {
    display: flex;
    gap: 12px;
    flex: 1;
}

/* 日期时间输入组 - 紧密连接 */
.booking-form .input-group.datetime-group {
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(66, 72, 150, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.4);
    transition: all 0.3s ease;
}

.booking-form .input-group.datetime-group:focus-within {
    border-color: rgba(29, 233, 94, 0.5);
    background: rgba(66, 72, 150, 0.5);
}

.booking-form .form-input {
    flex: 1;
    background: rgba(66, 72, 150, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.4);
    border-radius: 50px;
    padding: 12px 20px;
    color: rgba(220, 230, 250, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.booking-form .form-input:focus {
    border-color: rgba(29, 233, 94, 0.5);
    background: rgba(66, 72, 150, 0.5);
    color: rgba(220, 230, 250, 0.95);
}

.booking-form .form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-form .form-input::placeholder {
    color: rgba(181, 199, 235, 0.4);
}

/* 在datetime-group中的输入框样式 */
.booking-form .datetime-group .form-input {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 16px;
}

.booking-form .datetime-group .form-input:focus {
    background: transparent;
    border: none;
}

.booking-form .datetime-group .date-input {
    border-right: 1px solid rgba(94, 123, 169, 0.4);
    padding-left: 20px;
    padding-right: 40px;
    background-image: url('../images/icon_date.png');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
}

.booking-form .datetime-group .time-input {
    padding-right: 40px;
    background-image: url('../images/icon_time.png');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
}

/* 日期时间输入框 */
.booking-form .date-input {
    flex: 1.4;
}

.booking-form .time-input {
    flex: 1;
}

/* 日期输入框特殊样式 */
.booking-form input[type="date"],
.booking-form input[type="time"] {
    color-scheme: dark;
}

/* PC 和 Offer 输入框 */
.booking-form .pc-input {
    flex: 1;
}

.booking-form .offer-select {
    flex: 1;
}

/* Offer输入框样式 */
.booking-form .offer-input {
    cursor: pointer;
    user-select: none;
}

.booking-form .offer-input:disabled {
    cursor: not-allowed;
}

/* 添加按钮 - 独立样式 */
.booking-form .add-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-left: 12px;
}

.booking-form .add-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.booking-form .add-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.booking-form .add-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.booking-form .add-btn:disabled svg circle,
.booking-form .add-btn:disabled svg path {
    opacity: 0.4;
}

/* PC端添加按钮长条形样式 */
@media (min-width: 769px) {
    .booking-form .add-btn {
        background: rgba(66, 72, 150, 0.6);
        border: 1px solid rgba(94, 123, 169, 0.4);
        border-radius: 50px;
        padding: 12px 20px;
        flex: 0.55;
        width: auto;
        height: auto;
        margin-left: 18px;
    }
    
    .booking-form .add-btn:hover:not(:disabled) {
        background: rgba(66, 72, 150, 0.8);
    }
    
    .booking-form .add-btn:disabled {
        opacity: 0.5;
    }
    
    .booking-form .add-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Time Type Button */
.booking-form .time-type-btn {
    background: rgba(66, 72, 150, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.4);
    border-radius: 50px;
    padding: 12px 32px;
    color: rgba(220, 230, 250, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.booking-form .time-type-btn:hover {
    background: rgba(66, 72, 150, 0.5);
    border-color: rgba(94, 123, 169, 0.6);
}

.booking-form .time-type-btn.active {
    background: rgba(62, 101, 163, 0.7);
    border-color: rgba(29, 233, 94, 0.5);
    color: var(--theme-text-primary);
}

/* Bookings Count */
.booking-form .bookings-count {
    color: rgba(181, 199, 235, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding-left: 108px;
    margin-top: 2px;
}

/* Submit Button */
.booking-submit-btn {
    width: 100%;
    height: 52px !important;
    background: linear-gradient(135deg, #5E7BA9 0%, #49628B 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    color: var(--theme-text-primary) !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px;
    padding: 0 !important;
}

.booking-submit-btn:hover {
    background: linear-gradient(135deg, #6a8bb5 0%, #547396 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.booking-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Booking页面右侧人物 */
body.page-booking .character-right {
    z-index: 100 !important;
}

/* 自定义日期时间选择器颜色 */
.booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.booking-form input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* ========== Offer Modal ========== */
.offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 10, 36, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.offer-modal.active {
    opacity: 1;
    visibility: visible;
}

.offer-modal-content {
    background: rgba(40, 46, 98, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 50px 50px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(94, 123, 169, 0.5);
    position: relative;
    animation: modalSlideUp 0.4s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 233, 94, 0.5) rgba(66, 72, 150, 0.4);
}

.offer-modal-content::-webkit-scrollbar {
    width: 8px;
}

.offer-modal-content::-webkit-scrollbar-track {
    background: rgba(66, 72, 150, 0.4);
    border-radius: 10px;
}

.offer-modal-content::-webkit-scrollbar-thumb {
    background: rgba(29, 233, 94, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.offer-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 233, 94, 0.7);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: rgba(66, 72, 150, 0.6);
    border: 1px solid rgba(94, 123, 169, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-back-btn:hover {
    background: rgba(66, 72, 150, 0.8);
    transform: scale(1.05);
}

.offer-modal .modal-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--theme-accent-green);
    margin: 0 0 16px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.5);
}

.modal-description {
    text-align: center;
    color: rgba(220, 230, 250, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modal-search {
    position: relative;
    margin-bottom: 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.modal-search-input {
    width: 100%;
    background: rgba(66, 72, 150, 0.5);
    border: 1px solid rgba(94, 123, 169, 0.5);
    border-radius: 50px;
    padding: 14px 20px 14px 50px;
    color: rgba(220, 230, 250, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.modal-search-input:focus {
    border-color: rgba(29, 233, 94, 0.5);
    background: rgba(66, 72, 150, 0.6);
}

.modal-search-input::placeholder {
    color: rgba(181, 199, 235, 0.4);
}

.offer-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.offer-card {
    background: rgba(66, 72, 150, 0.4);
    border: 2px solid rgba(94, 123, 169, 0.4);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
}

.offer-card:hover {
    background: rgba(66, 72, 150, 0.5);
    border-color: rgba(94, 123, 169, 0.6);
    transform: translateY(-2px);
}

.offer-card.selected {
    background: rgba(66, 72, 150, 0.6);
    border-color: rgba(29, 233, 94, 0.8);
    box-shadow: 0 0 20px rgba(29, 233, 94, 0.2);
}

.offer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.offer-card-title {
    color: rgba(220, 230, 250, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.offer-card-time {
    color: rgba(181, 199, 235, 0.6);
    font-size: 0.85rem;
    white-space: nowrap;
}

.offer-card-price {
    color: var(--theme-accent-green);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
}

.offer-card-checkmark {
    position: absolute;
    top: 16px;
    right: 16px;
    animation: checkmarkBounce 0.3s ease;
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-select-btn {
    width: 100%;
    max-width: 400px;
    height: 56px;
    background: linear-gradient(135deg, #5E7BA9 0%, #49628B 100%);
    border: none;
    border-radius: 50px;
    color: var(--theme-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.modal-select-btn:hover {
    background: linear-gradient(135deg, #6a8bb5 0%, #547396 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modal-select-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Booking页面响应式 */
@media (max-width: 1600px) {
    body.page-booking .character-img-right {
        height: 75vh;
        max-height: 650px;
    }
    
    .booking-card {
        margin-left: -50px;
    }
}

@media (max-width: 1400px) {
    .booking-card {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    body.page-booking .character-right {
        display: none;
    }
    
    .booking-section {
        padding: 40px 30px;
    }
}

/* ==================== Shop 页面样式 (来自 shop.css) ==================== */

/* 为body添加背景 */
body.page-shop {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.8), rgba(30, 28, 80, 0.6)), 
        url('../images/bg_pc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.page-shop .main-container::before,
body.page-shop .main-container::after {
    display: none;
}

body.page-shop .main-container {
    background: none;
}

/* Shop Section */
.shop-section {
    display: flex;
    gap: 24px;
    padding: 20px 30px;
    height: calc(100vh - 100px);
    overflow: hidden;
    justify-content: flex-end;
    align-items: stretch;
    padding-right: 80px;
    position: relative;
    z-index: 5;
}

/* Left Panel */
.shop-left-panel {
    flex: 1;
    max-width: 750px;
    background: rgba(89, 95, 210, 0.35) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px !important;
    padding: 36px;
    border: 1px solid rgba(94, 123, 169, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-title {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1de95e;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.shop-title::before,
.shop-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #1de95e, transparent);
    max-width: 120px;
}

.shop-title::before {
    background: linear-gradient(to right, transparent, #1de95e);
}

.shop-title::after {
    background: linear-gradient(to left, transparent, #1de95e);
}

/* Shop Actions and Search */
.shop-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: nowrap;
}

.shop-actions .action-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    background: rgba(66, 72, 150, 0.6) !important;
    border: 1px solid rgba(94, 123, 169, 0.4) !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.shop-actions .action-btn:hover {
    background: rgba(66, 72, 150, 0.8) !important;
    border-color: rgba(94, 123, 169, 0.6) !important;
    transform: translateY(-2px);
}

.shop-actions .action-btn:active {
    transform: translateY(0);
}

.shop-actions .action-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.shop-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

.shop-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.shop-search-input {
    width: 100%;
    background: rgba(66, 72, 150, 0.5);
    border: 1px solid rgba(94, 123, 169, 0.4);
    border-radius: 50px;
    padding: 14px 20px 14px 50px;
    color: rgba(220, 230, 250, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.shop-search-input:focus {
    border-color: rgba(29, 233, 94, 0.5);
    background: rgba(66, 72, 150, 0.6);
}

.shop-search-input::placeholder {
    color: rgba(181, 199, 235, 0.5);
}

/* Shop Items Grid */
.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 233, 94, 0.5) rgba(66, 72, 150, 0.3);
}

.shop-items-grid::-webkit-scrollbar {
    width: 6px;
}

.shop-items-grid::-webkit-scrollbar-track {
    background: rgba(66, 72, 150, 0.3);
    border-radius: 10px;
}

.shop-items-grid::-webkit-scrollbar-thumb {
    background: rgba(29, 233, 94, 0.5);
    border-radius: 10px;
}

.shop-item-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: rgba(89, 95, 210, 0.25);
    border: 1.5px solid rgba(94, 123, 169, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shop-item-card:hover {
    background: rgba(89, 95, 210, 0.35);
    border-color: rgba(94, 123, 169, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Right Panel */
.shop-right-panel {
    width: 340px;
    flex-shrink: 0;
}

.order-panel {
    background: rgba(89, 95, 210, 0.35) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px !important;
    padding: 28px 24px;
    border: 1px solid rgba(94, 123, 169, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.order-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1de95e;
    margin: 0 0 24px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.3);
}

/* Order Items List */
.order-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 233, 94, 0.5) rgba(66, 72, 150, 0.3);
}

.order-items-list::-webkit-scrollbar {
    width: 4px;
}

.order-items-list::-webkit-scrollbar-track {
    background: rgba(66, 72, 150, 0.3);
    border-radius: 10px;
}

.order-items-list::-webkit-scrollbar-thumb {
    background: rgba(29, 233, 94, 0.5);
    border-radius: 10px;
}

.order-item {
    background: rgba(66, 72, 150, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: rgba(66, 72, 150, 0.5);
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-time {
    color: rgba(220, 230, 250, 0.95);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-location {
    color: rgba(181, 199, 235, 0.7);
    font-size: 0.7rem;
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(66, 72, 150, 0.5);
    border-radius: 20px;
    padding: 2px 4px;
}

.qty-btn {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    background: rgba(29, 233, 94, 0.3) !important;
    border: 1px solid rgba(29, 233, 94, 0.5) !important;
    border-radius: 50% !important;
    color: #1de95e !important;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.qty-btn:hover {
    background: rgba(29, 233, 94, 0.5) !important;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    color: rgba(220, 230, 250, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.order-item-price {
    color: #1de95e;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 28px;
    text-align: right;
}

.delete-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    background: rgba(255, 59, 92, 0.2) !important;
    border: 1px solid rgba(255, 59, 92, 0.4) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.delete-btn svg {
    flex-shrink: 0;
    display: block;
}

.delete-btn:hover {
    background: rgba(255, 59, 92, 0.4) !important;
    border-color: rgba(255, 59, 92, 0.6) !important;
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* Order Summary */
.order-summary {
    border-top: 1px solid rgba(94, 123, 169, 0.3);
    padding-top: 14px;
    margin-bottom: 18px;
}

.summary-row {
    margin-bottom: 8px;
}

.summary-row.total-row {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(94, 123, 169, 0.3);
    margin-bottom: 0;
}

.summary-label {
    color: rgba(181, 199, 235, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.summary-value {
    color: #1de95e;
    font-size: 0.95rem;
    font-weight: 700;
}

.total-row .summary-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.total-row .summary-value {
    font-size: 1.2rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-btn {
    width: 60px !important;
    height: 44px !important;
    min-width: 60px !important;
    min-height: 44px !important;
    background: rgba(66, 72, 150, 0.5) !important;
    border: 1px solid rgba(94, 123, 169, 0.4) !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(181, 199, 235, 0.7) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.payment-btn svg {
    flex-shrink: 0;
    display: block;
}

.payment-btn:hover {
    background: rgba(66, 72, 150, 0.7) !important;
    border-color: rgba(94, 123, 169, 0.6) !important;
    color: rgba(220, 230, 250, 0.9) !important;
}

.payment-btn.active {
    background: rgba(29, 158, 87, 0.5) !important;
    border-color: rgba(29, 233, 94, 0.6) !important;
    color: #1de95e !important;
    box-shadow: 0 0 15px rgba(29, 233, 94, 0.3);
}

/* Order Select Button */
.order-select-btn {
    width: 100%;
    height: 52px;
    background: rgba(29, 158, 87, 0.85) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.order-select-btn:hover:not(:disabled) {
    background: rgba(29, 158, 87, 0.95) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.order-select-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.order-select-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* Shop Action Buttons Container - 增加按钮间距 */
.order-panel .d-flex.gap-2 {
    gap: 12px !important;
}

/* Shop页面左侧人物 */
body.page-shop .character-left {
    z-index: 10 !important;
}

.character-img-left {
    animation: fadeInLeftShop 0.8s ease 0.2s forwards;
}

@keyframes fadeInLeftShop {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Shop响应式 */
@media (max-width: 1400px) {
    .shop-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    body.page-shop .character-left {
        display: none;
    }
}

/* ==================== Order 页面样式 (来自 order.css) ==================== */

/* 为body添加背景 */
body.page-order {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.8), rgba(30, 28, 80, 0.6)), 
        url('../images/order_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.page-order .main-container::before,
body.page-order .main-container::after {
    display: none;
}

body.page-order .main-container {
    background: none;
}

.order-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.order-card {
    background: rgba(89, 95, 210, 0.32) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px !important;
    padding: 32px 46px 40px;
    width: 950px;
    max-width: 85vw;
    max-height: calc(100vh - 120px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(94, 123, 169, 0.35) !important;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUpOrder 0.6s ease;
    pointer-events: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUpOrder {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.order-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1de95e;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.order-title::before,
.order-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #1de95e, transparent);
    max-width: 80px;
}

.order-title::before {
    background: linear-gradient(to right, transparent, #1de95e);
}

.order-title::after {
    background: linear-gradient(to left, transparent, #1de95e);
}

/* Search Box */
.order-search {
    position: relative;
}

.order-search .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.7;
}

.order-search-input {
    width: 100%;
    background: rgba(66, 72, 150, 0.4);
    border: 1px solid rgba(94, 123, 169, 0.3);
    border-radius: 50px;
    padding: 12px 20px 12px 48px;
    color: rgba(220, 230, 250, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s ease;
}

.order-search-input:focus {
    border-color: rgba(29, 233, 94, 0.5);
    background: rgba(66, 72, 150, 0.5);
}

.order-search-input::placeholder {
    color: rgba(181, 199, 235, 0.55);
}

/* Order Table */
.order-table-wrapper {
    flex: 1;
    overflow: hidden;
    background: rgba(89, 95, 210, 0.27);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 8px 68px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(68px);
    border: 1px solid rgba(94, 123, 169, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.order-table {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Table Header */
.table-header {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1.2fr 1.5fr 0.8fr 1.2fr 0.8fr;
    gap: 10px;
    background: rgba(59, 65, 153, 0.7);
    border-radius: 16px;
    padding: 16px 40px;
    margin: 0 -30px 8px -30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.table-header .table-cell {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(205, 215, 240, 1);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Table Body */
.table-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 233, 94, 0.5) rgba(66, 72, 150, 0.3);
}

.table-body::-webkit-scrollbar {
    width: 8px;
}

.table-body::-webkit-scrollbar-track {
    background: rgba(66, 72, 150, 0.3);
    border-radius: 4px;
}

.table-body::-webkit-scrollbar-thumb {
    background: rgba(29, 233, 94, 0.5);
    border-radius: 4px;
}

.table-body::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 233, 94, 0.7);
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1.2fr 1.5fr 0.8fr 1.2fr 0.8fr;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 48px;
    align-items: center;
}

@media (min-width: 769px) {
    .table-row {
        transition: all 0.3s ease;
    }
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(66, 72, 150, 0.3);
    border-radius: 8px;
}

.table-row .table-cell {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(220, 230, 250, 0.95);
    white-space: nowrap;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.25);
    color: #ffca28;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-badge.completed {
    background: rgba(29, 233, 94, 0.25);
    color: #1de95e;
    border: 1px solid rgba(29, 233, 94, 0.4);
}

.status-badge.cancelled {
    background: rgba(244, 67, 54, 0.25);
    color: #ff5252;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
    flex-shrink: 0;
    margin-top: auto;
}

.pagination-btn {
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    background: rgba(66, 72, 150, 0.45) !important;
    border: 1px solid rgba(94, 123, 169, 0.3) !important;
    border-radius: 12px !important;
    color: rgba(220, 230, 250, 0.9) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.pagination-btn svg {
    flex-shrink: 0;
    display: block;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: rgba(66, 72, 150, 0.65) !important;
    border-color: rgba(94, 123, 169, 0.45) !important;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: rgba(29, 158, 87, 0.8) !important;
    border-color: rgba(29, 233, 94, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(29, 233, 94, 0.35);
}

.pagination-btn.dots {
    cursor: default;
    background: transparent !important;
    border: none !important;
}

.pagination-btn.dots:hover {
    background: transparent !important;
    transform: none;
}

/* Download Button - 已移除 */

/* Order页面角色 */
body.page-order .character-left {
    z-index: 1 !important;
}

body.page-order .character-right {
    z-index: 100 !important;
}

.character-img-left {
    width: auto;
    height: 65vh;
    max-height: 550px;
    opacity: 0;
    animation: fadeInLeftOrder 0.8s ease 0.2s forwards;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
    display: block;
}

@keyframes fadeInLeftOrder {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 0.5;
        transform: translateX(0);
    }
}

.character-img-right {
    width: auto;
    height: 65vh;
    max-height: 550px;
    opacity: 0;
    animation: fadeInRightOrder 0.8s ease 0.2s forwards;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
    display: block;
}

@keyframes fadeInRightOrder {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Order响应式 */
@media (max-width: 1200px) {
    body.page-order .character-left,
    body.page-order .character-right {
        display: none;
    }
}

/* ==================== History 页面样式 (来自 history.css) ==================== */

/* 为body添加背景 */
body.page-history {
    background-image: 
        linear-gradient(to bottom, rgba(20, 19, 63, 0.8), rgba(30, 28, 80, 0.6)), 
        url('../images/history_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body.page-history .main-container::before,
body.page-history .main-container::after {
    display: none;
}

body.page-history .main-container {
    background: none;
}

.history-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.history-card {
    background: rgba(89, 95, 210, 0.32) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px !important;
    padding: 32px 46px 40px;
    width: 950px;
    max-width: 85vw;
    max-height: calc(100vh - 120px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(94, 123, 169, 0.35) !important;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUpHistory 0.6s ease;
    pointer-events: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUpHistory {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.history-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1de95e;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 10px rgba(29, 233, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.history-title::before,
.history-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #1de95e, transparent);
    max-width: 80px;
}

.history-title::before {
    background: linear-gradient(to right, transparent, #1de95e);
}

.history-title::after {
    background: linear-gradient(to left, transparent, #1de95e);
}

/* Summary Cards */
.summary-cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0 8px;
}

.summary-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(220, 230, 250, 0.8);
    font-weight: 500;
}

.summary-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1de95e;
    font-weight: 700;
}

.summary-item-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.time-period {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(220, 230, 250, 0.8);
    font-weight: 500;
}

/* History Table */
.history-table-wrapper {
    flex: 1;
    overflow: hidden;
    background: rgba(89, 95, 210, 0.27);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 8px 68px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(68px);
    border: 1px solid rgba(94, 123, 169, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.history-table {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* History特定表头 */
.history-table .table-header {
    grid-template-columns: 1.5fr 1.5fr 1fr 1.2fr 1fr 1fr 1fr;
}

/* History特定表行 */
.history-table .table-row {
    grid-template-columns: 1.5fr 1.5fr 1fr 1.2fr 1fr 1fr 1fr;
}

.no-data {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(181, 199, 235, 0.7);
    font-weight: 500;
}

/* History页面角色 */
body.page-history .character-left {
    left: 6% !important;
    z-index: -115 !important;
}

body.page-history .character-left .character-img-left {
    z-index: -115 !important;
}

body.page-history .character-right {
    right: 2% !important;
    z-index: 10 !important;
}

/* History响应式 */
@media (max-width: 1200px) {
    body.page-history .character-left,
    body.page-history .character-right {
        display: none;
    }
}

/* ==================== 隐藏功能 ==================== */
/* 隐藏声音设置按钮和弹出框 */
.settings-button,
#settingsButton {
    display: none !important;
}

/* 隐藏移动端声音设置部分 */
.mobile-menu-section .mobile-menu-settings-btn,
.mobile-menu-section .mobile-menu-settings {
    display: none !important;
}

/* 隐藏通知按钮和弹出框 */
.notification-button,
#notificationButton {
    display: none !important;
}

/* 隐藏移动端通知部分 */
.mobile-menu-section .mobile-menu-notification-btn,
.mobile-menu-section .mobile-menu-notifications {
    display: none !important;
}

/* ==================== SweetAlert 成功提示框样式优化 ==================== */
.sweet-alert {
    z-index: 99999 !important;
}

/* 只针对成功图标：强制隐藏所有原有的元素和伪元素 */
.sa-icon.sa-success .sa-line,
.sa-icon.sa-success .sa-placeholder,
.sa-icon.sa-success .sa-fix {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 只针对成功图标：先清空伪元素内容 */
.sa-icon.sa-success::before,
.sa-icon.sa-success::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
    border: none !important;
}

/* 只针对成功图标：重置为绿色圆形 */
.sa-icon.sa-success[style*="display: block"] {
    border: none !important;
    background: #1de95e !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(29, 233, 94, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    font-size: 50px !important;
    font-weight: bold !important;
    color: #fff !important;
}

/* 只针对成功图标：用after创建白色对号 */
.sa-icon.sa-success.animate::after {
    content: "✓" !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    font-size: 50px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    background: none !important;
    border: none !important;
    width: 80px !important;
    height: 80px !important;
}

/* 错误图标保持默认样式 - 不做任何修改 */
.sa-icon.sa-error {
    /* 保持原有样式，不添加任何覆盖 */
}

/* 警告图标保持默认样式 */
.sa-icon.sa-warning {
    /* 保持原有样式，不添加任何覆盖 */
}

/* ==================== 订单和历史记录页面移动端响应式 ==================== */
@media (max-width: 768px) {
    /* 订单和历史卡片移动端适配 */
    .order-card,
    .history-card {
        padding: 12px !important;
        max-width: 95vw !important;
        max-height: calc(100vh - 140px) !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 80px auto 20px !important;
        width: calc(100% - 24px) !important;
        animation: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* 标题和搜索框 */
    .order-title,
    .history-title {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        letter-spacing: 1.5px !important;
    }
    
    .order-search {
        margin-bottom: 12px;
    }
    
    .order-search-input {
        padding: 10px 12px 10px 36px !important;
        font-size: 0.8rem !important;
    }
    
    /* 历史记录的汇总卡片 */
    .summary-cards {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .summary-item {
        padding: 8px 12px;
    }
    
    .summary-label {
        font-size: 0.7rem !important;
    }
    
    .summary-value {
        font-size: 0.85rem !important;
    }
    
    .time-period {
        font-size: 0.75rem !important;
    }
    
    /* 表格容器移动端适配 */
    .order-table-wrapper,
    .history-table-wrapper {
        flex: 1 !important;
        overflow: hidden !important;
        padding: 8px !important;
        margin-bottom: 0;
        min-height: 0 !important;
    }
    
    /* 表格移动端适配 */
    .order-table,
    .history-table {
        font-size: 0.7rem;
        flex: 1 !important;
        min-height: 0 !important;
    }
    
    /* 表头移动端调整 - 保持grid布局 */
    .table-header {
        padding: 8px 10px !important;
        margin: 0 -8px 6px -8px !important;
        gap: 4px !important;
    }
    
    .table-header .table-cell {
        font-size: 0.65rem !important;
        letter-spacing: 0.1px !important;
    }
    
    /* 表格主体保持PC样式的grid布局 */
    .table-body {
        overflow-y: auto !important;
        flex: 1 !important;
        min-height: 0 !important;
    }
    
    /* 表格行移动端调整 - 保持grid布局，不改为flex */
    .table-row {
        padding: 6px 10px !important;
        gap: 4px !important;
        min-height: 38px !important;
        display: grid !important;
    }
    
    .table-row .table-cell {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* 订单表格列宽移动端优化 - 保持grid */
    .order-table .table-header,
    .order-table .table-row {
        grid-template-columns: 0.5fr 1.5fr 0.8fr 1fr 0.6fr 0.9fr 0.7fr !important;
    }
    
    /* 历史记录表格列宽移动端优化 - 保持grid */
    .history-table .table-header,
    .history-table .table-row {
        grid-template-columns: 1.3fr 1fr 0.7fr 0.9fr 0.6fr 0.7fr 0.6fr !important;
    }
    
    /* 状态徽章 */
    .status-badge {
        padding: 3px 8px !important;
        font-size: 0.6rem !important;
    }
    
    /* 移动端分页 */
    .order-card .pagination,
    .history-card .pagination {
        padding: 12px 0 0 !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        margin-top: auto !important;
    }
    
    .pagination-btn {
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: 0.7rem !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .order-card,
    .history-card {
        padding: 10px !important;
        width: calc(100% - 20px) !important;
        max-height: calc(100vh - 130px) !important;
    }
    
    .order-title,
    .history-title {
        font-size: 1rem !important;
    }
    
    .order-table-wrapper,
    .history-table-wrapper {
        padding: 6px !important;
    }
    
    .table-header {
        padding: 6px 8px !important;
        margin: 0 -6px 6px -6px !important;
        gap: 3px !important;
    }
    
    .table-header .table-cell {
        font-size: 0.6rem !important;
    }
    
    .table-row {
        padding: 5px 8px !important;
        gap: 3px !important;
        min-height: 36px !important;
    }
    
    .table-row .table-cell {
        font-size: 0.6rem !important;
    }
    
    /* 订单表格列宽小屏优化 */
    .order-table .table-header,
    .order-table .table-row {
        grid-template-columns: 0.4fr 1.4fr 0.7fr 0.9fr 0.5fr 0.8fr 0.6fr !important;
    }
    
    /* 历史记录表格列宽小屏优化 */
    .history-table .table-header,
    .history-table .table-row {
        grid-template-columns: 1.2fr 0.9fr 0.6fr 0.8fr 0.5fr 0.6fr 0.5fr !important;
    }
    
    .status-badge {
        padding: 2px 6px !important;
        font-size: 0.55rem !important;
    }
    
    .pagination-btn {
        min-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 0.65rem !important;
    }
}

/* ==================== Select 下拉框样式 ==================== */
select,
select.form-control,
select.form-select {
    padding: 12px 40px 12px 16px !important;
    background: var(--theme-bg-input) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    color: var(--theme-text-primary) !important;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
}

select:hover,
select.form-control:hover,
select.form-select:hover {
    background: var(--theme-bg-input-focus) !important;
    border-color: var(--theme-border-focus) !important;
}

select:focus,
select.form-control:focus,
select.form-select:focus {
    background: var(--theme-bg-input-focus) !important;
    border-color: var(--theme-accent-green) !important;
    box-shadow: 0 0 0 3px rgba(29, 233, 94, 0.1) !important;
}

select:disabled,
select.form-control:disabled,
select.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(30, 35, 80, 0.2) !important;
}

/* Select 选项样式 */
select option {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    padding: 12px 16px;
}

select option:hover,
select option:focus {
    background: var(--theme-primary) !important;
    color: #ffffff;
}

select option:checked {
    background: linear-gradient(135deg, var(--theme-accent-green) 0%, var(--theme-accent-green-dark) 100%);
    color: #ffffff;
    font-weight: 600;
}

/* ==================== Bootstrap Dropdown Menu 样式 ==================== */
.dropdown-menu {
    background: var(--theme-bg-secondary) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    margin-top: 4px !important;
    top: 100% !important;
    left: 0 !important;
    opacity: 0;
    transform-origin: top center;
    pointer-events: none;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    animation: dropdownFadeIn 0.15s ease-out forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Dropdown 项目样式 */
.dropdown-item {
    padding: 10px 16px !important;
    color: var(--theme-text-primary) !important;
    background: transparent !important;
    border-radius: 8px !important;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    cursor: pointer;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(89, 95, 210, 0.3) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.dropdown-item:active {
    background: rgba(89, 95, 210, 0.5) !important;
    color: #ffffff !important;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #5E7BA9 0%, #49628B 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: var(--theme-text-muted) !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-item.disabled:hover,
.dropdown-item:disabled:hover {
    background: transparent !important;
    transform: none;
}

/* Dropdown 分隔线 */
.dropdown-divider {
    border-top: 1px solid var(--theme-border) !important;
    margin: 8px 0 !important;
    opacity: 0.5;
}

/* Dropdown 标题 */
.dropdown-header {
    padding: 8px 16px !important;
    color: var(--theme-text-secondary) !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown 按钮样式 */
.btn.dropdown-toggle:not(.action-btn) {
    position: relative;
    padding-right: 40px !important;
}

.btn.dropdown-toggle:not(.action-btn)::after {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    transition: transform 0.3s ease;
}

.btn.dropdown-toggle:not(.action-btn)[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Shop 页面的 action-btn 不需要额外的 padding 和箭头 */
.btn.action-btn.dropdown-toggle {
    padding-right: inherit !important;
}

.btn.action-btn.dropdown-toggle::after {
    display: none;
}

/* Dropdown 在导航栏中的样式 */
.navbar .dropdown-menu {
    margin-top: 12px;
}

.navbar .dropdown-item {
    padding: 12px 20px !important;
}

/* 成功状态的 Dropdown 项目（例如：Offers） */
.dropdown-item.text-success {
    color: var(--theme-accent-green) !important;
}

.dropdown-item.text-success:hover,
.dropdown-item.text-success:focus {
    background: rgba(29, 233, 94, 0.2) !important;
    color: var(--theme-accent-green) !important;
}

/* 自定义 Dropdown Menu 位置调整 */
.dropdown-menu[x-placement="bottom-start"] {
    will-change: transform;
    position: absolute;
}

/* Dropdown 在弹窗中的样式 */
.modal .dropdown-menu {
    z-index: 1060;
}

/* ==================== Dropdown 响应式调整 ==================== */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 200px;
        max-width: calc(100vw - 32px);
    }
    
    .dropdown-item {
        padding: 12px 16px !important;
        font-size: 14px;
    }
    
    select,
    select.form-control,
    select.form-select {
        padding: 10px 36px 10px 14px !important;
        font-size: 14px;
    }
}
/* Member Portal PC Select Modal Width */
@media (min-width: 769px) {
	.myModalPcSelect .modal-dialog {
		max-width: 800px !important;
		width: 90% !important;
		margin: 1.75rem auto !important;
	}
}

/* Select PC Modal Styles */
.myModalPcSelect .modal-content {
	background: rgba(45, 39, 88, 0.95) !important;
	border: 1px solid rgba(139, 134, 255, 0.3) !important;
	border-radius: 20px !important;
	backdrop-filter: blur(20px) !important;
	color: #fff !important;
}

.myModalPcSelect .modal-header {
	border-bottom: 1px solid rgba(94, 123, 169, 0.3) !important;
	padding: 20px 24px !important;
}

.myModalPcSelect .modal-title {
	color: #1de95e !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	text-shadow: 0 0 15px rgba(29, 233, 94, 0.5) !important;
	letter-spacing: 1px !important;
}

.myModalPcSelect .close {
	color: #ffffff !important;
	opacity: 0.8 !important;
	text-shadow: none !important;
	font-size: 2rem !important;
}

.myModalPcSelect .close:hover {
	opacity: 1 !important;
	color: #1de95e !important;
}

.myModalPcSelect .modal-body {
	padding: 24px !important;
}

.myModalPcSelect .form-label {
	color: rgba(255, 255, 255, 0.85) !important;
	font-weight: 500 !important;
	padding-top: 7px !important;
}

.myModalPcSelect .form-control {
	background: rgba(66, 72, 150, 0.6) !important;
	border: 1px solid rgba(94, 123, 169, 0.4) !important;
	color: #fff !important;
	border-radius: 12px !important;
}

.myModalPcSelect .form-control:focus {
	background: rgba(66, 72, 150, 0.8) !important;
	border-color: #1de95e !important;
	box-shadow: 0 0 10px rgba(29, 233, 94, 0.3) !important;
}

.myModalPcSelect .modal-footer {
	border-top: 1px solid rgba(94, 123, 169, 0.3) !important;
	padding: 20px 24px !important;
	justify-content: center !important;
}

.myModalPcSelect .btn-info {
	background: linear-gradient(135deg, rgba(29, 233, 94, 0.9), rgba(22, 180, 72, 0.9)) !important;
	border: none !important;
	color: #ffffff !important;
}

.myModalPcSelect .btn-default {
	background: rgba(94, 123, 169, 0.3) !important;
	border: 1px solid rgba(94, 123, 169, 0.5) !important;
	color: #ffffff !important;
}

/* PC List Styles */
.myModalPcSelect .btn.col-3 {
	font-size: 13px !important;
	padding: 6px 6px !important;
	white-space: nowrap !important;
	overflow: visible !important;
}

.myModalPcSelect .btn-offline {
	color: #888888;
	border-color: #888888;
}

.myModalPcSelect .btn-mediumpurple {
	color: mediumpurple;
	border-color: mediumpurple;
}

/* 修复 select 下拉框文字显示不全 */
.myModalPcSelect .form-control.dropdown-toggle {
	height: auto !important;
	min-height: 38px !important;
	padding: 8px 12px !important;
	line-height: 1.5 !important;
	white-space: normal !important;
	word-wrap: break-word !important;
}
