* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e6e6ff;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 背景粒子效果 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* 科技感背景装饰 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes neonGlow {
    from { filter: brightness(1) drop-shadow(0 0 5px rgba(0, 210, 255, 0.5)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 210, 255, 0.8)); }
}

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

/* 霓虹文字效果 */
.neon-text {
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.neon-text-up {
    display: block;
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    animation: neonGlow 2s ease-in-out infinite alternate;
    font-size: 1.2rem;
    margin: 0;
}

.subtitle-up {
    display: block;
    font-size: 0.7rem;
    color: #b0b0ff;
    letter-spacing: 1px;
    font-weight: 300;
    margin-top: 2px;
}

/* 主要内容区域样式 */
main {
    margin-top: 0;
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 100vh;
}

.content-wrapper {
    margin-top: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

/* 顶部导航栏样式 */
    header {
        display: none;
    }

/* 调整菜单按钮位置 */
header .menu-btn {
    position: absolute;
    left: 1rem;
}

/* 确保logo居中 */
header .logo {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e6e6ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}


/* Logo容器样式 */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3), transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo .logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
    transition: all 0.3s ease;
}

.logo .logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .subtitle {
    font-size: 0.7rem;
    color: #b0b0ff;
    letter-spacing: 1px;
    font-weight: 300;
    margin-top: 2px;
}

/* 侧边栏标题文字样式 */
.sidebar-title h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* 磨砂玻璃效果容器 */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* 霓虹边框效果 */
.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #00d2ff, #7a3fff, #ff00cc) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
}

/* 磨砂玻璃效果 */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: fixed;
    transition: all 0.3s ease;
}

.glass-panel::before {
    display: none; 
}

.glass-panel:hover::before {
    opacity: 1;
}

.box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
}

/* 七夕活动入口样式 - 科技风 */
.qixi-promo {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(122, 63, 255, 0.15) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: techPulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.qixi-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    animation: techScan 4s infinite;
}

@keyframes techPulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 210, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 210, 255, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 210, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: rgba(0, 210, 255, 0.6);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 210, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(0, 210, 255, 0.3);
    }
}

@keyframes techScan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.qixi-link {
    display: block;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    position: relative;
    z-index: 1;
}

.qixi-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
    color: #00d2ff;
}

.qixi-promo p {
    color: #b0b0ff;
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(176, 176, 255, 0.3);
    position: relative;
    z-index: 1;
}

.qixi-promo i {
    color: #ff6b9d;
    animation: techHeartbeat 2s infinite;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
}

@keyframes techHeartbeat {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
    }
    25% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(255, 107, 157, 0.8);
    }
    50% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
    }
    75% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(255, 107, 157, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
    }
}

.box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* 输入框样式 */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e6e6ff;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

input[type="text"]::placeholder, input[type="password"]::placeholder, input[type="email"]::placeholder {
    color: #b0b0ff;
    opacity: 0.8;
}

/* 霓虹按钮效果 */
.neon-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* 玻璃按钮效果 */
.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e6e6ff;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #00ccff, #000);
    transition: 1s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

/* 彩带飘落效果 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 确保彩带不会干扰其他元素的交互 */
    z-index: -1; /* 将彩带放在最底层 */
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #f39c12;
    border-radius: 5px;
    animation: fall 2s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

