/* object-display-style.css */

.od-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
}

.od-initial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.od-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 30px 0;
}

.od-title-sub {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  letter-spacing: 3px;
}

.od-search-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.od-dropdown-wrapper {
  position: relative;
  flex: 1;
}

.od-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  outline: none;
}

.od-input:focus {
  border-color: #333;
}

.od-input-top {
  padding: 9px 12px;
  font-size: 13px;
}

.od-btn {
  padding: 13px 20px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  white-space: nowrap;
}

.od-btn:hover {
  background: #000;
}

.od-btn-sm {
  padding: 9px 14px;
  font-size: 13px;
}

.od-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  z-index: 9999;
  display: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: left;
}

.custom-option {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  text-align: left;
}

.custom-option:hover {
  background: #f7f7f7;
}

.custom-option strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.custom-option span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  text-align: left;
}

.od-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.od-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.od-header-title {
  font-size: 18px;
  font-weight: 600;
}

.od-header-badge {
  font-size: 12px;
  color: #999;
  letter-spacing: 2px;
}

.od-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.od-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.od-image-container {
  flex-shrink: 0;
  width: 160px;
}

.od-detail {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
}

.od-detail h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.od-detail p {
  margin: 6px 0;
}

/* 标题 */
.od-object-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 6px 0;
}

.od-object-alias {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

/* 区块 */
.od-section {
    position: relative;
    padding: 0 0 20px 24px;
    border-left: 2px solid #e0e0e0;
}

.od-section-title {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 8px;
}

.od-section-title::before {
    content: '◎';
    position: absolute;
    left: -34px;
    top: -1px;
    font-size: 14px;
    color: #8B0000;
    background: #fff;
    padding: 0 4px;
}

/* 文献记录 */
.od-record-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.od-record-list li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.7;
}

/* 来源 */
.od-src-ref {
    font-size: 9px;
    color: #0066cc;
    cursor: pointer;
    vertical-align: super;
    margin-left: 1px;
}

.od-src-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #777;
}

.od-src-item {
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.od-src-highlight {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

/* 图片轮播 */
.od-img-carousel {
    position: relative;
    text-align: center;
}

.od-img-display img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.od-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.od-img-prev { left: 6px; }
.od-img-next { right: 6px; }

.od-img-counter {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* SVG弹窗 */
.od-pb-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: none; }
.od-pb-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.od-pb-modal-content { position: relative; top: 50%; left: 50%; transform: translate(-50%,-50%); max-width: 90%; max-height: 90%; background: #fff; border-radius: 6px; padding: 10px; }
.od-pb-modal-close { position: absolute; top: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 18px; z-index: 3; }
.od-pb-modal-img-wrapper { position: relative; display: inline-block; max-width: 100%; max-height: calc(90vh - 50px); overflow: hidden; }
.od-pb-modal-img { display: block; max-width: 100%; max-height: calc(90vh - 50px); border-radius: 4px; }
.od-pb-modal-overlay-boxes { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.od-ocr-box { position: absolute; border: 2px solid #ff0000; background: rgba(255,0,0,0.08); pointer-events: none; box-sizing: border-box; }
.od-pb-modal-hint { text-align: center; font-size: 11px; color: #999; margin-top: 4px; display: none; }
.od-pb-icon { display: inline-flex; align-items: center; justify-content: center; margin: 0 3px; cursor: pointer; vertical-align: middle; }
.od-pb-icon:hover { opacity: 0.7; }

/* 相关区块：左对齐，与图片对齐 */
#relatedContainer {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* 相关区块的父容器对齐 */
.od-related-wrapper {
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
}