/* =========================================
   🚀 Speed背单词 - 最终修正版 UI (2025.01.05)
   ========================================= */

/* 1. 全局背景 */
body {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    min-height: 100vh;
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. 学习页容器 */
.learn-container {
    padding: 0 !important;   /* 确保容器顶到头 */
    margin: 0 auto !important;
    width: 100% !important;
    height: 85vh;/* 占据屏幕高度的 85% */

    display: flex;
    position: relative;
    align-items: center;/* 上下居中 */
    justify-content: center;  /* 左右居中 */
    overflow: hidden;        /* 🟢 防止内容溢出产生瞬间滚动条导致的跳动 */
}


/* 3. 核心卡片 (垂直居中布局) */
.learn-card {
    width: 100% !important; 
    height: 100% !important;  /* 绝对固定：永远等于容器的 85vh，没有任何弹性 */
    

    /* 🟢 关键：开启内部纵向滚动 */
    overflow-y: auto;/* 允许上下滑 */
    overflow-x: hidden;/* 🟢 锁死左右，防止晃动 */
    overscroll-behavior: contain; /* 锁住滚动链，不触发浏览器刷新 */

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 15px; /* 垂直方向和水平方向 */
    box-sizing: border-box; /* 保证 padding 不撑大盒子 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* 🟢 强制从顶部对齐 */

    
}


/* =========================================
   ⚡️ 单词显示区 (Word Header)
   ========================================= */

/* 单词与音标容器 */
.word-header {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 8px;
    /* 拉开与选项的距离 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 115px;      /* 锁定盒子高度，确保单词区域占用的物理空间永远一致 */
    flex-shrink: 0;     /* 锁死：无论下方笔记再多，也不准挤压单词区域 */
}

/* 单词文本 (大字号) */
.word-text {
    /* 1. 苹果风格字体排版 (Apple Typography) */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800; /* 极粗，产生视觉冲击力 */
    color: #1d1d1f; /* 苹果专用深黑色，比纯黑更高级 */
    letter-spacing: -0.02em; /* 🟢 关键：紧凑字间距，这是苹果标题的高级感来源 */

    /* 2. 空间布局 (之前定好的) */
    font-size: 46px;
    /* 您要求的 48px 大字号 */
    line-height: 1.1;
    margin-bottom: 10px;
    /* 单词与音标的间距 */
    word-break: break-word;
    /* 防止长单词撑破卡片 */
}

/* 词性 */
.pos-inline {
    color: #aeaeb2;
    /* 比音标颜色更淡一点，区分主次 */
    font-size: 15px;
    text-transform: lowercase;
    /* 苹果风格习惯小写词性 */
}

/* 音标按钮 */
.phonetic {
    font-size: 15px;
    color: #aeaeb2;/* 苹果副标题灰 */
    background: transparent !important;;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.2s;
    gap: 8px; /* 让词性、音标、喇叭之间有均匀间距 */
}

.phonetic:active {
    transform: scale(0.95);
}


/* =========================================
   🔘 选项按钮区 (Flex 对齐优化版)
   ========================================= */

.option-btn {
    /* 1. 布局：居中容器，内部左对齐 */
    display: flex;
    align-items: center;
    width: calc(100% - 40px);
    margin: 0 auto 12px;      /* 合并了 margin-bottom */
    padding: 16px 20px;       /* 稍微收紧垂直间距，更干练 */
    min-height: 40px;         /* 略微增加高度提升点击感 */
    box-sizing: border-box;

    /* 2. 视觉：极简灰块 */
    /* background: #f8f9fa !important;*/
    background: transparent !important;
    border: none !important;
    border-radius: 14px;      /* 稍微加圆，更具亲和力 */
    font-size: 16px;

    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;*/

    /* 3. 动效 */
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:active {
    background-color: #e5e5ea;
    transform: scale(0.98);
}

.opt-txt {
    flex: 1;            /* 撑满按钮内部空间 */
    line-height: 1.4;   /* 适中的行高，多行时不拥挤 */
    text-align: left;   /* 严格左对齐 */
    word-break: break-all; /* 碰到长单词或符号强制换行，不溢出 */
    color: #1d1d1f;
    font-weight: 500;/* 🟢 核心优化：字重设为 600，比默认更显眼，视觉重心极稳 */
    font-size: 16px;
    letter-spacing: 0.5px;/*给中文增加 0.5px 间距，防止笔画太密的字（如“分类”）糊在一起 */
}

/* 状态颜色 (JS切换类名时生效) */
.option-btn.correct {
    background-color: #e8f5e9 !important;
    border-color: #07c160 !important;
    color: #07c160 !important;
    font-weight: bold;
}

.option-btn.wrong {
    background-color: #ffebee !important;
    border-color: #ee0a24 !important;
    color: #ee0a24 !important;
}

/* =========================================
   测试页面的按钮区域
   ========================================= */
/* 1. 外层容器：负责底部分隔线，保持全宽 */
.fixed-quiz-footer {
    padding-top: 20px;
    padding-bottom: 30px; /* 🟢 增加底部间距，避免按钮贴边 */
    /*border-top: 1px solid rgba(0,0,0,0.05);*/
    margin-top: auto; 
    width: 100%;
}

/* 2. 按钮容器：负责“对齐缩进”的核心 */
.footer-button-container {
    display: flex;
    gap: 12px;
    
    /* 🟢 关键：必须与 .option-btn 的宽度限制完全一致 */
    width: 88%;
    max-width: 320px;
    margin: 0 auto; /* 🟢 实现水平居中，与选项区垂直切齐 */
}

/* 统一底部按钮高度，增加大拇指点击的舒适度 */
/* 1. 基础样式：两个按钮在激活状态下完全一致 */
.slay-btn, .unknown-btn-fixed {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    
    /* 中性灰色风格 */
    background: #f8f9fa;
    color: #666;
    border: 1px solid #f2f2f7;
    cursor: pointer;
}

/* 🟢 修改：仅当按钮【未被禁用】时，点击才触发缩放和变色 */
.slay-btn:active,.unknown-btn-fixed:active {
    transform: scale(0.96);    /* 缩放反馈 */
    background: #f0f0f2;       /* 背景变深 */
}



/* =========================================
   ⚡️ 点击进入下一个区域
   ========================================= */
.card-content-trigger {
    flex: 1;             /* 🟢 关键：让盒子撑满 header 以下的所有空间 */
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;     /* 增加手感 */
    background: transparent; /* 完全透明，看不出来 */
}

/* =========================================
   笔记页面
   ========================================= */

.empty-notes-action {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 或者改为 center 居中显示 */
    color: #1989fa;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}
/* 容器顶部间距 */
.shared-tips-section { margin-top: 20px; }

/* 头部布局 */
.tips-header { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.tips-title { font-weight: bold; color: #333; font-size: 13px; }
.tips-count { color: #999; font-weight: normal; font-size: 12px; }

/* 写笔记按钮 */
.btn-write-note { color: #1989fa; font-size: 12px; cursor: pointer; display: flex; align-items: center; }
.icon-edit { margin-right: 2px; }

/* 输入框区域样式 */
.tip-input-container { margin-bottom: 15px; background: #f9f9f9; padding: 10px; border-radius: 8px; }
.tip-field-input { background: transparent !important; padding: 0 !important; font-size: 12px; }
.tip-input-footer { margin-top: 8px; display: flex; justify-content: flex-end; gap: 10px; }

/* 列表容器 */
.tip-list-wrapper { background: #fff; }

/* 列表单条记录 */
.tip-item-box { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.tip-main-content { flex: 1; font-size: 12px; line-height: 1.6; color: #333; word-break: break-all; padding-right: 15px; }

/* 文本详情颜色 */
.status-pending { color: #faad14; margin-right: 4px; }
.user-label { color: #666; }
.tip-text { margin-left: 4px; }

/* 点赞区域样式 */
.tip-like-action { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; padding-top: 2px; }
.like-num-text { font-size: 11px; color: #999; margin-left: 3px; }
   

/* =========================================
   例句测试部分
   ========================================= */
/* 1. 题干：控制字体、虚线和下方间距 */
.training-question {
    font: 500 22px/1.4 Georgia, serif; /* 缩写：粗细 字号/行高 字体 */
    color: #2c3e50;
    text-align: center;
    padding: 20 10px 20px; /* 上 左右 下 */
}


/* 3. 选项按钮：保持整洁 */
.training-option {
    display: block; width: 100%; /* */
    padding: 12px 20px; /* */
    margin-bottom: 12px; /* */
    font: 400 20px/1.4 Georgia, serif; /* 系统原生字体 */
    color: #333; /* */
    background: #fff; /* */
    border: 1px solid #ebedf0; /* */
    border-radius: 12px; /* */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* */
    cursor: pointer; /* */
}

.st-options-box {
    padding: 0 10px;    /* 左右内缩，防止按钮贴边 */
    margin-top: 40px;   /* 顶部微调，保持呼吸感 */
}
/* =========================================
   辅导老师页面
========================================= */

/* modern.css 辅导老师页专项修复 */

/* 1. 强制垂直堆叠：解决“左右乱飘”的根源 */
.tutor-content {
    display: flex !important;
    flex-direction: column !important; /* 🟢 绝对必须是 column */
    align-items: stretch !important;  /* 🟢 强制子元素撑满宽度 */
    gap: 12px;
    padding: 16px;
    background: #f7f8fa;
    min-height: 90vh;
}

/* 2. 解决“Cell太高”：瘦身日期选择框 */
.control-section .van-cell {
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 3. 统计卡片：呼吸感设计 */
.tutor-stats-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.stats-value {
    font-size: 24px;
    font-weight: 800;
    color: #323233;
}

.report-btn {
    height: 44px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(25, 137, 250, 0.2);
}

/* 4. 列表微调 */
.student-list-group {
    margin: 10px 0 !important;
}

.student-name {
    font-weight: 600;
    font-size: 15px;
    margin-right: 8px;
}