/* ===== 黑色科技风格 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* ===== 加载状态和骨架屏 ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(0, 40, 60, 0.5) 25%, rgba(0, 80, 120, 0.3) 50%, rgba(0, 40, 60, 0.5) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.skeleton-button {
    height: 40px;
    width: 100%;
}

/* 全局加载覆盖层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 15, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 255, 0.2);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: #00ffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body {
    background: #0a0c0f;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.6), rgba(0, 150, 255, 0.8));
    border-radius: 15px;
    border: 2px solid rgba(0, 10, 20, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.8), rgba(0, 150, 255, 1));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    transform: scaleX(1.1);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(0, 200, 255, 1), rgba(0, 100, 255, 1));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* 兼容Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.8) rgba(0, 10, 20, 0.7);
}

/* 星云粒子背景（静态，降低GPU占用） */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.08) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(100, 0, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 科技网格背景（静态，降低GPU占用） */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.page {
    max-width: 1600px;
    width: 100%;
    max-height: calc(100vh - 32px);
    background: rgba(5, 10, 15, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 255, 255, 0.3);
    padding: 30px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 登录卡片 */
.auth-card {
    max-width: 560px;
    margin: 20px auto;
    background: rgba(5, 10, 15, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 44px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.auth-card h1 {
    text-align: left;
    padding-left: 45px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px cyan, 0 0 30px blue;
    font-weight: 700;
    letter-spacing: 4px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}
.auth-tab {
    font-size: 1.8rem;
    color: #8a9bb5;
    cursor: pointer;
    padding: 5px 20px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    font-weight: 500;
    position: relative;
}
.auth-tab.active {
    color: cyan;
    border-bottom-color: cyan;
    text-shadow: 0 0 20px cyan;
}
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: cyan;
    box-shadow: 0 0 20px cyan;
    transform: scaleX(0);
    transition: transform 0.3s;
}
.auth-tab.active::after {
    transform: scaleX(1);
}

h1, h2, h3 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #fff;
    text-shadow: 0 0 15px cyan, 0 0 30px blue;
    font-weight: 700;
    letter-spacing: 2px;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.6rem; border-left: 4px solid cyan; padding-left: 24px; margin-bottom: 40px; animation: slideIn 0.5s; }
h3 { font-size: 2rem; color: #aaddff; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

input, .bid-input, .duration-input {
    background: rgba(0, 10, 20, 0.7);
    border: 2px solid #2a6f8f;
    border-radius: 60px;
    padding: 18px 30px;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.6), 0 0 15px rgba(0,255,255,0.3);
    width: 100%;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
input:focus, .duration-input:focus {
    border-color: cyan;
    box-shadow: inset 0 4px 8px #000, 0 0 30px cyan;
    transform: scale(1.02);
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn {
    background: transparent;
    border: 2px solid cyan;
    border-radius: 60px;
    padding: 18px 44px;
    font-size: 1.5rem;
    font-weight: 600;
    color: cyan;
    box-shadow: 0 0 20px cyan;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(0, 20, 30, 0.3);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
    background: cyan;
    color: #0a0c0f;
    box-shadow: 0 0 40px cyan;
    transform: scale(1.05);
}
.btn:active {
    transform: scale(0.98);
}

.btn-small {
    padding: 12px 28px;
    font-size: 1.2rem;
}

.btn-no-border {
    background: transparent;
    border: none;
    box-shadow: none;
    color: cyan;
}

.btn-no-border:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: none;
}

.btn-no-border::before {
    display: none;
}

.balance-action-btn {
    padding: 6px 14px !important;
    font-size: 0.9rem !important;
    line-height: 1.2;
    margin: 0 2px;
}

#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}
.toast {
    background: linear-gradient(135deg, 
        rgba(15, 35, 60, 0.98), 
        rgba(5, 20, 40, 0.98),
        rgba(10, 25, 50, 0.98));
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 2px solid;
    border-radius: 30px;
    padding: 18px 42px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-width: 650px;
    text-align: center;
    pointer-events: none;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
}

.toast.success { 
    border-color: rgba(0, 255, 170, 0.7); 
    color: #ccffee;
    background: linear-gradient(135deg, 
        rgba(10, 40, 30, 0.98), 
        rgba(5, 30, 20, 0.98),
        rgba(8, 35, 25, 0.98));
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(0, 255, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.toast.error { 
    border-color: rgba(255, 85, 85, 0.7); 
    color: #ffcccc;
    background: linear-gradient(135deg, 
        rgba(40, 15, 15, 0.98), 
        rgba(30, 10, 10, 0.98),
        rgba(35, 12, 12, 0.98));
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(255, 85, 85, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.toast.info { 
    border-color: rgba(0, 217, 255, 0.7); 
    color: #cceeff;
    background: linear-gradient(135deg, 
        rgba(10, 30, 50, 0.98), 
        rgba(5, 20, 40, 0.98),
        rgba(8, 25, 45, 0.98));
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(0, 217, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.toast.warning { 
    border-color: rgba(255, 193, 7, 0.7); 
    color: #fff3cd;
    background: linear-gradient(135deg, 
        rgba(40, 35, 10, 0.98), 
        rgba(30, 25, 5, 0.98),
        rgba(35, 30, 8, 0.98));
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.7),
        0 0 70px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.toast-icon {
    font-size: 1.7rem;
    filter: drop-shadow(0 0 8px currentColor);
}
@keyframes toast-in {
    0% { 
        opacity: 0; 
        transform: translateY(-30px) scale(0.85); 
    }
    60% {
        transform: translateY(0) scale(1.03);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}
@keyframes toast-out {
    0% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.9); 
    }
}

/* 竞拍网格 - 每行5个物品 (响应式) */
.host-section {
    margin: 20px 0;
}

.host-container {
    display: grid;
    grid-template-columns: 3fr 3fr;
    gap: 20px;
    background: rgba(5, 15, 25, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 255, 255, 0.3);
    margin-bottom: 30px;
}

.host-video {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px cyan;
    width: 100%;
    flex-shrink: 0;
}

.host-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #0a1a2a;
    background-image: linear-gradient(45deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 255, 255, 0.1) 50%, rgba(0, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 80px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: cyan;
    font-size: 1.2rem;
    text-shadow: 0 0 15px cyan;
    box-sizing: border-box;
}

.host-image img {
}

.host-image[src=""] {
    background-color: #0a1a2a;
    background-image: linear-gradient(45deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 255, 255, 0.1) 50%, rgba(0, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 80px 80px;
}

.host-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    border-radius: 0 0 30px 30px;
}

.host-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: cyan;
    text-shadow: 0 0 15px cyan;
    margin-bottom: 3px;
}

.host-status {
    font-size: 0.8rem;
    color: #00ffaa;
    text-shadow: 0 0 10px #00ffaa;
}

#auctionPage {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#auctionPage h2 {
    flex-shrink: 0;
}

/* 后台管理页面样式 */
#adminPanelPage {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#adminPanelPage > .nav-links {
    flex-shrink: 0;
}

#adminPanelPage > h2 {
    flex-shrink: 0;
}

#adminPanelPage > .admin-grid {
    flex-shrink: 0;
}

/* 拍品管理区域 */
#adminPanelPage > .admin-section:last-of-type {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: auto;
    margin-bottom: 0;
}

#adminPanelPage > .admin-section:last-of-type > h3 {
    flex-shrink: 0;
}

#adminPanelPage > .admin-section:last-of-type > .global-settings {
    flex-shrink: 0;
}

