* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
      /* 禁用文本选择 */
    user-select: none; 
    /* 兼容Safari浏览器 */
    -webkit-user-select: none; 
    /* 禁用长按图片弹出菜单（移动端常见误触） */
    -webkit-touch-callout: none; 
    /* 禁用文本拖拽（避免误触拖动文字） */
    -webkit-user-drag: none;
    /* 禁用点击高亮色 */
    -webkit-tap-highlight-color: transparent; 
    /* 禁用:focus状态的默认边框（如按钮点击后出现的蓝色边框） */
    outline: none; 
}

/* 宝石特效Canvas样式 */
.item-card {
    position: relative; /* 确保canvas可以绝对定位 */
    overflow: hidden; /* 隐藏超出卡片的特效 */
}

.gem-canvas {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(8px);
    z-index: 1; /* 确保在背景之上，内容之下 */
    pointer-events: none; /* 允许鼠标穿透Canvas点击卡片 */
}

.item-title, .item-description {
    position: relative;
    z-index: 2; /* 确保文字在特效之上 */
}

.quick-login-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(69, 159, 233, 0.4);
}

/* 登录方式选择阶段 - 两个按钮垂直排列 */
.selection-phase {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 按钮间距 */
    margin-bottom: 10px;
}

/* 快捷登录选择按钮（蓝色调） */
.quick-login-select-btn {
    background: linear-gradient(135deg, #4476b1 0%, #62bdd9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    border-radius: 8px;
    width: 100%;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-login-select-btn:hover {
        box-shadow: 0 5px 15px rgba(68, 118, 177, 0.4);
    }

/* 快捷登录表单容器（默认隐藏） */
.quick-login-form-container {
    display: none; /* 默认隐藏，通过JS控制显示 */
}

/* 表单样式 */
.quick-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

/* 输入框样式 */
.login-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-sizing: border-box; /* 防止宽度溢出 */
    -webkit-appearance: none; /* 去除移动端默认样式 */
}

    .login-input::placeholder {
        color: #999;
        font-size: 0.95rem;
    }

/* 提示文字 */
.login-tip-quick {
    font-size: 0.75rem !important;
    color: #23324b;
    margin: -5px 0 5px 0;
    line-height: 1.4;
    text-align: center;
}

/* 表单内按钮组 */
.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 返回按钮 */
.back-btn-quicklogin {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    opacity: .6;
    color: #3d79d0;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 3px;
}

/* 快捷登录提交按钮 */
.quick-login-btn {
    flex: 2; /* 宽度是返回按钮的2倍 */
    background: linear-gradient(135deg, #4476b1 0%, #62bdd9 100%);
    border: none;
    color: white;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-login-btn:hover {
        box-shadow: 0 5px 15px rgba(68, 118, 177, 0.4);
    }

/* 确保与原有抖音登录按钮样式兼容 */
#douyin-login-btn {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    border-radius: 8px;
    width: 100%;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #douyin-login-btn:hover {
        box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    }

.login-method-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* 登录方式选择阶段样式 */
.selection-phase {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 两个按钮之间的间距 */
}

/* 快捷登录选择按钮（蓝色调） */
.quick-login-select-btn {
    background: linear-gradient(135deg, #4476b1 0%, #62bdd9 100%) !important;
    /* 保持与抖音登录按钮相同的基础样式，仅修改颜色 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: 8px;
    width: 100%;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-login-select-btn:hover {
        box-shadow: 0 5px 15px rgba(68, 118, 177, 0.4);
    }

/* 快捷登录表单样式 */
.quick-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.login-input {
    width: 100%;
    padding: 14px 15px; /* 加大输入框高度，适合移动端触摸 */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    box-sizing: border-box; /* 防止宽度溢出 */
}

    .login-input::placeholder {
        color: #999;
    }

.login-tip {
    font-size: 0.8rem;
    color: #666;
    margin: -5px 0 5px 0;
    text-align: left;
    padding-left: 2px;
}

/* 表单内按钮组 */
.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 快捷登录提交按钮（蓝色调强化） */
.quick-login-btn {
    flex: 2; /* 提交按钮宽度是返回按钮的2倍 */
    background: linear-gradient(135deg, #4476b1 0%, #62bdd9 100%) !important;
    border: none;
    color: white;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-login-btn:hover {
        box-shadow: 0 5px 15px rgba(68, 118, 177, 0.4);
    }

/* 开场黑屏 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* 纯黑背景 */
    z-index: 9999; /* 最上层显示 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* 全局可点击提示 */
}

/* 打字文本样式 */
.splash-text {
    color: #fff;
    font-family: "Courier New", monospace; /* 等宽字体，增强打字机感 */
    font-size: 18px;
    line-height: 2;
    text-align: center;
    max-width: 85%;
    margin-bottom: 120px; /* 与箭头保持距离 */
    height: 70px; /* 固定高度防止排版跳动 */
    letter-spacing: 1px;
}

/* 浮动箭头（模拟老式游戏机风格） */
.splash-arrow {
    height: 26px;
    border-top: none;
    border-left: none;
    white-space: nowrap;
    text-shadow: 0 0 10px #fff;
    opacity: 0; /* 初始隐藏，文字打完后显示 */
    animation: float 2s infinite ease-in-out; /* 浮动动画 */
}

/* 箭头浮动动画 */
@keyframes float {
    0%, 100% {
        transform:translateY(0);
    }

    50% {
        transform:translateY(-8px);
    }
}

/* 主页面容器初始隐藏 */
.main-content {
    display: none;
}



/* 导航图标基础样式 */
.nav-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* 图标图片样式 */
.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* 防止图片本身触发事件 */
}

/* 较大图标（讲堂和题集） */
.nav-icon-large {
    width: 60px;
    background: none;
    border: none;
 
}

/* 音乐图标状态切换 */
.nav-icon.music-off {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 响应式调整（适配小屏） */
@media (max-width: 375px) {
    .nav-icon {
        width: 36px;
        height: 36px;
        margin: 0 2px;
    }

    .nav-icon-large {
        width: 44px;
    }
}

.rach0 {
    color: #f25a1a;
    font-weight: 800;
}
.rach {
    color: #f2921a;
    font-weight: 800;
}

.r-rdouyin {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 100px;
    z-index: 200;
    border: 1px solid rgba(123, 207, 229, 0.8);
    padding: 5px 5px;
    color: #4672ad;
    line-height: 2;
    background: linear-gradient( to right, #e6f2ff, /* 左侧淡蓝色 */
    #ffffff 40%, /* 左侧到40%位置过渡到白色 */
    #ffffff 60%, /* 白色持续到60%位置 */
    #e6f2ff /* 从60%位置过渡到右侧淡蓝色 */
    );
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
.r-rdouyin.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.r-rdouyin.slide-out {
    transform: translateX(100%);
    opacity: 0;
}
    .r-rdouyin img {
        width: 25px;
        height: 25px;
        margin-right: 10px;
        margin-left: 10px;
    }
    .result-close-btn {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(0, 0, 0, 0.4);
        color: white;
        font-size: 24px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 100;
        line-height: 32px;
        text-align: center;
        transition: all 0.2s ease;
    }

    .result-close-btn:hover {
        background: rgba(0, 0, 0, 0.6);
        transform: scale(1.05);
    }

.video-frame {
    width: 341px;
    height: 720px;
    border: none;
    overflow: hidden;
}

.screenshot-mode .no-screenshot {
    display: none !important;
}

.rqrcode {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 248px;
    justify-content: space-evenly;
    margin-bottom: 40px;
    margin-top: 20px;
}

    .rqrcode div {
        margin-top: 6px;
    }

.rqrcode-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
    background-image: url('https://static.appoint.icu/QA/img/QRWORD.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
}
.rqrcode img {
    width: 150px;
    height: 150px;
    align-self: center;
    margin-bottom: 15px;
}

.rfooternick {
    position: absolute;
    color: #242e40;
    bottom: 22px;
    right: 44px;
    font-size: 13px;
    font-weight: 550;
    text-align: right;
}

    .rfooternick div {
        margin-top: 2px;
    }

.rfootnick-uid {
    font-weight: 200
}

.qgreen, .qred, .qyellow {
    width: 18px;
    height: 18px;
    border-radius: 16px;
    position: absolute;
    right: 20px;
    top: 15px;
}

.qred {
    background-color: #c0443b;
    border: 2px solid #bc7983;
    box-shadow: 0 0 12px 2px rgb(223, 80, 92);
}

.qyellow {
    background-color: #c0b53b;
    border: 2px solid #c0c486;
    box-shadow: 0 0 12px 2px rgb(180, 223, 80);
}

.qgreen {
    background-color: #51c03b;
    border: 2px solid #8cdd89;
    box-shadow: 0 0 12px 2px rgb(80, 223, 100);
}
audio::-webkit-media-controls-playback-rate-button {
    display: none !important;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

.btn, .tab-btn, .option, .task-btn, .video-card, .reward-node {
    pointer-events: auto;
    cursor: pointer;
}

.decorative-img {
    /* 禁用点击穿透（避免误触图片触发父元素事件） */
    pointer-events: none; 
    /* 再次强调禁用选择（防止全局样式被覆盖） */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none; /* 点击图片时，事件不会传递给父元素 */
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

    /* 登录 */
    #login-btn .user-avatar-small {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        margin-right: 20px;
        margin-top: 14px;
    }

    #login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border: none !important;
        background: none !important;
        width: 80px !important;
        font-size: 1.1rem !important;
    }

    #login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    }

    #login-btn:hover::after {
    left: 100%;
    }

    /* 用户头像样式 */
    .header-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid rgba(233, 69, 96, 0.6);
        cursor: pointer;
        transition: transform 0.2s;
    }

    .header-avatar:hover {
        transform: scale(1.05);
    }

    /* 下拉菜单样式 */
    .user-dropdown {
        position: absolute;
        top: 50px;
        left: 10px;
        background: rgba(26, 26, 46, 0.95);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        min-width: 100px;
        z-index: 999;
        overflow: hidden;
    }

    .user-dropdown-item {
        padding: 10px 14px;
        font-size: .9rem;
        line-height: 1.6;
        color: white;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .user-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .user-dropdown-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 5px 0;
    }

    /* 用户信息显示样式 */
    .user-info-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    }

    .user-avatar-small {
    object-fit: cover;
    border: 2px solid rgba(99, 122, 178, 0.6);
    }

    /* 登录弹窗样式 */
    .login-close-btn {
        position: absolute;
        top: 5px;
        right: 15px;
        font-size: 30px;
        cursor: pointer;
        color: #848484;
        border: none;
    }

    .login-modal-header {
    position: relative;
    }

    .login-content {
    padding: 25px 20px;
    }

    .login-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    }

    .login-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #fe2c55 0%, #e94560 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    }

    .douyin-login-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

    .login-method-icon {
    width: 30px;
    height: 30px;
    }

    .login-desc {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    }

/* PC端提示 */
.pc-poster {
    display: none;
    width: 100%;
    height: 100vh;
    /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
    background-image: url('https://static.appoint.icu/QA/img/pc-background.png');
    filter: brightness(.85) contrast(1.1) saturate(.9);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.pc-poster-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 50px;
    border-radius: 10%;
    background: rgba(20, 30, 50, .8);
    transform: scale(1.3);
    margin-bottom: 25vh;
    backdrop-filter: blur(4px);
    box-shadow: 0px 10px 50px -10px #04101d;
}

.pc-poster h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #f7f9ff;
}

.pc-poster p {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    color: #eef3ff;
}

.qr-code {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    font-weight: bold;
    color: #333;
}

/* 移动端主容器 */
.mobile-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0;
    position: relative;
    display: none;
}

