/* ======================================
   全局基础样式（自适应核心）
====================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-color: #f7f8fa;
  color: #333;
  line-height: 1.6;
}

/* 容器：电脑端居中 + 手机端满屏 */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 12px;
}

/* 统一按钮点击效果 */
a, button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

/* ======================================
   顶部导航栏【修复无冲突折叠菜单完整版】
====================================== */
/* ====================== 顶部导航栏【最终绝杀修复版】 ====================== */
.top-nav {
  position: relative;
  background: linear-gradient(135deg,#165dff,#4086ff);
  color: #fff;
  padding:12px 16px;
  border-radius:16px;
  margin-bottom:18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 4px 12px rgba(22,93,255,0.2);
  gap:10px;
}
.nav-logo {
  font-size:22px;
  font-weight:bold;
  letter-spacing:1px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* PC端菜单 */
.nav-menu{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.nav-menu a{
  color:#fff;
  font-size:13px;
  padding:5px 10px;
  border-radius:8px;
  transition:0.25s;
}
.nav-menu a i{
  margin-right:4px;
  font-size:14px;
}
.nav-menu a:hover{
  background:rgba(255,255,255,0.18);
}

/* 【绝杀！覆盖FontAwesome自带样式】电脑端彻底隐藏汉堡 */
.fa.nav-toggle,
.nav-toggle.fa,
.top-nav .nav-toggle {
  display: none !important;
  font-size:24px;
  color:#fff;
  cursor:pointer;
}

/* ========== 手机端 ≤600px ========== */
@media screen and (max-width:600px){
  .top-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    padding:10px 14px;
  }
  /* 手机端强制显示 */
  .fa.nav-toggle,
  .top-nav .nav-toggle {
    display: inline-block !important;
  }
  .nav-menu {
    position: absolute;
    left:12px;
    right:12px;
    top:calc(100% + 8px);
    background:#165dff;
    border-radius:12px;
    padding:12px;
    flex-direction:column;
    gap:8px;
    display:none;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
    z-index:99;
  }
  .nav-menu.show {
    display:flex;
  }
  .nav-menu a{
    text-align:center;
    font-size:12px;
    padding:4px 8px;
  }
}

/* ======================================
   底部版权栏【美化改版】
====================================== */
.copyright{
    margin-top:36px;
    padding:20px 10px;
    text-align:center;
    color:#777;
    font-size:13px;
    border-top:1px solid #e8e8e8;
}
.copyright p:first-child{
    font-size:14px;
    color:#165dff;
    margin-bottom:6px;
}

/* ======================================
   首页三大功能按钮：背单词 / 练听力 / 登录
====================================== */
.nav-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.nav-btn {
  background: #eef4ff;
  color: #165dff;
  text-align: center;
  padding: 16px 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.nav-btn i {
  font-size: 20px;
}
.nav-btn:active {
  background: #165dff;
  color: #fff;
}

/* ======================================
   首页板块通用样式
====================================== */
.home-section {
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 17px;
  color: #165dff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.more-link {
  font-size: 13px;
  color: #888;
}

/* ======================================
   文章列表（首页）
====================================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #333;
  padding: 4px 0;
}
.article-item i {
  color: #165dff;
  font-size: 12px;
}

/* ======================================
   背单词级别入口
====================================== */
.level-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.level-item {
  background: #eef4ff;
  color: #165dff;
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
}
.level-item:active {
  background: #165dff;
  color: white;
}

/* ======================================
   电台入口
====================================== */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-item {
  background: #eef4ff;
  color: #165dff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* ======================================
   文章列表页样式
====================================== */
.article-list-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card-item {
  background: white;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.article-card-item a {
  color: inherit;
}
.article-card-item h3 {
  font-size: 16px;
  color: #165dff;
  margin-bottom: 6px;
}
.article-card-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ======================================
   文章内容页样式
====================================== */
.article-card {
  background: white;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.article-title {
  font-size: 19px;
  margin-bottom: 12px;
  color: #165dff;
}
.article-content {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

/* ======================================
   背单词页面样式
====================================== */
.level-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.level-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #eef4ff;
  color: #165dff;
  font-weight: bold;
  font-size: 14px;
}
.level-btn.active {
  background: #165dff;
  color: white;
}

.word-card {
  background: white;
  padding: 28px 22px;
  border-radius: 14px;
  margin: 16px 0;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}
.question {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 22px;
}
.option {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  font-size: 15px;
  text-align: left;
}
.option.correct {
  background: #e6ffed;
  border-color: #52c41a;
  color: #237804;
}
.option.wrong {
  background: #fff2f0;
  border-color: #ff4d4f;
  color: #a8071a;
}

/* ======================================
   电台页面样式
====================================== */
.radio-player {
  background: white;
  padding: 28px 22px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
audio {
  width: 100%;
  margin-top: 18px;
}
.radio-list {
  margin-top: 16px;
}
.radio-item-old {
  background: white;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.radio-item-old.active {
  border-left: 4px solid #165dff;
}

/* ======================================
   通用按钮
====================================== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #165dff;
  color: white;
  border: none;
  border-radius: 10px;
  margin-top: 12px;
}
.text-center {
  text-align: center;
}

/* ======================================
   加载更多按钮
====================================== */
.load-more-box {
  text-align: center;
  margin: 28px 0;
}
.load-more-btn {
  background: #165dff;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.load-more-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
}
.load-more-btn:disabled {
  opacity: 0.6;
}

/* ======================================
   登录条样式（ASP 登录用）
====================================== */
.login-bar {
  margin-top: 10px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.login-bar span {
  color: #fff;
}
.login-btn, .reg-btn, .logout-btn {
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.logout-btn {
  background: rgba(255,80,80,0.6);
}


/* E习君统一分页样式 */
.pagination-box {
    margin: 30px 0 10px;
    text-align: center;
}
.pagination-box a,
.pagination-box span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}
.pagination-box a {
    border: 1px solid #165dff;
    color: #165dff;
}
.pagination-box a:hover {
    background-color: #eef4ff;
}
.pagination-box span.current-page {
    background-color: #165dff;
    color: #fff;
    border: 1px solid #165dff;
}
.pagination-box span.page-dot {
    border: none;
    color: #666;
}
.pagination-desc {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

/* ====================== 分级单词词吧专属样式 新增 ====================== */
.block-subtitle {
    font-size: 16px;
    color: #333;
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 等级按钮容器 自适应多列 */
.level-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}
.level-full-item {
    background: #eef4ff;
    color: #165dff;
    text-align: center;
    padding: 14px 0;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
}
.level-full-item.active {
    background: #165dff;
    color: #ffffff;
}
.level-full-item:hover {
    background: #165dff;
    color: #fff;
}

/* 单元卡片容器 */
.unit-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.unit-full-item {
    background: #f7f8fa;
    border: 1px solid #eef4ff;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #165dff;
    transition: 0.2s;
}
.unit-full-item i {
    font-size: 22px;
}
.unit-full-item:hover {
    background: #eef4ff;
    transform: translateY(-2px);
}

/* 空白提示文字 */
.empty-tip {
    text-align: center;
    padding: 30px 0;
    color: #888;
    font-size: 14px;
}
.big-tip {
    padding: 50px 0;
    font-size: 16px;
}

/* 平板/手机适配调整 */
@media screen and (max-width:600px){
    .level-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    .unit-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========= word_list.asp 单词列表新增样式 ========= */
.mr10 {
    margin-right: 12px;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}
.btn-orange {
    background-color: #ff7d00;
}
.word-bread {
    padding: 10px 0 16px;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.word-bread a {
    color: #165dff;
}
.word-operate-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.word-list-wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.word-item-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f4fc;
    flex-wrap: wrap;
    gap: 8px;
}
.word-item-row:last-child {
    border-bottom: none;
}
.word-en {
    font-size: 18px;
    color: #165dff;
    font-weight: bold;
    min-width: 140px;
    flex-shrink: 0;
}
.word-fig {
    color: #ff7d00;
    min-width: 70px;
    flex-shrink: 0;
}
.word-cn {
    flex: 1;
    color: #333;
}
.empty-tip.big-tip {
    padding: 60px 0;
    text-align: center;
    color: #888;
}
/* 手机端自适应 */
@media screen and (max-width:600px){
    .word-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap:4px;
    }
    .word-operate-bar {
        justify-content: center;
    }
}

/* word_memory 闪卡记忆样式 */
.memory-card{
    background:#fff;
    border-radius:14px;
    padding:60px 20px;
    text-align:center;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    margin:30px 0;
}
.en-text{
    font-size:36px;
    color:#165dff;
    font-weight:bold;
    margin-bottom:10px;
}
.fig-text{
    font-size:18px;
    color:#ff7d00;
    margin-bottom:20px;
}
.cn-text{
    font-size:20px;
    color:#333;
    margin:20px 0;
    display:none;
}
.btn-group{
    display:flex;
    gap:15px;
    justify-content:center;
    margin-top:30px;
    flex-wrap:wrap;
}
.btn-know{
    background:#52c41a;
}
.btn-unknown{
    background:#ff7d00;
}
.tip-text{
    color:#888;
    text-align:center;
}

/* word_practice 听写拼写样式 */
.practice-card{
    background:#fff;
    border-radius:14px;
    padding:40px 20px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    margin:30px 0;
    text-align:center;
}
.cn-question{
    font-size:26px;
    color:#333;
    margin-bottom:8px;
}
.fig-label{
    color:#ff7d00;
    font-size:16px;
    margin-bottom:24px;
}
.input-word{
    width:100%;
    max-width:420px;
    padding:12px 16px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    margin-bottom:16px;
}
.msg-correct{
    color:#52c41a;
    font-size:18px;
    margin:12px 0;
    display:none;
}
.msg-wrong{
    color:#ff4d4f;
    font-size:18px;
    margin:12px 0;
    display:none;
}
.answer-tip{
    color:#888;
    display:none;
    margin-bottom:10px;
}
.hint-txt{
    color:#165dff;
    font-size:15px;
    margin:8px 0 16px;
    display:none;
}
.btn-row{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:20px;
}
.btn-hint{
    background:#9466ff;
}

/* 正确率进度条 */
.progress-wrap {
    margin-top:24px;
}
.progress-desc {
    font-size:14px;
    color:#666;
    margin-bottom:8px;
    display:flex;
    justify-content:space-between;
}
.progress-bar-bg {
    width:100%;
    height:10px;
    background:#eee;
    border-radius:6px;
    overflow:hidden;
}
.progress-bar-fill {
    height:100%;
    background:#52c41a;
    width:0%;
    transition:0.3s width ease;
}

/* word_match 单词配对游戏样式 */
.match-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/* 顶部释义面板容器，水平居中 */
.question-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}
.question-inner {
    background:#eef4ff;
    border-radius:18px;
    padding:40px 40px;
    box-shadow:0 4px 16px rgba(22,93,255,0.18);
    text-align:center;
    min-width: 340px;
}
.q-cn{
    font-size:28px;
    color:#165dff;
    font-weight:bold;
    margin-bottom:12px;
}
.q-fig{
    color:#ff7d00;
    font-size:18px;
}
/* 下方单词网格区域 */
.word-card-box {
    width: 100%;
}
.card-title{
    text-align:center;
    font-size:16px;
    color:#165dff;
    margin-bottom:20px;
    font-weight:bold;
}
.word-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
    gap:12px;
}
.word-card{
    background:#fff;
    color:#165dff;
    text-align:center;
    padding:14px 6px;
    border-radius:12px;
    cursor:pointer;
    transition:0.2s;
    font-weight:500;
    box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.word-card:hover{
    background:#165dff;
    color:#fff;
}
.word-card.removed{
    visibility:hidden;
    pointer-events:none;
}
/* 底部提示文字 */
.bottom-tip{
    text-align:center;
    color:#888;
    font-size:13px;
    margin-top:10px;
    line-height:1.6;
}
/* 配对游戏手机适配 */
@media screen and (max-width:768px){
    .word-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .question-inner {
        min-width: 100%;
        padding:30px 20px;
    }
    .q-cn{
        font-size:24px;
    }
}