/* ===== 基础样式 ===== */
:root {
    --deep-indigo: #1a1a2e;
    --nailong-yellow: #FFD93D;
    --antique-gold: #C9A227;
    --cream: #F5F5DC;
    --dark-overlay: rgba(26, 26, 46, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--deep-indigo);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 全屏模式支持 */
body:fullscreen {
    width: 100vw;
    height: 100vh;
}

body:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

body:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

/* 星空奶龙背景 */
.museum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/starry-nailong-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== 带标签的按钮容器 ===== */
.btn-with-label {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1000;
}

.btn-with-label .btn-label {
    font-size: 0.7rem;
    color: var(--antique-gold);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    opacity: 0.9;
}

/* 全屏按钮定位 */
.fullscreen-label-wrapper {
    top: 20px;
    right: 20px;
}

/* 音乐按钮定位 */
.audio-label-wrapper {
    bottom: 20px;
    right: 20px;
}

/* 答题卡按钮定位 */
.answer-card-label-wrapper {
    bottom: 20px;
    left: 20px;
}

/* ===== 全屏按钮 ===== */
.fullscreen-btn {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.2);
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--antique-gold);
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(201, 162, 39, 0.4);
    transform: scale(1.1);
}

/* ===== 背景音乐控制 ===== */
.audio-control {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.2);
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--antique-gold);
    transition: all 0.3s ease;
}

.audio-control:hover {
    background: rgba(201, 162, 39, 0.4);
    transform: scale(1.1);
}

.audio-control.muted {
    opacity: 0.5;
}

/* ===== 答题卡按钮 ===== */
.answer-card-btn {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.2);
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--antique-gold);
    transition: all 0.3s ease;
}

.answer-card-btn:hover {
    background: rgba(201, 162, 39, 0.4);
    transform: scale(1.1);
}

/* ===== 答题卡弹窗 ===== */
.answer-card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.answer-card-content {
    background: var(--deep-indigo);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--antique-gold);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.answer-card-content h3 {
    color: var(--antique-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.answer-card-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--antique-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.answer-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.answer-card-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border: 2px solid var(--antique-gold);
    border-radius: 10px;
    color: var(--cream);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.answer-card-cell:hover {
    background: rgba(201, 162, 39, 0.3);
    transform: scale(1.1);
}

.answer-card-cell.current {
    background: var(--nailong-yellow);
    color: var(--deep-indigo);
    border-color: var(--nailong-yellow);
    font-weight: 700;
}

.answer-card-cell.answered {
    background: rgba(0, 200, 0, 0.2);
    border-color: #90EE90;
}

/* ===== 登录系统 ===== */
.auth-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-btn {
    padding: 0.5rem 1rem;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--antique-gold);
    border-radius: 20px;
    color: var(--antique-gold);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: rgba(201, 162, 39, 0.4);
    transform: scale(1.05);
}

.username-display {
    color: var(--antique-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: var(--deep-indigo);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--antique-gold);
    max-width: 380px;
    width: 90%;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--antique-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-form h3 {
    color: var(--antique-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--antique-gold);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.5);
    color: var(--cream);
    font-size: 0.95rem;
}

.auth-form input::placeholder {
    color: rgba(245, 245, 220, 0.5);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 10px;
    color: var(--deep-indigo);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

.auth-error, .auth-success {
    text-align: center;
    margin-bottom: 1rem;
    min-height: 1.2rem;
    font-size: 0.9rem;
}

.auth-error { color: #FFB6C1; }
.auth-success { color: #90EE90; }

.auth-form .divider {
    text-align: center;
    margin: 1rem 0;
    color: rgba(245, 245, 220, 0.5);
    position: relative;
}

.auth-form .divider::before,
.auth-form .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(201, 162, 39, 0.3);
}

.auth-form .divider::before { left: 0; }
.auth-form .divider::after { right: 0; }

.wechat-btn {
    width: 100%;
    padding: 0.7rem;
    background: #07C160;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--antique-gold);
    text-decoration: none;
    font-weight: 600;
}

/* ===== 主页样式 ===== */
.hero-section {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

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

.nailong-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.nailong-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--antique-gold);
    box-shadow: 
        0 0 40px rgba(201, 162, 39, 0.3),
        0 0 80px rgba(201, 162, 39, 0.1);
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-5px); }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

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

.museum-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--antique-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.title-sub {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--nailong-yellow);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.museum-desc {
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.start-btn {
    position: relative;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    color: var(--deep-indigo);
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 217, 61, 0.3),
        0 0 30px rgba(201, 162, 39, 0.2);
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 217, 61, 0.4),
        0 0 50px rgba(201, 162, 39, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.start-btn:hover .btn-shine {
    left: 100%;
}

/* ===== 答题页样式 ===== */
.quiz-container {
    width: 100%;
    max-width: 800px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
}

.progress-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--antique-gold);
}

.progress-score {
    font-size: 0.9rem;
    color: var(--nailong-yellow);
}

.painting-frame {
    position: relative;
    margin-bottom: 2rem;
    padding: 15px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border: 3px solid var(--antique-gold);
    border-radius: 5px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(201, 162, 39, 0.1);
}

.painting-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    pointer-events: none;
}

/* 去除水印的图片样式 */
.painting-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background: #000;
    /* 使用 clip-path 去除四角水印 */
    clip-path: inset(3% 3% 3% 3%);
}

.question-text {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.options-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--antique-gold);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label input[type="radio"]:checked + .option-text {
    color: var(--nailong-yellow);
}