input:checked + .slider {
    background: linear-gradient(to right, #000, #00ccff);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 100%;
}

@media screen and (max-width: 480px) {
    .switch {
        width: 40px;
        height: 22px;
    }
    .slider:before {
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
    }
    input:checked + .slider:before {
        transform: translateX(10px);
    }
}

.result {
    font-size: 10px;
    color: #0077b6;
    margin-top: 20px;
    line-height: 1.0;
}

.result-error {
    color: red;
    font-size: 10px;
    margin-top: 20px;
    line-height: 1.0;
}

.input-group {
    position: relative;
    display: flex;
}

.input-group .toggle-password {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

a {
    color: #5b92e5;
    font-size: 10px;
    text-decoration: none;
    margin-top: 20px;
    line-height: 1.0;
}

/* 用户信息区域样式 - 科技风优化 */
.user-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(122, 63, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, 0.5) transparent;
}

.user-info::before {
    content: '';

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
}

.user-info-header {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.card-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.8), rgba(122, 63, 255, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-btn:hover {
    background: linear-gradient(135deg, rgba(0, 210, 255, 1), rgba(122, 63, 255, 0.8));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6);
    border-color: rgba(0, 210, 255, 0.8);
}

.user-info img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #add8e6;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 用户信息文字样式 */
.user-info .username {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    text-align: center;
}



.user-info h1 {
    color: #ffffff;
    margin: 30px 0 15px;
    font-size: 20px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info h2 {
    color: #b0b0ff;
    font-size: 18px;
    font-weight: normal;
}

.user-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 10px;
}

.user-info p {
    color: #c0c0ff;
}

.user-info .orders, .user-info .points {
    margin-top: 20px;
}

.user-info .orders h3, .user-info .points h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.user-info .orders ul, .user-info .points ul {
    list-style-type: none;
    padding: 0;
}

.user-info .orders ul li, .user-info .points ul li {
    margin-bottom: 10px;
}





/* 会员卡片样式 */
.member-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    perspective: 1000px;
    z-index: 1000;
    transition: transform 0.3s;
}

.member-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.member-card .card-inner.flipped {
    transform: rotateY(180deg);
}

.member-card .card-front,
.member-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s;
}

.member-card .card-front {
    background: linear-gradient(135deg, #f9f9f9, #ffffff, #f9f9f9);
    padding: 20px;
    justify-content: space-between;
}

.member-card .card-back {
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0, #e0e0e0);
    transform: rotateY(180deg);
    padding: 20px;
}

/* 卡片正面布局 */
.member-card .card-front .username {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.member-card .card-front .qr-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.member-card .card-front .qr-section img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-card .card-front .barcode-section {
    text-align: center;
}

.member-card .card-front .barcode-section .studio-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.member-card .card-front .barcode-section .barcode {
    width: 200px;
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 2px,
        #fff 2px,
        #fff 4px
    );
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
}

.member-card .card-front .barcode-section .barcode::after {
    content: attr(data-code);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #666;
    font-family: monospace;
    letter-spacing: 2px;
}



.member-card .studio-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 15px;
}

/* 背景遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

/* 卡片控制按钮 */
.member-card .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

.member-card .close-button:hover {
    background: linear-gradient(135deg, rgba(255, 69, 69, 0.8), rgba(255, 26, 26, 0.6));
    border-color: rgba(255, 69, 69, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 69, 69, 0.4);
}

.member-card .flip-button {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.8), rgba(122, 63, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    z-index: 10000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.member-card .flip-button:hover {
    background: linear-gradient(135deg, rgba(0, 210, 255, 1), rgba(122, 63, 255, 1));
    border-color: rgba(0, 210, 255, 0.8);
    transform: translateX(-50%) translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.5);
}

/* 代理卡片的金色光效果 */
.member-card.agent .card-inner {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                0 0 40px rgba(255, 215, 0, 0.3),
                0 0 60px rgba(255, 215, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.6);
    animation: goldGlow 4s ease-in-out infinite alternate;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.3),
                    0 0 60px rgba(255, 215, 0, 0.15),
                    0 8px 32px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
                    0 0 60px rgba(255, 215, 0, 0.4),
                    0 0 90px rgba(255, 215, 0, 0.2),
                    0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

.member-card.agent .card-front {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #fff700 50%, #ffed4e 75%, #ffd700 100%);
    background-size: 200% 200%;
    animation: goldShimmer 4s ease-in-out infinite;
    color: #333;
    position: relative;
    overflow: hidden;
}

