:root {
    --scrollbar-width: 10px;
    --scrollbar-thumb: var(--accent-color);
    --scrollbar-track: rgba(40, 40, 40, 0.8);
    --scrollbar-hover: #7a4e28;
    --main-bg: #1a1a1a;
    --accent-color: #5d3a1a;
    --text-color: #ffffff;
}

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

body {
    background-color: var(--main-bg);
    color: var(--text-color);
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* 禁用全局滚动 */
}

/* WebKit浏览器样式 */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover);
    background-clip: content-box;
}

::-webkit-scrollbar-corner {
    background: var(--main-bg);
}

/* Firefox浏览器支持 */
@supports (scrollbar-color: auto) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    }
}

/* 内容区滚动条适配 */
.content-item {
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

/* 移动端隐藏原生滚动条 */
@media (hover: none) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(93, 58, 26, 0.5);
    }
}

/* 默认隐藏移动端元素 */
.mobile-menu,
.dropdown-content {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 3%;
    top: 70px;
    background: rgba(40, 40, 40, 0.98);
    /* 半透明深色背景 */
    min-width: 180px;
    border-radius: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
    /* 毛玻璃效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(93, 58, 26, 0.3);
    /* 更细的边框 */
    transform: translateY(-10px);
    /* 添加出场动画 */
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content .nav-item {
    color: #e0e0e0;
    padding: 14px 20px;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(93, 58, 26, 0.15);
    /* 更柔和的分隔线 */
    transition: all 0.2s;
    position: relative;
}

/* 悬停指示条动画 */
.dropdown-content .nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 25px;
}

.dropdown-content .nav-item:hover::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.dropdown-content .auth-btn {
    width: auto;
    margin: 15px 20px;
    padding: 10px 25px;
    background: linear-gradient(to right, #5d3a1a, #7a4e28);
    border-radius: 8px;
    font-size: 0.9em;
}

.header {
    position: relative;
    height: 90px;
    /* 固定高度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 1%;
    border-bottom: 2px solid var(--accent-color);
    flex-shrink: 0;
    /* 防止压缩 */
}

.account-box {
    display: flex;
    gap: 25px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 12px;
    max-width: 500px;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    font-size: 1em;
    /* 基准字号 */
    transition: all 0.3s ease;
}

/* 桌面导航样式 */
.nav-container {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 6px;
}

.nav-item {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #cccccc;
    border-radius: 4px;
    font-size: 0.95em;
    /* 新增修复 */
    overflow: visible !important;
    /* 确保伪元素可见 */
    /* white-space: nowrap; /* 防止文字换行 */
    */
}

/* 桌面端悬停效果 */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    /* 新增居中定位 */
}

.nav-item:hover {
    color: var(--text-color) !important;
    background: rgba(93, 58, 26, 0.2);
}

.nav-item:hover::after {
    width: 100%;
    left: 0;
    /* 修正定位 */
    transform: none;
    /* 移除居中转换 */
}