.integrated-auction-section {
    margin: 20px 0 0 0;
    background: rgba(0, 10, 20, 0.8);
    border-radius: 25px;
    padding: 10px 20px 20px 20px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.left-section {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
    min-height: 0;
}

/* 1件拍品时，聊天框保持固定宽度 */
.integrated-auction-section.single-item .left-section {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 320px;
    width: 320px;
}

.integrated-auction-section.single-item .right-section {
    flex: 1;
}

/* 2件拍品时，聊天框保持固定宽度 */
.integrated-auction-section.two-items .left-section {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 320px;
    width: 320px;
}

.integrated-auction-section.two-items .right-section {
    flex: 1;
}

/* 3件以上拍品时，聊天框保持固定宽度 */
.integrated-auction-section.three-plus-items .left-section {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 320px;
    width: 320px;
}

.integrated-auction-section.three-plus-items .right-section {
    flex: 1;
}

.host-video {
    width: 100%;
    flex-shrink: 0;
}

.host-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 30, 0.9);
}

/* 拍卖师高度固定，缩小显示 */
.integrated-auction-section.single-item .host-image,
.integrated-auction-section.two-items .host-image,
.integrated-auction-section.three-plus-items .host-image {
    height: 180px;
}

.host-chat {
    width: 100%;
    background: rgba(0, 20, 30, 0.9);
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    border: none;
    box-shadow: none;
    min-height: 0;
    min-width: 0;
    max-height: 100%;
}

