/* ========================================
   招生网 · 补充样式
   ======================================== */

.adm-site-home .about-banner {
  display: none;
}

/* —— 顶栏间距：紧凑横排，避免纵向堆叠留白 —— */
.adm-site-page .header-top {
  padding: 14px 0 10px;
}

.adm-site-page .header-top-inner {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}

.adm-site-page .header-brand {
  flex-direction: row;
  align-items: center;
  text-align: left;
  min-width: 0;
}

.adm-site-page .header-utils {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.adm-site-page .main-nav a {
  padding: 12px 14px;
}

.adm-brand-bar.about-sidenav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 2px;
}

/* 首页轮播 */
.adm-hero {
  position: relative;
  background: #2a2420;
  overflow: hidden;
}

.adm-hero-inner {
  position: relative;
  min-height: 440px;
  height: min(64vh, 580px);
}

.adm-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  background-size: cover;
  background-position: center;
}

.adm-hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.adm-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(107, 20, 20, 0.88) 0%, rgba(140, 28, 28, 0.5) 50%, rgba(30, 25, 22, 0.6) 100%);
}

.adm-hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  bottom: clamp(32px, 5vw, 52px);
  z-index: 3;
  color: #fff;
  max-width: 600px;
}

.adm-hero-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 10px;
}

.adm-hero-hotline {
  position: absolute;
  top: 28px;
  right: clamp(24px, 5vw, 56px);
  z-index: 3;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #fff;
  text-align: right;
  backdrop-filter: blur(6px);
}

.adm-hero-hotline strong {
  display: block;
  font-size: 22px;
  color: var(--color-gold);
  margin-top: 4px;
  letter-spacing: 1px;
}

.adm-hero-dots {
  position: absolute;
  right: 36px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.adm-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.adm-hero-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.adm-cat-grid {
  display: grid;
  grid-template-columns: repeat(var(--adm-cat-cols, 6), 1fr);
  gap: 12px;
  margin: -40px auto 32px;
  padding: 0 24px;
  max-width: var(--content-max, 1200px);
  position: relative;
  z-index: 5;
}

.adm-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 16px;
  background: #fff;
  border: 1px solid #e8e0da;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(60, 40, 30, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  min-width: 0;
}

.adm-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(140, 28, 28, 0.12);
  border-color: rgba(140, 28, 28, 0.25);
}

.adm-cat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, #d4783a 0%, #9a2a22 100%);
  border-radius: 8px;
}

.adm-cat-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.3;
}

.adm-cat-card small {
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.35;
}

.adm-home-body {
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.adm-charter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(140, 28, 28, 0.06) 0%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid #e8e0da;
  border-radius: 6px;
}

.adm-charter-banner h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-primary);
}

/* 分类页 */
.adm-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}

.adm-plan-table th,
.adm-plan-table td {
  padding: 12px 14px;
  border: 1px solid #e8e0da;
  text-align: left;
}

.adm-plan-table th {
  background: #faf8f6;
  color: var(--color-primary);
  font-weight: 600;
}

.adm-rich-text {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}

.adm-rich-text h4 {
  color: var(--color-primary);
  margin: 16px 0 8px;
}

/* 报名表单 */
.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.adm-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-form-field label {
  font-size: 13px;
  color: #555;
}

.adm-form-field input,
.adm-form-field select,
.adm-form-field textarea {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.adm-form-field.full {
  grid-column: 1 / -1;
}

.adm-upload-zone {
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  background: #faf8f6;
  cursor: pointer;
  transition: border-color 0.2s;
}

.adm-upload-zone:hover,
.adm-upload-zone.dragover {
  border-color: var(--color-primary);
}

.adm-upload-zone input {
  display: none;
}

.adm-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.adm-upload-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e8e0da;
}

.adm-upload-file {
  padding: 8px 12px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #e8e0da;
  border-radius: 4px;
}

/* 录取查询 */
.adm-query-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 6px;
  display: none;
}

.adm-query-result.success {
  display: block;
  background: rgba(45, 120, 80, 0.08);
  border: 1px solid rgba(45, 120, 80, 0.25);
}

.adm-query-result.fail {
  display: block;
  background: rgba(140, 28, 28, 0.06);
  border: 1px solid rgba(140, 28, 28, 0.2);
}