.auth-btn {
    background: linear-gradient(to bottom, #5d3a1a, #3d2a15);
    color: var(--text-color);
    padding: 10px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-btn:hover {
    transform: translateY(-1px);
    /* background: linear-gradient(to bottom, #6d4a2a, #4d3a25); */
}

.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 添加内容容器样式 */
.content-container {
    position: fixed;
    top: 90px;
    /* header高度 */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* 隐藏溢出内容 */
}

.content-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* padding: 30px; */
    background: rgba(0, 0, 0, .2);
    /* border-top: 2px solid var(--accent-color); */
    box-shadow: inset 0 8px 12px -8px rgba(0, 0, 0, 0.3);
    overflow: auto;
    /* 允许内容区内部滚动 */
}

.content-item.active {
    display: block;
}

/* 焦点状态样式 */
.nav-item.active {
    color: #fff !important;
    background: rgba(93, 58, 26, 0.3) !important;
}

.nav-item.active::after {
    width: 100% !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新增弹窗样式 */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-box {
    position: relative;
    background: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alert-overlay.show {
    display: flex;
    transform: translateY(0);
}

.alert-overlay.show .alert-box {
    transform: scale(1);
    opacity: 1;
}

/* 图标样式 */
.alert-icon::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* 成功样式 */
/* .alert-success .alert-icon::before {
		    // background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
		} */
.alert-success {
    border-left: 4px solid #4CAF50;
}

.alert-success .alert-icon::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    border: 8px solid #4CAF50;
    border-top: none;
    border-right: none;
    transform: translateX(-50%) rotate(-45deg);
}

/* 警告样式 */
.alert-warning {
    border-left: 4px solid #FFA726;
}

.alert-warning .alert-icon::before {
    content: "⚠️";
    font-size: 40px;
    top: -30px;
}

/* 错误样式 */
.alert-error {
    border-left: 4px solid #EF5350;
}

.alert-error .alert-icon::before {
    content: "❌";
    font-size: 40px;
    top: -30px;
}

.alert-title {
    color: #fff;
    margin: 15px 0;
    font-size: 1.3em;
}

.alert-content {
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 25px;
}

.alert-buttons {
    text-align: center;
}

.alert-confirm {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.alert-confirm:hover {
    transform: translateY(-2px);
}

/* 新增登录弹窗样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    /* 高于原有弹窗 */
}

.login-box {
    background: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border: 1px solid var(--accent-color);
}

.tab-switch {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.form-content {
    display: none;
}

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

.form-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 1px;
    transition: all 0.3s;

    /* 新增自动填充样式 */
    &: -webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #333 inset !important;
        -webkit-text-fill-color: #fff !important;
    }

    &:focus {
        border-color: var(--accent-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(93, 58, 26, 0.3);
    }
}

.form-content input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-content button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-content button:hover {
    opacity: 0.9;
}

/* 新增错误信息样式 */
.error-msg {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
    border: 1px solid rgba(255, 68, 68, 0.3);
    font-size: 0.9em;
}

.error-msg.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* 添加错误状态输入框样式 */
.input-error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.05) !important;
}

/* 在原有input样式基础上添加 */
.form-content input:-webkit-autofill,
.form-content input:-webkit-autofill:hover,
.form-content input:-webkit-autofill:focus,
.form-content input:-moz-autofill,
.form-content input:-moz-autofill:hover,
.form-content input:-moz-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #333 inset !important;
    -moz-box-shadow: 0 0 0 1000px #333 inset !important;
    box-shadow: 0 0 0 1000px #333 inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid var(--accent-color) !important;
    background-color: #333 !important;
    transition: background-color 9999s ease-in-out 0s;
    /* 禁用颜色渐变 */
}

/* 针对Firefox的解决方案 */
@-moz-document url-prefix() {
    input:-moz-autofill {
        filter: none;
        /* 禁用黄色背景 */
    }
}

/* 添加焦点状态覆盖 */
.form-content input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #333 inset,
        0 0 0 2px var(--accent-color) !important;
}

/* 新增公告样式 */
.announcement-list {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
    padding-left: 40px;
}

.timeline-bar {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.3;
}