/* 统一 Header 样式 */
.global-header {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    height: 38px;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 100; /* 确保在所有内容之上 */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.user-nickname {
    color: white;
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
}

/* Header 中的按钮通用样式 */
.backhome-btn, .rules-btn, .voice-btn {
    /* width: 30px; */
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.backhome-btn img {
    /* width: 20px; */
    height: 36px;
    object-fit: contain;
}
.rules-btn img, .voice-btn img {
    /* width: 20px; */
    height: 36px;
    object-fit: contain;
    transform: translateX(56px);
}

.rules-btn {
    margin-right: 10px;
}

/* 调整原有界面的位置，避免被 Header 遮挡 */
.mode-selection, .item-selection, .game-screen {
    padding-top: 60px; /* 给 Header 留出空间 */
    box-sizing: border-box;
}


/* 返回确认对话框样式 */
.confirm-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 确保在 Header 之上 */
}

.confirm-modal .modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 10px 25px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 6px 14px rgba(18, 34, 60, .6);
}

.modal-message {
    color: #333;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-actions .action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background-color: #ccc;
    color: #333;
}


.confirmback-btn {
    background-color: #e94560;
    color: white;
}

/* 顶部按钮 */
.right-top-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row;
}

.left-top-btn .user-info-display{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}


.top-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 26px;
    margin-right: 10px;
    margin-left: 10px;
}