/* 多格式附件 */
.adm-attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.adm-attach-card {
  border: 1px solid #e8e0da;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.adm-attach-preview {
  aspect-ratio: 16/10;
  background: #faf8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.adm-attach-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-attach-preview video,
.adm-attach-preview audio {
  width: 100%;
  max-height: 120px;
}

.adm-attach-body {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.adm-attach-type {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
  text-transform: uppercase;
}

.adm-news-search {
  margin-bottom: 16px;
}

.adm-news-search input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.adm-news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.adm-news-thumb {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.adm-notice-pin {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
  margin-right: 8px;
}

/* —— 顶栏搜索（右上角） —— */
.adm-header-search {
  display: flex;
  align-items: center;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  height: 32px;
}

.adm-header-search input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0 12px;
  width: 140px;
  font-size: 12px;
  color: #333;
}

.adm-header-search button {
  border: none;
  background: transparent;
  color: var(--color-primary);
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* —— 首页栏目自适应 —— */
.adm-home-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.adm-home-panels .po-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.adm-home-panels .po-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.adm-ext-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 2px;
  vertical-align: middle;
  font-weight: 500;
}

/* 资讯列表：置顶独立一列，与标题首行对齐；无置顶也占位 */
.adm-site-page .po-news-tag {
  display: none;
}

.adm-site-page .po-news-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  padding: 12px 18px;
}

.adm-pin-slot {
  width: 40px;
  height: calc(14px * 1.55);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.adm-pin-tag {
  display: inline-block;
  padding: 1px 5px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
  white-space: nowrap;
}

.adm-site-page .po-news-main {
  min-width: 0;
}

.adm-site-page .po-news-title {
  display: block;
  line-height: 1.55;
}

.adm-site-page .po-news-item.is-pinned .po-news-title {
  font-weight: 600;
  color: #333;
}

/* —— 快捷入口 / 友情链接：一行 6 个 —— */
.adm-quick-grid.po-service-grid,
.adm-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.adm-quick-card {
  text-align: center;
}

/* —— 侧栏：招生资讯下四栏目同级常显 —— */
.adm-nav-group {
  border-bottom: 1px solid #eee;
}

.adm-nav-l1 {
  display: block;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.adm-nav-l1.active,
.about-sidenav > a.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(140, 28, 28, 0.06);
}

.adm-nav-l2 {
  display: none;
  padding: 4px 0 10px;
  background: #faf7f5;
}

.adm-nav-group.open .adm-nav-l2,
.adm-nav-group.always-open .adm-nav-l2 {
  display: block;
}

.adm-nav-l2 a {
  display: block;
  padding: 8px 18px 8px 28px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.adm-nav-l2 a.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(140, 28, 28, 0.05);
}

.about-sidenav > a.adm-nav-l1 {
  border-bottom: 1px solid #eee;
}

/* —— 录取查询：三输入框同一行 —— */
.adm-query-form {
  max-width: 960px;
}

.adm-query-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* —— 首页「更多」：红圆箭头 + 线 + 文字 —— */
.adm-site-page .po-panel-head a.adm-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 13px;
  text-decoration: none;
}

.adm-more-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  flex-shrink: 0;
}

.adm-more-text {
  position: relative;
  padding-left: 14px;
  letter-spacing: 1px;
}

/*.adm-more-text::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  left: 0;*/
/*  top: 50%;*/
/*  width: 10px;*/
/*  height: 1px;*/
/*  background: #c8c8c8;*/
/*  transform: translateY(-50%);*/
/*}*/

.adm-site-page .po-panel-head a.adm-more-link:hover {
  color: var(--color-primary);
}

.adm-site-page .po-panel-head a.adm-more-link:hover .adm-more-icon {
  background: #7a1818;
}

/* —— 列表内页标题区 —— */
.adm-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}

.adm-list-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: 2px;
}

