@charset "utf-8";
/* ============================================
   Modern CSS - 图书馆OPAC检索系统现代化样式
   ============================================ */

/* --- CSS Custom Properties (主题色) --- */
:root {
  --primary: #008ba7;
  --primary-dark: #006d83;
  --primary-light: #e0f4f8;
  --primary-gradient: linear-gradient(135deg, #008ba7 0%, #006d83 100%);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-page: #f1f5f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: all 0.2s ease;
  --header-height: 64px;
  --footer-height: 80px;
  --container-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* --- Utility Classes --- */
.fn-clear::after {
  content: "";
  display: table;
  clear: both;
}

.wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.marginBot {
  margin-bottom: 20px;
}

/* --- Header --- */
.modern-header {
  background: var(--primary-gradient);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.modern-header .headIn {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.modern-header .logoArea {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modern-header .logoArea img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.modern-header .logoArea .logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* --- Footer --- */
.modern-footer {
  background: var(--primary-gradient);
  padding: 20px 0;
  margin-top: auto;
}

.modern-footer .footContent {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 0 24px;
}

.modern-footer .footContent li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.modern-footer .footIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.modern-footer .footIcon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.modern-footer .footText {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}

.modern-footer .collect,
.modern-footer .goTop {
  cursor: pointer;
  transition: var(--transition);
}

.modern-footer .collect:hover,
.modern-footer .goTop:hover {
  opacity: 0.8;
}

/* ============================================
   首页样式 (index)
   ============================================ */
.index-hero {
  background: var(--primary-gradient);
  background: url(../images/bg.png) no-repeat center center;
  background-size: cover;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.index-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.index-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.index-title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.index-title span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 12px;
  letter-spacing: 1px;
}

/* 搜索栏 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 20px 40px -8px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.2);
}

.search-box .search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 12px;
  color: var(--text-muted);
}

.search-box .search-icon svg {
  width: 100%;
  height: 100%;
}

.search-box input[type="text"] {
  flex: 1;
  height: 44px;
  font-size: 16px;
  color: var(--text-primary);
  min-width: 0;
}

.search-box input[type="text"]::placeholder {
  color: var(--text-muted);
}

/* 搜索字段下拉 */
.search-field-select {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  margin: 0 8px;
  padding: 0 12px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
  transition: var(--transition);
}

.search-field-select:hover {
  color: var(--primary);
}

.search-field-select .field-label {
  margin-right: 6px;
}

.search-field-select .field-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.search-field-select.open .field-arrow {
  transform: rotate(180deg);
}

.search-field-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
  display: none;
  animation: dropdownIn 0.15s ease;
}

.search-field-select.open .search-field-dropdown {
  display: block;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-field-dropdown a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.search-field-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 精准匹配 */
.exact-match {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.exact-match input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.exact-match input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.exact-match input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 搜索按钮 */
.search-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 28px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  border: none;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 139, 167, 0.4);
}

.search-btn:active {
  transform: translateY(0);
}

/* 高级搜索链接 */
.advanced-search-link {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-left: 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.advanced-search-link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* ============================================
   搜索结果页样式 (result)
   ============================================ */
.result-page {
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 40px;
}

/* 顶部搜索区域 */
.result-search-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.result-search-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.result-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-search-row .search-box {
  flex: 1;
  max-width: none;
  border-radius: var(--radius);
  padding: 4px 4px 4px 18px;
}

.result-search-row .search-box input[type="text"] {
  height: 40px;
}

.result-search-row .search-field-select {
  height: 32px;
  font-size: 13px;
}

.result-search-row .search-btn {
  height: 40px;
  padding: 0 24px;
  border-radius: var(--radius);
}

.result-advanced-link {
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.result-advanced-link:hover {
  color: var(--primary-dark);
}

/* 结果主体 */
.result-body {
  max-width: var(--container-width);
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 24px;
}

/* 左侧筛选 */
.result-left {
  width: 280px;
  flex-shrink: 0;
}

.facet-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.facet-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.facet-card-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.facet-group {
  margin-bottom: 16px;
}

.facet-group:last-child {
  margin-bottom: 0;
}

.facet-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.facet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.facet-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.facet-item .facet-count {
  color: var(--text-muted);
  font-size: 12px;
}

/* 已选筛选标签 */
.facet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.facet-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  cursor: default;
}

.facet-tag .tag-close {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.facet-tag .tag-close:hover {
  background: var(--primary-dark);
}

/* 右侧结果 */
.result-right {
  flex: 1;
  min-width: 0;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.result-count span {
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
}

.result-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.result-sort .sort-label {
  color: var(--text-muted);
}

.sort-options {
  display: flex;
  gap: 4px;
}

.sort-option {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.sort-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.sort-option.active {
  background: var(--primary);
  color: #fff;
}

/* 结果列表 */
.result-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background: var(--border-light);
}

.result-item-link {
  display: flex;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.result-item-link:hover {
  color: inherit;
}

.result-item-cover {
  width: 90px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.result-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-item-info {
  flex: 1;
  min-width: 0;
}

.result-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-item-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-item-meta .meta-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-item-holding {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--primary-light);
  transition: var(--transition);
}

.result-item-holding:hover {
  background: var(--primary-light);
}

.result-item-holding .holding-icon {
  transition: transform 0.2s ease;
}

.result-item-holding.active .holding-icon {
  transform: rotate(180deg);
}

/* 馆藏详情下拉 */
.holding-detail {
  display: none;
  margin-top: 12px;
  margin-left: 110px;
  padding: 16px 20px;
  background: var(--bg-page);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.holding-detail.show {
  display: block;
}

.holding-detail table th {
  background: var(--primary-light);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  text-align: left;
}

.holding-detail table td {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

/* 无结果提示 */
.no-result {
  text-align: center;
  padding: 60px 20px;
}

.no-result .no-result-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.no-result .no-result-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ============================================
   图书详情页样式 (detail)
   ============================================ */
.detail-page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.detail-book-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.detail-book-header {
  display: flex;
  gap: 32px;
}

.detail-book-cover {
  width: 180px;
  height: 250px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-page);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-book-info {
  flex: 1;
  min-width: 0;
}

.detail-book-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.detail-meta-item {
  display: flex;
  font-size: 14px;
  line-height: 1.6;
}

.detail-meta-item .meta-key {
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.detail-meta-item .meta-val {
  color: var(--text-secondary);
  word-break: break-all;
}

/* 馆藏分布 */
.detail-holdings-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.holdings-table {
  width: 100%;
}

.holdings-table th {
  background: var(--bg-page);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 20px;
  text-align: left;
}

.holdings-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.holdings-table td a {
  color: var(--primary);
}

.holdings-table td a:hover {
  text-decoration: underline;
}

/* 地图 */
.detail-map-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 24px;
}

.detail-map-card .map-container {
  height: 500px;
  width: 100%;
}

/* ============================================
   高级搜索页样式 (hightSearch)
   ============================================ */
.advanced-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.advanced-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.advanced-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border-light);
}

.advanced-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.advanced-header h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.advanced-body {
  padding: 32px;
}

.advanced-section {
  margin-bottom: 32px;
}

.advanced-section:last-child {
  margin-bottom: 0;
}

.advanced-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

/* 高级搜索行 */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-row:last-child {
  margin-bottom: 0;
}

.search-row .relation-select {
  width: 80px;
  height: 44px;
  flex-shrink: 0;
}

.search-row .range-select {
  width: 110px;
  height: 44px;
  flex-shrink: 0;
}

.search-row .search-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg-white);
}

.search-row .search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 139, 167, 0.1);
}

.search-row .field-select {
  width: 130px;
  height: 44px;
  flex-shrink: 0;
}

.search-row .exact-match {
  flex-shrink: 0;
}

/* 通用下拉选择框样式 */
.modern-select {
  position: relative;
  height: 44px;
  width: 100%;
}

.modern-select select {
  width: 100%;
  height: 100%;
  padding: 0 32px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.modern-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 139, 167, 0.1);
}

.modern-select::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

/* 搜索按钮组 */
.advanced-actions {
  text-align: center;
  margin-top: 40px;
}

.advanced-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 48px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 1px;
}

.advanced-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 139, 167, 0.35);
}

