/* ========== 马年春节主题样式 ========== */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
    --red-primary: #d4213d;
    --red-dark: #a01830;
    --red-deep: #8b0000;
    --gold-primary: #f5d45e;
    --gold-light: #ffe08a;
    --gold-dark: #c5a028;
    --bg-dark: #1a0a0a;
    --bg-gradient: linear-gradient(180deg, #2d0a0a 0%, #1a0505 40%, #0d0202 100%);
}

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

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* ========== 烟花 Canvas ========== */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ========== 飘落装饰 ========== */
.falling-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.falling-item {
    position: absolute;
    top: -60px;
    font-size: 1.6rem;
    animation: fall linear infinite;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(245, 212, 94, 0.4));
}

@keyframes fall {
    0% {
        transform: translateY(-60px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 60px)) rotate(720deg);
        opacity: 0;
    }
}

/* ========== 顶部灯笼 ========== */
.lantern-row {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 10;
    padding: 0 10%;
    pointer-events: none;
}

.lantern {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lanternSwing 3s ease-in-out infinite;
    transform-origin: top center;
}

.lantern-delay-1 { animation-delay: 0.4s; }
.lantern-delay-2 { animation-delay: 0.8s; }
.lantern-delay-3 { animation-delay: 1.2s; }

@keyframes lanternSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.lantern-line {
    width: 2px;
    height: 30px;
    background: var(--gold-dark);
}

.lantern-body {
    width: 60px;
    height: 72px;
    background: radial-gradient(ellipse at center, #ff4444 0%, var(--red-primary) 50%, var(--red-dark) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 20px rgba(255, 80, 80, 0.6),
        0 0 40px rgba(255, 50, 50, 0.3),
        inset 0 0 15px rgba(255, 200, 100, 0.3);
    border: 2px solid var(--gold-dark);
}

.lantern-body span {
    color: var(--gold-primary);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(245, 212, 94, 0.8);
    z-index: 1;
}

.lantern-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 80, 50, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: lanternGlow 2s ease-in-out infinite alternate;
}

@keyframes lanternGlow {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.lantern-tassel {
    width: 4px;
    height: 25px;
    background: linear-gradient(to bottom, var(--gold-dark), var(--red-primary));
    border-radius: 0 0 2px 2px;
    position: relative;
}

.lantern-tassel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(245, 212, 94, 0.6);
}

/* ========== 主容器 ========== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 5;
    padding: 80px 20px 45px;
}

/* ========== 问题卡片 ========== */
.question-box {
    background: linear-gradient(145deg, rgba(45, 10, 10, 0.95) 0%, rgba(30, 5, 5, 0.98) 100%);
    padding: 2rem 3rem;
    border-radius: 20px;
    text-align: center;
    width: 95%;
    max-width: 850px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid var(--gold-dark);
    box-shadow:
        0 0 30px rgba(212, 33, 61, 0.3),
        0 0 60px rgba(212, 33, 61, 0.1),
        inset 0 0 60px rgba(212, 33, 61, 0.05);
    overflow: hidden;
}

/* 卡片背景纹理 */
.question-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(245, 212, 94, 0.02) 40px,
            rgba(245, 212, 94, 0.02) 42px
        );
    pointer-events: none;
    z-index: 0;
}

/* 四角装饰 */
.corner-decor {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 2;
}

.corner-tl {
    top: 8px;
    left: 8px;
    border-top: 3px solid var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    border-radius: 4px 0 0 0;
}

.corner-tr {
    top: 8px;
    right: 8px;
    border-top: 3px solid var(--gold-primary);
    border-right: 3px solid var(--gold-primary);
    border-radius: 0 4px 0 0;
}

.corner-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 3px solid var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    border-radius: 0 0 0 4px;
}

.corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 3px solid var(--gold-primary);
    border-right: 3px solid var(--gold-primary);
    border-radius: 0 0 4px 0;
}

/* ========== 标题 ========== */
h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--gold-primary);
    text-shadow:
        0 0 20px rgba(245, 212, 94, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
    letter-spacing: 4px;
}

.title-icon {
    display: inline-block;
    animation: horseRun 1.5s ease-in-out infinite;
    font-size: 0.8em;
}

@keyframes horseRun {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-6px) rotate(-5deg); }
    75% { transform: translateY(-6px) rotate(5deg); }
}

.subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--gold-dark);
    letter-spacing: 6px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

/* ========== 题目内容 ========== */
.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 0;
    z-index: 1;
}