.adm-list-count {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

.adm-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.adm-article-row .adm-pin-slot {
  align-self: flex-start;
  margin-top: 2px;
}

.adm-article-summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— 搜索页 —— */
.adm-search-hero {
  margin-bottom: 28px;
  padding: 24px 22px;
  background: linear-gradient(180deg, #faf6f3 0%, #fff 100%);
  border: 1px solid #eee5e2;
  border-radius: 8px;
}

.adm-search-hero-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.adm-search-hero-bar {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.adm-search-hero-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.adm-search-hero-bar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(140, 28, 28, 0.08);
}

.adm-search-hero-bar .po-btn {
  border-radius: 24px;
  padding: 0 22px;
  white-space: nowrap;
}

.adm-search-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

.adm-search-empty {
  padding: 48px 20px;
  text-align: center;
  color: #666;
  font-size: 15px;
  background: #fafafa;
  border-radius: 6px;
}

.adm-search-suggest {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: #999;
}

.adm-search-suggest a {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid #e5ddd8;
  color: var(--color-primary);
  text-decoration: none;
  background: #fff;
}

.adm-search-suggest a:hover {
  border-color: var(--color-primary);
  background: rgba(140, 28, 28, 0.04);
}

.adm-search-mark {
  background: rgba(201, 162, 39, 0.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.adm-article-row:hover .adm-article-title {
  color: var(--color-primary);
}

.adm-article-main {
  flex: 1;
  min-width: 0;
}

.adm-article-meta-line {
  margin-bottom: 6px;
}

.adm-article-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(140, 28, 28, 0.08);
  color: var(--color-primary);
  border-radius: 2px;
}

.adm-article-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.adm-article-summary {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adm-article-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
  padding-top: 28px;
}

/* —— 专业 / 问答 / 联系 —— */
.adm-majors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.adm-major-card {
  border: 1px solid #e8e0da;
  border-radius: 6px;
  padding: 16px 18px;
  background: #fff;
}

.adm-major-card h3 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.adm-major-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.adm-major-card p:last-child {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.adm-faq-item {
  border: 1px solid #e8e0da;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 0 16px;
  background: #fff;
}

.adm-faq-item span {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: block;
}

.adm-faq-item span::-webkit-details-marker {
  display: none;
}

.adm-faq-item p {
  padding: 0 0 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.adm-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.adm-contact-card {
  border: 1px solid #e8e0da;
  border-radius: 6px;
  padding: 20px;
  background: #fff;
}

.adm-contact-card h3 {
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.adm-contact-card p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

.adm-contact-map {
  border: 1px solid #e8e0da;
  border-radius: 6px;
  background: #f7f4f1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .adm-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .adm-form-grid {
    grid-template-columns: 1fr;
  }
  .adm-home-panels,
  .adm-majors-grid,
  .adm-contact-grid {
    grid-template-columns: 1fr;
  }
  .adm-quick-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .adm-site-page .header-top {
    padding: 10px 0;
  }

  .adm-site-page .header-top-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  body.nav-open.adm-site-page .header-top-inner {
    flex-wrap: wrap;
  }

  .adm-site-page .header-brand {
    order: 1;
    flex: 1;
    min-width: 0;
    flex-direction: row;
    text-align: left;
  }

  .adm-site-page .nav-toggle {
    order: 2;
    display: flex;
    flex-shrink: 0;
  }

  /* 移动端隐藏次要工具链，避免第二行撑高顶栏 */
  .adm-site-page .header-utils {
    display: none;
  }

  .adm-site-page .main-nav {
    display: none;
    padding: 0 0 10px;
  }

  body.nav-open.adm-site-page .main-nav {
    display: block;
  }

  /* 展开菜单时在导航上方显示搜索 */
  body.nav-open.adm-site-page .header-utils {
    display: flex;
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }

  body.nav-open.adm-site-page .header-utils > a,
  body.nav-open.adm-site-page .header-utils > span {
    display: none;
  }

  body.nav-open.adm-site-page .adm-header-search {
    display: flex;
    flex: 1;
    margin: 0;
    height: 36px;
  }

  body.nav-open.adm-site-page .adm-header-search input {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .adm-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
  }
  .adm-hero-hotline {
    position: static;
    margin: 16px 24px 0;
    text-align: left;
  }
  .adm-charter-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .adm-news-item {
    flex-direction: column;
  }
  .adm-news-thumb {
    width: 100%;
    height: 140px;
  }
  .adm-article-row {
    flex-direction: column;
    gap: 8px;
  }
  .adm-article-date {
    padding-top: 0;
  }
  .adm-query-fields {
    grid-template-columns: 1fr;
  }
  .adm-quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