.announcement-card {
    position: relative;
    background: rgba(40, 40, 40, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(93, 58, 26, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.announcement-card:hover {
    transform: translateY(-3px);
}

.announcement-card::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--main-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.announcement-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-title svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.announcement-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.announcement-content {
    color: #e0e0e0;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* 新增地图容器样式 */
.map-container {
    width: 90vmin;
    height: 90vmin;
    max-width: 650px;
    max-height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    will-change: transform;
}

#mapImage {
    position: absolute;
    cursor: grab;
    /* transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    image-rendering: crisp-edges;
    object-fit: contain;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    /* 移除点击高光 */
}

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.map-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.map-btn:hover {
    transform: scale(1.1);
    background: #7a4e28;
}

.scale-display {
    position: fixed;
    top: ;
    : 16px;
    left: 16px;
    background: rgba(40, 40, 40, 0.9);
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #fff;
    border: 1px solid rgba(93, 58, 26, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.scale-display::before {
    /* content: '🔍'; */
    font-size: 1.2em;
}

.scale-display.active {
    opacity: 1;
    transform: translateY(0);
    animation: scalePulse 0.6s ease;
}

@keyframes scalePulse {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(0) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.mobile-map-alert {
    /* 初始隐藏 */
    display: none;
    /* 居中定位 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 无背景样式 */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 16px;
    border-radius: 8px;
    z-index: 9999;
    white-space: nowrap;
}

/* 会员礼包样式 */
.vip-gifts-container {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.gift-card {
    background: rgba(40, 40, 40, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-card:hover {
    transform: translateY(-5px);
}

.gift-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(93, 58, 26, 0.3);
}

.gift-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    object-fit: contain;
}

.gift-name {
    color: var(--accent-color);
    font-size: 1.1em;
    font-weight: bold;
}

.gift-items {
    margin-bottom: 20px;
}

.gift-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* 图标容器 */
.item-icon-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    /* 增加垂直间距 */
    min-height: 180px;
    /* 保证最小显示高度 */
}

/* 图标样式 */
.item-icon {
    width: 90px;
    /* 原100px → 140px */
    height: 90px;
    /* 原100px → 140px */
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center bottom;
    /* 优化缩放基点 */
}

.item-name {
    flex: 1;
    color: var(--accent-color);
    font-size: 0.8em;
    margin-bottom: 4px;
    line-height: 1.3;
    flex-shrink: 0;
    /* 防止文字挤压 */
    position: absolute;
    top: 15px;
    left: 15px;
    max-width: 60%;
    z-index: 2;
    /* 确保在图片上方 */
}

.item-count {
    color: var(--accent-color);
    font-weight: bold;
}

.claim-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

.claim-btn.claimed {
    background: linear-gradient(135deg, #2d5a1a, #3e7828);
}

.loading-gifts {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* 容器样式 */
.vip-gifts-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gifts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px;
    border: 1px solid rgba(93, 58, 26, 0.3);
    border-radius: 8px;
    background: rgba(40, 40, 40, 0.6);
}

/* 卡片样式 */
.gift-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.2);
}

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

.gift-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
    border: 1px solid rgba(93, 58, 26, 0.3);
    border-radius: 6px;
    padding: 5px;
}

.gift-info {
    flex: 1;
}

.gift-name {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.gift-count {
    color: #888;
    font-size: 0.9em;
}

/* 领取按钮容器 */
.claim-button-container {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    border-top: 1px dashed rgba(93, 58, 26, 0.3);
}

.claim-all-btn {
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.claim-all-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 外层容器 */
.vip-gifts-wrapper {
    max-width: 1200px;
    height: 70vh;
    /* 可视区域高度的70% */
    margin: 50px auto;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* 滚动容器 */
.gifts-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--accent-color) rgba(40, 40, 40, 0.8);
}

/* Webkit滚动条样式 */
.gifts-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.gifts-scroll-container::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 4px;
}

.gifts-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* 礼包网格布局 */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    padding: 5px;
    cursor: pointer;
}

/* 底部按钮容器 */
.claim-footer {
    padding: 20px;
    border-top: 1px solid rgba(93, 58, 26, 0.3);
    background: rgba(40, 40, 40, 0.6);
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* 抽奖容器样式优化 */
.lucky-draw-container {
    width: 100%;
    height: 75vh;
    /* 固定容器高度为视口75% */
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 隐藏内部溢出 */
}

/* 奖池样式 */
.lottery-pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: minmax(200px, auto);
    /* 行高自适应 */
    align-items: stretch;
    /* 统一高度 */
    gap: 15px;
    padding: 15px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    margin-bottom: 20px;
    flex: 1;
    overflow-y: auto;
    /* 垂直滚动 */
    scrollbar-width: thin;
    /* Firefox */
}

/* Webkit滚动条样式 */
.lottery-pool::-webkit-scrollbar {
    width: 8px;
}

.lottery-pool::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 4px;
}

.lottery-pool::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* 抽奖物品样式优化 */
.lottery-item {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 2px solid rgba(93, 58, 26, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 悬停效果 */
.lottery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(93, 58, 26, 0.3);
    border-color: var(--accent-color);
}

/* 物品图片样式 */
.item-image {
    max-width: 80%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.lottery-item:hover .item-image {
    transform: scale(1.05);
}

.item-name {
    color: var(--accent-color);
    font-size: 0.95em;
    margin: 8px 0;
    font-weight: 500;
    position: relative;
    padding-bottom: 8px;
}

.item-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(93, 58, 26, 0.3);
}

/* 概率显示增强 */
.item-probability {
    color: #888;
    font-size: 0.85em;
    position: relative;
    padding: 6px 0;
    margin: 8px 0;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 6px;
    display: inline-block;
    width: 100%;
}

.item-probability::before {
    content: '🎲 概率';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: var(--accent-color);
}

/* 稀有度指示器 */
.rarity-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #4CAF50 0%,
            /* 普通 */
            #FFA726 33%,
            /* 稀有 */
            #EF5350 66%,
            /* 史诗 */
            #9C27B0 100%
            /* 传说 */
        );
    opacity: 0.3;
    transition: opacity 0.3s;
}

.lottery-item:hover .rarity-indicator {
    opacity: 0.8;
}

/* 选中状态 */
.lottery-item.selected {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(93, 58, 26, 0.4);
    transform: scale(1.02);
}

/* 加载状态 */
.lottery-item.loading {
    position: relative;
    overflow: hidden;
}

.lottery-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: loading 1.5s infinite;
}

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

    100% {
        left: 100%;
    }
}

