/* ===== 语法星球 - 全局样式 ===== */

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

body {
    font-family: 'Segoe UI', 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px;
    -webkit-tap-highlight-color: transparent;
}

/* ===== 主卡片 ===== */
.app-card {
    max-width: 860px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 48px 48px 40px 40px;
    box-shadow: 0 30px 60px rgba(188, 143, 174, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 20px 24px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 95vh;
    display: flex;
    flex-direction: column;
}

/* ===== 品牌标题 ===== */
.brand-header {
    text-align: center;
    padding: 4px 0 10px 0;
    cursor: pointer;
}

.brand-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #b34180, #7c4dff, #b34180);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: shimmerTitle 3s ease-in-out infinite;
}

@keyframes shimmerTitle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-header .sparkle {
    display: inline-block;
    color: #e91e63;
    font-size: 2rem;
    animation: sparkleJump 1.6s ease-in-out infinite;
}

@keyframes sparkleJump {
    0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    30% { transform: scale(1.4) rotate(15deg); opacity: 1; }
    60% { transform: scale(0.9) rotate(-8deg); opacity: 0.8; }
    80% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
}

/* ===== 控制条 ===== */
.control-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.day-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.day-label {
    font-weight: 700;
    color: #2d1b3d;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: center;
}

.day-nav button {
    background: transparent;
    border: none;
    width: 32px; height: 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #4a2a5e;
    display: flex; align-items: center; justify-content: center;
    transition: 0.1s;
}
.day-nav button:active { transform: scale(0.9); background: rgba(179, 136, 204, 0.2); }