.right-section {
    flex: 1;
    min-width: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 20, 30, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-header h3 {
    text-align: center;
    margin-bottom: 8px;
    color: cyan;
    text-shadow: 0 0 15px cyan;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(0, 30, 40, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    min-height: 0;
    min-width: 0;
}

/* 自定义滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.5);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    transition: background 0.3s;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 兼容Firefox */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) rgba(0, 10, 20, 0.5);
}

.assistant-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 30, 40, 0.6);
    border-radius: 15px;
    border-left: 3px solid cyan;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.user-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(40, 0, 40, 0.6);
    border-radius: 15px;
    border-right: 3px solid #ff00ff;
    text-align: right;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.message-sender {
    font-weight: bold;
    color: cyan;
    margin-right: 8px;
}

.user-message .message-sender {
    color: #ff00ff;
    margin-right: 0;
    margin-left: 8px;
}

.message-content {
    color: #aaddff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    display: block;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-input {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    min-height: 50px;
    height: 50px;
    align-items: center;
    margin-top: 4px;
}

.chat-input-field {
    flex: 1;
    background: rgba(0, 10, 20, 0.7);
    border: 2px solid #2a6f8f;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.6), 0 0 10px rgba(0,255,255,0.3);
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.chat-input-field:focus {
    border-color: cyan;
    box-shadow: inset 0 4px 8px #000, 0 0 20px cyan;
    transform: scale(1.02);
}

.chat-input .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    height: 44px;
    min-height: 44px;
    line-height: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.auction-content {
    margin-top: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 10px;
    margin-right: -10px;
    padding-right: 0;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    box-sizing: content-box;
}

.auction-grid::-webkit-scrollbar {
    width: 12px;
}

.auction-grid::-webkit-scrollbar-track {
    background: rgba(0, 50, 80, 0.3);
    border-radius: 6px;
}

.auction-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #00aaff);
    border-radius: 6px;
    border: 2px solid rgba(0, 50, 80, 0.5);
}

.auction-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #0088ff);
}

/* 同时竞拍模式下每行显示2件拍品 */
#auctionPage:not(.rotation-mode) .auction-grid {
    grid-template-columns: repeat(2, minmax(400px, 1fr));
}

/* 同时竞拍模式下只有1件拍品时居中显示 */
#auctionPage:not(.rotation-mode) .auction-grid.single-item {
    grid-template-columns: 1fr;
    justify-items: center;
}

#auctionPage:not(.rotation-mode) .auction-grid.single-item .item-card {
    max-width: 600px;
    width: 100%;
}

/* 同时竞拍模式下2件拍品时的布局 */
#auctionPage:not(.rotation-mode) .auction-grid.two-items {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}

#auctionPage:not(.rotation-mode) .auction-grid.two-items .item-card {
    max-width: 500px;
    width: 100%;
}

/* 同时竞拍模式下3件以上拍品时的布局 */
#auctionPage:not(.rotation-mode) .auction-grid.three-plus-items {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    justify-items: center;
}