/* 数量徽章优化 */
.item-quantity {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.item-quantity::before {
    content: '×';
    font-size: 0.9em;
}

/* 图片容器优化 */
.image-container {
    position: relative;
    margin-top: 25px;
    margin-bottom: 12px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: rgba(0,0,0,0.3); */
    border-radius: 8px;
    padding: 10px;
    transition: background 0.3s;
}


/* 调整概率位置 */
.item-probability {
    margin: 8px 0 4px;
}


/* 固定控制区域 */
.lottery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 8px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(93, 58, 26, 0.3);
}

.cost-display {
    color: #e0e0e0;
    font-size: 1.1em;
}

.cost-value {
    color: #FFA726;
    font-weight: bold;
}

.lottery-btn {
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lottery-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.lottery-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 中奖弹窗样式 */
.lottery-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.lottery-result-card {
    width: 90%;
    /* 改为百分比宽度 */
    max-width: 400px;
    /* 最大宽度增加 */
    min-width: 250px;
    /* 最小宽度保证移动端显示 */
    padding: 30px;
    /* 调整内边距 */
    margin: 20px;
    /* 添加外边距 */
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    animation: resultPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    box-shadow: 0 0 30px rgba(93, 58, 26, 0.3);
}

/* 光晕效果 */
.lottery-result-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(93, 58, 26, 0.4),
            rgba(255, 255, 255, 0.1),
            rgba(93, 58, 26, 0.4));
    border-radius: 22px;
    z-index: -1;
}

.result-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transform: translateY(20px);
    opacity: 0;
    animation: itemFloat 1s ease forwards 0.3s;
}

.result-title {
    color: var(--accent-color);
    text-align: center;
    /* 确保始终居中 */
    width: 100%;
    /* 撑满容器 */
    position: relative;
    /* 为装饰元素准备 */
    padding: 15px 0;
    /* 增加留白 */
    font-size: 1.8em;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 添加装饰性元素 */
.result-title::before,
.result-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.5;
}

.result-title::before {
    left: 10%;
    transform: translateY(-50%);
}

.result-title::after {
    right: 10%;
    transform: translateY(-50%);
}

.result-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95em;
    opacity: 0;
    transform: translateY(10px);
    animation: textAppear 0.5s ease forwards 0.5s;
}

.result-meta {
    display: flex;
    justify-content: space-around;
    /* 分散对齐 */
    gap: 20px;
    margin: 30px 0;
    /* margin-bottom: 30px; */
    opacity: 0;
    animation: textAppear 0.5s ease forwards 0.7s;
}

.result-quantity,
.result-probability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.result-quantity::before {
    content: '×';
    color: #4CAF50;
}

.result-probability::before {
    content: '%';
    color: #FFA726;
}

.result-confirm-btn {
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: btnAppear 0.5s ease forwards 0.9s;
}

.result-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 58, 26, 0.3);
}

.result-confirm-btn:active {
    transform: translateY(1px);
}