.question-text {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: bold;
    color: #fff;
    margin: 25px auto 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    max-width: 90%;
    flex-shrink: 0;
}

/* ========== 选项样式 ========== */
.answer-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 20px auto;
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    min-height: 60px;
}

.option-container {
    display: flex;
    align-items: center;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid rgba(245, 212, 94, 0.3);
    border-radius: 15px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
}

.option-container:hover {
    border-color: var(--gold-primary);
    background: rgba(139, 0, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 212, 94, 0.2);
}

.option-container.selected {
    border-color: var(--gold-primary);
    background: rgba(245, 212, 94, 0.15);
    box-shadow: 0 0 20px rgba(245, 212, 94, 0.3);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(245, 212, 94, 0.5);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
}

.option-container.selected .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.option-text {
    font-size: 1.2rem;
    color: #f0e0c0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 按钮 ========== */
.btn {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: var(--gold-primary);
    border: 2px solid var(--gold-dark);
    padding: 12px 35px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 4px 15px rgba(212, 33, 61, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(245, 212, 94, 0.1) 50%,
        transparent 70%
    );
    animation: btnShine 3s ease-in-out infinite;
}

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

.btn:hover {
    background: linear-gradient(135deg, #e83553 0%, var(--red-primary) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 6px 25px rgba(212, 33, 61, 0.5),
        0 0 20px rgba(245, 212, 94, 0.2);
    border-color: var(--gold-primary);
}

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

/* ========== 结果显示 ========== */
.result {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    font-weight: bold;
    color: var(--gold-primary) !important;
    padding: 15px 20px;
    text-align: center;
    margin: auto;
    max-width: 90%;
    text-shadow: 0 0 15px rgba(245, 212, 94, 0.5);
    animation: resultShow 0.5s ease-out;
    flex-shrink: 0;
}

/* 答案为空时不占空间 */
.result:empty {
    display: none;
}

@keyframes resultShow {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========== 填空题输入框 ========== */
.fill-input {
    width: 60%;
    font-size: 1.5rem;
    padding: 15px;
    border: 2px solid rgba(245, 212, 94, 0.4);
    border-radius: 10px;
    text-align: center;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.fill-input:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 15px rgba(245, 212, 94, 0.3);
}

/* ========== 开始按钮 ========== */
#startBtn {
    display: none;
}

#startBtn.game-start {
    display: block;
    position: static;
    margin: 15px auto;
    padding: 14px 45px;
    font-size: 1.4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 33, 61, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(212, 33, 61, 0.7), 0 0 30px rgba(245, 212, 94, 0.3); }
}

/* ========== 滚动条 ========== */
.answer-area::-webkit-scrollbar {
    height: 0;
    width: 0;
}

/* ========== 按钮组 ========== */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px 5px;
    margin-top: auto;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.submit-btn-container {
    z-index: 2;
}

.btn-skip {
    position: absolute;
    right: 20px;
    padding: 12px 35px;
    font-size: 1.3rem;
    z-index: 2;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    border-color: var(--gold-primary);
}

.btn-skip:hover {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
}

/* ========== 底部祝福语 ========== */
.footer-blessing {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    color: var(--gold-dark);
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    letter-spacing: 4px;
    background: linear-gradient(to top, rgba(26, 10, 10, 0.9), transparent);
    z-index: 10;
    opacity: 0.8;
}

/* ========== 隐藏填空题提示 ========== */
.fill-placeholder {
    display: none;
}

/* ========== 题库管理入口按钮 ========== */
.manage-trigger-btn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: 2px solid var(--gold-dark);
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 33, 61, 0.5);
    animation: gearPulse 3s ease-in-out infinite;
}

.manage-trigger-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(212, 33, 61, 0.7), 0 0 20px rgba(245, 212, 94, 0.3);
    border-color: var(--gold-primary);
}

@keyframes gearPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 33, 61, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(212, 33, 61, 0.7), 0 0 15px rgba(245, 212, 94, 0.2); }
}

/* ========== 题库管理面板遮罩 ========== */
.manage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease-out;
}

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

/* ========== 管理面板主体 ========== */
.manage-panel {
    width: 94%;
    max-width: 700px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(45, 10, 10, 0.98) 0%, rgba(25, 5, 5, 0.99) 100%);
    border: 2px solid var(--gold-dark);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(212, 33, 61, 0.3), 0 0 80px rgba(212, 33, 61, 0.1);
    position: relative;
    animation: panelSlideIn 0.3s ease-out;
}

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