.advanced-submit-btn:active {
  transform: translateY(0);
}

/* ============================================
   分页样式 (pagination)
   ============================================ */
.M-box, .M-box1, .M-box2, .M-box3, .M-box4 {
  position: relative;
  text-align: center;
  padding: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.M-box::before, .M-box::after,
.M-box1::before, .M-box1::after,
.M-box2::before, .M-box2::after,
.M-box3::before, .M-box3::after,
.M-box4::before, .M-box4::after {
  content: "";
  display: table;
}

.M-box::after, .M-box1::after, .M-box2::after, .M-box3::after, .M-box4::after {
  clear: both;
  overflow: hidden;
}

.M-box span, .M-box1 span, .M-box2 span, .M-box3 span, .M-box4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.M-box .active, .M-box1 .active, .M-box2 .active, .M-box3 .active, .M-box4 .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.M-box a, .M-box1 a, .M-box2 a, .M-box3 a, .M-box4 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.M-box a:hover, .M-box1 a:hover, .M-box2 a:hover, .M-box3 a:hover, .M-box4 a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.M-box .next, .M-box .prev, .M-box1 .next, .M-box1 .prev {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.now, .count {
  padding: 0 5px;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   旧式下拉兼容（result.html 中的自定义下拉）
   ============================================ */
.selectArea {
  display: inline-block;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.showSelCon, .shwoSelrel {
  padding: 6px 12px;
  border-left: 1px solid var(--border-color);
  font-size: 13px;
}

.showSelCon::after, .shwoSelrel::after {
  content: '▾';
  margin-left: 6px;
  font-size: 12px;
}

.showSelCon.up::after, .shwoSelrel.up::after {
  content: '▴';
}

.selCon, .selRel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 200;
  animation: dropdownIn 0.15s ease;
}

.selCon.disBlock, .selRel.disBlock {
  display: block;
}

.selCon li a, .selRel li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.selCon li a:hover, .selRel li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.selectSort {
  position: relative;
  display: inline-block;
}

.selectSort .showSelCon {
  border: none;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}

.selectSort .selCon {
  right: auto;
  left: 0;
}

/* ============================================
   加载遮罩
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 1024px) {
  .result-body {
    flex-direction: column;
  }

  .result-left {
    width: 100%;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .index-title {
    font-size: 24px;
  }

  .search-box {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 8px;
  }

  .search-box input[type="text"] {
    width: 100%;
  }

  .search-field-select {
    border: none;
    padding: 0;
    margin: 0;
  }

  .search-btn {
    width: 100%;
    border-radius: var(--radius);
  }

  .advanced-search-link {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .detail-book-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .search-row {
    flex-wrap: wrap;
  }

  .search-row .search-input {
    min-width: 200px;
  }
}