/* 动画定义 */
@keyframes resultPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes itemFloat {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes textAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes btnAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新增CSS */
.item-list-container {
    width: 100%;
    /* 占满父容器宽度 */
    max-width: 1200px;
    /* 设置最大宽度 */
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 40px;
    /* margin: 30px auto; /* 水平居中 */
    */ flex: 1;
    overflow-y: auto;
    padding: 0px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(40, 40, 40, 0.8);
}

/* 滚动条样式 */
.item-list-container::-webkit-scrollbar {
    width: 8px;
}

.item-list-container::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 4px;
}

.item-list-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

#item-shop {
    /* display: flex; */
    flex-direction: column;
    height: calc(100vh - 90px);
    /* 减去header高度 */
}

/* 修改后的正确代码 */
#item-shop.content-item {
    display: none;
    /* 默认隐藏 */
}

#item-shop.content-item.active {
    display: flex !important;
    /* 强制覆盖 */
}

.search-bar {
    padding: 20px;
    position: sticky;
    top: 10px;
    /* background: rgba(40,40,40,0.95); */
    text-align: center;
    /* 新增居中 */
    z-index: 10;
    backdrop-filter: blur(8px);
}

.search-bar input {
    width: 30%;
    /* 调整宽度 */
    height: 40px;
    max-width: 600px;
    /* 添加最大宽度限制 */
    margin: 0 auto;
    /* 水平居中 */
    display: block;
    /* 使margin生效 */
    padding: 12px 25px;
    background: #333;
    border: 2px solid var(--accent-color);
    color: #fff;
    border-radius: 25px;
    font-size: .9em;
    transition: all 0.3s;
    background: rgba(40, 40, 40, 0.5);
}

.search-bar input:focus {
    border-color: var(--accent-color) !important;
    /* 保持主题色 */
    box-shadow: 0 0 0 3px rgba(93, 58, 26, 0.3);
    /* 调整阴影颜色 */
    outline: none;
    /* 移除浏览器默认轮廓 */
}

.item-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 5px;
}