.member-card.agent .card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: goldSweep 3s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes goldSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.member-card.agent .card-back {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 25%, #ffd700 50%, #daa520 75%, #b8860b 100%);
    background-size: 200% 200%;
    animation: goldShimmer 4s ease-in-out infinite reverse;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 会员卡片的银色光效果 */
.member-card.member .card-inner {
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6),
                0 0 40px rgba(192, 192, 192, 0.3),
                0 0 60px rgba(192, 192, 192, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(192, 192, 192, 0.6);
    animation: silverGlow 4s ease-in-out infinite alternate;
}

@keyframes silverGlow {
    0% {
        box-shadow: 0 0 20px rgba(192, 192, 192, 0.6),
                    0 0 40px rgba(192, 192, 192, 0.3),
                    0 0 60px rgba(192, 192, 192, 0.15),
                    0 8px 32px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(192, 192, 192, 0.8),
                    0 0 60px rgba(192, 192, 192, 0.4),
                    0 0 90px rgba(192, 192, 192, 0.2),
                    0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

.member-card.member .card-front {
    background: linear-gradient(135deg, #c0c0c0 0%, #e6e6e6 25%, #f5f5f5 50%, #e6e6e6 75%, #c0c0c0 100%);
    background-size: 200% 200%;
    animation: silverShimmer 4s ease-in-out infinite;
    color: #333;
    position: relative;
    overflow: hidden;
}

.member-card.member .card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    animation: silverSweep 3s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes silverSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.member-card.member .card-back {
    background: linear-gradient(135deg, #708090 0%, #a9a9a9 25%, #c0c0c0 50%, #a9a9a9 75%, #708090 100%);
    background-size: 200% 200%;
    animation: silverShimmer 4s ease-in-out infinite reverse;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 特别代理卡片的样式 */
.member-card.special-agent .card-front {
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff1493);
    color: #fff;
}

.member-card.special-agent .card-back {
    background: linear-gradient(135deg, #4b0082, #9370db, #4b0082);
    color: #fff;
}

/* 特别代理卡片的光效 */
.member-card.special-agent .card-inner {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.9),
                0 0 60px rgba(255, 20, 147, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 20, 147, 0.6);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .card-btn {
        top: 5px;
        right: 5px;
        width: 45px;
        height: 28px;
        font-size: 14px;
    }
    
    .member-card {
        width: 320px;
        height: 420px;
        margin: 0 20px;
    }
    
    .member-card .card-front .qr-section img {
        width: 100px;
        height: 100px;
    }
    
    .member-card .card-front .barcode-section .barcode {
        width: 180px;
        height: 35px;
    }
    
    .member-card .card-front .username {
        font-size: 20px;
    }
    
    .member-card .flip-button {
        bottom: -50px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card-btn {
        width: 40px;
        height: 26px;
        font-size: 12px;
    }
    
    .member-card {
        width: 300px;
        height: 400px;
        margin: 0 10px;
    }
    
    .member-card .card-front .qr-section img {
        width: 90px;
        height: 90px;
    }
    
    .member-card .card-front .barcode-section .barcode {
        width: 160px;
        height: 30px;
    }
    
    .member-card .card-front .username {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .member-card .card-front .barcode-section .studio-info {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .member-card .card-front .barcode-section .barcode::after {
        font-size: 9px;
        bottom: -16px;
    }
    
    .member-card .card-front {
        padding: 15px;
    }
    
    .member-card .card-front .qr-section {
        margin: 15px 0;
    }
}

/* 卡片翻转提示 */
.flip-hint {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.9), rgba(122, 63, 255, 0.9));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    animation: flipHintPulse 2s ease-in-out infinite;
    z-index: 1003;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes flipHintPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

.flip-hint.fade-out {
    animation: flipHintFadeOut 0.5s ease-out forwards;
}

@keyframes flipHintFadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-top: 15px;
    font-size: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: 50%;
    line-height: 1.0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6e6ff;
}

th {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.2), rgba(122, 63, 255, 0.1));
    padding: 15px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid rgba(0, 210, 255, 0.2);
    font-size: 16px;
    color: #ffffff;
}

td {
    font-size: 14px;
    line-height: 1.4;
    color: #c0c0ff;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

table tr:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

h3 {
    font-family: 'BarlowCondensed-Light';
    font-size: 10%;
    font-weight: 90;
    line-height: 1.0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 36px;
    color: #333;
}

.header h2 {
    font-size: 18px;
    color: #666;
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}

.footer p {
    font-size: 14px;
    color: #666;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 10px;
}

.remember-me label {
    color: #e6e6ff;
    font-weight: 500;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #00d2ff;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    color: #5b92e5;
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 9px;
    background-color: #f9f9f9;
}

.export-button {
    margin-top: 20px;
    text-align: right;
}

.export-button button {
    background: linear-gradient(to right, #000000, #add8e6);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background 0.9s, transform 0.3s;
    padding: 10px;
}

.export-button button:hover {
    background: linear-gradient(to right, #add8e6, #9359f8);
    transform: scale(1.05);
}

@media screen and (max-width: 600px) {
    table {
        font-size: 12px;
    }
    th, td {
        padding: 5px;
    }
    .user-info img {
        width: 80px;
        height: 80px;
    }
    .user-info .username {
        font-size: 20px;
    }
    .user-info .user-id {
        font-size: 14px;
    }
}

/* 新增的生日界面样式 */
.birthday-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.birthday-modal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.birthday-modal img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    cursor: pointer;
}

.birthday-modal p {
    font-size: 18px;
    margin-bottom: 20px;
}

.birthday-modal .coupon-content {
    display: none;
}

.birthday-modal .coupon-content p {
    font-size: 16px;
    margin-bottom: 10px;
}

.birthday-modal .coupon-content button {
    margin-top: 20px;
}

/* 生日卡片样式 */
.qr-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    perspective: 1000px;
    z-index: 1001;
}

.qr-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.qr-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.qr-card .card-front,
.qr-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-card .card-front {
    background: linear-gradient(45deg, #5b92e5, #7eaff3);
    color: white;
}

.qr-card .card-back {
    background: linear-gradient(45deg, #7eaff3, #5b92e5);
    color: white;
    transform: rotateY(180deg);
}

.qr-card.agent .card-front {
    background: linear-gradient(45deg, #f3c75b, #f5d68a);
}

#qrCode {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: white;
    padding: 10px;
}

.username {
    font-size: 24px;
    margin: 10px 0;
    font-weight: bold;
}

.studio-info {
    font-size: 16px;
    margin-top: 10px;
}

.studio-image {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: none;
    color: #5b92e5;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

.flip-button {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 20px;
    background-color: white;
    border: none;
    color: #5b92e5;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 会员和代理特殊样式 */
.qr-card.member .card-front {
    background: linear-gradient(45deg, #5b92e5, #7eaff3);
}

.qr-card.agent .card-front {
    background: linear-gradient(45deg, #f3c75b, #f5d68a);
}

/* 背景遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* 确保遮罩层不会跟随页面滚动 */
    overflow: hidden;
    /* 确保遮罩层相对于视口定位 */
    position: fixed !important;
}

/* 修改收据模态框样式 */
.receipt-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
    /* 确保模态框不会跟随页面滚动 */
    margin: 0;
    /* 确保模态框相对于视口定位 */
    position: fixed !important;
}

.receipt-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.receipt-header img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.receipt-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
}

.receipt-content {
    padding: 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.receipt-content p {
    color: #34495e;
    margin: 8px 0;
}

.receipt-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.receipt-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.receipt-footer p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.generate-pdf-btn {
    display: block;
    margin: 15px auto;
    padding: 8px 20px;
    background-color: #5b92e5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.generate-pdf-btn:hover {
    background-color: #4a7bc7;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s;
}

.close-button:hover {
    background-color: #ff1a1a;
}

/* 修改表格样式 */
#receiptItemsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#receiptItemsTable th,
#receiptItemsTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#receiptItemsTable th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

#receiptItemsTable td {
    font-size: 14px;
    color: #34495e;
}

.receipt-items h3 {
    margin: 20px 0 10px;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.sidebar.active {
    left: 0;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
    z-index: -1;
}

/* 侧边栏标题区域 */
.sidebar-title {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Logo样式 */
.sidebar-title .logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.sidebar-title .logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
    transform: scale(1.05);
}


.subtitle {
    font-size: 0.9rem;
    color: #b0b0ff;
    letter-spacing: 2px;
    font-weight: 300;
}

@media screen and (max-width: 1023px) {
    .sidebar-title .logo-image {
        width: 100px;
        height: 100px;
    }
}

/* 侧边栏链接样式 */
.sidebar-links {
    padding: 30px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #e6e6ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 5px 15px;
    border-radius: 12px;
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #00d2ff;
}

.nav-link span {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d2ff, #7a3fff);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: #ffffff;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link:hover i {
    color: #7a3fff;
    transform: scale(1.2);
}

.sidebar-links a {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #e6e6ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 5px 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d2ff, #7a3fff);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: #ffffff;
}

.sidebar-links a:hover::before {
    transform: scaleY(1);
}

/* 用户状态样式 */
.user-status {
    padding: 15px 25px;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

/* 平板端适配 (769px - 1023px) */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .sidebar {
        left: -280px;  /* 平板端默认隐藏侧边栏 */
        width: 280px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .content-wrapper {
        margin-left: 0;
        margin-top: 80px;
        padding-top: 20px;
    }
    
    .menu-btn {
        display: flex;  /* 显示菜单按钮 */
    }
    
    /* 平板端显示顶部栏logo - 与手机端保持一致 */
    header {
        padding: 2.5rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(20px);
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        pointer-events: auto;
    }
    
    header .logo {
        display: flex;
        visibility: visible;
        opacity: 1;
    }
    
    header .logo h2 {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    header .logo .subtitle {
        font-size: 0.7rem;
        color: #b0b0ff;
        letter-spacing: 1px;
        font-weight: 300;
        margin-top: 2px;
    }
    
    header .logo-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
        transition: all 0.3s ease;
    }
    
    .container {
        max-width: 85%;
        padding: 20px;
    }
    
    .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }
    .neon-text-up {
        display: block; 
        background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
        animation: neonGlow 2s ease-in-out infinite alternate;
    }
    
    .logo-image {
        max-width: 180px;
    }
}

/* 响应式设计 */
@media screen and (min-width: 1024px) {
    .sidebar {
        left: 0;
        width: 250px;
    }
    
    .content-wrapper {
        margin-left: 250px;
    }
    
    .menu-btn {
        display: none;
    }
}

/* 移动端样式 */
@media screen and (max-width: 1023px) {

    
    .sidebar.active {
        left: 0;
    }
    
    .logo-image {
        max-width: 150px;  /* 移动端稍微缩小logo */
    }
    
    main {
        margin-left: 0;
    }
}

/* 响应式设计 */
/* 响应式调整 */
@media screen and (max-width: 768px) {
    header {
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    }
    
    header .logo {
        display: flex;
        visibility: visible;
        opacity: 1;
    }
    
    .content-wrapper {
        margin-top: 80px;
        padding-top: 20px;
    }
    
    .container {
        max-width: 90%;
        padding: 15px;
    }
    
    .subtitle-up {
        display: block;
        font-size: 0.8rem;
        color: #b0b0ff;
        letter-spacing: 1px;
        font-weight: 300;
    }
    
    .neon-text-up {
        display: block;
        font-size: 1.2rem;
        background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
        animation: neonGlow 2s ease-in-out infinite alternate;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    /* 手机端商品图片1:1比例 */
    .product-link img {
        aspect-ratio: 1/1;
        height: auto;
    }
    
    /* 手机端侧边栏完全隐藏 */
    .sidebar {
        left: -300px;
        background: transparent;
        backdrop-filter: none;
        visibility: hidden;
        opacity: 0;
    }
    
    .sidebar::before {
        background: transparent;
        opacity: 0;
        visibility: hidden;
    }
    
    /* 只有在激活状态下才显示侧边栏样式 */
    .sidebar.active {
        left: 0;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        visibility: visible;
        opacity: 1;
    }
    
    .sidebar.active::before {
        background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
        opacity: 1;
        visibility: visible;
    }
    
    /* 手机端侧边栏展开前向左偏移30px */
    main {
        transform: translateX(-0px);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .sidebar.active ~ main {
        transform: translateX(0);
    }
    
    /* 确保内容区域在手机端正确显示 */
    .content-wrapper {
        margin-left: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .product-link h3 {
        font-size: 14px;
        margin: 6px;
    }

    .product-link .price {
        font-size: 12px;
        margin: 0 6px 6px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    /* 平板设备促销横幅响应式 */
    .promotion-banner {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .promotion-content {
        margin-bottom: 12px;
    }
    
    .promotion-banner h3 {
        font-size: 1.5rem;
    }
    
    .promotion-banner p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .promotion-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 平板设备代运优惠码响应式 */
    .shipping-coupon {
        margin-top: 12px;
        padding: 12px;
    }
    
    .shipping-coupon h4 {
        font-size: 1.1rem;
    }
    
    .coupon-code {
        font-size: 1.3rem;
        padding: 4px 12px;
    }
    
    .coupon-desc {
        font-size: 0.85rem;
    }
    
    .coupon-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 480px) {

    
    .neon-text-up {
        font-size: 1rem;
    }
    
    .subtitle-up {
        font-size: 0.7rem;
    }
    
    .content-wrapper {
        margin-top: 70px;
        padding: 10px;
    }
    
    .container {
        max-width: 95%;
        padding: 10px;
    }
    
    .box {
        margin: 10px;
        padding: 20px;
    }
    
    .menu-btn {
        padding: 8px;
        font-size: 1.2rem;
    }
}

/* 超大屏幕适配 */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 800px;
    }
}

/* 删除重复的平板端媒体查询，保持与统一样式一致 */

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .box {
        margin: 5px;
        padding: 15px;
        border-radius: 12px;
    }
    
    input[type="text"], input[type="password"], input[type="email"] {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    button {
        padding: 12px 20px;
        border-radius: 10px;
        font-size: 16px;
    }
    
    .user-info {
        padding: 15px;
        border-radius: 12px;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 6px 4px;
    }
}

/* 订单记录样式 */
.order-history {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.order-history h3 {
    color: #333;
    margin-bottom: 15px;
}

.order-list {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.user-summary {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.user-summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.order-stats p {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.order-stats p:first-child {
    grid-column: 1 / -1;
    background-color: #e3f2fd;
    font-weight: bold;
}

.financial-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.financial-stats p {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background-color: #e8f5e9;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 状态样式 */
.status-pending {
    color: #ff9800;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(255, 152, 0, 0.1);
}

.status-processing {
    color: #2196F3;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(33, 150, 243, 0.1);
}

.status-complete {
    color: #4CAF50;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.1);
}

.status-refunded {
    color: #f44336;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(244, 67, 54, 0.1);
}

.status-expired {
    color: #999;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(153, 153, 153, 0.1);
}

/* 可点击行样式 */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: #f5f5f5 !important;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .order-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-stats p:first-child {
        grid-column: 1 / -1;
    }
    
    .financial-stats {
        grid-template-columns: 1fr;
    }
    
    .user-summary {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .user-summary h3 {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .order-stats p, .financial-stats p {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    /* 订单表格响应式调整 */
    .orders-table {
        font-size: 14px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
    }
    
    /* 状态标签调整 */
    .status-pending,
    .status-processing,
    .status-complete,
    .status-refunded,
    .status-expired {
        font-size: 14px;
        padding: 3px 6px;
        display: inline-block;
    }
}

/* 科技风滚动条样式 */
.user-info::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.user-info::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 210, 255, 0.1);
    border-radius: 10px;
}

.user-info::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.6), rgba(122, 63, 255, 0.6));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.8), rgba(122, 63, 255, 0.8));
}

/* 分页控件样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-controls {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-link {
    padding: 5px 10px;
    color: #5b92e5;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f0f0f0;
    border-color: #5b92e5;
}

.page-current {
    padding: 5px 10px;
    background-color: #5b92e5;
    color: white;
    border-radius: 3px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

@media screen and (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .view-btn, .pay-btn, .comment-btn, .expired-btn {
        padding: 4px 6px;
        font-size: 10px;
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
}

.view-btn, .pay-btn, .comment-btn, .expired-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-btn {
    background-color: #5b92e5;
    color: white;
}

.view-btn:hover {
    background-color: #4a7bc7;
}

.pay-btn {
    background-color: #ff9800;
    color: white;
}

.pay-btn:hover {
    background-color: #f57c00;
}

.comment-btn {
    background-color: #4CAF50;
    color: white;
}

.comment-btn:hover {
    background-color: #388E3C;
}

.expired-btn {
    background-color: #999;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 响应式表格容器 - 科技风优化 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(122, 63, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, 0.5) transparent;
}

/* 移动端表格内容优化 */
@media screen and (max-width: 480px) {
    .orders-table th,
    .orders-table td {
        padding: 5px 3px;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .orders-table th {
        font-weight: 600;
        white-space: nowrap;
        background-color: #f0f8ff;
    }
    
    /* 确保订单ID列不会太宽 */
    .orders-table td:nth-child(2) {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 优化日期列显示 */
    .orders-table td:nth-child(3) {
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 优化金额列显示 */
    .orders-table td:nth-child(4) {
        font-weight: bold;
        color: #2196F3;
    }
}

/* 移动端表格优化 */
@media screen and (max-width: 380px) {
    .orders-table {
        font-size: 10px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .action-buttons {
        gap: 3px;
    }
    
    .view-btn, .pay-btn, .comment-btn, .expired-btn {
        padding: 3px 5px;
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .status-pending,
    .status-processing,
    .status-complete,
    .status-refunded,
    .status-expired {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .table-responsive {
        margin-bottom: 0.5rem;
    }
    
    .pagination-controls {
        gap: 5px;
        padding: 5px;
    }
    
    .page-link, .page-current {
        padding: 3px 6px;
        font-size: 11px;
    }
}
@media screen and (max-width: 480px) {
    /* 容器手机端优化 */
    .container {
        margin: 60px auto 20px;
        padding: 15px;
        max-height: calc(100vh - 80px);
    }
    
    /* 改进表格滚动体验 */
    .table-responsive {
        margin: 10px 0;
        padding: 10px;
        border-radius: 12px;
        overflow-x: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 表格字体大小优化 */
    .table-responsive table {
        font-size: 10px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 4px 2px;
        font-size: 10px;
        line-height: 1.2;
    }
    
    /* 用户信息区域手机端优化 */
    .user-info {
        padding: 20px 15px;
        margin-top: 15px;
        border-radius: 20px;
    }
    
    .user-info h1 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .user-info .username {
        font-size: 20px;
    }
    
    .user-info img {
        width: 100px;
        height: 100px;
    }
}

/* 订单统计信息样式 */
.order-summary {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary .summary-item {
    margin: 8px 0;
    color: #c0c0ff;
    font-size: 16px;
}

.order-summary .summary-item strong {
    color: #ffffff;
    font-weight: bold;
}

/* 用户设置按钮样式 */
.settings-btn {
    display: block;
    width: auto;
    min-width: 120px;
    background: linear-gradient(to right, #000000, #add8e6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px auto 20px auto;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.settings-btn:hover {
    background: linear-gradient(to right, #add8e6, #9359f8);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 设置模态框样式 */
.settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.settings-content {
    position: relative;
}

.settings-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.settings-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.settings-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 设置选择菜单样式 */
.settings-menu {
    margin-bottom: 20px;
}

.settings-menu select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.settings-menu select:focus {
    outline: none;
    border-color: #5b92e5;
}

/* 设置表单通用样式 */
.setting-form {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 用户名修改表单样式 */
.username-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.username-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.username-form button {
    background: linear-gradient(to right, #000000, #add8e6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.username-form button:hover {
    background: linear-gradient(to right, #add8e6, #9359f8);
    transform: scale(1.05);
}

/* 更新其他表单样式以保持一致性 */
.email-form,
.password-form,
.username-form {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.email-form input,
.password-form input,
.username-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.email-form input:focus,
.password-form input:focus,
.username-form input:focus {
    border-color: #5b92e5;
    outline: none;
}

.email-form button,
.password-form button,
.username-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #000000, #add8e6);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-form button:hover,
.password-form button:hover,
.username-form button:hover {
    background: linear-gradient(to right, #add8e6, #9359f8);
    transform: scale(1.02);
}

/* 更新头像容器样式 */
.avatar-container {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #add8e6;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.avatar-preview {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.avatar-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
}

/* 密码修改表单样式 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.password-form button {
    background: linear-gradient(to right, #000000, #add8e6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-form button:hover {
    background: linear-gradient(to right, #add8e6, #9359f8);
    transform: scale(1.05);
}

/* 删除账户按钮样式 */
.delete-account-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-account-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .settings-modal {
        width: 95%;
        padding: 15px;
    }
    
    .settings-section {
        padding: 10px;
    }
    
    .avatar-container img {
        width: 100px;
        height: 100px;
    }
    
    .password-form input,
    .password-form button {
        padding: 8px;
    }
    
    /* 订单详情模态框移动端优化 */
    .receipt-modal {
        width: 95%;
        padding: 10px;
    }
    
    .receipt-header {
        padding: 12px 10px;
    }
    
    .receipt-header h2 {
        font-size: 16px;
    }
    
    .receipt-content {
        padding: 10px;
    }
    
    .receipt-info p {
        font-size: 13px;
        margin: 5px 0;
    }
    
    #receiptItemsTable th,
    #receiptItemsTable td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .receipt-items h3 {
        font-size: 14px;
        margin: 10px 0 5px;
    }
    
    .receipt-footer {
        padding: 10px;
    }
    
    .close-button {
        width: 25px;
        height: 25px;
        font-size: 16px;
        top: 5px;
        right: 5px;
    }
    
    .export-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .order-notes-btn {
        padding: 6px 10px;
        font-size: 12px;
        width: 100%;
        margin-top: 10px;
    }
    
    /* 移动端模态框优化 */
    .receipt-modal {
        width: 95%;
        max-height: 85vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow: hidden;
    }
}

/* 积分计划和订单详情标题样式 */
.user-info h1 {
    width: 100%;
    text-align: left;
    font-size: 20px;
    color: #333;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

/* 积分规则样式 */
#pointsRule {
    font-size: 16px;
    color: #c0c0ff;
    margin: 10px 0;
    padding: 10px;
 
    border-radius: 5px;
    text-align: center;
}

/* 添加 QR 模态框样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 修改卡片样式 */
.qr-card {
    position: relative;  /* 添加相对定位 */
    background: #f5f5f5;
    padding: 20px;
    width: 380px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 修改关闭按钮样式 */
.qr-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    z-index: 10;  /* 确保按钮在最上层 */
}

.qr-modal .close-button:hover {
    color: #333;
}

/* 修改卡片内容样式 */
.card-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.section-header {
    background: #fafafa;
    padding: 12px 15px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* 修改内容区域样式 */
.user-profile,
.qr-code,
.barcode,
.qr-info {
    margin: 0;
    padding: 15px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* 确保二维码和条形码居中显示 */
#qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#barcode {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* 添加点击事件样式 */
.qr-modal .close-button {
    cursor: pointer;
    pointer-events: auto;  /* 确保按钮可以点击 */
}

/* 确保模态框在最上层 */
.qr-modal {
    z-index: 9999;
}

/* 添加遮罩层样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* 修改容器样式 */
#qrModalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

#qrModalContainer.active {
    display: flex;
    pointer-events: auto;
}

/* 确保模态框内容可以点击 */
.qr-modal {
    pointer-events: auto;
}

/* 删除所有 QR 相关的样式 */
.qr-modal, .qr-card, .qr-button, .modal-overlay, #qrModalContainer {
    display: none;
}
