/* css/online.css
   排行榜 / 云存档 / 公告 共用样式
   风格：深色背景 + 金色边框 + 古典中文风 */

/* ─── 遮罩层 ─── */
.ol-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ol-fadein 0.25s ease;
}

.ol-overlay.hidden { display: none; }

@keyframes ol-fadein {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1);    }
}

/* ─── 面板 ─── */
.ol-panel {
  background: linear-gradient(160deg, #1a1209 0%, #0d0c14 100%);
  border: 2px solid #a07828;
  border-radius: 4px;
  padding: 24px 28px 28px;
  position: relative;
  box-shadow:
    0 0 0 1px #3a2a0a inset,
    0 0 40px rgba(160, 120, 40, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.8);
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a07828 #1a1209;
}

/* ─── 头部 ─── */
.ol-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #a07828;
  position: relative;
}

.ol-title {
  font-size: 22px;
  color: #ffd700;
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  margin: 0;
}

.ol-dragon {
  font-size: 18px;
  opacity: 0.7;
  user-select: none;
}

.ol-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid #a07828;
  color: #a07828;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.ol-close:hover {
  background: #a07828;
  color: #000;
}

/* ─── 通用元素 ─── */
.ol-hint {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin: 4px 0 10px;
  letter-spacing: 1px;
}

.ol-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #a07828;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  padding: 9px 14px;
  outline: none;
  letter-spacing: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.ol-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.ol-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ol-btn {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 2px;
  border: none;
  transition: filter 0.2s, transform 0.1s;
}

.ol-btn:hover  { filter: brightness(1.15); }
.ol-btn:active { transform: scale(0.97);   }

.ol-btn-gold {
  background: linear-gradient(135deg, #c8900a 0%, #ffd700 60%, #c8900a 100%);
  color: #1a0f00;
  font-weight: bold;
}

.ol-btn-gray {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border: 1px solid #555;
}

.ol-btn-blue {
  background: linear-gradient(135deg, #1a4a8a 0%, #4499dd 60%, #1a4a8a 100%);
  color: #fff;
  font-weight: bold;
}

/* ─── 提示消息 ─── */
.ol-msg {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
  margin-top: 10px;
  color: #aaa;
  letter-spacing: 1px;
}

.ol-msg-ok    { color: #4dff88; }
.ol-msg-error { color: #ff6666; }

.ol-loading, .ol-empty, .ol-error {
  text-align: center;
  padding: 28px 0;
  font-size: 15px;
  color: #888;
}

.ol-error { color: #ff6666; }

/* ═══════════════════════════════════════
   排行榜专属
═══════════════════════════════════════ */
.lb-panel  { max-width: 520px; }

.lb-body {
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a07828 transparent;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.lb-table thead th {
  color: #a07828;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 2px;
  border-bottom: 1px solid #a07828;
}

.lb-row { transition: background 0.15s; }
.lb-row:hover { background: rgba(160, 120, 40, 0.1); }
.lb-row td    { padding: 9px 10px; border-bottom: 1px solid rgba(160,120,40,0.15); }

.lb-top1 td { color: #ffd700; font-weight: bold; }
.lb-top2 td { color: #c0c0c0; font-weight: bold; }
.lb-top3 td { color: #cd7f32; font-weight: bold; }

.lb-td-rank  { width: 48px; text-align: center; }
.lb-td-score { text-align: right; font-variant-numeric: tabular-nums; letter-spacing: 1px; }

.lb-medal { font-size: 18px; }
.lb-rank  { color: #666; font-size: 14px; }

/* 提交分数面板 */
.submit-panel { max-width: 380px; }
.submit-score-text {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
  letter-spacing: 2px;
  margin: 4px 0 12px;
}

/* ═══════════════════════════════════════
   云存档专属
═══════════════════════════════════════ */
.cs-panel { max-width: 400px; }

.cs-tip {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   公告专属
═══════════════════════════════════════ */
.ann-panel { max-width: 500px; }

.ann-body {
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a07828 transparent;
}

.ann-item {
  border: 1px solid rgba(160, 120, 40, 0.3);
  border-radius: 3px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(255, 215, 0, 0.03);
}

.ann-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(160,120,40,0.25);
  padding-bottom: 8px;
}

.ann-title {
  font-size: 16px;
  color: #ffd700;
  font-weight: bold;
  letter-spacing: 2px;
}

.ann-date {
  font-size: 12px;
  color: #666;
}

.ann-content {
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1.7;
  white-space: pre-wrap;
}
