@charset "utf-8";

/* 图片不撑破容器 */
img {
  max-width: 100%;
  height: auto;
}

/* 汉堡按钮 & 遮罩（默认隐藏） */
.mobile-menu-btn,
.mobile-nav-mask {
  display: none;
}

/* ========== 平板 (≤992px) ========== */
@media screen and (max-width: 992px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .header,
  .banner,
  .index-row1,
  .index-row2,
  .index-row3,
  .f-links,
  .footer {
    min-width: 0 !important;
    max-width: 100%;
  }

  .wrap {
    width: 100% !important;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .index-row1 {
    width: 100%;
    overflow: hidden;
  }

  .index-row1 .wrap.clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  .index-row1 .c1,
  .index-row1 .c2,
  .index-row1 .c3,
  .index-row2 .c1,
  .index-row2 .c2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .index-row1 .c2 {
    margin-top: 20px;
  }

  .index-row1 .c3 {
    margin-top: 20px;
    clear: both !important;
  }

  .index-row1 .c11 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin: 20px 0 !important;
    box-sizing: border-box;
  }

  .index-row1 .c11 .pic {
    width: 100% !important;
    max-width: 100%;
  }

  .index-row1 .c11 .pic img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .index-row1 .c3 .main-tit,
  .index-row1 .c3 .list {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .index-row3 .c2 .item {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .footer .c1,
  .footer .c2,
  .footer .c3 {
    float: none;
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .footer .c3 {
    margin-top: 15px;
  }

  .inner-page .leftbar,
  .inner-page .right-con {
    float: none;
    width: 100%;
  }

  .inner-page .right-con {
    margin-top: 20px;
  }

  .inner-page .right-con .main-pic-list li {
    width: 50%;
  }

  .banner {
    min-width: 0;
    overflow: hidden;
    background: #2a1514;
  }

  .banner .slide {
    position: relative;
  }

  .banner .bd ul li {
    position: relative;
    width: 100%;
    height: 0 !important;
    padding-bottom: 42%;
    min-height: 0 !important;
    overflow: hidden;
  }

  .banner .bd ul li .pic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin-left: 0;
  }

  .banner .bd ul li .pic a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .banner .bd ul li .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .banner .prev,
  .banner .next {
    width: 36px;
    height: 36px;
    top: 50%;
    left: 10px;
    margin: 0;
    margin-top: -18px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35) !important;
    background-image: none !important;
    opacity: 0.85;
    transition: opacity 0.2s;
  }

  .banner .prev::after,
  .banner .next::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
  }

  .banner .prev::after {
    transform: translate(-35%, -50%) rotate(-135deg);
  }

  .banner .next::after {
    transform: translate(-65%, -50%) rotate(45deg);
  }

  .banner .prev:hover,
  .banner .next:hover {
    opacity: 1;
  }

  .banner .next {
    left: auto;
    right: 10px;
  }

  .banner .hd {
    display: block;
    bottom: 10px;
    line-height: 0;
  }

  .banner .hd li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55) !important;
    transition: all 0.25s;
  }

  .banner .hd li.on {
    width: 18px;
    border-radius: 4px;
    background: #7c0303 !important;
  }
}