.item-card {
    position: relative;
    width: 270px;
    height: 300px;
    background: rgba(40, 40, 40, 0.9);
    /* background: rgba(93,58,26,0.04); */
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.item-card:hover {
    /* transform: translateY(-3px); */
    cursor: pointer;
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}



/* 名称位置 */
.item-name {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: .8em;
    color: #fff;
    max-width: 60%;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* 价格位置 */
.item-price {
    position: absolute;
    top: 15px;
    right: 10px;
    font-size: 1em;
    color: #FFA726;
    background: rgba(93, 58, 26, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 3;
    /* 最高层级 */
}

/* 数量控制器 */
.quantity-control {
    margin-top: auto;
    display: flex;
    /* width: 170px; */
    justify-content: space-between;
    align-items: center;
    background: rgba(93, 58, 26, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 80px;
    margin: 0 10px;
    text-align: center;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 5px;
    border-radius: 6px;
}

/* 结算容器 */
.checkout-section {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(40, 40, 40, 0.95);
    border-top: 2px solid var(--accent-color);
    position: sticky;
    bottom: 0;
    backdrop-filter: blur(8px);
}

/* 金额显示区域 */
.total-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.total-label {
    color: #e0e0e0;
    font-size: 1.1em;
}

.total-value {
    color: #FFD700;
    /* 黄金色 */
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-right: 5px;
}

.currency-icon {
    color: #FFD700;
    font-size: 1.2em;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.checkout-btn {
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 35px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    border-radius: 30px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* 结算弹窗 */
.checkout-modal {
    max-width: 400px;
    padding: 25px;
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.item-card:hover .item-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* 新增结算弹窗样式 */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.checkout-modal {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border: 2px solid var(--accent-color);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkout-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}

.checkout-modal {
    z-index: 99999 !important;
    /* 确保最高层级 */
    display: block !important;
}

.checkout-overlay.show .checkout-modal {
    transform: scale(1);
    opacity: 1;
}

.checkout-title {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.checkout-items {
    max-height: 50vh;
    overflow-y: auto;
    margin: 15px 0;
}

.checkout-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.checkout-cancel {
    background: #444;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-confirm {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-cancel:hover,
.checkout-confirm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 总金额样式 */
.total-amount {
    padding: 15px 20px;
    background: rgba(93, 58, 26, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent-color);
}

.amount-value {
    color: #FFA726;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 已选标记样式 */
.item-card.selected {
    position: relative;
    border: 2px solid var(--accent-color);
    background: rgba(93, 58, 26, 0.05);
}

.item-card.selected::after {
    content: "✓ 已选";
    position: absolute;
    bottom: 80px;
    /* 位于图片下方，按钮上方 */
    /* left: 50%; /* 水平居中关键属性 */
    */ transform: translateX(-50%);
    /* 精确居中 */
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: floatUp 0.3s ease;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translate(0%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(0%, 0);
    }
}

@keyframes selectPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 金额变化动画 */
@keyframes amountBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* 新增样式 */


.static-counter {
    position: absolute;
    top: 60%;
    right: 30%;
    transform: translate(50%, -50%);
    /* 微调至精确位置 */
    min-width: 24px;
    height: 24px;
    padding: 2px;
    /* background: rgba(93,58,26,0.9); */
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    /* border: 2px solid #5d3a1a; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.static-counter:hover {
    transform: translate(50%, -50%) scale(1.1);
    z-index: 3;
}


/* 不同数值范围的样式 */
.static-counter[data-value="0"] {
    display: none;
    /* 0值隐藏 */
}

.static-counter[data-value^="9"] {
    color: #fff;
}

.static-counter[data-value^="8"] {
    color: #fff;
}

/* 新增CSS样式 */
.recharge-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 20px;
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    border: 2px solid var(--accent-color);
}

.payment-status {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4em;
    padding: 15px;
    border-radius: 8px;
    background: rgba(93, 58, 26, 0.1);
}

.rate-display {
    text-align: center;
    color: #FFA726;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.amount-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    background: #7a4e28;
}

#rechargeAmount {
    width: 120px;
    padding: 12px;
    font-size: 1.2em;
    text-align: center;
    background: #333;
    border: 2px solid var(--accent-color);
    color: white;
    border-radius: 8px;
    -moz-appearance: textfield;
}

#rechargeAmount::-webkit-outer-spin-button,
#rechargeAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.balance-preview {
    color: #888;
    font-size: 0.9em;
    white-space: nowrap;
}

.qrcode-container {
    position: relative;
    margin: 25px auto;
    max-width: 300px;
    text-align: center;
}

.qrcode-image {
    /* filter: brightness(0) invert(1); /* 将黑色转为白色 */
    */ width: 220px;
    height: 220px;
    object-fit: contain;
    background: transparent;
}

.qrcode-wrapper {
    background: white;
    /* 设置白色背景 */
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
}

.loading-qrcode {
    color: #888;
    padding: 20px;
}

.qrcode-expire {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    color: #EF5350;
    font-size: 0.9em;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 25px auto;
    padding: 15px;
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.submit-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

.checkin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.checkin-cards {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
    gap: 15px;
    padding: 10px;
    overflow-y: auto;
}

.checkin-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 12px;
    min-height: 180px;
    /* 固定高度 */
    height: 100px;
    text-align: center;
    border: 1px solid rgba(93, 58, 26, 0.3);
    transition: transform 0.3s ease;
}

.checkin-card:hover {
    transform: translateY(-3px);
    cursor: pointer;
}

.checkin-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.checkin-name {
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 8px;
}

.checkin-quantity {
    color: #FFA726;
    font-size: 1.2em;
}

.checkin-btn {
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px auto 0;
    width: 200px;
}

.checkin-btn:hover {
    transform: scale(1.05);
}

.checkin-btn:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}




/* 新增分类栏样式 */
.category-filter {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: rgba(40,40,40,0.95);
    border-bottom: 2px solid var(--accent-color);
    overflow-x: auto;
    position: sticky;
    top: 90px;
    z-index: 5;
}

.category-item {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(93,58,26,0.2);
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-item:hover {
    background: rgba(93,58,26,0.4);
    transform: translateY(-2px);
}

.category-item.active {
    background: linear-gradient(135deg, #5d3a1a, #7a4e28);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(93,58,26,0.3);
}

/* 调整搜索栏布局 */
.search-bar {
    display: flex;
    gap: 15px;
    padding: 20px;
    /* background: rgba(30,30,30,0.9); */
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-input {
    flex: 1;
    max-width: 600px;
}

@media (max-width: 1300px) {
	.category-item{
		display: none;
	}

    /* 桌面导航栏缩小版 */
    .nav-container {
        gap: 3px;
        padding: 6px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 0.85em;
        white-space: nowrap;
    }

    .auth-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    /* 账户信息优化 */
    .account-box {
        padding: 10px;
        font-size: 0.9em;
        max-width: 45%;
    }
}

@media (max-width: 1000px) {

    /* 桌面导航栏缩小版 */
    .nav-container {
        gap: 2px;
        padding: 3px;
    }

    .nav-item {
        padding: 6px 7px;
        font-size: 0.5em;
        white-space: nowrap;
    }

    .auth-btn {
        padding: 8px 20px;
        font-size: 0.5em;
    }

    /* 账户信息优化 */
    .account-box {
        padding: 6px;
        font-size: 0.5em;
        max-width: 30%;
    }
}

@media (max-width: 768px) {
    .qq-float {
        bottom: 20px;
        right: -50px;
    }

    .qq-icon {
        width: 40px;
        height: 40px;
    }

    .checkout-section {
        padding: 10px 15px;
    }

    .total-value {
        font-size: 1.2em;
    }

    .checkout-btn {
        padding: 10px 25px;
        font-size: 1em;
    }

    .item-card.selected::after {
        bottom: 80px;
        /* 移动端减小间距 */
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .item-icon {
        width: 120px;
        height: 120px;
    }

    .item-icon-container {
        min-height: 160px;
        padding: 20px 0;
    }

    .item-card {
        width: 100%;
        height: auto;
        min-height: 200px;
    }

    .item-icon {
        width: 80px;
        height: 80px;
    }

    .item-name {
        font-size: 1em;
        max-width: 50%;
    }

    .item-price {
        font-size: 1em;
        padding: 3px 8px;
    }

    .search-bar input {
        width: 90%;
        padding: 10px 20px;
    }

    .search-bar input:focus {
        width: 95%;
    }

    #item-shop {
        height: calc(100vh - 70px);
        /* 移动端header较矮 */
    }

    .item-list-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .result-title {
        grid-column: 1 / -1;
        /* 跨所有列 */
        text-align: center;
        margin: 20px 0;
    }

    .result-title::before,
    .result-title::after {
        width: 5%;
    }

    .lottery-result-card {
        width: 70%;
        padding: 40px 50px;
    }

    .lucky-draw-container {
        height: 85vh;
        /* width: 40vh; */
        padding: 10px;
    }

    .lottery-item {
        padding: 8px;
    }

    .item-image {
        width: 48px;
        height: 48px;
    }

    .lottery-controls {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
    }

    .cost-display {
        font-size: 0.9em;
    }

    .lottery-btn {
        width: 100%;
        padding: 10px;
        font-size: 1em;
    }

    .vip-gifts-wrapper {
        height: 80vh;
        /* 移动端高度增大 */
        margin: 10px;
        border-radius: 8px;
    }

    .gifts-grid {
        grid-template-columns: 1fr;
        /* 单列布局 */
        gap: 12px;
    }

    .gifts-scroll-container {
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        /* 流畅滚动 */
    }

    .claim-footer {
        padding: 15px;
    }

    .claim-all-btn {
        width: 100%;
        /* 按钮全宽 */
        padding: 14px;
        font-size: 1em;
    }

    .map-container {
        display: none;
    }

    .mobile-map-alert {
        display: block;
    }

    .scale-display {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .announcement-list {
        padding-left: 30px;
        margin: 20px 15px;
    }

    .announcement-card {
        padding: 1rem;
    }

    .announcement-card::before {
        left: -26px;
        width: 10px;
        height: 10px;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .login-box {
        padding: 20px;
    }

    .tab-btn {
        font-size: 0.9em;
        padding: 10px;
    }

    .alert-box {
        padding: 20px;
        border-radius: 8px;
        width: 80%;
    }

    .alert-title {
        font-size: 1.1em;
    }

    .alert-content {
        font-size: 0.9em;
    }

    .alert-confirm {
        padding: 10px 25px;
    }

    .header {
        height: 70px;
    }

    .content-container {
        top: 70px;
        /* 调整移动端header高度 */
    }

    .content-item {
        padding: 15px;
        -webkit-overflow-scrolling: touch;
        /* 启用弹性滚动 */
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
        position: relative;
        padding: 15px 5%;
    }

    /* 隐藏桌面元素 */
    .nav-container,
    .desktop-auth {
        display: none !important;
    }

    /* 显示移动端菜单按钮 */
    .mobile-menu {
        display: block !important;
        order: 2;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 10px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
        width: 40px;
        height: 40px;
    }

    /* 创建三条线 */
    .mobile-menu::before,
    .mobile-menu::after {
        content: '';
        position: absolute;
        left: 8px;
        height: 2px;
        width: 24px;
        background: currentColor;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .mobile-menu::before {
        top: 12px;
    }

    .mobile-menu::after {
        bottom: 12px;
    }

    /* 中间线（使用span元素） */
    .mobile-menu span {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        height: 2px;
        width: 24px;
        background: currentColor;
        transition: opacity 0.3s ease;
    }

    /* 激活状态 - 转换为X */
    .mobile-menu.active::before {
        transform: rotate(45deg) translate(5px, 5px);
        width: 24px;
    }

    .mobile-menu.active::after {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 24px;
    }

    .mobile-menu.active span {
        opacity: 0;
    }

    /* 悬停动画 */
    .mobile-menu:hover::before,
    .mobile-menu:hover::after,
    .mobile-menu:hover span {
        background: #ffd700;
        /* 金色高亮 */
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    }

    .mobile-menu:hover {
        transform: scale(1.1);
    }

    @	keyframes menuClose {
        0% {
            transform: rotate(0deg);
        }

        50% {
            transform: rotate(-15deg) scale(0.95);
        }

        100% {
            transform: rotate(0deg) scale(1);
        }
    }

    .mobile-menu.active {
        animation: menuClose 0.4s ease forwards;
    }

    /* 账户信息适配 */
    .account-box {
        order: 1;
        flex-grow: 0;
        /* 修改这里 */
        max-width: 80%;
        /* 新增限制 */
        padding: 6px 10px;
        /* 调整内边距 */
        gap: 15px;
        /* 移除间隙 */
        overflow: hidden;
        /* 防止内容溢出 */
        font-size: 14px;
        /* 缩小字体大小 */
        align-items: center;
        /* 垂直居中 */
        transition: all 0.3s ease;
        display: flex !important;
        /* 强制flex布局 */
        justify-content: space-between;
    }

    .account-item:first-child {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 100%;
    }

    .account-box::after {
        content: none;
        /* 移除伪元素 */
    }

    /* 新增移动端账户框动画 */

    .account-item:not(:first-child) {
        display: none;
    }

    /* 显示前两个账户信息项 */
    .account-item:nth-child(1),
    .account-item:nth-child(2) {
        display: flex !important;
        align-items: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* VIP标签保持隐藏 */
    .account-item:nth-child(3) {
        display: none !important;
    }

    /* 添加装饰分隔线 */
    .account-item:nth-child(2)::before {
        content: "|";
        color: rgba(255, 255, 255, 0.3);
        margin-right: 10px;
    }


    /* 下拉菜单样式 */
    .dropdown-content {
        display: none;
        position: absolute;
        right: 0px;
        top: 70px;
        background: var(--main-bg);
        min-width: 160px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        z-index: 1000;
        border: 1px solid var(--accent-color);
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content .nav-item {
        color: var(--text-color);
        padding: 12px 16px;
        display: block;
        border-bottom: 1px solid var(--accent-color);
        text-align: center;
        white-space: nowrap;
        font-size: 0.7em;
    }

    .dropdown-content .auth-btn {
        display: block;
        width: 80%;
        margin: 10px auto;
        border-radius: 4px;
    }

    .dropdown-content .nav-item:hover {
        background: rgba(93, 58, 26, 0.3) !important;
        color: #fff !important;
    }

    /* 移除移动端伪元素动画 */
    .dropdown-content .nav-item::after {
        display: none;
    }

    .dropdown-content .auth-btn:hover {
        transform: none;
    }
}