/* ========== 面板头部 ========== */
.manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(245, 212, 94, 0.2);
    flex-shrink: 0;
}

.manage-header h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.6rem;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(245, 212, 94, 0.4);
    letter-spacing: 3px;
    margin: 0;
}

.manage-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.5);
    border: 1px solid rgba(245, 212, 94, 0.3);
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manage-close-btn:hover {
    background: rgba(200, 30, 30, 0.7);
    border-color: var(--gold-primary);
    transform: rotate(90deg);
}

/* ========== 新增题目区域 ========== */
.manage-add-section {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(245, 212, 94, 0.15);
    flex-shrink: 0;
}

.manage-add-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.manage-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manage-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 212, 94, 0.3);
    border-radius: 10px;
    color: #f0e0c0;
    font-size: 0.95rem;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.3s;
    outline: none;
}

.manage-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(245, 212, 94, 0.2);
}

.manage-input::placeholder {
    color: rgba(240, 224, 192, 0.4);
}

/* ========== 管理按钮 ========== */
.manage-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid;
    white-space: nowrap;
    font-family: 'Noto Sans SC', sans-serif;
}

.manage-btn-add {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: var(--gold-primary);
    border-color: var(--gold-dark);
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manage-btn-add:hover {
    background: linear-gradient(135deg, #e83553 0%, var(--red-primary) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 33, 61, 0.4);
}

.manage-btn-tool {
    background: rgba(139, 0, 0, 0.3);
    color: var(--gold-primary);
    border-color: rgba(245, 212, 94, 0.3);
    font-size: 0.8rem;
    padding: 6px 12px;
}

.manage-btn-tool:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: var(--gold-primary);
}

.manage-btn-danger {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.manage-btn-danger:hover {
    background: rgba(200, 30, 30, 0.3);
    border-color: #ff6b6b;
}

/* ========== 错误提示 ========== */
.manage-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 0;
    transition: all 0.3s;
}

.manage-error:empty {
    display: none;
}

/* ========== 工具栏 ========== */
.manage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-bottom: 1px solid rgba(245, 212, 94, 0.1);
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.manage-count {
    color: var(--gold-dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

.manage-toolbar-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== 题目列表 ========== */
.manage-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px 20px;
    min-height: 0;
}

.manage-list::-webkit-scrollbar {
    width: 6px;
}

.manage-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.manage-list::-webkit-scrollbar-thumb {
    background: rgba(245, 212, 94, 0.3);
    border-radius: 3px;
}

.manage-list::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 212, 94, 0.5);
}

/* ========== 题目卡片 ========== */
.manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 212, 94, 0.12);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s;
    animation: itemFadeIn 0.3s ease-out;
}

@keyframes itemFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.manage-item:hover {
    border-color: rgba(245, 212, 94, 0.3);
    background: rgba(0, 0, 0, 0.35);
}

.manage-item-index {
    color: var(--gold-dark);
    font-size: 0.8rem;
    min-width: 28px;
    text-align: center;
    opacity: 0.6;
    flex-shrink: 0;
}

.manage-item-content {
    flex: 1;
    min-width: 0;
}

.manage-item-question {
    color: #f0e0c0;
    font-size: 0.95rem;
    margin-bottom: 3px;
    word-break: break-all;
}

.manage-item-answer {
    color: var(--gold-dark);
    font-size: 0.85rem;
    opacity: 0.7;
    word-break: break-all;
}

.manage-item-answer::before {
    content: '答：';
    color: var(--gold-primary);
    opacity: 0.6;
}

.manage-item-del {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: rgba(255, 107, 107, 0.5);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.manage-item-del:hover {
    background: rgba(200, 30, 30, 0.3);
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: scale(1.1);
}

/* ========== 空状态 ========== */
.manage-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gold-dark);
    opacity: 0.5;
    font-size: 1rem;
}

/* ========== 批量导入弹窗 ========== */
.import-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}

.import-modal-content {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, rgba(50, 12, 12, 0.99) 0%, rgba(30, 5, 5, 1) 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 16px;
    padding: 24px;
}

.import-modal-content h3 {
    color: var(--gold-primary);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.import-hint {
    color: rgba(240, 224, 192, 0.6);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.import-hint strong {
    color: var(--gold-primary);
}

.import-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 212, 94, 0.3);
    border-radius: 10px;
    color: #f0e0c0;
    font-size: 0.9rem;
    font-family: 'Noto Sans SC', monospace;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
    line-height: 1.6;
}

