/* ==========================================================
   🎈 主题二：英语乐园 (Scene / Playground)
   ----------------------------------------------------------
   参考「学习小助手」插画风格：
   蓝天绿地场景 · 彩色渐变卡片 · 大号3D emoji · 白色圆形箭头
   作用域：html[data-theme="scene"]
   ========================================================== */

html[data-theme="scene"] {
    --primary: #3AA0FF;
    --primary-dark: #1E7FE0;
    --success: #3ED598;
    --success-dark: #1EBE7E;
    --warning: #FFC542;
    --danger: #FF6B8A;
    --info: #A78BFA;
    --text: #2B4A6B;
    --text-muted: #7E96B0;
    --ink: #2B4A6B;
    --blue: #3AA0FF;
    --pink: #FF7EA6;
    --yellow: #FFC542;
    --green: #3ED598;
    --purple: #A78BFA;
    --orange: #FF9F5A;
}

/* ========== 全局：蓝天绿地场景背景 ========== */
html[data-theme="scene"] body {
    font-family: "PingFang SC", "Microsoft YaHei", "Comic Sans MS", sans-serif;
    color: var(--text);
    background-color: #CDEEFF;
    background-image:
        /* 太阳光晕 */
        radial-gradient(circle at 88% 10%, rgba(255,244,180,0.9) 0 3.5%, rgba(255,238,150,0.35) 5% 11%, transparent 12%),
        /* 白云 */
        radial-gradient(ellipse 90px 26px at 18% 14%, #fff 0 62%, transparent 64%),
        radial-gradient(ellipse 60px 18px at 26% 11%, #fff 0 62%, transparent 64%),
        radial-gradient(ellipse 110px 30px at 68% 20%, #fff 0 62%, transparent 64%),
        /* 天空 -> 绿地 */
        linear-gradient(180deg, #8ED3F7 0%, #C3EBFB 45%, #E4F6D6 58%, #B9E986 72%, #8FD45C 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* 漂浮场景装饰（云朵/太阳/小鸟）由 index.php 的 .scene-decor 提供 */
html[data-theme="scene"] .scene-decor { display: block; }

/* ========== 顶部导航：白色卡片条 ========== */
html[data-theme="scene"] .app-header {
    height: 64px;
    background: #FFFFFF;
    border: none;
    border-bottom: 3px solid #E3F1FB;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 16px rgba(60, 140, 200, 0.14);
    padding: 0 20px;
}

html[data-theme="scene"] .menu-toggle { background: #EAF6FF; border: 2px solid #CDE8FB; }
html[data-theme="scene"] .menu-bar { background: #3AA0FF; }

html[data-theme="scene"] .header-stat-item {
    background: #FFF6DA;
    color: #E28A00;
    border: 2px solid #FFE3A0;
    box-shadow: 0 3px 0 rgba(226, 138, 0, 0.15);
}
html[data-theme="scene"] .header-stat-label { color: #B97900; }
html[data-theme="scene"] .header-stat-value { color: #E28A00; }

html[data-theme="scene"] .points-badge,
html[data-theme="scene"] .today-badge,
html[data-theme="scene"] .network-status {
    background: #FFF6DA;
    color: #E28A00;
    border: 2px solid #FFE3A0;
    box-shadow: none;
}
html[data-theme="scene"] .user-avatar-btn { background: #EAF6FF; border: 2px solid #CDE8FB; box-shadow: none; }
html[data-theme="scene"] .user-avatar-icon { color: #3AA0FF; }
html[data-theme="scene"] .user-dropdown { border: 2px solid #DCEEFB; box-shadow: 0 8px 20px rgba(60,140,200,.18); }

/* ========== 侧边栏：科目胶囊 ========== */
html[data-theme="scene"] .sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-right: 3px solid #E3F1FB;
    box-shadow: none;
    backdrop-filter: blur(6px);
}
html[data-theme="scene"] .nav-item {
    margin: 6px 12px;
    padding: 11px 16px;
    border: none;
    border-left: none;
    border-radius: 14px;
    color: #5B7590;
    font-weight: 700;
}
html[data-theme="scene"] .nav-item:hover {
    background: #EAF6FF;
    color: #2B4A6B;
    transform: translateX(3px);
}
html[data-theme="scene"] .nav-item.active {
    background: linear-gradient(135deg, #4FB0FF, #2E90F0);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(58, 160, 255, 0.4);
}
html[data-theme="scene"] .nav-item.active .nav-icon { filter: none; }
html[data-theme="scene"] .nav-icon { font-size: 1.35rem; }

html[data-theme="scene"] .main-content { padding: 20px 24px; }

/* ========== 通用面板：半透明白卡片 ========== */
html[data-theme="scene"] .page-header h2 {
    color: #1E5FA8;
    font-weight: 900;
    text-shadow: 2px 3px 0 #D9EEFF;
}
/* 副标题加深，避免浅蓝背景上看不清 */
html[data-theme="scene"] .page-header .text-muted,
html[data-theme="scene"] .page-header p {
    color: #3A6A99;
    font-weight: 600;
    opacity: 1;
}
html[data-theme="scene"] .panel {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(60, 140, 200, 0.16);
    backdrop-filter: blur(4px);
}
html[data-theme="scene"] .panel h3 {
    color: #1E5FA8;
    font-weight: 900;
    border-bottom: 3px dashed #DCEEFB;
}

/* ========== 状态卡片：三张彩色渐变卡 ========== */
html[data-theme="scene"] .status-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(60, 140, 200, 0.25);
    padding: 16px;
}
html[data-theme="scene"] .card-today-points {
    background: linear-gradient(135deg, #4FB0FF, #2E86F0) !important;
}
html[data-theme="scene"] .card-total-points {
    background: linear-gradient(135deg, #FFC95A, #FF9F43) !important;
}
html[data-theme="scene"] .card-rate {
    background: linear-gradient(135deg, #B18CFF, #8B6DF0) !important;
}
html[data-theme="scene"] .status-card .card-icon {
    background: rgba(255,255,255,0.28) !important;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: none;
    color: #fff;
}
html[data-theme="scene"] .status-card .card-value,
html[data-theme="scene"] .status-card .card-label {
    color: #fff;
    opacity: 1;
}
html[data-theme="scene"] .status-card .card-sub { color: #FFF3C4; }
/* 行为记录页的好行为/需改进状态卡：补彩色渐变背景，避免白字白底 */
html[data-theme="scene"] .status-card.card-good {
    background: linear-gradient(135deg, #4FD9A0, #22BE86) !important;
    border: none;
}
html[data-theme="scene"] .status-card.card-bad {
    background: linear-gradient(135deg, #FFC15A, #FF8F5A) !important;
    border: none;
}
html[data-theme="scene"] .status-card.card-good .card-icon,
html[data-theme="scene"] .status-card.card-bad .card-icon {
    background: rgba(255,255,255,0.3) !important;
}

/* ========== 彩色渐变卡片：英语乐园核心视觉 ========== */
html[data-theme="scene"] .task-card,
html[data-theme="scene"] .reward-card,
html[data-theme="scene"] .claim-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(60, 140, 200, 0.22);
    color: #fff;
}
/* 四色循环渐变 */
html[data-theme="scene"] .task-grid > *:nth-child(4n+1),
html[data-theme="scene"] .rewards-grid > *:nth-child(4n+1) { background: linear-gradient(135deg, #4FB0FF, #2E86F0); }
html[data-theme="scene"] .task-grid > *:nth-child(4n+2),
html[data-theme="scene"] .rewards-grid > *:nth-child(4n+2) { background: linear-gradient(135deg, #4FD9A0, #22BE86); }
html[data-theme="scene"] .task-grid > *:nth-child(4n+3),
html[data-theme="scene"] .rewards-grid > *:nth-child(4n+3) { background: linear-gradient(135deg, #B18CFF, #8B6DF0); }
html[data-theme="scene"] .task-grid > *:nth-child(4n+4),
html[data-theme="scene"] .rewards-grid > *:nth-child(4n+4) { background: linear-gradient(135deg, #FFC15A, #FF8F5A); }

html[data-theme="scene"] .task-card-header {
    background: transparent;
    border-bottom: 2px solid rgba(255,255,255,0.35);
    border-radius: 0;
}
html[data-theme="scene"] .task-name,
html[data-theme="scene"] .reward-name {
    color: #fff;
    font-weight: 900;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.12);
}
html[data-theme="scene"] .task-points,
html[data-theme="scene"] .cost-value { color: #FFF3B0; font-weight: 900; }
html[data-theme="scene"] .task-badge { border: 2px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.25) !important; color: #fff !important; }
html[data-theme="scene"] .task-detail { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
html[data-theme="scene"] .reward-desc { color: rgba(255,255,255,0.92); }
html[data-theme="scene"] .cost-label { color: rgba(255,255,255,0.9); }
/* 打卡卡片描述/提示文字：彩色渐变背景上提高对比度 */
html[data-theme="scene"] .task-desc,
html[data-theme="scene"] .task-card .text-muted,
html[data-theme="scene"] .task-card small,
html[data-theme="scene"] .checkin-form small {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
html[data-theme="scene"] .task-detail .text-muted { color: rgba(255,255,255,0.9) !important; }
/* 进度条内百分比文字 */
html[data-theme="scene"] .progress-bar { color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

html[data-theme="scene"] .reward-icon {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.08);
    animation: sceneFloat 3s ease-in-out infinite;
}

/* 任务列表条目：白底彩条 */
html[data-theme="scene"] .done-item,
html[data-theme="scene"] .pending-item {
    background: #fff;
    border: none;
    border-left: 5px solid #4FD9A0;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(60,140,200,.12);
}
html[data-theme="scene"] .pending-item { border-left-color: #FFC15A; }
html[data-theme="scene"] .done-name { color: #2B4A6B; font-weight: 700; }

/* ========== 按钮：白色圆形箭头感 ========== */
html[data-theme="scene"] .btn {
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.12);
    font-weight: 800;
}
html[data-theme="scene"] .btn:hover { box-shadow: 0 6px 0 rgba(0,0,0,0.12); }
html[data-theme="scene"] .btn:active { box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
html[data-theme="scene"] .btn-sm { border-radius: 999px; }
html[data-theme="scene"] .btn-success { background: #3ED598; color: #fff; }
html[data-theme="scene"] .btn-success:hover { background: #55E0A8; }
html[data-theme="scene"] .btn-primary { background: #3AA0FF; color: #fff; }
html[data-theme="scene"] .btn-primary:hover { background: #5CB2FF; }
html[data-theme="scene"] .btn-warning { background: #FFC542; color: #7A5200; }
html[data-theme="scene"] .btn-danger { background: #FF7EA6; color: #fff; }
html[data-theme="scene"] .claim-reward-btn { background: #fff !important; color: #2E86F0 !important; }
html[data-theme="scene"] .btn-outline { background: #fff; color: #3AA0FF; border: 2px solid #CDE8FB; }

/* ========== 表单 / 表格 ========== */
html[data-theme="scene"] .form-input {
    border: 2px solid #CDE8FB;
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
    color: #2B4A6B;
}
html[data-theme="scene"] .form-input:focus { border-color: #3AA0FF; box-shadow: 0 0 0 4px rgba(58,160,255,.18); }
html[data-theme="scene"] .data-table th { background: #EAF6FF; color: #1E5FA8; border-bottom: 3px solid #CDE8FB; }
html[data-theme="scene"] .data-table td { border-bottom: 2px solid #EDF6FD; }
html[data-theme="scene"] .badge { border: none; border-radius: 999px; }

/* 进度条 / 图表：糖果渐变 */
html[data-theme="scene"] .progress-bar-container { background: #fff; border: 2px solid #CDE8FB; }
html[data-theme="scene"] .progress-bar { background: linear-gradient(90deg, #4FD9A0, #3AA0FF); border-radius: 999px; }
html[data-theme="scene"] .chart-bar-col .chart-bar { background: linear-gradient(180deg,#7BE0A8,#3ED598) !important; border: 2px solid rgba(255,255,255,.8); }
html[data-theme="scene"] .chart-bar-col.today .chart-bar { background: linear-gradient(180deg,#FFD973,#FF9F43) !important; }
html[data-theme="scene"] .chart-bar-label { color: #2B4A6B; }

/* ========== 提示 / Toast / Modal ========== */
html[data-theme="scene"] .toast { border: none; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
html[data-theme="scene"] .modal-content { background: #fff; border: none; border-radius: 24px; box-shadow: 0 12px 36px rgba(43,74,107,.3); }
html[data-theme="scene"] .modal-content h3 { color: #1E5FA8; }

/* 分页 */
html[data-theme="scene"] .page-link { border: 2px solid #CDE8FB; border-radius: 12px; box-shadow: none; color: #3AA0FF; }
html[data-theme="scene"] .page-link.active { background: #3AA0FF; color: #fff; border-color: #3AA0FF; }

/* 空状态 */
html[data-theme="scene"] .empty-state { color: #7E96B0; }

/* ========== 登录页：学习小助手风 ========== */
html[data-theme="scene"] .login-body {
    background-color: #CDEEFF;
    background-image:
        radial-gradient(circle at 85% 12%, rgba(255,244,180,.9) 0 4%, rgba(255,238,150,.3) 6% 12%, transparent 13%),
        radial-gradient(ellipse 90px 26px at 16% 16%, #fff 0 62%, transparent 64%),
        linear-gradient(180deg, #8ED3F7 0%, #C3EBFB 45%, #E4F6D6 60%, #A9E27A 100%);
    background-attachment: fixed;
}
html[data-theme="scene"] .login-container {
    background: rgba(255,255,255,0.96);
    border: none;
    border-radius: 28px;
    box-shadow: 0 14px 40px rgba(60,140,200,.28);
}
html[data-theme="scene"] .login-container::before {
    content: "🌈 星星乐园 🌈\A ✨ 打卡每一天，收集小星星 ✨";
    color: #1E5FA8;
    text-shadow: 2px 3px 0 #D9EEFF;
}
html[data-theme="scene"] .login-input-minimal { border: 2px solid #CDE8FB; box-shadow: none; border-radius: 14px; }
html[data-theme="scene"] .login-btn-minimal {
    background: linear-gradient(135deg, #4FB0FF, #2E86F0);
    border: none;
    border-radius: 999px;
    box-shadow: 0 5px 0 #1E6FC8;
    color: #fff;
}
html[data-theme="scene"] .login-btn-minimal:hover { box-shadow: 0 7px 0 #1E6FC8; }

/* ========== 场景漂浮装饰动画 ========== */
@keyframes sceneFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}
html[data-theme="scene"] .scene-decor span { animation: sceneFloat 5s ease-in-out infinite; }
html[data-theme="scene"] .scene-decor span:nth-child(2) { animation-delay: 1s; }
html[data-theme="scene"] .scene-decor span:nth-child(3) { animation-delay: 2s; }
html[data-theme="scene"] .scene-decor span:nth-child(4) { animation-delay: 1.5s; }
