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

body {
    font-family: 'KaiTi', '楷体', 'STKaiti', 'FangSong', serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 50%, #fff9c4 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: #424242;
}

/* 星空背景 */
.stars-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffd700;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 灵气粒子 */
.spiritual-energy {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.3));
    border-radius: 50%;
    animation: floatUp 12s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(30px) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(-30px) scale(0);
        opacity: 0;
    }
}

/* 音乐提示遮罩 */
.music-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.5s;
}

.music-prompt.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-prompt-content {
    text-align: center;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.music-prompt-icon {
    font-size: 100px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.music-prompt-text {
    font-size: 28px;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 15px;
    letter-spacing: 8px;
}

.music-prompt-hint {
    font-size: 16px;
    color: #757575;
    letter-spacing: 2px;
}

/* 反馈模态框 */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.feedback-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.feedback-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 255, 240, 0.98));
    border: 2px solid rgba(46, 125, 50, 0.5);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    height: 600px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.feedback-header {
    font-size: 20px;
    font-weight: bold;
    color: #2d5a2d;
    padding: 20px 25px;
    text-align: center;
    letter-spacing: 3px;
    border-bottom: 2px solid rgba(46, 125, 50, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    animation: blink 2s infinite;
}

.status-dot.offline {
    background: #999;
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.feedback-close {
    font-size: 24px;
    color: #757575;
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feedback-close:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #2d5a2d;
    transform: rotate(90deg);
}

/* 聊天区域 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 125, 50, 0.5);
}

.message-item {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s;
}

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

.message-item.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-item.user .message-avatar {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.message-content-wrapper {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message-sender {
    font-size: 12px;
    color: #666;
    padding: 0 8px;
}

.message-item.user .message-sender {
    text-align: right;
}

.message-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    border-radius: 12px;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-item.user .message-content {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(102, 187, 106, 0.9));
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    padding: 0 8px;
}

.message-item.user .message-time {
    text-align: right;
}

.system-message {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 8px;
    margin: 10px 0;
}

/* 输入区域 */
.chat-input-area {
    border-top: 2px solid rgba(46, 125, 50, 0.2);
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.5);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    min-height: 40px;
    max-height: 100px;
    padding: 10px 15px;
    border: 2px solid rgba(46, 125, 50, 0.3);
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d4a2d;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}

.chat-input:focus {
    border-color: #2d5a2d;
    outline: none;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.3);
    background: white;
}

.chat-send-btn {
    width: 50px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
}

.chat-send-btn:disabled {
    background: rgba(150, 150, 150, 0.5);
    cursor: not-allowed;
}

/* 快捷回复 */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px 0;
}

.quick-reply-btn {
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #2d5a2d;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-reply-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #2d5a2d;
    transform: translateY(-2px);
}

/* 打字指示器 */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #666;
    font-size: 13px;
}

.typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* 控制面板 */
.control-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.95));
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}




.control-btn:hover {
    transform: scale(1.15) rotate(180deg);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
    border-color: #ffd700;
}

.music-btn.playing {
    animation: musicPulse 2s ease-in-out infinite;
    border-color: #ffd700;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.8);
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 6px 30px rgba(255, 215, 0, 0.8);
    }
}

/* 背景面板 */
.bg-panel {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.98));
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    display: none;
}

/* 联系方式面板 */
.contact-panel {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.98));
    border: 2px solid #d4af37;
    border-radius: 20px;
    padding: 25px;
    width: 320px;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    display: none;
}

.contact-panel.show {
    display: block;
    animation: slideInRight 0.4s;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    background: rgba(255, 250, 240, 0.9);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: #d4af37;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 2px;
}

.contact-value {
    font-size: 16px;
    color: #424242;
    font-weight: 500;
}

.contact-copy {
    color: #d4af37;
    font-size: 20px;
    transition: all 0.3s;
}

.contact-item:hover .contact-copy {
    transform: scale(1.2);
}
.bg-panel.show {
    display: block;
    animation: slideInRight 0.4s;
}

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

.bg-panel-header {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 4px;
    text-align: center;
}

.bg-themes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.bg-theme-item {
    aspect-ratio: 16/9;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.bg-theme-item:hover {
    transform: scale(1.08);
    border-color: #d4af37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.bg-theme-item.active {
    border-color: #ffd700;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
}

.bg-theme-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #d4af37;
    padding: 6px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 2px;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 280px;
    padding: 18px 25px;
    border-radius: 15px;
    border: 2px solid;
    color: white;
    font-size: 15px;
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.toast.show {
    display: flex;
    animation: slideInDown 0.5s;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95), rgba(139, 195, 74, 0.95));
    border-color: #4caf50;
}

.toast-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(229, 115, 115, 0.95));
    border-color: #f44336;
}

.toast-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 213, 79, 0.95));
    border-color: #ffc107;
    color: #424242;
}

/* 容器样式 */
.container {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 250, 240, 0.95));
    padding: 40px 35px;
    border-radius: 25px;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(15px);
}

.title {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
    letter-spacing: 12px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
    }
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: #757575;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #d4af37;
    font-size: 15px;
    letter-spacing: 2px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: #424242;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* 照片上传区域 */
.photo-upload {
    border: 3px dashed rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.photo-upload::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.photo-upload:hover {
    border-color: #d4af37;
    transform: scale(1.02);
    background: rgba(255, 250, 240, 0.8);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.upload-text {
    color: #757575;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.upload-text strong {
    color: #d4af37;
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: 3px;
}

.photo-preview {
    margin-top: 25px;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border: 3px solid #d4af37;
    border-radius: 20px;
    display: none;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* 按钮样式 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #424242;
    border: 2px solid #d4af37;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.4s;
    letter-spacing: 6px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.submit-btn:disabled {
    background: rgba(200, 200, 200, 0.5);
    border-color: #bdbdbd;
    color: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #d4af37;
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 1);
    border-color: #d4af37;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 200, 0.5);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: #d4af37;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #d4af37;
}

input:checked + .slider:before {
    transform: translateX(27px);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

/* 加载动画 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-top: 5px solid #d4af37;
    border-radius: 50%;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #d4af37;
    margin-top: 30px;
    font-size: 22px;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* 炼制动画 */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.processing-overlay.show {
    display: flex;
}

.magic-circle {
    width: 350px;
    height: 350px;
    position: relative;
}

.circle-ring {
    position: absolute;
    border: 3px solid #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.ring-outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: rotateCircle 8s linear infinite;
}

.ring-middle {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: rotateReverse 6s linear infinite;
}

.ring-inner {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-style: dotted;
    animation: rotateCircle 4s linear infinite;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.bagua-center {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.taiji {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, #000 50%, #fff 50%);
    position: relative;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    animation: rotateTaiji 6s linear infinite;
}

.taiji::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: #fff;
    top: 0;
    left: 25%;
}

.taiji::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: #000;
    bottom: 0;
    left: 25%;
}

@keyframes rotateTaiji {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.taiji-dot-white {
    position: absolute;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    background: #fff;
    top: 16%;
    left: 41%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.taiji-dot-black {
    position: absolute;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    background: #000;
    bottom: 16%;
    left: 41%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.processing-text {
    color: #d4af37;
    margin-top: 60px;
    font-size: 24px;
    letter-spacing: 8px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 30px 25px;
    }

    .title {
        font-size: 32px;
        letter-spacing: 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .bg-panel {
        width: 280px;
    }

    .music-prompt-text {
        font-size: 24px;
    }
}