.option-label:has(input[type="radio"]:checked) {
    background: rgba(255, 217, 61, 0.1);
    border-color: var(--nailong-yellow);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.2);
}

.option-text {
    font-size: 1.1rem;
    margin-left: 1rem;
}

.option-marker {
    width: 24px;
    height: 24px;
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--antique-gold);
    flex-shrink: 0;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    color: var(--deep-indigo);
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== 反馈页样式 ===== */
.feedback-container {
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.video-container {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-container video {
    width: 100%;
    max-height: 300px;
    display: block;
}

.explanation-section {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.thinking-nailong {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--antique-gold);
    flex-shrink: 0;
    /* 去除水印 */
    clip-path: inset(3% 3% 3% 3%);
}

.speech-bubble {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-indigo);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 30px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid rgba(255, 255, 255, 0.95);
}

.explanation-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--antique-gold);
    margin-bottom: 0.5rem;
}

.explanation-text {
    font-size: 1rem;
    line-height: 1.6;
}

.next-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    color: var(--deep-indigo);
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.4);
}

/* ===== 通关页样式 ===== */
.complete-container {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.pass-video {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.final-message {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--nailong-yellow);
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 217, 61, 0.5); }
    50% { text-shadow: 0 0 50px rgba(255, 217, 61, 0.8), 0 0 80px rgba(255, 217, 61, 0.4); }
}

.final-quote {
    font-size: 1.2rem;
    color: var(--antique-gold);
    margin-bottom: 2rem;
}

.restart-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
    color: var(--cream);
    background: transparent;
    border: 2px solid var(--antique-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: var(--antique-gold);
    color: var(--deep-indigo);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
    }
    
    .nailong-img {
        width: 200px;
        height: 200px;
    }
    
    .explanation-section {
        flex-direction: column;
        align-items: center;
    }
    
    .speech-bubble::before {
        display: none;
    }
    
    .final-message {
        font-size: 1.8rem;
    }
    
    .fullscreen-btn,
    .audio-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 全屏模式下的样式优化 */
:fullscreen .container {
    max-width: 100%;
    padding: 1rem;
}

:fullscreen .painting-img {
    max-height: 50vh;
}


/* ===== 选择页面样式 ===== */
.select-container {
    text-align: center;
    padding: 2rem;
}

.select-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--antique-gold);
    margin-bottom: 1rem;
}

.select-desc {
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.quiz-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.quiz-option-btn {
    width: 150px;
    height: 150px;
    background: rgba(201, 162, 39, 0.1);
    border: 2px solid var(--antique-gold);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-option-btn:hover {
    background: rgba(201, 162, 39, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.option-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--nailong-yellow);
    font-family: 'Playfair Display', serif;
}

.option-label {
    font-size: 0.9rem;
    color: var(--cream);
}

.back-home-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid var(--antique-gold);
    border-radius: 25px;
    color: var(--antique-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: var(--antique-gold);
    color: var(--deep-indigo);
}

/* ===== 声明弹窗样式 ===== */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disclaimer-modal.hidden {
    display: none;
}

.disclaimer-content {
    background: var(--deep-indigo);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--antique-gold);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.disclaimer-content h2 {
    color: var(--antique-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.disclaimer-text {
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.disclaimer-text p {
    color: var(--cream);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.disclaimer-text a {
    color: var(--nailong-yellow);
    text-decoration: none;
}

.disclaimer-text a:hover {
    text-decoration: underline;
}

.disclaimer-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 30px;
    color: var(--deep-indigo);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.disclaimer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.4);
}

/* ===== 原画展示样式 ===== */
.original-painting-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.original-title {
    color: var(--antique-gold);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.painting-comparison {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.painting-item {
    text-align: center;
}

.comparison-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--antique-gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.painting-label {
    margin-top: 0.5rem;
    color: var(--cream);
    font-size: 0.9rem;
}

/* ===== 加载动画 ===== */
.auth-loading {
    position: relative;
    color: transparent !important;
}
.auth-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--deep-indigo);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== 投稿按钮定位 ===== */
.submit-label-wrapper {
    bottom: 20px;
    left: 20px;
}

.submit-corner-btn {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.2);
    border: 2px solid var(--antique-gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--antique-gold);
    transition: all 0.3s ease;
}

.submit-corner-btn:hover {
    background: rgba(201, 162, 39, 0.4);
    transform: scale(1.1);
}

/* ===== 投稿弹窗 ===== */
.submission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.submission-modal-content {
    background: var(--deep-indigo);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--antique-gold);
    max-width: 450px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.submission-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--antique-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.submission-modal-content h3 {
    color: var(--antique-gold);
    text-align: center;
    margin-bottom: 0.5rem;
}

.submission-desc {
    text-align: center;
    color: rgba(245, 245, 220, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.upload-area {
    border: 2px dashed var(--antique-gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: rgba(201, 162, 39, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: rgba(245, 245, 220, 0.5);
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.submission-modal-content .form-group {
    margin-bottom: 1rem;
}

.submission-modal-content .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--antique-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.submission-modal-content .form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--antique-gold);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.5);
    color: var(--cream);
    font-size: 0.95rem;
}

.submission-modal-content .form-group input::placeholder {
    color: rgba(245, 245, 220, 0.4);
}

.submit-artwork-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep-indigo);
    background: linear-gradient(135deg, var(--nailong-yellow) 0%, var(--antique-gold) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

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

.submit-artwork-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.submit-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
}

.submit-message.success {
    background: rgba(0, 255, 0, 0.2);
    color: #90EE90;
}

.submit-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #FFB6C1;
}
