/* public/css/header-wip-1.css */
/* WIP — 从 header.html 第 1 个 inline <style> 抽出
 * 内容:header i18n hide rules (~5KB)
 * 计划:docs/2026-05-28-header-wip-sandbox-plan.md
 * Cascade 位置:在 header-wip.html 顶部
 */

  .head_left [data-i18n],
  .hr-new.head_right [data-i18n],
  .hr-new.head_right .lang-current-text {
    color: transparent !important;
  }
  .head_left.i18n-ready [data-i18n],
  .hr-new.head_right.i18n-ready [data-i18n],
  .hr-new.head_right.i18n-ready .lang-current-text {
    color: inherit !important;
  }
  .hr-new.head_right.i18n-ready .try-tools-btn[data-i18n],
  .hr-new.head_right .try-tools-btn[data-i18n] {
    color: white !important;
  }
  .lang-dropdown {
    display: none !important;
    visibility: hidden !important;
  }
  .lang-dropdown.show {
    display: block !important;
    visibility: visible !important;
  }

  /* === i18n FOUC 防灰条:nav 项默认 opacity:0,i18n 加完渐显 === */
  .head_left:not(.i18n-ready) .nav-dropdown,
  .head_left:not(.i18n-ready) .canvas.head_rnav,
  .hr-new.head_right:not(.i18n-ready) .lang-switch-container,
  .hr-new.head_right:not(.i18n-ready) .download-windows-btn {
    opacity: 0;
    /* 兜底:JS 万一挂,2 秒后强制渐显防 nav 永久不可见(配合 JS setTimeout 双保险) */
    animation: i18nReadyFallback 0.15s ease-in 2s forwards;
  }
  .head_left.i18n-ready .nav-dropdown,
  .head_left.i18n-ready .canvas.head_rnav,
  .hr-new.head_right.i18n-ready .lang-switch-container,
  .hr-new.head_right.i18n-ready .download-windows-btn {
    opacity: 1;
    animation: none;
    transition: opacity 0.15s ease-in;
  }
  @keyframes i18nReadyFallback {
    to { opacity: 1; }
  }
  /* === end i18n FOUC 防灰条 === */

  /* Score Details Panel Styles */
  .score-details-panel {
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .sdp-head {
    height: 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    cursor: move;
  }
  .sdp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .sdp-title img {
    flex-shrink: 0;
  }
  .sdp-close {
    position: absolute;
    top: -12px;
    right: -12px;
    cursor: pointer !important;
    width: 32px;
    height: 32px;
    background-color: #666666;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    line-height: 32px;
    text-align: center;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 9999;
    pointer-events: auto !important;
    user-select: none;
  }
  .sdp-close:hover {
    background-color: #444444;
  }
  .sdp-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
  }
  .sdp-tab {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
  }
  .sdp-tab:hover {
    color: #4f46e5;
    background: #f3f4f6;
  }
  .sdp-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    background: #fff;
  }
  .sdp-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .sdp-list {
    padding: 8px 0;
  }
  .sdp-loading, .sdp-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #9ca3af;
    font-size: 14px;
  }
  .sdp-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
  }
  .sdp-item:hover {
    background: #f9fafb;
  }
  .sdp-item:last-child {
    border-bottom: none;
  }
  .sdp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  .sdp-item-reason {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    flex: 1;
    margin-right: 12px;
    word-break: break-word;
  }
  .sdp-item-score {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }
  .sdp-item-score.consume {
    color: #ef4444;
  }
  .sdp-item-score.consume::before {
    content: '-';
  }
  .sdp-item-score.recharge {
    color: #10b981;
  }
  .sdp-item-score.recharge::before {
    content: '+';
  }
  .sdp-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sdp-item-time {
    font-size: 12px;
    color: #9ca3af;
  }
  .sdp-item-link {
    font-size: 12px;
    color: #4f46e5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .sdp-item-link:hover {
    text-decoration: underline;
  }
  .sdp-item-link svg {
    width: 12px;
    height: 12px;
  }
  .sdp-item-order {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
  }
  .sdp-item-method {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
  }
  .sdp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
  }
  .sdp-page-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
  }
  .sdp-page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
  }
  .sdp-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .sdp-page-info {
    font-size: 13px;
    color: #6b7280;
  }
  @media (max-width: 640px) {
    .sdp-item {
      padding: 12px 16px;
    }
    .sdp-head {
      padding: 0 1rem;
    }
    .sdp-pagination {
      padding: 12px 16px;
    }
  }

