/****  css by nana *****/
@charset "utf-8";
/****  文字大小初始化,使1em=10px *****/
body{font-size:62.5%;}/* for IE/Win */
html>body{font-size:14px;} /* for everything else */

/* ========== CSS变量定义 ========== */
:root {
  --m-primary: #FE720A;
  --m-primary-gradient: linear-gradient(135deg, #FE720A 0%, #FF9500 100%);
  --m-text: #333;
  --m-text-secondary: #666;
  --m-bg: #f5f5f5;
  --m-white: #fff;
  --m-border: #e8e8e8;

  /* 移动端样式所需变量 */
  --primary-color: #FE720A;
  --secondary-color: #333;
  --bg-white: #fff;
  --bg-color: #f5f5f5;
  --text-color: #333;
  --text-secondary: #666;
  --text-light: #999;
  --border-color: #e8e8e8;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --primary-gradient: linear-gradient(135deg, #FE720A 0%, #FF9500 100%);

  /* ========== 全局通用主题色 ========== */
  /* 全站统一主题色，只需修改这里即可更换全局主题 */
  --theme-primary: #FF6B35;
  --theme-primary-light: #FF8F66;
  --theme-primary-lighter: #FFAB8F;
  --theme-primary-bg: #FFF0EB;
  --theme-primary-bg-gradient: #FFE4D9;
  --theme-shadow: rgba(255, 107, 53, 0.15);
  --theme-shadow-deep: rgba(255, 107, 53, 0.25);
  --theme-shadow-hover: rgba(255, 107, 53, 0.35);
  --theme-border: rgba(255, 107, 53, 0.2);
}

/* PC端最小宽度限制（仅在大屏幕生效） */
@media screen and (min-width: 769px) {
  body {
    min-width: 1200px;
  }
}
/*字体边框等初始化*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,tr,th,td,img{padding:0; margin:0; font-size:14px;}
table{border-collapse:collapse; border-spacing:0;}
fieldset,img,input{border:0;}
address,caption,cite,code,dfn,th,var{font-weight:normal; font-style:normal;}
ol,ul,li{list-style:none; vertical-align:top;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-weight:normal; font-size:100%;}
q:before,q:after{content:'';}
abbr,acronym{border:0;}
:focus { outline: 0; }
input, button, textarea,
select, optgroup, option { font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit; }
code, kbd, samp, tt { font-size: 100%; }
/*@purpose To enable resizing for IE */
/*@branch For IE6-Win, IE7-Win */
input, button, textarea, select { *font-size: 100%; }
caption, th { text-align: left; }
sup, sub { font-size: 100%; vertical-align: baseline; }
/* remember to highlight anchors and inserts somehow! */
:link, :visited , ins { text-decoration: none; }
blockquote{ quotes: none; }
a{text-decoration:none; outline:none; color:#333;}
a img{border:none;}/*for IE*/
a:active{star:expression(this.onFocus=this.blur());}/*点击虚框去除*/
/*--------------end------------*/
body{background:#fff; font-size:14px; font-family:arial,'微软雅黑', 'Microsoft Yahei', 'Hiragino Sans GB',  '宋体', \5b8b\4f53, Tahoma, Arial, Helvetica, STHeiti; color:#333;}

@font-face {font-family: 'iconfont';
    src: url('../font/iconfont.eot'); /* IE9*/
    src: url('../font/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../font/iconfont.woff') format('woff'), /* chrome、firefox */
    url('../font/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
    url('../font/iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont{
    font-family:"iconfont" !important;
    font-size:16px;
    font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 通用容器 ========== */
.inner {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ========== 通用面包屑导航样式 ========== */
/* 使用方式: 将以下HTML结构添加到页面中即可
<nav class="breadcrumb-nav" aria-label="面包屑导航">
    <div class="container">
        <ol class="breadcrumb-list">
            <li class="breadcrumb-item"><a href="index.html">首页</a></li>
            <li class="breadcrumb-item"><a href="#">父级分类</a></li>
            <li class="breadcrumb-item current">当前页面</li>
        </ol>
    </div>
</nav>
*/
.breadcrumb-nav {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #999;
    transition: color 0.2s ease;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ccc' d='M6.5 3.5l4 4.5-4 4.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
    color: #FE720A;
}
.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

/* ========== 通用动画重置 ========== */
* {
    animation-duration: inherit;
    transition-duration: inherit;
}

/* ========== 通用过渡动画 ========== */
.a_gd {
    transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
}

/* ========== 通用链接样式 ========== */
.a_default:hover {
    color: #D72502;
}

/* ========== 清除浮动 ========== */
.clears::after {
    content: ".";
    clear: both;
    display: block;
    overflow: hidden;
    font-size: 0;
    height: 0;
}

.clears {
    zoom: 1;
}

/* ========== 弹窗遮罩 ========== */
.city_bg {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 99999999;
}

/* ========== 移动端响应式适配 - 通用样式 ========== */

/* ========== 默认桌面端：隐藏移动端元素 ========== */
.mobile-menu-toggle {
  display: none !important;
}

/* ========== 通用移动端基础设置 ========== */
@media only screen and (max-width: 768px) {

  /* 全局溢出控制 - 防止宽度溢出 */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  * {
    box-sizing: border-box;
  }

  /* 全局字体优化 */
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* 容器适配 */
  .inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    box-sizing: border-box !important;
  }

}

/* ========== 移动端菜单按钮 (仅在768px以上隐藏) ========== */
@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ========== 通用面包屑导航 - 移动端适配 ========== */
@media screen and (max-width: 768px) {
  .breadcrumb-nav {
    padding: 12px 0;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
  }
  .breadcrumb-list {
    font-size: 13px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 15px;
  }
  .breadcrumb-list::-webkit-scrollbar {
    display: none;
  }
  .breadcrumb-item {
    flex-shrink: 0;
    color: #999;
  }
  .breadcrumb-item + .breadcrumb-item::before {
    width: 14px;
    height: 14px;
    margin: 0 6px;
    opacity: 0.5;
  }
  .breadcrumb-item.current {
    color: #333;
  }
}

/* ========== 动画效果 ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .course_card,
  .openclass,
  .resources,
  .box_books {
    animation: fadeIn 0.6s ease-out forwards;
  }
}

/* ========== 小屏手机适配 (480px以下) ========== */
@media screen and (max-width: 480px) {
  .inner {
    min-width: 0;
  }
}

/* ========== 平板适配 (769px-1024px) ========== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

/* ========== 通用分页样式 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 20px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: #666;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--theme-primary, #FF6B35);
  color: var(--theme-primary, #FF6B35);
}

.pagination-btn.active {
  background: var(--theme-primary-gradient, linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%));
  color: #fff;
  border-color: var(--theme-primary, #FF6B35);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #999;
}

@media screen and (max-width: 768px) {
  .pagination {
    gap: 6px;
    margin-top: 30px;
    padding-bottom: 15px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}