/* ========== 手机 (≤768px) ========== */
@media screen and (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  /* ---- 顶部：左 logo + 右菜单 ---- */
  .header .con {
    padding: 12px 0;
  }

  .header .con .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .header .con .logo {
    float: none;
    flex: 1;
    min-width: 0;
  }

  .header .con .logo img {
    max-height: 48px;
    width: auto;
  }

  .header .con .right {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1002;
  }

  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s;
  }

  body.nav-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.nav-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ---- 遮罩 ---- */
  .mobile-nav-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  body.nav-open .mobile-nav-mask {
    display: block;
  }

  /* ---- 右侧抽屉导航 ---- */
  .header .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1001;
    background: #542a28;
    line-height: 1;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .header .main-nav {
    transform: translateX(0);
  }

  .header .main-nav .wrap {
    width: 100%;
    padding: 0;
  }

  .header .main-nav ul {
    padding: 60px 0 20px;
  }

  .header .main-nav li {
    float: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header .main-nav li a {
    display: block;
    padding: 16px 20px;
    text-align: left;
  }

  .header .main-nav li.on,
  .header .main-nav li:hover {
    background: #7c0303;
  }

  .header .main-nav li.on:before {
    display: none;
  }

  /* 手机端隐藏下拉二级菜单，只保留一级 */
  .header .main-nav li .dropdown {
    display: none !important;
  }

  /* ---- Banner ---- */
  .banner .bd ul li {
    padding-bottom: 46%;
  }

  .banner .prev,
  .banner .next {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    left: 6px;
  }

  .banner .next {
    right: 6px;
  }

  /* ---- 报考指南：一行四列 ---- */
  .index-row1 .c1 .main-tit {
    margin: 14px 0 10px;
  }

  .index-row1 .c1 .list ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .index-row1 .c1 .list li {
    flex: 1;
    width: 25%;
    min-width: 0;
    margin-bottom: 0;
    padding: 10px 4px 8px;
    box-sizing: border-box;
  }

  .index-row1 .c1 .list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .index-row1 .c1 .list li img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .index-row1 .c1 .list li p {
    font-size: 11px;
    line-height: 1.25;
    margin-top: 6px;
    word-break: keep-all;
  }

  /* ---- 首页内容区 ---- */
  .main-tit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .main-tit h6 {
    float: none;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
  }

  .main-tit h6 p {
    line-height: 1.3;
  }

  .main-tit h6 .line {
    width: 36px;
    height: 3px;
    margin-top: 6px;
    margin-bottom: 0;
    border-radius: 2px;
    background: #7c0303;
  }

  .main-tit .more {
    float: none;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1;
    color: #aaa;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
  }

  /* ---- 招生信息 ---- */
  .index-row1 .c2 {
    margin-top: 16px;
  }

  .index-row1 .c2 .list dl {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f2f2f2;
    transition: background-color 0.2s;
  }

  .index-row1 .c2 .list dl:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .index-row1 .c2 .list dl:first-child {
    padding-top: 4px;
  }

  .index-row1 .c2 .list dl dt {
    float: none;
    flex-shrink: 0;
    width: 58px;
    height: 54px;
    background: #faf6f6 !important;
    border: 1px solid #ead8d8;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #7c0303;
    transition: all 0.2s;
  }

  .index-row1 .c2 .list dl dt .d {
    padding-top: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
  }

  .index-row1 .c2 .list dl dt .y {
    font-size: 10px;
    line-height: 1.2;
    color: #999;
    margin-top: 2px;
    letter-spacing: -0.3px;
  }

  .index-row1 .c2 .list dl dd {
    flex: 1;
    min-width: 0;
    margin-left: 0;
  }

  .index-row1 .c2 .list dl dd h6 {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0;
  }

  .index-row1 .c2 .list dl dd h6 a {
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
  }

  .index-row1 .c2 .list dl dd h6 a:active {
    color: #7c0303;
  }

  .index-row1 .c2 .list dl dd .desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: #999;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .index-row1 .c2 .list dl:active {
    background-color: #fafafa;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
  }

  .index-row1 .c2 .list dl:active dt {
    background: #7c0303 !important;
    border-color: #7c0303;
    color: #fff;
  }

  .index-row1 .c2 .list dl:active dt .d {
    color: #fff;
  }

  .index-row1 .c2 .list dl:active dt .y {
    color: rgba(255, 255, 255, 0.85);
  }

  /* 覆盖 PC 端 hover 背景图 */
  .index-row1 .c2 .list dl:hover dt {
    background: #faf6f6 !important;
    color: #7c0303;
  }

  .index-row1 .c2 .list dl:hover dt .y {
    color: #999;
  }

  /* ---- 招生计划（c3 标题列表） ---- */
  .index-row1 .c3 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin-top: 16px;
    box-sizing: border-box;
  }

  .index-row1 .c11 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    margin: 16px 0 !important;
  }

  .index-row1 .c11 .pic {
    width: 100% !important;
  }

  .index-row1 .c3 .main-tit {
    width: 100% !important;
    margin-top: 12px !important;
    margin-bottom: 10px !important;
    clear: both !important;
  }

  .index-row1 .c3 .list {
    width: 100% !important;
    max-width: 100%;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 2px 14px;
    box-sizing: border-box;
  }

  .index-row1 .c3 .list ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .index-row1 .c3 .list li {
    line-height: 1.45;
    padding: 13px 22px 13px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    transition: background-color 0.2s;
  }

  .index-row1 .c3 .list li:last-child {
    border-bottom: none;
  }

  /* 右侧箭头 */
  .index-row1 .c3 .list li::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #ccc;
    border-right: 1.5px solid #ccc;
    transform: translateY(-50%) rotate(45deg);
    transition: border-color 0.2s;
  }

  .index-row1 .c3 .list li a {
    font-size: 14px;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
  }

  /* 左侧圆点 */
  .index-row1 .c3 .list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #7c0303;
    border-radius: 50%;
    margin-right: 0;
    vertical-align: baseline;
  }

  .index-row1 .c3 .list li:active {
    background: rgba(124, 3, 3, 0.05);
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 36px;
    border-radius: 4px;
    border-bottom-color: transparent;
  }

  .index-row1 .c3 .list li:active a {
    color: #7c0303;
  }

  .index-row1 .c3 .list li:active::after {
    border-color: #7c0303;
  }

  .index-row1 .c3 .list li:active + li {
    border-top: none;
  }

  .index-row1 .c11 .pic img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    object-fit: cover;
    border-radius: 6px;
    display: block;
  }

  /* ---- 考生须知 ---- */
  .index-row2 {
    padding: 8px 0 30px;
  }

  .index-row2 .c1 .list dl {
    display: block;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
  }

  .index-row2 .c1 .list dl:last-child {
    border-bottom: none;
  }

  .index-row2 .c1 .list dl dt {
    float: none;
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 6px;
    overflow: hidden;
  }

  .index-row2 .c1 .list dl dt img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
  }

  .index-row2 .c1 .list dl dd {
    margin-left: 0;
    margin-top: 10px;
  }

  .index-row2 .c1 .list dl dd h6 {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
  }

  .index-row2 .c1 .list dl dd h6 a {
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .index-row2 .c1 .list dl dd .desc {
    font-size: 12px;
    line-height: 1.55;
    color: #999;
    margin: 6px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .index-row2 .c1 .list dl dd .date,
  .index-row2 .c1 .list dl .date {
    font-size: 12px;
    color: #bbb;
  }

  /* ---- 学院专业 ---- */
  .index-row2 .c2 {
    margin-top: 8px;
  }

  .index-row2 .c2 .list li {
    line-height: 1.4;
    padding: 13px 36px 13px 14px;
    margin-bottom: 6px;
    border-radius: 4px;
    background-color: #f5f5f5 !important;
    background-position: calc(100% - 12px) center !important;
    background-size: 14px !important;
  }

  .index-row2 .c2 .list li a {
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .index-row2 .c2 .list li:active {
    background-color: #7c0303 !important;
  }

  .index-row2 .c2 .list li:active a {
    color: #fff;
  }

  .index-row3 .c2 .item .pic img {
    height: auto;
    min-height: 160px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
  }

  .index-row3 .c2 .item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
  }

  .index-row3 .c2 .item .pic .date {
    width: 56px;
    height: 58px;
    left: 12px;
    bottom: -29px;
    border-radius: 4px;
  }

  .index-row3 .c2 .item .pic .date .d {
    font-size: 24px;
  }

  .index-row3 .c2 .item .text {
    margin-top: 38px;
    padding: 0 12px 14px;
  }

  .index-row3 .c2 .item .text h6 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
  }

  .index-row3 .c2 .item .text .desc {
    height: auto;
    max-height: none;
    font-size: 12px;
    line-height: 1.55;
    color: #999;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* ---- 友情链接 ---- */
  .f-links {
    padding: 12px 0;
  }

  .f-links label {
    display: block;
    margin-bottom: 8px;
  }

  .f-links select {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    box-sizing: border-box;
  }

  /* ---- 页脚 ---- */
  .footer {
    padding: 15px 0;
    line-height: 28px;
    font-size: 13px;
  }

  /* ---- 内页 ---- */
  .inner-banner {
    height: auto;
    min-height: 120px;
    max-height: 180px;
  }

  .inner-page .leftbar .links li {
    width: 50%;
  }

  .inner-page .right-con .main-tit .bread {
    float: none;
    display: block;
    padding-left: 0;
    background: none;
    height: auto;
    line-height: 1.6;
    margin-top: 8px;
    font-size: 12px;
  }

  .inner-page .right-con .main-pic-list li {
    width: 100%;
  }

  .inner-page .right-con .main-pic-list li a img {
    height: auto;
    min-height: 160px;
    object-fit: cover;
  }

  .inner-page .detail .tit {
    font-size: 18px;
  }

  .inner-page .detail .content {
    font-size: 14px;
    line-height: 28px;
  }
}

/* ========== 小屏手机 (≤480px) ========== */
@media screen and (max-width: 480px) {
  .banner .bd ul li {
    padding-bottom: 50%;
  }

  .index-row1 .c1 .list ul {
    gap: 4px;
  }

  .index-row1 .c1 .list li {
    padding: 8px 2px 6px;
  }

  .index-row1 .c1 .list li img {
    width: 24px;
    height: 24px;
  }

  .index-row1 .c1 .list li p {
    font-size: 10px;
    margin-top: 4px;
  }

  /* 招生信息：小屏保持左右布局，略微压缩日期块 */
  .index-row1 .c2 .list dl {
    gap: 10px;
    padding: 12px 0;
  }

  .index-row1 .c2 .list dl dt {
    width: 52px;
    height: 50px;
  }

  .index-row1 .c2 .list dl dt .d {
    font-size: 20px;
  }

  .index-row1 .c2 .list dl dt .y {
    font-size: 9px;
  }

  .index-row1 .c2 .list dl dd h6 {
    font-size: 14px;
  }

  .index-row1 .c2 .list dl dd .desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .main-tit h6 {
    font-size: 16px;
  }

  /* 招生计划小屏 */
  .index-row1 .c3 .list li a {
    font-size: 13px;
  }

  .index-row1 .c3 .list li {
    padding: 12px 20px 12px 0;
  }
}