#auctionPage:not(.rotation-mode) .auction-grid.three-plus-items .item-card {
    max-width: 450px;
    width: 100%;
}
.item-card {
    background: rgba(5, 15, 25, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 15px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.item-card:hover {
    border-color: cyan;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 255, 0.4);
}



.item-card .item-image {
    width: 100%;
    height: 250px;
    border-radius: 50px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a1a2a;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.item-card h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
    transition: color 0.3s;
    color: #fff;
    text-shadow: 0 0 12px cyan;
}

.item-card .timer-block {
    text-align: center;
    margin: 15px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-card .timer {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 2.2rem;
    color: cyan;
    text-shadow: 0 0 15px cyan, 0 0 30px rgba(0, 0, 255, 0.5);
    display: inline-block;
    text-align: center;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.item-card .timer.ended {
    color: #ff4d4d;
    text-shadow: 0 0 15px #ff0000, 0 0 30px rgba(255, 102, 0, 0.5);
}

.item-card .price-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0 10px;
}

.item-card .price-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-card .price-label {
    font-size: 1rem;
    color: #aaddff;
}

.item-card .starting-price {
    font-size: 1.2rem;
    color: #aaddff;
    font-weight: bold;
}

.item-card .current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffe694;
}

.item-card .stock-info {
    background: rgba(20, 40, 60, 0.8);
    border-radius: 50px;
    color: #ffaa00;
    padding: 8px 16px;
    font-size: 1.2rem;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 0 20px #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.5);
}

.item-card .bid-area {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    align-items: center;
}
.item-card .bid-input {
    flex: 1.5;
    min-width: 120px;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-width: 2px;
    height: 60px;
    line-height: 1.2;
    background: rgba(0, 10, 20, 0.9);
    text-align: center;
}

.item-card .bid-btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2rem;
    height: 60px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.item-card .bid-btn .hammer-icon {
    font-size: 1.4rem;
    margin-right: 5px;
}
.item-card .bid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: gray;
    box-shadow: none;
}
.winners-badge {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid cyan;
    border-radius: 50px;
    color: cyan;
    padding: 10px 15px;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: transparent;
    border: none;
    border-radius: 60px;
    padding: 5px 15px 5px 0;
    box-shadow: none;
    backdrop-filter: none;
}
.nav-links .user-info {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}
.nav-links .user-info span {
    color: cyan;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 50px;
    transition: 0.3s;
    margin-left: 0;
    display: flex;
    align-items: center;
    text-align: left;
}

.nav-links .user-info span #currentBalanceDisplay {
    color: cyan;
    font-weight: 500;
    margin-left: 0;
}
.nav-links .nav-buttons {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-links .nav-icon {
    margin-right: 1px;
    font-size: 1rem;
}
.nav-links a {
    background: transparent;
    border: none;
    color: cyan;
    padding: 10px 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}
.nav-links a:hover {
    color: #ff6347;
    transform: translateY(-2px);
}

.nav-links .user-info span #currentBalanceDisplay {
    color: cyan;
    font-weight: 500;
}

.admin-section {
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 0 30px rgba(0,255,255,0.2);
}

/* 后台网格布局 */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.admin-card {
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,255,255,0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-card:hover {
    border-color: cyan;
    box-shadow: 0 0 40px rgba(0,255,255,0.4);
    transform: translateY(-2px);
}

.admin-card.full-width {
    grid-column: 1 / -1;
}

/* 优化核心设置区域的布局 */
#adminPanelPage .admin-grid:first-of-type {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 确保核心设置区域的卡片样式 */
#adminPanelPage .admin-grid:first-of-type .admin-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 优化核心设置区域的按钮样式 */
#adminPanelPage .admin-grid:first-of-type .btn {
    min-width: 120px;
}

/* 优化核心设置区域的输入框和选择框 */
#adminPanelPage .admin-grid:first-of-type .duration-input {
    width: 100px;
    text-align: center;
}

#adminPanelPage .admin-grid:first-of-type .unit-select {
    width: 120px;
}

/* 优化核心设置区域的全局设置样式 */
#adminPanelPage .admin-grid:first-of-type .global-settings {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

/* 优化竞拍控制卡片的布局 */
#adminPanelPage .admin-grid:first-of-type .admin-card:first-child .global-settings {
    flex-direction: column;
    gap: 10px;
}

#adminPanelPage .admin-grid:first-of-type .admin-card:first-child .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

#adminPanelPage .admin-grid:first-of-type .admin-card:first-child span {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    display: block;
}

/* 优化拍品管理区域 */
.admin-section {
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 0 30px rgba(0,255,255,0.2);
}