.import-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(245, 212, 94, 0.2);
}

.import-textarea::placeholder {
    color: rgba(240, 224, 192, 0.3);
}

.import-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}

/* ========== Toast 提示 ========== */
.manage-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    z-index: 300;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    font-family: 'Noto Sans SC', sans-serif;
}

.manage-toast.show {
    transform: translateX(-50%) translateY(0);
}

.manage-toast.success {
    background: linear-gradient(135deg, #1a5c2a, #0d3d18);
    color: #7dff9a;
    border: 1px solid rgba(125, 255, 154, 0.3);
    box-shadow: 0 4px 20px rgba(29, 112, 56, 0.4);
}

.manage-toast.error {
    background: linear-gradient(135deg, #5c1a1a, #3d0d0d);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 20px rgba(200, 30, 30, 0.4);
}

/* ========== 管理面板响应式 ========== */
@media screen and (max-width: 600px) {
    .manage-panel {
        width: 98%;
        max-height: 95vh;
        border-radius: 14px;
    }

    .manage-header {
        padding: 14px 16px;
    }

    .manage-header h2 {
        font-size: 1.3rem;
    }

    .manage-add-section {
        padding: 12px 16px;
    }

    .manage-add-form {
        flex-direction: column;
    }

    .manage-btn-add {
        padding: 10px;
    }

    .manage-toolbar {
        padding: 8px 16px;
    }

    .manage-toolbar-btns {
        width: 100%;
        justify-content: flex-end;
    }

    .manage-list {
        padding: 10px 16px 16px;
    }

    .manage-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .manage-trigger-btn {
        bottom: 45px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* ========== 低高度屏幕适配（笔记本） ========== */
@media screen and (max-height: 800px) {
    .container {
        padding: 70px 20px 35px;
    }

    .question-box {
        padding: 1.5rem 2.5rem;
    }

    h1 {
        font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    }

    .question-text {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        margin: 18px auto 0;
    }

    .btn {
        padding: 10px 30px;
        font-size: 1.2rem;
        margin: 8px;
    }

    .btn-skip {
        padding: 10px 30px;
        font-size: 1.2rem;
    }

    .lantern-body {
        width: 50px;
        height: 60px;
    }

    .lantern-line {
        height: 22px;
    }

    .lantern-tassel {
        height: 20px;
    }

    .footer-blessing {
        padding: 8px;
        font-size: 0.75rem;
    }
}

@media screen and (max-height: 650px) {
    .container {
        padding: 55px 15px 30px;
    }

    .question-box {
        padding: 1.2rem 2rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .subtitle {
        margin-bottom: 3px;
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .question-text {
        font-size: 2rem;
        margin: 12px auto 0;
    }

    .btn {
        padding: 8px 22px;
        font-size: 1rem;
        margin: 5px;
    }

    .btn-skip {
        padding: 8px 22px;
        font-size: 1rem;
    }

    .lantern-body {
        width: 36px;
        height: 44px;
    }

    .lantern-body span {
        font-size: 0.9rem;
    }

    .lantern-line {
        height: 15px;
    }

    .lantern-tassel {
        height: 12px;
    }
}

/* ========== 响应式 ========== */
@media screen and (max-width: 768px) {
    .lantern-body {
        width: 45px;
        height: 55px;
    }

    .lantern-body span {
        font-size: 1.1rem;
    }

    .lantern-line {
        height: 20px;
    }

    .lantern-tassel {
        height: 18px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1.2rem;
        margin: 15px;
    }

    .btn-skip {
        padding: 12px 30px;
        font-size: 1.2rem;
    }

    .question-box {
        padding: 2rem 1.5rem;
    }

    .corner-decor {
        width: 35px;
        height: 35px;
    }

    .container {
        padding: 80px 15px 50px;
    }
}

@media screen and (max-width: 480px) {
    .lantern-row {
        padding: 0 5%;
    }

    .lantern-body {
        width: 36px;
        height: 44px;
    }

    .lantern-body span {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 1rem;
        margin: 10px;
    }

    .btn-skip {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .question-box {
        padding: 1.5rem 1rem;
    }

    .corner-decor {
        width: 25px;
        height: 25px;
    }

    h1 {
        letter-spacing: 2px;
    }

    .subtitle {
        letter-spacing: 3px;
        font-size: 0.8rem;
    }
}