.range-input {
    width: 70px;
    background: rgba(255,255,255,0.6);
    border: 1.5px solid rgba(179, 136, 204, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.9rem;
    color: #2d1b3d;
    text-align: center;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}
.range-input:focus { border-color: #b39ddb; }

.jump-btn {
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 700;
    color: #4a1a2e;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}
.jump-btn:active { transform: scale(0.94); }

.monster-btn {
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    border: 1px solid #f48fb1;
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #4a1a2e;
    cursor: pointer;
    font-family: inherit;
    display: flex; align-items: center; gap: 4px;
}
.monster-btn .badge {
    background: #c62828; color: white; border-radius: 30px;
    padding: 0 8px; font-size: 0.7rem; line-height: 18px;
}
.monster-btn:active { transform: scale(0.94); }

/* ===== 统计条 ===== */
.stats-bar {
    display: flex; justify-content: space-around;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 30px; padding: 6px 16px; margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-wrap: wrap; gap: 6px;
}
.stats-bar .stat-item {
    display: flex; align-items: center; gap: 4px;
    font-weight: 600; color: #4a2a5e; font-size: 0.9rem;
}

/* ===== 抖音按钮 ===== */
.douyin-btn {
    background: linear-gradient(135deg, #fe2c55, #d41a3f);
    border: none;
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.douyin-btn:active { transform: scale(0.94); }

/* ===== 视频按钮 ===== */
.video-btn {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    border: none;
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a2a00;
    cursor: pointer;
    font-family: inherit;
    transition: 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.video-btn:active { transform: scale(0.94); }

/* ===== 搜索平台选择弹窗 ===== */
.search-popup-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center; align-items: center;
    z-index: 9999; padding: 20px;
}
.search-popup-overlay.show { display: flex; }

.search-popup {
    background: white; border-radius: 28px;
    max-width: 340px; width: 100%;
    padding: 24px 20px 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.25s ease;
}
.search-popup-title {
    font-size: 1.1rem; font-weight: 700; color: #2d1b3d;
    margin-bottom: 4px;
}
.search-popup-word {
    font-size: 0.9rem; color: #6a4c7a;
    margin-bottom: 16px; padding: 6px 12px;
    background: #f8f4fc; border-radius: 12px;
    word-break: break-all;
}

.search-popup-btn {
    display: block; width: 100%;
    padding: 12px; margin-bottom: 10px;
    border: none; border-radius: 20px;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: 0.15s;
}
.search-popup-btn:active { transform: scale(0.96); }
.search-popup-btn.douyin {
    background: linear-gradient(135deg, #fe2c55, #d41a3f);
    color: #fff;
}
.search-popup-btn.bilibili {
    background: linear-gradient(135deg, #fb7299, #e55a8b);
    color: #fff;
}

.search-popup-cancel {
    background: transparent; border: none;
    color: #9a7aaa; font-size: 0.9rem;
    cursor: pointer; font-family: inherit;
    padding: 6px;
}

/* ===== 视频弹窗 ===== */
.video-modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center; align-items: center;
    z-index: 9999; padding: 20px;
    animation: fadeIn 0.25s ease;
}
.video-modal-overlay.show { display: flex; }

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.video-modal {
    position: relative;
    background: white;
    border-radius: 32px;
    max-width: 860px; width: 100%;
    padding: 20px 20px 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.video-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: rgba(0,0,0,0.05); border: none;
    border-radius: 50%; width: 40px; height: 40px;
    font-size: 1.4rem; cursor: pointer;
    color: #4a2a5e; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    transition: 0.15s; z-index: 10;
}
.video-modal-close:hover { background: rgba(0,0,0,0.1); }
.video-modal-close:active { transform: scale(0.9); }

.video-modal-title {
    font-weight: 700; font-size: 1.15rem;
    color: #2d1b3d; margin-bottom: 12px;
    padding-right: 50px;
}

.video-modal-body {
    position: relative; padding-bottom: 56.25%; height: 0;
    border-radius: 16px; overflow: hidden;
    background: #1a1a2e;
}
.video-modal-body iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: none;
}

.video-modal-footer {
    text-align: center; margin-top: 12px;
    font-size: 0.8rem; color: #9a7aaa;
}

/* ===== 底部导航 ===== */
.top-nav {
    display: flex; justify-content: space-around;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 40px; padding: 6px 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.nav-item {
    background: transparent; border: none;
    padding: 6px 18px; border-radius: 30px;
    font-weight: 600; color: #6a4c7a; font-size: 0.9rem;
    cursor: pointer; transition: 0.15s;
    display: flex; align-items: center; gap: 4px;
    font-family: inherit;
    text-decoration: none;
}
.nav-item.active {
    background: linear-gradient(135deg, #f8bbd0, #e1bee7);
    color: #4a1a2e;
    box-shadow: 0 2px 8px rgba(188, 143, 174, 0.15);
}
.nav-item:active { transform: scale(0.94); }

/* ===== 知识点卡片 ===== */
.knowledge-area {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 32px; padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}
.knowledge-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f8bbd0, #e1bee7);
    padding: 4px 18px; border-radius: 40px;
    font-size: 0.85rem; font-weight: 600;
    color: #6a1b4d; margin-bottom: 12px;
}

.knowledge-list { display: flex; flex-direction: column; gap: 10px; }

.knowledge-item {
    background: white; border-radius: 24px; padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.6);
    cursor: pointer; transition: 0.15s;
}
.knowledge-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(188,143,174,0.1); }

.knowledge-item .top-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.knowledge-item .title {
    font-weight: 600; color: #2d1b3d; font-size: 1.05rem;
}
.knowledge-item .subtitle {
    font-size: 0.8rem; color: #6a4c7a; opacity: 0.7; margin-top: 2px;
}

.learn-btn {
    background: linear-gradient(135deg, #f3e5f5, #e8dff5);
    border: 1px solid #d1c4e9; color: #6a1b4d;
    padding: 5px 14px; border-radius: 40px;
    font-weight: 600; font-size: 0.8rem;
    cursor: pointer; transition: 0.15s;
    white-space: nowrap; flex-shrink: 0;
    font-family: inherit;
}
.learn-btn.learned {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    border-color: #81c784; color: #1e4a2b;
}
.learn-btn:active { transform: scale(0.94); }

/* ===== 知识点展开详情 ===== */
.knowledge-detail {
    margin-top: 12px;
    padding: 20px 22px;
    background: #f8f4fc;
    border-radius: 20px;
    border-left: 6px solid #b39ddb;
    display: none;
    animation: fadeSlide 0.25s ease;
}
.knowledge-detail.open { display: block; }

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 主标题 */
.detail-section .sec-title {
    font-weight: 700; font-size: 1.15rem;
    color: #4a2a5e;
    border-bottom: 2px solid #e8e0f0;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.detail-section:first-child .sec-title {
    font-size: 1.3rem;
    color: #2d1b3d;
    border-bottom-width: 3px;
}

/* 规则卡片 */
.detail-section {
    background: white;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 1px solid #e8e0f0;
    box-shadow: 0 2px 8px rgba(188,143,174,0.04);
}
.detail-section:last-child { margin-bottom: 0; }

.detail-section .sec-title.special {
    color: #e65100;
    border-bottom-color: #ffe0b2;
}
.detail-section .sec-title.memory_tip {
    color: #6a1b9a;
    border-bottom-color: #e1bee7;
}
.detail-section .sec-title.example_detail {
    color: #1565c0;
    border-bottom-color: #bbdefb;
}

/* 内容文字 */
.detail-section .sec-content {
    font-size: 0.95rem; color: #2d1b3d;
    line-height: 1.8; white-space: pre-line;
    margin-bottom: 8px;
}

/* 重点提示 */
.detail-section .sec-highlight {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 8px 14px; border-radius: 10px;
    margin: 8px 0; font-size: 0.95rem;
    color: #e65100; font-weight: 600;
}

/* 例句网格 */
.detail-section .sec-example {
    background: #faf8fc;
    padding: 8px 14px; border-radius: 10px;
    margin: 4px 0; font-size: 0.95rem;
    border: 1px solid #f0e8f5;
    display: flex; align-items: baseline; gap: 8px;
}
.detail-section .sec-example::before {
    content: '📝'; font-size: 0.85rem; flex-shrink: 0;
}
.detail-section .sec-example .eg-text {
    font-weight: 600; color: #b34180;
}
.detail-section .sec-example .eg-desc {
    font-size: 0.8rem; color: #6a4c7a; margin-top: 2px;
}

/* 例句网格（词对拆分后） */
.detail-section .sec-example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.detail-section .sec-example-grid .eg-item {
    font-size: 0.9rem; color: #b34180; font-weight: 600;
    padding: 2px 0;
    border-bottom: 1px dashed #f0e8f0;
}
@media (min-width: 768px) {
    .detail-section .sec-example-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px 24px;
    }
    .detail-section .sec-example-grid .eg-item {
        font-size: 1rem;
    }
}

/* 特殊规则区块 */
.detail-section.special-block {
    background: #fff8e1;
    border-color: #ffe0b2;
}
.detail-section.memory-block {
    background: #f3e5f5;
    border-color: #e1bee7;
}

/* iPad 大屏优化 */
@media (min-width: 768px) {
    .detail-section .sec-title { font-size: 1.25rem; }
    .detail-section:first-child .sec-title { font-size: 1.45rem; }
    .detail-section .sec-content { font-size: 1.05rem; }
    .detail-section .sec-example { font-size: 1.05rem; }
    .detail-section { padding: 16px 22px; }
    .knowledge-detail { padding: 24px 28px; }
}

/* ===== 试卷页面样式 ===== */
.exam-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 32px; padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}
.exam-header-top {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.exam-header-top h2 { font-size: 1.3rem; color: #2d1b3d; }
.exam-header-top p { font-size: 0.85rem; color: #6a4c7a; margin-top: 2px; }

.exam-progress-wrap {
    margin-top: 12px; display: flex; align-items: center; gap: 10px;
}
.exam-progress-bg {
    flex: 1; height: 8px; background: rgba(179,136,204,0.2);
    border-radius: 20px; overflow: hidden;
}
.exam-progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, #f8bbd0, #b39ddb, #7c4dff);
    border-radius: 20px; transition: width 0.3s ease;
}
.exam-progress-text { font-weight: 600; color: #4a2a5e; font-size: 0.85rem; white-space: nowrap; }

.badge-progress {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    padding: 6px 16px; border-radius: 30px;
    font-weight: 700; font-size: 0.9rem; color: #1e4a2b;
}

/* 题号导航 */
.question-nav {
    display: flex; gap: 6px; flex-wrap: wrap;
    justify-content: center; margin-bottom: 8px;
}
.qnav-btn {
    width: 34px; height: 34px; border-radius: 30px;
    border: 2px solid rgba(179,136,204,0.3);
    background: rgba(255,255,255,0.5);
    font-weight: 700; color: #6a4c7a; cursor: pointer;
    font-size: 0.8rem; font-family: inherit;
    transition: 0.15s;
}
.qnav-btn:hover { transform: translateY(-2px); }
.qnav-btn.current { border-color: #7c4dff; background: #ede7f6; }
.qnav-btn.answered { border-color: #66bb6a; background: #e8f5e9; color: #1e4a2b; }
.qnav-btn.wrong { border-color: #ef5350; background: #ffebee; color: #b71c1c; }

.qnav-legend {
    display: flex; gap: 16px; justify-content: center;
    font-size: 0.7rem; color: #6a4c7a; margin-bottom: 8px;
}
.qnav-legend .dot {
    display: inline-block; width: 12px; height: 12px;
    border-radius: 30px; margin-right: 4px; vertical-align: middle;
}
.dot.current { background: #7c4dff; }
.dot.answered { background: #66bb6a; }
.dot.wrong { background: #ef5350; }
.dot.unanswered { background: rgba(179,136,204,0.3); }

/* 题目卡片 */
.question-list {
    display: flex; flex-direction: column; gap: 16px;
}
.quiz-card {
    background: white; border-radius: 28px; padding: 18px 20px 16px;
    box-shadow: 0 4px 16px rgba(188,143,174,0.06);
    border: 1px solid rgba(255,255,255,0.6);
}

.quiz-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 10px; flex-wrap: wrap; gap: 6px;
}
.quiz-type-tag {
    font-weight: 700; font-size: 0.7rem; padding: 2px 12px; border-radius: 20px;
}
.quiz-type-tag.single { background: linear-gradient(135deg, #f8bbd0, #e1bee7); color: #4a1a2e; }
.quiz-type-tag.fill { background: linear-gradient(135deg, #b39ddb, #9575cd); color: white; }
.quiz-type-tag.multi { background: linear-gradient(135deg, #ffcc80, #ffb74d); color: #4a2a00; }
.quiz-type-tag.judge { background: linear-gradient(135deg, #80cbc4, #4db6ac); color: #004d40; }
.quiz-type-tag.order { background: linear-gradient(135deg, #ce93d8, #ab47bc); color: white; }
.quiz-type-tag.transform { background: linear-gradient(135deg, #90caf9, #64b5f6); color: #0d3b66; }

.quiz-num { font-weight: 700; color: #2d1b3d; font-size: 0.9rem; }

.quiz-title {
    font-size: 1rem; color: #1f1130; font-weight: 500;
    line-height: 1.6; margin-bottom: 12px;
}

/* 选项 */
.quiz-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.quiz-options.single-col { grid-template-columns: 1fr; }

.quiz-opt-btn {
    background: #f8f6fc; border: 1.5px solid transparent;
    border-radius: 40px; padding: 8px 16px;
    font-size: 0.9rem; color: #2d1b3d; cursor: pointer;
    font-weight: 500; display: flex; align-items: center; gap: 10px;
    transition: 0.15s; font-family: inherit; text-align: left;
}
.quiz-opt-btn:active { transform: scale(0.97); }
.quiz-opt-btn.selected { border-color: #b39ddb; background: #ede7f6; }
.quiz-opt-btn.correct { border-color: #66bb6a; background: #e8f5e9; color: #1e4a2b; }
.quiz-opt-btn.wrong { border-color: #ef5350; background: #ffebee; color: #b71c1c; }
.quiz-opt-btn.disabled { pointer-events: none; opacity: 0.6; }

.opt-prefix {
    width: 26px; height: 26px;
    background: rgba(179,136,204,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #6a4c7a; font-size: 0.8rem; flex-shrink: 0;
}

/* 填空 */
.fill-input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.fill-input {
    flex: 1; min-width: 180px;
    background: #f8f6fc; border: 1.5px solid rgba(179,136,204,0.3);
    border-radius: 40px; padding: 8px 18px;
    font-size: 0.9rem; color: #2d1b3d; outline: none;
    font-family: inherit; transition: 0.15s;
}
.fill-input:focus { border-color: #b39ddb; background: #ede7f6; }
.fill-input:disabled { opacity: 0.7; }
.fill-submit {
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    border: none; border-radius: 40px; padding: 8px 20px;
    font-weight: 700; color: #4a1a2e; cursor: pointer;
    font-size: 0.85rem; font-family: inherit;
}
.fill-submit:active { transform: scale(0.95); }

/* 判断 */
.judge-btns { display: flex; gap: 12px; justify-content: center; }
.judge-btn {
    flex: 1; max-width: 140px; border: none;
    border-radius: 40px; padding: 10px;
    font-weight: 700; cursor: pointer; font-size: 0.95rem;
    font-family: inherit; transition: 0.1s;
}
.judge-btn.true { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); color: #1e4a2b; }
.judge-btn.false { background: linear-gradient(135deg, #ffcdd2, #ef9a9a); color: #b71c1c; }
.judge-btn.correct-true { box-shadow: 0 0 0 3px rgba(102,187,106,0.5); }
.judge-btn.correct-false { box-shadow: 0 0 0 3px rgba(102,187,106,0.5); }
.judge-btn.wrong-true { box-shadow: 0 0 0 3px rgba(239,83,80,0.5); }
.judge-btn.wrong-false { box-shadow: 0 0 0 3px rgba(239,83,80,0.5); }
.judge-btn.disabled { pointer-events: none; opacity: 0.6; }

/* 连词成句 */
.reorder-words {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.reorder-word {
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    padding: 6px 14px; border-radius: 20px;
    font-weight: 600; color: #4a1a2e; cursor: pointer;
    user-select: none; border: none; font-family: inherit;
    font-size: 0.9rem; transition: 0.1s;
}
.reorder-word:active { transform: scale(0.95); }
.reorder-word.used { opacity: 0.3; pointer-events: none; }

.reorder-dropzone {
    background: #f8f6fc; border: 2px dashed rgba(179,136,204,0.3);
    border-radius: 20px; padding: 12px 16px; min-height: 44px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.reorder-dropzone .reorder-word {
    background: linear-gradient(135deg, #e1bee7, #d1c4e9);
    cursor: pointer;
}
.reorder-placeholder { color: #9a7aaa; font-size: 0.85rem; }

/* 句型转换 */
.transform-area textarea {
    width: 100%; min-height: 60px;
    background: #f8f6fc; border: 1.5px solid rgba(179,136,204,0.3);
    border-radius: 16px; padding: 10px 14px;
    font-size: 0.9rem; color: #2d1b3d; outline: none;
    font-family: inherit; resize: vertical;
}
.transform-area textarea:focus { border-color: #b39ddb; }

/* 反馈 */
.quiz-feedback {
    background: #f3edf9; border-radius: 24px;
    padding: 10px 14px; margin-top: 10px;
    border-left: 6px solid #b39ddb;
    animation: fadeSlide 0.25s ease;
}
.quiz-feedback-title {
    font-weight: 700; color: #4a2a5e; font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
}
.quiz-feedback-text {
    font-size: 0.85rem; color: #2d1b3d; line-height: 1.6; margin-top: 4px;
}

/* 底部操作栏 */
.exam-footer {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px); border-radius: 40px;
    padding: 10px 16px; margin-top: 10px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 20px rgba(188,143,174,0.2);
    gap: 8px; flex-wrap: wrap;
}
.exam-footer .info { font-weight: 600; color: #4a2a5e; font-size: 0.85rem; }
.exam-footer button {
    background: transparent; border: 2px solid rgba(179,136,204,0.4);
    border-radius: 40px; padding: 8px 20px;
    font-weight: 700; color: #6a4c7a; cursor: pointer;
    font-size: 0.85rem; font-family: inherit; transition: 0.1s;
}
.exam-footer button:active { transform: scale(0.95); }
.exam-footer button.primary {
    background: linear-gradient(135deg, #f8bbd0, #f48fb1);
    border: none; color: #4a1a2e;
}

/* 错词页 */
.wrong-page {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    border-radius: 32px; padding: 16px;
    border: 1px solid rgba(255,255,255,0.6);
}
.wrong-empty { text-align: center; padding: 30px 0; color: #9a7aaa; font-size: 0.95rem; }

/* 响应式 */
@media (max-width: 700px) {
    .app-card { padding: 14px 14px 12px; border-radius: 32px; }
    .brand-header h1 { font-size: 1.6rem; }
    .control-bar { flex-direction: column; align-items: stretch; gap: 6px; }
    .day-nav { justify-content: center; }
    .quiz-options { grid-template-columns: 1fr; }
    .exam-footer { width: calc(100% - 28px); }
    .nav-item { font-size: 0.8rem; padding: 5px 10px; }
}
@media (max-width: 420px) {
    .brand-header h1 { font-size: 1.3rem; }
    .knowledge-item .title { font-size: 0.9rem; }
    .quiz-title { font-size: 0.85rem; }
}