/* 优化统计和记录区域的布局 */
#adminPanelPage .admin-grid:last-of-type {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* 为用户列表和资产管理表格添加滚动功能 */
.admin-card.full-width table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 30px cyan;
    margin-top: 15px;
}

.admin-card.full-width table thead {
    position: sticky;
    top: 0;
    background: #0a1a2a;
    z-index: 10;
}

.admin-card.full-width table tbody {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

.admin-card.full-width table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* 优化表格滚动条 */
.admin-card.full-width table tbody::-webkit-scrollbar {
    width: 8px;
}

.admin-card.full-width table tbody::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.5);
    border-radius: 15px;
}

.admin-card.full-width table tbody::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 15px;
    transition: background 0.3s;
}

.admin-card.full-width table tbody::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* 兼容Firefox */
.admin-card.full-width table tbody {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) rgba(0, 10, 20, 0.5);
}

.admin-card h3 {
    margin-bottom: 20px;
    color: cyan;
    text-shadow: 0 0 15px cyan;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-card {
        padding: 20px;
        border-radius: 40px;
    }
}

/* 开关样式 */
.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-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00ffaa;
    box-shadow: 0 0 10px #00ffaa;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.global-settings {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 10, 20, 0.7);
    padding: 25px;
    border-radius: 60px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    margin-bottom: 25px;
    box-shadow: inset 0 0 20px #000, 0 0 30px cyan;
}

.settings-label {
    color: cyan;
    font-size: 1.4rem;
    margin-right: 10px;
    text-shadow: 0 0 15px cyan;
}

.duration-input {
    width: 200px;
    padding: 16px 24px;
    font-size: 1.2rem;
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid cyan;
}

.unit-select {
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid cyan;
    border-radius: 60px;
    padding: 16px 20px;
    font-size: 1.2rem;
    color: cyan;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 0 20px cyan;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
    margin-right: -10px;
    padding-right: 0;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: content-box;
}

.editor-grid::-webkit-scrollbar {
    width: 12px;
}

.editor-grid::-webkit-scrollbar-track {
    background: rgba(0, 50, 80, 0.3);
    border-radius: 6px;
}

.editor-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #00aaff);
    border-radius: 6px;
    border: 2px solid rgba(0, 50, 80, 0.5);
}

.editor-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #0088ff);
}
.editor-card {
    background: rgba(5, 15, 25, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 40px;
    padding: 22px;
    box-shadow: inset 0 0 20px #000, 0 0 30px cyan;
    transition: 0.3s;
}
.editor-card:hover {
    border-color: cyan;
    box-shadow: 0 0 40px cyan;
}
.editor-card label {
    color: cyan;
    font-size: 1.2rem;
    display: block;
    margin: 12px 0 6px;
}
.editor-card input {
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid cyan;
    border-radius: 50px;
    padding: 12px 18px;
    color: white;
    width: 100%;
    margin-bottom: 8px;
}
.image-preview {
    width: 100%;
    height: 120px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    border: 2px solid cyan;
    margin-bottom: 15px;
    box-shadow: 0 0 20px cyan;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 30px cyan;
}
th {
    background: #0a1a2a;
    color: cyan;
    font-size: 1.2rem;
    padding: 16px;
    border-bottom: 2px solid cyan;
    text-align: center;
}
td {
    background: rgba(0, 10, 20, 0.5);
    color: #aaddff;
    padding: 14px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    vertical-align: middle;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hidden { display: none !important; }

.auth-mode-login .bid-input,
.auth-mode-register .bid-input,
.auth-mode-register .extra-field input,
.auth-mode-login .btn,
.auth-mode-register .btn {
    margin-bottom: 18px;
}
.auth-mode-login .btn,
.auth-mode-register .btn {
    margin-top: 0;
}



.rule-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}
.rule-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(5, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid cyan;
    border-radius: 60px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px cyan;
    color: #aaddff;
    position: relative;
    animation: scaleIn 0.3s;
}

/* 规则模态框滚动条样式 */
.rule-content::-webkit-scrollbar {
    width: 8px;
}

.rule-content::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.5);
    border-radius: 15px;
}

.rule-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 15px;
    transition: background 0.3s;
}