.bottom-buttons {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    flex-direction: column;
    margin-top: 10px;
    margin-right: 10px;
}

.top-btn {
    width: 50px;
    height: 30px;
    /* border-radius: 50%; */
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 主界面 */
.main-screen {
    text-align: center;
    padding: 20px 0;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('https://static.appoint.icu/QA/img/homebg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-logo {
    font-size: 36px;
    color: #e94560;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.game-title-img {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    animation: gem-glow 6s ease-in-out infinite;
    transform: translateX(-50%);
}

.start-btn-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* height: 80px; */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.start-btn-img {
    max-width: 76%;
    height: auto;
    animation-name: pulse;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #eeeeee;
    width: 82%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform:  translate(-50%, -50%);
    position: fixed;
    border: 1.5px solid #7bc1c4;
}

.modal-content p {
    color: #23324b;
    font-size: .8rem;
    padding: 6px 20px;
    line-height: 1.5;
    opacity: .6;
}

.modal-content p span {
    color: #538dc8;
    font-weight: 800;
    font-size: .8rem !important;
    line-height: 1.5;
}

.modal-content-box {
    background-image: url('https://static.appoint.icu/QA/img/questionmodulttitle.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 14px;
    text-align: center;
    font-size: .85rem;
    font-weight: 800;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

.qiwu-modal-title {
    color: white;
    margin: 0 auto; /* 上下外边距10px，左右自动（居中） */
    margin-top: 6%;
    margin-bottom: 6%;
    max-width: 90%; /* 限制最大宽度 */
    min-height: 40px; /* 给一个最小高度，防止内容变化时界面跳动 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    text-shadow: 0 0 1px #fff;
    background-image: url('https://static.appoint.icu/QA/img/modultitlebg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 模式选择 */
.mode-selection,
.item-selection {
    display: none;
}

.mode-selection {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.item-selection {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

.mode-option,
.item-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e94560;
}

/* 答题界面 */
.game-screen {
    display: none;
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.health-bar {
    display: flex;
    gap: 5px;
}

.heart {
    width: 25px;
    height: 25px;
    background: #e94560;
    clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 50% 75%, 18% 100%, 0% 35%);
}

.heart.lost {
    background: #555;
}

.question-count {
    font-size: 16px;
}

/* 题目图片样式 */
.question-image {
    min-height: 64px;
    max-width: 70%;
    border-radius: 8px;
}

/* 选项图片样式 */
.option-image {
    vertical-align: middle;
}

.option-text {
    font-size: .9rem;
    line-height: 1.4;
}

/* 语音和图片选项的2x2网格布局 */
.options-container.grid-2x2 {
    grid-template-columns: 1fr 1fr; /* 两行两列布局 */
}

/* 语音选项样式 */
.option.audio-option {
    position: relative;
    min-height: 80px;
    padding: 15px;
}

.audio-option span{
    font-size: .8rem;
    line-height: 1.4;
}

.image-option{
    font-size: .8rem;
    line-height: 1.4;
}

/* 椭圆形播放按钮 */
.audio-play-btn {
    width: 90px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(to right, #62bdd9, #4476b1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.audio-option-text {
    font-size: .9rem;
    line-height: 1.4;
}

.audio-play-btn:hover {
    transform: scale(1.05);
}

.audio-play-btn.playing {
    filter: brightness(1.2) saturate(1.2) contrast(1.2);
}

/* 图片选项样式 */
.option.image-option {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-image {
    max-height: 80px;
    margin: 0 auto 5px;
    border-radius: 8px;
}

/* 音频控件样式 */
.question-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.question-audio, .option-audio {
    width: 90%;
    margin: 10px;
}

.audio-option {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

/* 语音选项确认弹窗 */
.audio-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
}

.audio-confirm-modal .confirm-btn,
.audio-confirm-modal .cancel-btn {
    margin: 10px 5px;
    padding: 8px 16px;
}

.question-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding-top: 10px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-text {
    font-size: 1rem;
    color: #1b2b49;
    font-weight: 800;
    line-height: 1.5;
    display: flex;
    margin: 0 10px 0 10px;
    align-items: center;
    height: 5rem;
    text-align: left;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 86%;
    margin: 0 auto;
    font-size: 1rem;
}

.option {
    /* background: rgba(255, 255, 255, 0.1); */
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(123, 207, 229, 0.8);
    color: #fff;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
    text-align: center;
    font-weight: 800;
    background: linear-gradient(to bottom, #3d5d86, #5399b3);
}

.option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
}

.option.wrong {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

/* 道具背包 */
.item-backpack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.backpack-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560 0%, #c13584 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    transition: all 0.3s;
}

.backpack-btn:hover {
    transform: scale(1.1);
}

.backpack-content {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.backpack-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e94560;
    text-align: center;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.skip-icon {
    background: #4caf50;
}

.health-icon {
    background: #e94560;
}

.item-name {
    flex: 1;
    font-size: 14px;
}

.item-count {
    font-size: 14px;
    color: #e94560;
    font-weight: bold;
}

/* 结算界面 */
.result-screen {
    display: none;
    background-image: url('https://static.appoint.icu/QA/img/modultresultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.7);
}

/* 结算卡片 */
.result-card {
    height: 78vh;
    width: 100%;
    min-height: auto; 
    background-size: auto 100%;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-top: -80px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100vw;
    margin-top: -20px;
}

/* 连斩战绩样式 */
.result-streak {
    white-space: nowrap;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.4rem;
    font-weight: bold;
    color: #000; /* 文字默认黑色 */
    z-index: 10;
}

.streak-number {
    color: #4a90e2; /* 蓝色数字 */
    margin: 0 5px;
}

/* 左侧内容区域 */
.result-left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    z-index: 2;
    position: absolute;
    top: 29vh;
}

/* 模块样式 */
.result-module {
    width: auto; /* 固定宽度 */
    min-width: 300px;
}

.qrcode-pc{
    width: 150px;
    height: 150px;
}

.module-title {
    font-size: .9rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    padding-bottom: 5px;
    background: #4473b4;
    border-radius: 4px;
    width: 100px;
    padding: 4px 6px;
    text-align: center;
}

.module-content {
    font-size: 1rem;
    font-weight: bold;
}

.module-title-text {
    font-size: .9rem;
    color: #1b2b49;
    margin-bottom: 12px;
    font-weight: 800;
    margin-left: 20px;

}

.module-content.rank {
    color: #396ea6; /* 内容颜色 */
    background-color: #d0e9f1;
    padding: 6px;
    border-radius: 6px;
    display: inline;
    font-size: 1rem;
    padding: 8px 14px;
    margin-left: 10px;
}

.module-content.achievement {
    font-size: 1rem;
    color: #1b2b49;
}

/* 底部按钮区域 */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    z-index: 3;
    margin-top: 20px;
    width: 88%;
}

/* 错题提示气泡 */
.error-bubble {
    position: absolute;
    padding: 8px 12px;
    background-color: #d2e3ea;
    color: #568cd4;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    text-align: center;
    /* 气泡小三角 */
    &::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 12px 12px 0;
        border-style: solid;
        border-color: #d2e3ea transparent transparent;
    }
    display: none;
}

.wrong-btn-container {
    position: relative; /* 作为气泡的定位父元素 */
    flex: 1; /* 按钮平均分配宽度 */
    max-width: 200px; /* 限制最大宽度 */
}

#wrong-questions-btn {
    width: 100%;
}

.action-btn {
    flex: 1; /* 按钮平均分配宽度 */
    padding: 10px 0;
    border: 1px solid #61bed9;
    box-shadow: 0 0 6px 1px rgba(110,225,234,.3);
    border-radius: 50px;
    background-color: #284c75;
    color: #6ee1ea;
    text-shadow: 0 0 10px rgba(16,33,58,.6);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px; /* 限制最大宽度 */
}

#wrong-questions-btn {
    color: #fff;
}

#play-again-btn {
    color: #fff;
}

.action-btn:hover {
    filter: brightness(1.2);
}

.title-rank {
    font-size: 24px;
    color: #e94560;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.score {
    font-size: 1.2rem;
    margin: 10px 0 0 20px;
    color: #1b2b49;
}

.podium .rank-info {
    background: rgba(97, 190, 217, 1);
    color: #1b2b49;
    padding: 6px 0;
    width: 100%;
    text-align: center;
    font-size: .9rem;
    line-height: .9rem;
}

.achievement-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.achievement {
    padding: 2px 4px 10px 10px;
    line-height: 1.6;
}

.back-btn {
    background: rgba(231, 247, 254, 1);
    color: #518ece;
    border: 1px solid #61bed9;
    border-radius: 50px;
    font-size: 1rem;
    line-height: 1.3;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    width: 100px;
}

.start-btn {
    background: rgba(54, 96, 134, 1);
    color: #fff;
    border: 1px solid #206083;
    border-radius: 50px;
    font-size: 1rem;
    line-height: 1.3;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    width: 100px;
}

/* 任务列表 */
.task-list {
    list-style: none;
}

.task-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.task-progress {
    color: #e94560;
}

/* 排行榜 */
.rank-list {
    list-style: none;
}

.rank-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e94560;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.rank-name {
    flex: 1;
    margin-left: 15px;
}

.rank-score {
    color: #e94560;
    font-weight: bold;
}

/* --- 模式选择界面样式 --- */

/* 1. 图片选择器容器 */
.mode-images-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 20px;
    padding-bottom: 0;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* 2. 单个图片的包裹器 */
.mode-image-wrapper {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 0.3s ease;
}

/* 3. 模式图片样式 */
.mode-image {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* 4. 选中状态的样式 */
.mode-image-wrapper.active .mode-image {
    transform: scale(1.05);

}

/* 5. 模式说明文本区域 */
.mode-description-title {
    color: white;
    margin: -14px auto; /* 上下外边距10px，左右自动（居中） */
    max-width: 80%; /* 限制最大宽度 */
    min-height: 40px; /* 给一个最小高度，防止内容变化时界面跳动 */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.3rem;
    font-weight: 800;
    background-image: url('https://static.appoint.icu/QA/modultitlebg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mode-description-desc {
    color: #6ee1ea;
    text-shadow: 0 0 1px #6ee1ea;
    margin: 10px auto;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    margin-top: 26px;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 400;
}

.mode-description {
    background-image: url('https://static.appoint.icu/QA/img/modultdescbg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-shadow: 0 0 1px #fff;
    padding: 20px 30px;
    margin: 0 auto;
    border-radius: 10px;
    max-width: 90%;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.5rem;
}

.confirm-btn-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
    opacity: 1;
    transform: scale(1);
    }
    50% {
    opacity: 0.7;
    transform: scale(0.95);
    }
    100% {
    opacity: 1;
    transform: scale(1);
    }
}

.confirm-btn {
    display: none;
    background-color: transparent;
    color: #6ee1ea;
    border: none;
    /* border: .5px solid #6ee1ea; */
    white-space: nowrap;
    text-align: center;
    letter-spacing: 2px;
    padding-left: 2px;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 0 1px #6ee1ea;
    width: 6rem;
    height: 6rem;
    cursor: pointer;
    /* 触发移动端硬件加速，性能优化 */
    transform: translateZ(0);
    /* margin: 0 auto; */
    transition: background-color 0.3s;
}

    .confirm-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* 将背景图应用到伪元素上 */
        background-color: transparent;
        background-image: url('https://static.appoint.icu/QA/img/confirmbtn.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        /* 将动画应用到伪元素上 */
        animation: rotateBackground 16s linear infinite;
        /* 关键：让伪元素位于文字下方 */
        z-index: -1;
    }

/* --- 奇物选择界面样式 --- */
/* 奇物卡片容器 */
.item-cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}
/* 单个奇物卡片 */
.item-card {
    flex: 1;
    max-width: 40%; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* 设置背景图 */
    .item-card[data-item="skip"] {
        background-image: url('https://static.appoint.icu/QA/img/select-qiwu1.png');
        filter: contrast(.9) saturate(0.8);
    }
    .item-card[data-item="health"] {
        background-image: url('https://static.appoint.icu/QA/img/select-qiwu2.png');
        filter: contrast(.9) saturate(0.8);
    }
/* 奇物图标容器和图标 */
.item-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.item-icon {
    width: 60%; 
    height: auto;
}
/* 奇物标题和描述 */
.item-title {
    font-size: 1.0rem;
    line-height: 30px;
    height: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 194px;
    background-color: #64badb;
    color: #fff;
    margin-bottom: 20px;
    width: 100%;
}
.item-description {
    font-size: .9rem;
    line-height: 1.6;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}
/* 选中和未选中状态 */
.item-card.active {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    filter: brightness(1.15);
}
.item-cards-container:has(.active) .item-card:not(.active) {
    filter: brightness(0.8);
}

/* 确认按钮 */
#item-confirm-btn {
    margin-top: 14px;
}


/* 答题卡片样式 */
.answer-card {
    background: #eeeeee;
    border-radius: 20px; /* 20%圆角 */
    border: 1px solid #95f9fd;
    margin: 20px auto;
    margin-top: 126px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333; /* 文字颜色改为深色 */
    position: relative;
    z-index: 10;
    position: fixed;
    width: 90%;
    top: 23%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.questioncontent-card {
    background: #eeeeee;
    border-radius: 20px; /* 20%圆角 */
    border: 1px solid #95f9fd;
    margin: 20px auto;
    margin-top: 126px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333; /* 文字颜色改为深色 */
    position: relative;
    z-index: 10;
    position: fixed;
    width: 90%;
    top: 23%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);
}

.errorbook-card {
    height: 82vh;
    margin-top: 22vh;
    overflow: hidden;
    top: 28% !important;
}

.errorbook-screen::before {
    content: '';
    position: absolute;
    bottom: 2%;
    right: 4%;
    width: 40%;
    height: 18%;
    /* 将背景图应用到伪元素上 */
    background-color: transparent;
    background-image: url('https://static.appoint.icu/QA/img/ladiao.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    z-index: 12;
}

/* 得分显示 */
.score-display {
    font-size: 1rem;
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 14px;
    text-align: center;
    background-image: url('https://static.appoint.icu/QA/img/questionmodulttitle.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 题目进度 */
.question-progress {
    text-align: center;
    margin-top: 20px;
    color: #3879be;
    font-size: .9rem;
    padding-bottom: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* 出题人容器 */
.questioner-container {
    position: fixed;
    bottom: -30px;
    left: -60px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 14;
}

.questioner-img {
    height: auto;
    z-index: 30;
    max-width: 70%;
}

/* 对话框气泡 */
/* 正确答案提示 */
.correct-feedback {
    color: #4caf50; /* 绿色 */
    font-weight: bold;
    font-size: 1.1rem;
}

/* 错误答案提示 */
.wrong-feedback {
    color: #e94560; /* 红色 */
    font-weight: bold;
    font-size: 1.1rem;
}

.dialog-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(24, 47, 84, .4);
    padding: 12px 16px 10px 16px;
    margin-left: 24%;
    margin-bottom: -20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 70%;
    display: none; /* 默认隐藏 */
    z-index: 40;
    font-size: 1rem;
    position: relative;
}

.dialog-bubble::before {
    content: '';
    position: absolute;
    left: 9px;
    bottom: 0;
    transform: translateY(100%);
    border-width: 14px 10px 30px 25px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

.dialog-content {
    color: #1b2b49;
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: .95rem;
    font-weight: 800;
}

.next-question-btn {
    background: #e94560;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 66%;
    font-size: .9rem;
    font-weight: 800;
    float: right;
}

/* 游戏控制区（血量和道具） */
.game-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

/* 血量容器 */
/* 生命值容器样式 */
.health-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 生命值标签 */
.health-label {
    color: #fff;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 健康条容器 - 保留原圆圈背景 */
.health-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background-image: url('https://static.appoint.icu/QA/img/confirmbtn2.png'); /* 保留原背景图 */
    background-size: cover;
    background-position: center;
    border-radius: 20px; /* 保持圆形外观 */
    border: 1px solid rgba(96, 190, 206,.7);
}

/* 水滴图标样式 */
.heart-icon {
    width: 24px;
    height: 24px;
    background-image: url('https://static.appoint.icu/QA/img/heart.png'); /* 水滴图标路径 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1; /* 正常显示 */
}

/* 已失去的生命值图标 */
.heart-icon.lost {
    opacity: 0.3; /* 半透明表示已失去 */
    filter: grayscale(100%); /* 灰度处理增强区分度 */
}

/* 掉血闪烁动画 */
@keyframes bloodFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* 闪烁效果类 */
.health-flash {
    animation: bloodFlash 0.3s ease-in-out 4; /* 闪烁两次 */
}



.health-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

    .health-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* 将背景图应用到伪元素上 */
        background-color: transparent;
        background-image: url('https://static.appoint.icu/QA/img/confirmbtn.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        /* 将动画应用到伪元素上 */
        animation: rotateBackground 30s linear infinite;
        /* 关键：让伪元素位于文字下方 */
        z-index: -1;
    }



/* 道具容器 */
.item-container {
    position: relative;
    margin-left: 40px;
}

.item-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

    .item-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* 将背景图应用到伪元素上 */
        background-color: transparent;
        background-image: url('https://static.appoint.icu/QA/img/confirmbtn.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        /* 将动画应用到伪元素上 */
        animation: rotateBackground 30s linear infinite;
        /* 关键：让伪元素位于文字下方 */
        z-index: -1;
    }

.item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* 道具使用提示 */
.item-use-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    z-index: 9999;
    opacity: 0;
    width: 60%;
    font-size: .9rem;
    transition: opacity 0.3s;
    pointer-events: none;
    text-align: center;
}

/* 已使用道具样式 */
.item-circle.used .item-img {
    filter: grayscale(100%) opacity(50%);
}

.item-circle.used::after {
    content: '已使用';
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

/* 停止旋转动画 */
.item-circle.used::before {
    animation: none !important;
}

/* 调整选项样式以适应白色卡片 */
.option:hover {
    filter: contrast(1.2);
    border: 1px solid #8bd8f6;
}

.option.correct {
    background: rgba(76, 175, 80, 0.8);
    border-color: #457329;
}

.option.wrong {
    background: rgba(244, 67, 54, 0.6);
    border-color: #f44336;
}


/* 错题集样式 */
/* 错题集选项容器 */
.question-options-display.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
}

/* 错题集语音选项样式 */
.question-option-display.audio-option {
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 错题集语音播放按钮 */
.question-audio-play-btn {
    width: 60px;
    height: 30px;
    border-radius: 12px;
    background: linear-gradient(to right, #dcdcde, #d1d1d1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* 错题集图片选项样式 */
.question-option-display.image-option {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question-option-image {
    max-width: 100%;
    max-height: 68px;
    margin: 0 auto 5px;
    border-radius: 4px;
}

.wrongbox-screen {
    display: none;
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 60px 15px 20px;
    box-sizing: border-box;
}

.wrong-question-card {
    background: #eeeeee;
    border-radius: 20px;
    border: 1px solid #95f9fd;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    overflow: hidden;
    position: relative;
}

/* 固定高度的卡片头部 */
.wrong-card-header {
    height: 100px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.wrong-card-question {
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wrong-card-status {
    color: #e94560;
    font-size: 0.9rem;
}

/* 可展开的内容区域 */
.wrong-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
}

/* 展开状态 */
.wrong-question-card.expanded .wrong-card-content {
    max-height: 500px;
    padding: 15px;
}

/* 下拉箭头 */
.expand-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.wrong-question-card.expanded .expand-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* 详细内容样式 */
.wrong-answer-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-size: 0.9rem;
}

.correct-answer {
    color: #4caf50;
    margin-bottom: 8px;
}

.explanation {
    color: #518ece;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-container {
        display: block;
    }
}

@media (min-width: 769px) {
    .pc-poster {
        display: flex;
    }
    .main-screen{
        display:none !important;
    }
    body{
        overflow:hidden !important;
    }
}

/* 错题集页面样式 */
.errorbook-screen {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 60px;
    box-sizing: border-box;
}

.errorbook-content {
    padding: 20px;
    height: 76vh;
    overflow: scroll;
}

.errorbook-empty {
    text-align: center;
    padding: 40px 0;
}

    .errorbook-empty img {
        margin-top: 30px;
        width: 220px;
        height: auto;
        margin-bottom: 20px;
    }

.errorbook-empty p {
    color: #666;
    font-size: 1rem;
    opacity: .6;
}

/* 错题记录项样式 */
.error-record-item {
    border: 2px solid rgba(69, 128, 198, .3);
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    background-image: url('https://static.appoint.icu/QA/img/errorbackground.png');
    background-size: cover;
    background-position: 16%;
    background-repeat: no-repeat;
}

.record-header {
    /* background: linear-gradient(to bottom, #3d5d86, #5399b3); */
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.record-header-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    margin-top: 4px;
    padding:8px 12px;
    color: #4473b4;
    font-weight: 800;
    font-size: 1.1rem;

}

.record-score {
    font-weight: bold;
}

.record-achievement {
    border-radius: 4px;
    font-size: 1.1rem;
}
/* .achievement-excellent { color: #7266f7;} */
/*.achievement-good { background-color: #ffc107; }
.achievement-average { background-color: #ff9800; }
.achievement-poor { background-color: #f44336; }
.achievement-tryagain { background-color: #9e9e9e; }
.achievement-fail { background-color: #616161; } */

.record-header-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(69, 128, 198, .75);
    height: 36px;
    line-height: 36px;
    padding: 0 10px;
    font-size: .9rem;
    color: #fff;
}

/* 展开内容样式 */
.record-content {
    background-color: rgba(217, 227, 233, 1);
    padding: 15px;
    display: none;
}

/* 题目导航方格 */
.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.question-nav-item {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.question-nav-item.correct {
    background-color: rgba(101, 170, 212, .8); /* 蓝色 - 正确 */
}

.question-nav-item.incorrect {
    background-color: rgba(234, 146, 148, .8); /* 红色 - 错误 */
}

.question-nav-item.active {
    border: 2px solid #81fffd;
    transform: scale(1.1);
    filter: contrast(1.3) saturate(1.3);
}

.douyinblue-img {
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

/* 题目展示区域 */
.question-display {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.record-content .question-image{
    margin-bottom: 12px;
}

.questioner-box {
    background-color: #e0f5fd;
    border-radius: 50px;
    border: 1px solid #61bed9;
    color: #4473b4;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: .75rem;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-text-display {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.question-option-display {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.question-option-display.correct {
    background-color: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.question-option-display.incorrect {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

.question-explanation {
    font-size: 0.9rem;
    color: #666;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* 查看结果按钮 */
.view-result-btn {
    display: block;
    margin: 0 auto;
    padding: 8px 20px;
    background-color: #284c75;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-result-btn:hover {
    background-color: #396ea6;
}

/* 任务页面样式 */
.task-screen {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 60px;
}

.task-screen-content {
    padding: 14px 14px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.task-list-container {
    margin-bottom: 0;
}

.task-item-card {
    background: linear-gradient(to bottom, #3f6089, #5385a8);
    border-radius: 10px;
    padding: 12px 10px 12px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #86e3f5;
}

.task-info {
    flex: 1;
}

.task-title {
    /* font-weight: bold; */
    margin-bottom: 5px;
    font-size: .9rem;
    color: #fff;
}

.task-reward {
    color: #fff;
    background: #61bed9;
    font-size: 0.8rem;
    line-height: .8rem;
    padding: 6px 12px;
    display: block;
    white-space: nowrap;
    border-radius: 4px;
    width: 110px;
    margin-top: 10px;
    text-align: center;
}

.task-action {
    display: flex;
    align-items: center;
}

.task-btn {
    background: #e4f6fd;
    color: #2b2f40;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    border: 1px solid #6696cc;
    cursor: pointer;
    font-size: 0.9rem;
}

.claim-btn {
    background: #4fc4e7;
    border: 1px solid #75ddfc;
    color: #fff
}

.task-finish-icon {
    width: 30px;
    height: 30px;
    display: none;
}

/* 科研值进度样式 */
.research-progress-container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #95f9fd;
    max-height: 126px;
}

.progress-title {
    color: #284d7a;
    font-weight: bold;
    font-size: .85rem;
}

.progressbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.progress-bar-container {
    position: relative;
    height: 20px;
    background-color: #ecf7ff;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #8becfd;
}

.progress-bar {
    height: 100%;
    background-color: #70c4dd;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: #518ece;
    font-weight: bold;
    font-size: .95rem;
}

.reward-nodes {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    position: relative;
    top: -54px;
}

.reward-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-left: 85%;
}

.node-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #61bed9;
    margin-bottom: 5px;
}

.node-icon img {
    width: 30px;
    height: 30px;
}

.reward-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-text {
    color: #333;
    font-weight: bold;
}

/* 奖励弹窗样式 */
.reward-content {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reward-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: block;
}

.reward-description {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #23324b;
}

.uid-input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.edit-btn {
    color: #4caf50;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
}

.reward-notice {
    position: relative;
    margin-top: 20px;
}

.notice-bg {
    width: 100%;
    border-radius: 5px;
}

.notice-text {
    position: absolute;
    top: 0;
    left: 0;
    padding: 15px;
    color: #333;
    font-size: 0.8rem;
    line-height: 1.5;
}

.claim-confirm-btn {
    background: rgba(96, 190, 220, 1);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: .9rem;
    line-height: 1.3;
    padding: 12px 0;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    width: 120px;
}

.notice-text p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 排名页面整体样式 */
.rank-screen {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 60px; /* 为顶部导航栏留出空间 */
    display: none; /* 默认隐藏 */
}

/* 个人排名卡片 */
.user-rank-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 10px 16px;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(137, 222, 247, 1);
    margin-right: 10px;
}

.user-details .user-name {
    font-size: .95rem;
    font-weight: bold;
    color: #1b2b49;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details .user-uid,
.user-details .user-score {
    font-size: 0.8rem;
    color: #2d3f61;
    margin-top: 2px;
}

.user-rank {
    text-align: center;
}

.rank-percentage {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e94560;
}

.rank-desc {
    font-size: 0.8rem;
    color: #2d3f61;
    margin-top: 6px;
    white-space: nowrap;
}

/* 排行榜卡片 */
.rank-card {
    background: #eeeeee;
    border-radius: 20px; /* 20%圆角 */
    border: 1px solid #95f9fd;
    margin: 20px auto;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333; /* 文字颜色改为深色 */
    position: relative;
    z-index: 10;
}

/* 模式切换器 */
.mode-selector {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.mode-btn {
    padding: 8px 15px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background-color: #61bed9;
    color: white;
}

/* 领奖台样式 */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 30px 0 0;
    gap: 10px;
    padding: 0 14px;
}

.podium-item {
    width: 100px;
    background-color: #f0f0f0;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.first-place {
    height: 140px;
    background: linear-gradient(180deg, #3d5d86 0%, #59a7bd 100%);
}

.second-place {
    height: 120px;
    background: linear-gradient(180deg, #3d5d86 0%, #59a7bd 100%);
}

.third-place {
    height: 100px;
    background: linear-gradient(180deg, #3d5d86 0%, #59a7bd 100%);
}

.podium .rank-info {
    font-weight: bold;
    margin-top: 40px;
}

.podium .rank-score {
    font-size: 0.8rem;
    color: #eaeff3;
    margin-top: 5px;
}

/* 排行榜列表 */
.rank-list {
    margin-top: 20px;
}

.rank-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* border: 2px solid white; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    margin-bottom: 10px;
    object-fit: cover;
    position: absolute;
    top: -20%;
}


.rank-list-item {
    display: flex;
    align-items: center;
    background-color: #efefef;
    border-radius: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(194,200,204,.6);
    margin: 8px 14px;
}

.rank-list-item .rank-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.rank-list-item .rank-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.rank-title {
    width: 130px !important;
}

.rank-list-item .rank-title {
    font-weight: bold;
}

.rank-list-item .rank-requirement {
    font-size: 0.9rem;
    color: #666;
}

.rank-list-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.list-rank-label {
    width: 25px; /* 固定宽度，让列表对齐 */
    color: #1b2b49; /* 文字颜色 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: .9rem;
    margin-right: 8px; /* 与后面的头像拉开距离 */
}

.rank-list-item .rank-icon {
    margin-right: 10px;
}

/* 小课堂页面整体样式 */
.classroom-screen {
    background-image: url('https://static.appoint.icu/QA/img/modultbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 60px; /* 为顶部导航栏留出空间 */
    display: none; /* 默认隐藏 */
}

/* 轮播图样式 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    margin-top: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* 丝滑过渡效果 */
}

.carousel-item {
    min-width: 100%;
    height: 180px; /* 可以根据需要调整高度 */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填满 */
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 小课堂卡片 */
.classroom-card {
    background: #eeeeee;
    border-radius: 20px; /* 20%圆角 */
    border: 1px solid #95f9fd;
    margin: 20px auto;
    max-width: 94%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333; /* 文字颜色改为深色 */
    position: relative;
    z-index: 10;
}

/* 选项卡切换器 */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    color: #333;
}

.tab-btn.active {
    color: #e94560;
}

/* 选项卡下划线动画 */
.tab-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -1px;
    left: 0;
    background-color: #e94560;
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    margin-bottom: 30px;
}

/* 视频列表样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 每行两个视频 */
    gap: 15px;
    padding: 10px;
}

.video-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    width: 100%;
    height: 100px; /* 视频缩略图高度 */
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 播放按钮图标 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 15px;
    border-color: transparent transparent transparent white;
}

.video-title {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主页星星背景效果 */
.main-screen {
    /* 确保主容器是相对定位，这样绝对定位的星星才能相对于它定位 */
    position: relative;
    overflow: hidden; /* 隐藏超出容器的星星 */
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 确保星星在所有内容的下方 */
    pointer-events: none; /* 让鼠标事件可以穿透星星层，不影响点击按钮 */
}

/* 使用伪元素创建大量星星 */
.stars-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* 宽度设为200%，以便动画可以横向移动 */
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 50% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 70% 60%, rgba(255, 255, 255, 0.9), transparent),

        radial-gradient(3px 3px at 10% 70%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 3px at 30% 90%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(3px 3px at 30% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 40% 60%, rgba(255, 255, 255, 0.9), transparent),

        radial-gradient(3px 2px at 50% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 2px at 20% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 40% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(255, 255, 255, 0.9), transparent),

        radial-gradient(3px 3px at 80% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 80% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(4px 4px at 30% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 60% 10%, rgba(255, 255, 255, 0.8), transparent);
    
    /* 动画：缓慢移动和闪烁 */
    animation: stars-float 2s linear infinite, stars-twinkle 5s ease-in-out infinite alternate;
}

/* 定义星星缓慢移动的动画 */
@keyframes stars-float {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 移动到自身宽度的一半，实现无缝循环 */
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0; /* 动画开始时，光在文字左侧 */
    }
    20%, 100% {
        background-position: 100% 0; /* 动画进行到20%时，光已经划过文字，之后保持在右侧外面直到结束 */
    }
}

@keyframes gem-glow {
    0%, 100%{
        filter: brightness(1);
    }
    25% {
        filter: brightness(1.6);
    }
    50% {
        filter: brightness(.9);
    }
    75% {
        filter: brightness(1.3);
    }
}

/* 定义星星闪烁的动画 */
@keyframes stars-twinkle {
    0%, 100% {
        opacity: 0.6; /* 动画开始和结束时的透明度 */
    }
    50% {
        opacity: 1; /* 动画中间时最亮 */
    }
}

@media (max-width: 375px) {
    .options-container.grid-2x2 {
        gap: 8px;
    }
    
    .option {
        padding: 10px;
    }
    
    .option-image {
        max-height: 90px;
    }
}
/* 小屏适配（360px+） */
@media (min-width: 360px) {
    .result-left-section {
        left: 12.5vw !important;
    }
    .questioner-container {
        bottom: -60px !important;
    }
}


/* 中屏适配（400px+） */
@media (min-width: 376px) {
    .result-left-section {
        left: 10vw !important;
    }
}


/* 大屏适配（480px+） */
@media (min-width: 480px) {
    .result-left-section {
        left: 26vw !important;
    }
}