/* ========================================================
   21天旅程下半段样式 (Day11-21)
   ======================================================== */

/* ===== 精通四阶段进度条 ===== */
.jl-mastery-stages {
    margin: 8px 0;
}

.jl-stage-bars {
    display: flex;
    gap: 4px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.jl-stage-bar {
    flex: 1;
    background: #f0f0f0;
    position: relative;
    transition: background 0.3s;
}

.jl-stage-bar.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.jl-stage-bar.current {
    background: linear-gradient(90deg, #667eea, #f39c12);
    animation: jl-pulse 2s infinite;
}

.jl-stage-bar .jl-stage-name {
    display: none;
}

.jl-stage-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.jl-stage-current {
    color: #667eea;
    font-weight: 600;
}

@keyframes jl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== 继承宝箱 ===== */
.jl-inheritance-chest {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f9f0ff;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: 1px dashed #d3adf7;
}

.jl-inheritance-chest:active {
    background: #f3e8ff;
}

.jl-chest-icon {
    font-size: 32px;
    margin-right: 12px;
}

.jl-chest-info {
    flex: 1;
}

.jl-chest-name {
    font-size: 14px;
    font-weight: 600;
    color: #722ed1;
    margin-bottom: 2px;
}

.jl-chest-desc {
    font-size: 11px;
    color: #999;
}

.jl-chest-arrow {
    font-size: 18px;
    color: #d3adf7;
}

/* ===== 微习惯爪印 ===== */
.jl-microhabit-paw {
    position: absolute;
    bottom: 0;
    right: -4px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    z-index: 5;
    user-select: none;
}

.jl-microhabit-paw:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.jl-microhabit-paw.done {
    opacity: 1;
    animation: jl-paw-pop 0.4s ease-out;
}

@keyframes jl-paw-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 调整猫咪头像容器，给爪印留出位置 */
.journey21-cat-icon {
    position: relative;
}

/* ===== 错题否定法步骤 ===== */
.jl-negation-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jl-negation-step {
    display: flex;
    gap: 10px;
}

.jl-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jl-step-content {
    flex: 1;
}

.jl-step-question {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.5;
}

.jl-step-input {
    width: 100%;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

.jl-step-input:focus {
    outline: none;
    border-color: #667eea;
}

.jl-step-skip {
    font-size: 10px;
    color: #ccc;
    text-align: right;
    margin-top: 4px;
}

/* 错误类型选项 */
.jl-error-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jl-error-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f8f9ff;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.jl-error-option input[type="radio"] {
    margin: 0;
    accent-color: #667eea;
}

.jl-error-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.jl-error-option:has(input:checked) {
    background: #f0f5ff;
    border: 1px solid #667eea;
}

/* ===== 共同体感觉选项 ===== */
.jl-community-choice {
    flex: 1;
    padding: 20px 12px;
    background: #f8f9ff;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.jl-community-choice:active {
    transform: scale(0.96);
}

.jl-community-choice.selected {
    background: #f0f5ff;
    border-color: #667eea;
}

.jl-community-choice.selected .jl-community-choice-name {
    color: #667eea;
    font-weight: 600;
}

/* ===== 贝克哈德公式滑块 ===== */
.jl-beckhard-sliders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jl-slider-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jl-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.jl-slider-value {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.jl-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #667eea var(--progress, 50%), #f0f0f0 var(--progress, 50%));
    border-radius: 3px;
    outline: none;
}

.jl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.jl-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.jl-slider-resistance {
    background: linear-gradient(to right, #ff7875 var(--progress, 50%), #f0f0f0 var(--progress, 50%));
}

.jl-slider-resistance::-webkit-slider-thumb {
    border-color: #ff7875;
    box-shadow: 0 2px 6px rgba(255, 120, 117, 0.3);
}

.jl-slider-resistance::-moz-range-thumb {
    border-color: #ff7875;
    box-shadow: 0 2px 6px rgba(255, 120, 117, 0.3);
}

/* ===== 21天收尾三栏 ===== */
.jl-finale-section {
    margin-bottom: 16px;
    padding: 14px;
    background: #fafafa;
    border-radius: 12px;
}

.jl-finale-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jl-finale-content {
    font-size: 13px;
    line-height: 1.6;
}

/* ===== 功能入口按钮（Day详情弹窗中）===== */
.jl-feature-btn-wrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.jl-feature-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.jl-feature-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.jl-feature-btn-arrow {
    margin-left: auto;
    opacity: 0.8;
}

/* ===== 主题色变种（按阶段）===== */
/* 启动期橙色调 */
.jl-feature-btn.launch-phase {
    background: linear-gradient(135deg, #ffd93d, #ff9f43);
}

/* 开窍期紫色调 */
.jl-feature-btn.enlighten-phase {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

/* ===== 响应式调整 ===== */
@media (max-width: 375px) {
    .jl-error-type-options {
        gap: 4px;
    }

    .jl-error-option {
        padding: 5px 8px;
        font-size: 11px;
    }

    .jl-finale-section {
        padding: 12px;
    }
}
