/* event-display-style.css - 新布局 */

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

/* ============ 事件标题 ============ */
.evd-event-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.evd-event-time {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}

.evd-west {
  font-size: 12px;
  color: #bbb;
  font-family: "SF Mono", "Consolas", monospace;
}

.evd-event-alias {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

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

.evd-section:last-child {
  border-left: 2px solid transparent;
}

.evd-section-title {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
  padding: 0;
  letter-spacing: 1px;
}

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

.evd-section-content {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* ============ 时间线 ============ */
.evd-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 16px;
}

.evd-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e0e0e0;
}

.evd-timeline-item {
  position: relative;
  padding: 4px 0;
}

.evd-tl-dot {
  position: absolute;
  left: -16px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
}

.evd-tl-time {
  font-size: 12px;
  color: #999;
}

.evd-tl-text {
  font-size: 14px;
  color: #333;
}

/* ============ 参与人 ============ */
.evd-participants {
  font-size: 14px;
}

.evd-role-row {
  margin-bottom: 4px;
}

.evd-role-label {
  font-weight: 600;
  color: #555;
  margin-right: 4px;
}

.evd-participant-link {
  color: #333;
  text-decoration: none;
}

.evd-participant-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ============ 主题词 ============ */
.evd-keywords {
  letter-spacing: 2px;
}

/* ============ 上角标 ============ */
.evd-src-ref {
  font-size: 9px;
  color: #0066cc;
  cursor: pointer;
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
}

.evd-src-ref:hover {
  text-decoration: underline;
}

/* ============ 来源列表 ============ */
.evd-src-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #777;
}

.evd-src-item {
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* ============ 初始搜索页 ============ */
.evd-initial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.evd-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 24px 0;
}

.evd-title-sub {
  font-size: 14px;
  font-weight: 400;
  color: #aaa;
  letter-spacing: 3px;
}

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

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

.evd-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  outline: none;
}

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

.evd-input-top {
  padding: 8px 10px;
  font-size: 13px;
}

.evd-btn {
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  white-space: nowrap;
}

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

.evd-btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

/* ============ 顶部栏 ============ */
.evd-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

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

.evd-header-title {
  font-size: 16px;
  font-weight: 600;
}

.evd-header-badge {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 2px;
}

.evd-header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* ============ 下拉框 ============ */
.evd-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 250px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: left;
}

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

.custom-option:last-child {
  border-bottom: none;
}

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

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

.custom-option span {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 1px;
  text-align: left;
}



/* 追加CSS */
.evd-src-ref { font-size: 9px; color: #0066cc; cursor: pointer; vertical-align: super; }
.evd-src-ref:hover { text-decoration: underline; }
.evd-src-title { font-size: 12px; color: #888; margin-right: 4px; }
.evd-pb-icon { display: inline-flex; align-items: center; justify-content: center; margin: 0 3px; cursor: pointer; vertical-align: middle; }
.evd-pb-icon:hover { opacity: 0.7; }

.evd-cat-link, .evd-keyword-link { color: #1a3a5c; text-decoration: none; }
.evd-cat-link:hover, .evd-keyword-link:hover { color: #0066cc; text-decoration: underline; }
.evd-cat-sep { margin: 0 4px; color: #999; }

.evd-tl-date { font-size: 13px; color: #555; }
.evd-tl-west { font-size: 11px; color: #aaa; font-family: monospace; }

.evd-pb-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: none; }
.evd-pb-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.evd-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; }
.evd-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; }
.evd-pb-modal-img-wrapper { position: relative; display: inline-block; max-width: 100%; max-height: calc(90vh - 50px); overflow: hidden; }
.evd-pb-modal-img { display: block; max-width: 100%; max-height: calc(90vh - 50px); border-radius: 4px; }
.evd-pb-modal-overlay-boxes { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.evd-ocr-box { position: absolute; border: 2px solid #ff0000; background: rgba(255,0,0,0.08); pointer-events: none; box-sizing: border-box; }
.evd-pb-modal-hint { text-align: center; font-size: 11px; color: #999; margin-top: 4px; display: none; }


/* 追加弹窗样式 */
.evd-event-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: none; }
.evd-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.evd-modal-content { position: relative; top: 5%; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px; max-height: 85vh; background: #fff; border-radius: 8px; padding: 16px; overflow-y: auto; }
.evd-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.evd-modal-title { font-size: 16px; font-weight: 700; }
.evd-modal-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 18px; }
.evd-modal-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.evd-modal-search { display: flex; gap: 6px; flex: 1; position: relative; min-width: 250px; }
.evd-modal-list { display: flex; flex-direction: column; gap: 8px; }
.evd-modal-card { padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: box-shadow 0.2s; }
.evd-modal-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.evd-modal-card-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.evd-modal-card-time { font-size: 12px; color: #888; margin-top: 2px; }
.evd-modal-card-abstract { font-size: 12px; color: #666; margin-top: 4px; line-height: 1.5; }
.evd-modal-card-category { font-size: 11px; color: #999; margin-top: 2px; }

.evd-tl-body { font-size: 13px; color: #444; line-height: 1.6; margin-top: 2px; padding-left: 4px; }


.evd-translate-section { margin-top: 12px; }
.evd-translate-btn { padding: 4px 10px; font-size: 12px; border: 1px solid #8B0000; border-radius: 4px; background: transparent; color: #8B0000; cursor: pointer; transition: all 0.2s; }
.evd-translate-btn:hover { background: #8B0000; color: #fff; }
.evd-translate-result { margin-top: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.7; color: #8B0000; background: #fdf8f6; border-left: 3px solid #8B0000; border-radius: 0 4px 4px 0; white-space: pre-line; }

.evd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.evd-section-header .evd-section-title {
  margin-bottom: 0;
}