/* 通用面板卡片样式 */
.left-section, .right-section {
    background: var(--glass-bg);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* 按钮样式 */
.btn {
    padding: 10px 5px;
    font-size: 16px;
    width: 100%;
    border-radius: 50px;
    border: 2px solid var(--gold-color);
    background: transparent;
    color: var(--gold-color);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn:hover {
    background: var(--gold-color);
    color: var(--primary-red);
}

.btn.active {
    background: var(--gold-color);
    color: var(--primary-red);
    box-shadow: 0 0 20px var(--gold-color);
}

/* 弹窗/模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #2c3e50;
    padding: 30px;
    border: 2px solid var(--gold-color);
    width: 450px;
    border-radius: 24px;
    color: white;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(244, 208, 63, 0.3);
    padding-bottom: 15px;
}

.modal-header h2 {
    color: var(--gold-color);
    margin: 0;
    font-size: 24px;
}

.close-modal-btn {
    font-size: 32px;
    cursor: pointer;
    color: var(--gold-color);
    line-height: 1;
}

.settings-group-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-group-modal .setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-group-modal label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
}

.settings-group-modal label span {
    color: var(--gold-color);
    font-weight: bold;
}

.settings-group-modal select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--gold-color);
    color: white;
    font-size: 16px;
    outline: none;
}

.settings-group-modal select option {
    background-color: #2c3e50;
}

.settings-group-modal input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--gold-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.modal-footer .btn {
    width: auto;
    padding: 10px 25px;
}

/* 状态覆盖层 */
.status-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    background-image: radial-gradient(circle at center, #e63946 0%, #cf2d2d 100%);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.settings-group {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(244, 208, 63, 0.3);
    backdrop-filter: blur(10px);
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #fff;
    text-align: left;
}

.settings-group .setting-item {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-group .setting-item label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

.settings-group .setting-item label span {
    color: var(--gold-color);
    font-weight: bold;
}

.settings-group .setting-item input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--gold-color);
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0;
}

.overlay-content {
    animation: fadeIn 1s ease-out;
    width: 80%;
}

.overlay-logo {
    margin-bottom: 40px;
}

.overlay-logo-img {
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(244, 208, 63, 0.5));
    object-fit: contain;
}

.overlay-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.overlay-title-img {
    height: 150px;
    filter: drop-shadow(0 0 30px rgba(244, 208, 63, 0.6));
}

.status-desc {
    font-size: 48px;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.status-timer {
    font-size: 120px;
    font-family: monospace;
    color: var(--gold-color);
    letter-spacing: 10px;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
