/* ==========================================================================
   mobile.css — 移动端样式（2027考研大纲专题-手机版.html）
   依赖 base.css
   ========================================================================== */

/* 移动端滚动偏移：让锚点跳转时不被固定/吸顶导航遮住 */
html{scroll-padding-top:calc(var(--header-h-mobile) + 16px)}
/* 配合线上 .foot_list 固定底栏：body 底部留白（rem 基准见 head 内联脚本） */
body{padding-bottom:.9rem}

/* ==================== 顶部导航 ==================== */
.navbar{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;height:var(--header-h-mobile);box-shadow:0 1px 6px rgba(0,0,0,.06);
}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:17px;color:var(--blue-deep)}
.logo-icon{
  width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--blue),var(--blue-deep));
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;
}
.nav-cta{
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));color:#fff;
  padding:8px 16px;border-radius:20px;font-size:14px;font-weight:600;
}

/* ==================== Hero ==================== */
.hero{
  background:linear-gradient(160deg,#1e3a8a 0%,#1d4ed8 55%,#2563eb 100%);
  position:relative;overflow:hidden;padding:44px 20px 40px;color:#fff;text-align:center;
}
.hero::before{
  content:'';position:absolute;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,rgba(249,115,22,.25),transparent 70%);
  top:-90px;right:-80px;
}
.hero::after{
  content:'';position:absolute;width:220px;height:220px;border-radius:50%;
  background:radial-gradient(circle,rgba(147,197,253,.2),transparent 70%);
  bottom:-70px;left:-60px;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);padding:6px 14px;border-radius:20px;
  font-size:13px;margin-bottom:18px;position:relative;z-index:1;
}
.hero-badge .dot{width:7px;height:7px;border-radius:50%;background:#4ade80;animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}
.hero h1{font-size:26px;font-weight:900;line-height:1.4;position:relative;z-index:1}
.hero h1 .highlight{background:linear-gradient(135deg,#fdba74,#f97316);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-sub{font-size:14px;color:#bfdbfe;margin-top:12px;position:relative;z-index:1}
.hero-btns{display:flex;flex-direction:column;gap:12px;margin-top:26px;position:relative;z-index:1;padding:0 12px}
.btn{
  height:48px;border-radius:24px;font-size:16px;font-weight:700;border:none;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.btn-primary{background:linear-gradient(135deg,var(--orange),var(--orange-deep));color:#fff;box-shadow:0 6px 18px rgba(234,88,12,.4)}
.btn-primary:active{transform:scale(.97)}
.btn-outline{background:rgba(255,255,255,.1);color:#fff;border:1.5px solid rgba(255,255,255,.6)}
.btn-outline:active{transform:scale(.97)}

/* ==================== Section 通用 ==================== */
.section{padding:34px 16px 10px}
.section-head{text-align:center;margin-bottom:20px}
.section-tag{
  display:inline-block;font-size:12px;font-weight:700;color:var(--blue);
  background:var(--blue-light);padding:4px 14px;border-radius:12px;margin-bottom:10px;
}
.section-title{font-size:21px;font-weight:800;color:var(--blue-deep)}
.section-desc{font-size:13px;color:var(--text-sub);margin-top:6px}

/* ==================== 对比卡片（表格改卡片流） ==================== */
.compare-list{display:flex;flex-direction:column;gap:12px}
.compare-card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:16px;position:relative;overflow:hidden;
}
.compare-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--blue)}
.compare-card.c-new::before{background:var(--red)}
.compare-card.c-stable::before{background:var(--green)}
.compare-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}
.subject-tag{
  font-size:13px;font-weight:700;color:var(--blue-deep);background:var(--blue-light);
  padding:3px 12px;border-radius:10px;
}
.tag{font-size:11px;font-weight:700;padding:3px 10px;border-radius:10px;white-space:nowrap}
.tag-new{color:var(--red);background:#fee2e2}
.tag-adjust{color:var(--orange-deep);background:var(--orange-light)}
.tag-stable{color:var(--green);background:#dcfce7}
.compare-row{display:flex;gap:10px;align-items:stretch}
.compare-block{flex:1;min-width:0}
.compare-label{font-size:11px;color:var(--text-sub);margin-bottom:2px}
.compare-val{font-size:13px;line-height:1.5;word-break:break-word}
.compare-val.before{color:var(--text-sub);text-decoration:line-through;text-decoration-color:#fca5a5}
.compare-val.after{color:var(--text);font-weight:600}
.compare-arrow{
  display:flex;align-items:center;color:var(--orange);font-weight:900;font-size:16px;flex:none;
}
.compare-note{font-size:11px;color:var(--text-sub);text-align:center;margin-top:14px;line-height:1.5}

/* ==================== 教研团队 ==================== */
.teacher-card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:16px;display:flex;gap:14px;align-items:flex-start;margin-bottom:12px;
}
.teacher-avatar{
  width:52px;height:52px;border-radius:50%;flex:none;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;
  background:linear-gradient(135deg,var(--blue),var(--blue-deep));overflow:hidden;
}
.teacher-info h4{font-size:16px;color:var(--blue-deep)}
.teacher-info .title{font-size:12px;color:var(--orange-deep);margin:3px 0 6px;font-weight:600}
.teacher-info p{font-size:12.5px;color:var(--text-sub);line-height:1.6}

/* ==================== 科目Tab（横滑） ==================== */
.tabs-nav{
  display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.tabs-nav::-webkit-scrollbar{display:none}
.tab-btn{
  flex:none;padding:10px 20px;border-radius:22px;font-size:14px;font-weight:600;
  background:#fff;color:var(--text-sub);border:1.5px solid #e5e7eb;cursor:pointer;
}
.tab-btn.active{background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;border-color:transparent}
.tab-content{display:none;animation:fadeIn .35s ease}
.tab-content.active{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.info-card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:16px;margin-bottom:12px;
}
.info-card h4{font-size:15px;color:var(--blue-deep);display:flex;align-items:center;gap:8px;margin-bottom:12px}
.info-card .icon{
  width:26px;height:26px;border-radius:7px;color:#fff;font-size:13px;
  display:flex;align-items:center;justify-content:center;flex:none;
}
.info-list li{
  display:flex;justify-content:space-between;gap:12px;padding:9px 0;
  border-bottom:1px dashed #eef2f7;font-size:13.5px;
}
.info-list li:last-child{border-bottom:none}
.info-list .key{color:var(--text-sub);flex:none}
.info-list .val{color:var(--text);font-weight:600;text-align:right;word-break:break-word}
.advice-box{
  background:linear-gradient(135deg,#fff7ed,#ffedd5);border-radius:var(--radius);
  padding:16px;border:1px solid #fed7aa;
}
.advice-box h4{font-size:15px;color:var(--orange-deep);margin-bottom:10px}
.advice-box li{
  font-size:13px;color:#7c2d12;padding:5px 0 5px 18px;position:relative;line-height:1.55;
}
.advice-box li::before{content:'▸';position:absolute;left:0;color:var(--orange)}

/* ==================== 备考规划 ==================== */
.plan-step{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:16px;display:flex;gap:14px;margin-bottom:12px;position:relative;
}
.plan-step-icon{
  width:40px;height:40px;border-radius:12px;flex:none;
  background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;
}
.plan-step-body{flex:1;min-width:0}
.plan-step h4{font-size:15.5px;color:var(--blue-deep)}
.plan-step .date{font-size:12px;color:var(--orange-deep);font-weight:700;margin:3px 0 6px}
.plan-step p{font-size:13px;color:var(--text-sub);line-height:1.6}

/* ==================== 课程推荐 ==================== */
.course-card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:18px 16px;margin-bottom:14px;position:relative;
}
.course-card.featured{border:1.5px solid var(--orange);box-shadow:0 6px 20px rgba(249,115,22,.18)}
.course-badge{
  position:absolute;top:-10px;right:14px;background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  color:#fff;font-size:11px;font-weight:700;padding:4px 12px;border-radius:12px;
}
.course-name{font-size:17px;font-weight:800;color:var(--blue-deep)}
.course-desc{font-size:12.5px;color:var(--text-sub);margin:6px 0 10px}
.course-price{display:flex;align-items:baseline;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.course-price .currency{font-size:15px;color:var(--orange-deep);font-weight:700}
.course-price .current{font-size:32px;color:var(--orange-deep);font-weight:900;line-height:1}
.course-price .original{font-size:13px;color:#9ca3af;text-decoration:line-through}
.course-price .limit{font-size:11px;color:var(--red);background:#fee2e2;padding:2px 8px;border-radius:8px;margin-left:auto}
.course-features li{
  font-size:13px;color:var(--text);padding:6px 0 6px 22px;position:relative;line-height:1.5;
  border-bottom:1px dashed #eef2f7;
}
.course-features li:last-child{border-bottom:none}
.course-features li::before{
  content:'✓';position:absolute;left:0;top:6px;width:16px;height:16px;border-radius:50%;
  background:var(--blue-light);color:var(--blue);font-size:10px;
  display:flex;align-items:center;justify-content:center;font-weight:800;
}
.course-btn{
  display:flex;align-items:center;justify-content:center;height:46px;margin-top:14px;
  border-radius:23px;background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  color:#fff;font-size:16px;font-weight:700;box-shadow:0 5px 14px rgba(234,88,12,.35);border:0;
}
.course-btn:active{transform:scale(.97)}

/* ==================== FAQ ==================== */
.faq-item{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  margin-bottom:10px;overflow:hidden;
}
.faq-q{
  width:100%;text-align:left;background:transparent;border:0;color:inherit;
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:15px 16px;font-size:14.5px;font-weight:600;cursor:pointer;
}
.faq-icon{
  flex:none;width:22px;height:22px;border-radius:50%;background:var(--blue-light);
  color:var(--blue);display:flex;align-items:center;justify-content:center;
  font-weight:800;transition:transform .3s;
}
.faq-item.open .faq-icon{transform:rotate(45deg);background:var(--orange);color:#fff}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;font-size:13px;color:var(--text-sub);line-height:1.7}
.faq-item.open .faq-a-inner{padding:0 16px 16px}

/* ==================== Footer ==================== */
.footer{background:var(--blue-deep);color:#93c5fd;padding:28px 16px calc(20px + var(--safe-bottom))}
.footer-brand{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.footer-brand .logo{color:#fff;font-size:17px}
.footer-brand .logo-icon{background:linear-gradient(135deg,var(--orange),var(--orange-deep))}
.footer p{font-size:12px;line-height:1.7;color:#93c5fd}
.footer-contact{
  background:rgba(255,255,255,.08);border-radius:var(--radius);padding:14px 16px;
  margin:14px 0;display:flex;justify-content:space-between;align-items:center;gap:10px;
}
.footer-contact .info{font-size:12px;color:#bfdbfe;line-height:1.8}
.footer-contact .info strong{color:#fff;font-size:15px}
.footer-tel{
  width:46px;height:46px;border-radius:50%;flex:none;
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:20px;
}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:14px;margin-top:4px}
.footer-bottom p{font-size:10.5px;color:#60a5fa;text-align:center;line-height:1.7}

/* 底部悬浮CTA栏已移除：改用 jixun 线上 .foot_list 固定底栏，避免重叠 */

/* ==================== 返回顶部 ==================== */
.back-top{
  position:fixed;right:14px;bottom:calc(84px + var(--safe-bottom));z-index:150;
  width:40px;height:40px;border-radius:50%;background:#fff;color:var(--blue);
  box-shadow:var(--shadow);border:1px solid #e5e7eb;font-size:16px;
  display:none;align-items:center;justify-content:center;cursor:pointer;
}
.back-top.show{display:flex}


/* ==================== 滚动渐入 ==================== */
/* 纯 CSS 动画触发：页面打开 0.7s 内全部淡入到位，零 JS 依赖，避免 headless/爬虫/慢 JS 出现大片空白 */
.reveal{opacity:0;transform:translateY(18px);animation:revealUp .7s ease-out .1s forwards}
.reveal.visible{opacity:1;transform:none;animation:none}
@keyframes revealUp{to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion: reduce){
  .reveal,.reveal.visible{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
}

/* ==================== 底部 CTA 大按钮 ==================== */
.text-center-cta{text-align:center;margin-top:32px;padding:0 16px}
.btn-cta-large{
  display:inline-block;width:100%;max-width:360px;padding:14px 20px;
  background:linear-gradient(135deg,#f97316,#ea580c);
  color:#fff;font-size:16px;font-weight:700;border-radius:50px;
  box-shadow:0 6px 20px rgba(249,115,22,.35);text-decoration:none;
}
.btn-cta-large:active{transform:scale(.97)}

/* ==================== 小屏优化 ==================== */
@media (max-width:360px){
  .hero h1{font-size:22px}
  .section-title{font-size:19px}
  .course-price .current{font-size:28px}
}