.rule-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* 兼容Firefox */
.rule-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.5) rgba(0, 10, 20, 0.5);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.rule-content h2 {
    color: cyan;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    border-left: none;
    border-bottom: 2px solid cyan;
    padding-bottom: 15px;
    padding-left: 0;
}
.rule-content h3 {
    color: cyan;
    margin: 20px 0 10px;
    font-size: 1.8rem;
    border-left: 4px solid cyan;
    padding-left: 15px;
}
.rule-content p, .rule-content li {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.rule-content ul {
    list-style: none;
    padding-left: 20px;
}
.rule-content li::before {
    content: '▶';
    color: cyan;
    margin-right: 10px;
}
.close-rule {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 3rem;
    color: cyan;
    cursor: pointer;
    background: none;
    border: none;
    text-shadow: 0 0 20px cyan;
    transition: 0.3s;
}
.close-rule:hover {
    color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .page {
        padding: 15px;
        border-radius: 40px;
    }
    .auth-card {
        padding: 25px;
        border-radius: 35px;
    }
    .auth-card h1 {
        font-size: 2.2rem;
        padding-left: 20px;
        letter-spacing: 2px;
    }
    .auth-tab {
        font-size: 1.3rem;
        padding: 5px 10px;
    }
    .bid-input, .duration-input {
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 40px;
    }
    .btn {
        padding: 14px 25px;
        font-size: 1.2rem;
        border-radius: 40px;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .nav-links .left, .nav-links .right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-links a, .nav-links .right span {
        padding: 8px 16px;
        font-size: 1rem;
        border-radius: 40px;
    }
    .nav-links .right span {
        display: block;
        text-align: center;
        order: -1;
        width: 100%;
    }
    .host-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .host-video, .host-chat {
        width: 100%;
    }
    .host-image {
        height: 200px;
    }
    .host-chat {
        height: 200px;
    }
    .chat-messages {
        max-height: 120px;
    }
    .auction-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 20px;
    }
    #auctionPage:not(.rotation-mode) .auction-grid {
        grid-template-columns: 1fr;
    }
    .item-card {
        padding: 20px 15px;
        border-radius: 40px;
    }
    .item-card .item-image {
        height: 150px;
        border-radius: 30px;
    }
    .item-card h3 {
        font-size: 1.6rem;
    }
    .item-card .timer {
        font-size: 1.6rem;
    }
    .item-card .price-info {
        flex-direction: column;
        gap: 10px;
    }
    .item-card .current-price {
        font-size: 1.4rem;
        border-radius: 40px;
    }
    .item-card .stock-info {
        font-size: 0.9rem;
        border-radius: 30px;
    }
    .item-card .bid-area {
        flex-direction: column;
    }
    .item-card .bid-input {
        flex: 1;
        padding: 12px 15px;
        font-size: 1rem;
        height: 50px;
        border-radius: 40px;
    }
    .item-card .bid-btn {
        flex: 1;
        padding: 12px 15px;
        font-size: 1rem;
        height: 50px;
        border-radius: 40px;
    }
    .winners-badge {
        font-size: 0.8rem;
        padding: 6px 10px;
        border-radius: 30px;
    }
    .admin-section {
        padding: 15px;
        overflow-x: auto;
        border-radius: 40px;
    }
    table {
        font-size: 0.8rem;
        border-radius: 20px;
    }
    th, td {
        padding: 6px 4px;
    }
    .global-settings {
        padding: 15px;
        gap: 15px;
        border-radius: 40px;
        flex-direction: column;
        align-items: stretch;
    }
    .duration-input {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .unit-select {
        width: 100%;
        max-width: 150px;
        margin: 0 auto;
    }
    .settings-label {
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .editor-card {
        border-radius: 30px;
        padding: 15px;
    }
    .image-preview {
        border-radius: 20px;
        height: 100px;
    }
    .rule-content {
        border-radius: 40px;
        padding: 25px;
    }
    .rule-content h2 {
        font-size: 2rem;
    }
    .rule-content h3 {
        font-size: 1.5rem;
    }
    .rule-content p, .rule-content li {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-card h1 {
        font-size: 1.8rem;
        padding-left: 15px;
    }
    .auth-tab {
        font-size: 1.1rem;
    }
    .bid-input, .duration-input {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    .host-image {
        height: 150px;
    }
    .host-chat {
        height: 180px;
    }
    .chat-messages {
        max-height: 100px;
    }
    .item-card .item-image {
        height: 120px;
    }
    .item-card h3 {
        font-size: 1.4rem;
    }
    .item-card .timer {
        font-size: 1.4rem;
    }
    .item-card .current-price {
        font-size: 1.2rem;
    }
    .nav-links a, .nav-links .right span {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    .rule-content {
        padding: 20px;
    }
    .rule-content h2 {
        font-size: 1.8rem;
    }
    .page {
        padding: 10px;
        border-radius: 30px;
    }
    .auth-card {
        padding: 20px;
        border-radius: 30px;
    }
    .item-card {
        padding: 15px 10px;
        border-radius: 30px;
    }
}

/* 自定义确认对话框样式 */
.custom-confirm-dialog {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.custom-confirm-content {
    max-width: 500px;
    width: 90%;
    background: rgba(5, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid cyan;
    border-radius: 60px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 50px cyan;
    color: #aaddff;
    position: relative;
    animation: scaleIn 0.3s;
    text-align: center;
}

.custom-confirm-content h3 {
    color: cyan;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 0 15px cyan;
}

.custom-confirm-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #aaddff;
}

.confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-buttons .btn {
    flex: 1;
    min-width: 120px;
}

.confirm-buttons .cancel-btn {
    border-color: #ff4d4d;
    color: #ff4d4d;
    box-shadow: 0 0 20px #ff4d4d;
    background: rgba(30, 0, 0, 0.3);
}

.confirm-buttons .cancel-btn:hover {
    background: #ff4d4d;
    color: #0a0c0f;
    box-shadow: 0 0 40px #ff4d4d;
}

.confirm-buttons .confirm-btn {
    border-color: #00ffaa;
    color: #00ffaa;
    box-shadow: 0 0 20px #00ffaa;
    background: rgba(0, 30, 0, 0.3);
}

.confirm-buttons .confirm-btn:hover {
    background: #00ffaa;
    color: #0a0c0f;
    box-shadow: 0 0 40px #00ffaa;
}

/* ===== 移动端响应式优化 ===== */
@media (max-width: 768px) {
    body {
        padding: 8px;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .page {
        max-width: 100%;
        max-height: none;
        padding: 16px;
        border-radius: 30px;
        min-height: calc(100vh - 16px);
    }

    /* 导航栏优化 */
    .nav-links {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .user-info {
        font-size: 1rem;
        text-align: center;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-buttons a {
        font-size: 0.85rem;
        padding: 8px 12px;
        border-radius: 20px;
    }

    .nav-buttons a .nav-icon {
        font-size: 1rem;
    }

    /* 综合竞拍区域优化 */
    .integrated-auction-section {
        flex-direction: column;
        gap: 16px;
    }

    .left-section {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }

    .right-section {
        width: 100%;
    }

    /* 拍卖师区域优化 */
    .host-image {
        height: 180px !important;
        padding: 16px;
    }

    .host-image > div {
        font-size: 2rem !important;
    }

    .host-image > div > div:nth-child(2) {
        font-size: 0.9rem !important;
    }

    .host-image > div > div:nth-child(3) {
        font-size: 0.75rem !important;
    }

    /* 聊天区域优化 */
    .host-chat {
        min-height: 200px;
        max-height: 300px;
    }

    .chat-header h3 {
        font-size: 1.1rem;
    }

    .chat-messages {
        max-height: 180px;
    }

    .message-sender {
        font-size: 0.85rem;
    }

    .message-content {
        font-size: 0.9rem;
    }

    .chat-input-field {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    .chat-input .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    /* 拍品网格优化 */
    .auction-grid {
        gap: 12px;
    }

    .item-card {
        padding: 16px 12px;
        border-radius: 25px;
    }

    .item-image {
        height: 180px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .item-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .timer {
        font-size: 1.1rem;
    }

    .price-info {
        gap: 8px;
        margin-bottom: 12px;
    }

    .price-label {
        font-size: 0.9rem;
    }

    .starting-price,
    .current-price {
        font-size: 1rem;
    }

    .bid-input {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .bid-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }

    .bid-btn .hammer-icon {
        font-size: 1.2rem;
    }

    /* 登录/注册卡片优化 */
    .auth-card {
        padding: 24px 16px;
        border-radius: 30px;
        max-width: 100%;
    }

    .auth-card h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .auth-tab {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .auth-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .auth-card input {
        font-size: 1rem;
        padding: 12px 16px;
        margin-bottom: 12px;
    }

    .auth-card .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .extra-field input {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    /* 标题优化 */
    h2 {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    /* 模态框优化 */
    .rule-content {
        padding: 20px;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .rule-content h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .rule-content h3 {
        font-size: 1.2rem;
        margin-top: 16px;
        margin-bottom: 10px;
    }

    .rule-content li {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .close-rule {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        padding: 8px 12px;
    }

    /* 自定义确认对话框优化 */
    .custom-confirm-content {
        padding: 24px 16px;
        border-radius: 30px;
        max-width: 90%;
    }

    .custom-confirm-content h3 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .custom-confirm-content p {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .confirm-buttons {
        gap: 12px;
    }

    .confirm-buttons .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Toast提示优化 */
    .toast {
        font-size: 0.95rem;
        padding: 12px 16px;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .toast-icon {
        font-size: 1.1rem;
    }

    /* 竞拍页面优化 */
    #auctionPage h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    /* 中标横幅优化 */
    .winner-banner {
        font-size: 1rem;
        padding: 12px 20px;
        top: 100px;
    }

    /* 管理面板优化 */
    .admin-section {
        padding: 16px;
        border-radius: 25px;
    }

    .admin-section h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .admin-item-card {
        padding: 12px;
        border-radius: 20px;
    }

    .admin-item-card input {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .admin-item-card label {
        font-size: 0.85rem;
    }

    .admin-controls {
        flex-direction: column;
        gap: 12px;
    }

    .admin-controls input {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .admin-controls .btn {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    /* 个人中心优化 */
    .user-center-section {
        padding: 16px;
        border-radius: 25px;
    }

    .user-center-section h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .user-info-card {
        padding: 16px;
        border-radius: 20px;
    }

    .user-info-row {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .user-info-label {
        font-size: 0.9rem;
    }

    .user-info-value {
        font-size: 1rem;
    }

    /* 中标排行优化 */
    .result-section {
        padding: 16px;
        border-radius: 25px;
    }

    .result-section h3 {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .winner-list-item {
        padding: 12px;
        border-radius: 15px;
        font-size: 0.95rem;
    }

    .winner-rank {
        font-size: 1.1rem;
        width: 32px;
        height: 32px;
    }

    .winner-info {
        font-size: 0.9rem;
    }

    .winner-price {
        font-size: 1rem;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    body {
        padding: 4px;
    }

    .page {
        padding: 12px;
        border-radius: 20px;
    }

    .nav-buttons a {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .nav-buttons a .nav-icon {
        font-size: 0.9rem;
    }

    .item-card {
        padding: 12px 10px;
    }

    .item-image {
        height: 150px;
    }

    .item-card h3 {
        font-size: 1.1rem;
    }

    .timer {
        font-size: 1rem;
    }

    .bid-input,
    .bid-btn {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .auth-card {
        padding: 20px 12px;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .auth-tab {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* 触摸手势优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大触摸目标 */
    .btn,
    .nav-buttons a,
    .bid-btn,
    .close-rule,
    .confirm-buttons .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* 移除悬停效果 */
    .btn:hover,
    .nav-buttons a:hover,
    .item-card:hover,
    .bid-btn:hover {
        transform: none;
    }

    /* 添加点击反馈 */
    .btn:active,
    .nav-buttons a:active,
    .bid-btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }

    /* 禁用双击缩放 */
    * {
        touch-action: manipulation;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: 8px;
    }

    .page {
        max-height: none;
        min-height: 100vh;
    }

    .integrated-auction-section {
        flex-direction: row;
    }

    .left-section {
        flex: 0.4;
    }

    .right-section {
        flex: 0.6;
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
