/* ===== 2026-10-28 排行榜详情页改版 (Hermes) ===== */
.rd-page { background: #f8fafc; padding-bottom: 40px; }

/* ===== 头部 ===== */
.rd-hero {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}
.rd-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.rd-hero-logo {
    width: 96px; height: 96px; flex: 0 0 96px;
    border-radius: 16px; border: 1px solid #eef2f7; background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.rd-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.rd-hero-main { flex: 1; min-width: 0; }
.rd-hero-title { font-size: 24px; font-weight: 700; color: #0f172a; margin: 0 0 10px; line-height: 1.3; }
.rd-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rd-stat {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13.5px; color: #475569; background: #f1f5f9;
    padding: 6px 13px; border-radius: 8px; line-height: 1.4;
}
.rd-stat strong { color: #2563eb; font-weight: 600; }
.rd-intro { font-size: 13.5px; line-height: 1.8; color: #64748b; margin: 0; }
.rd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.rd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
    text-decoration: none; transition: all .18s ease; border: 1px solid transparent; line-height: 1.4;
}
.rd-btn-primary { background: #2563eb; color: #fff !important; box-shadow: 0 2px 8px rgba(37,99,235,.28); }
.rd-btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.rd-btn-outline { background: #fff; color: #2563eb !important; border-color: #bfdbfe; }
.rd-btn-outline:hover { background: #eff6ff; }
.rd-btn.active { background: #dcfce7; color: #15803d !important; border-color: #bbf7d0; }

/* ===== 排序 tab ===== */
.rd-sortbar {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.rd-sortbar-tabs { display: flex; gap: 4px; }
.rd-sortbar-tabs a {
    padding: 14px 16px; font-size: 14.5px; color: #64748b; text-decoration: none;
    border-bottom: 2px solid transparent; font-weight: 500; transition: all .15s;
}
.rd-sortbar-tabs a:hover { color: #2563eb; }
.rd-sortbar-tabs a.active { color: #2563eb; font-weight: 600; border-bottom-color: #2563eb; }
.rd-sortbar-meta { font-size: 13px; color: #94a3b8; padding: 14px 0; }
.rd-sortbar-meta b { color: #2563eb; font-weight: 600; }

/* ===== 产品排名卡 ===== */
.rd-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rd-item {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06);
    padding: 18px 20px; display: flex; gap: 18px; align-items: flex-start;
    transition: all .2s ease; position: relative;
}
.rd-item:hover { box-shadow: 0 6px 20px rgba(15,23,42,.10); border-color: #dbeafe; transform: translateY(-1px); }

/* 排名序号 */
.rd-rank {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; color: #475569;
    background: #e2e8f0; line-height: 1;
}
.rd-rank-1 { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.35); }
.rd-rank-2 { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #fff; box-shadow: 0 2px 8px rgba(148,163,184,.35); }
.rd-rank-3 { background: linear-gradient(135deg,#fb923c,#ea580c); color: #fff; box-shadow: 0 2px 8px rgba(234,88,12,.35); }

/* Logo */
.rd-logo {
    flex: 0 0 76px; width: 76px; height: 76px; border-radius: 12px;
    border: 1px solid #eef2f7; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.rd-logo img { width: 100%; height: 100%; object-fit: contain; padding: 9px; }

/* 内容 */
.rd-body { flex: 1; min-width: 0; }
.rd-name {
    font-size: 18px; font-weight: 700; color: #0f172a;
    text-decoration: none; line-height: 1.4; display: inline-block;
}
.rd-name:hover { color: #2563eb; }
.rd-desc {
    font-size: 13px; line-height: 1.7; color: #64748b; margin: 8px 0 13px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-metric {
    font-size: 12.5px; color: #475569; background: #f1f5f9;
    border: 1px solid #e2e8f0; padding: 5px 11px; border-radius: 7px;
}
.rd-metric b { color: #0f172a; font-weight: 700; }
.rd-metric-heat { background: #fff7ed; border-color: #ffedd5; color: #c2410c; }
.rd-metric-heat b { color: #ea580c; }

/* 右侧按钮 */
.rd-go {
    flex: 0 0 auto; align-self: center;
    padding: 8px 18px; border-radius: 8px; font-size: 13.5px;
    background: #eff6ff; color: #2563eb !important; text-decoration: none;
    font-weight: 500; white-space: nowrap; transition: all .18s;
}
.rd-go:hover { background: #2563eb; color: #fff !important; }

/* 反馈条 */
.rd-feedback {
    background: #fffbeb; border: 1px solid #fef3c7; border-radius: 10px;
    padding: 14px 18px; font-size: 13.5px; color: #92400e; margin-top: 16px;
}
.rd-feedback a { color: #2563eb; text-decoration: none; font-weight: 500; }
.rd-feedback a:hover { text-decoration: underline; }

/* ===== 侧栏 ===== */
.rd-side-card {
    background: #fff; border-radius: 12px; border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(15,23,42,.06); overflow: hidden; margin-bottom: 16px;
}
.rd-side-head {
    padding: 15px 18px; border-bottom: 1px solid #f1f5f9;
    font-size: 15px; font-weight: 700; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.rd-side-head::before { content: ''; width: 4px; height: 15px; background: #2563eb; border-radius: 2px; }
.rd-side-list { padding: 8px 0; }
.rd-side-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 18px; text-decoration: none; transition: background .15s;
}
.rd-side-item:hover { background: #f8fafc; }
.rd-side-name {
    font-size: 13.5px; color: #334155; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; flex: 1; line-height: 1.6;
}
.rd-side-item:hover .rd-side-name { color: #2563eb; }
.rd-side-num {
    font-size: 11px; color: #94a3b8; background: #f1f5f9;
    padding: 2px 7px; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 767px) {
    .rd-hero { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
    .rd-hero-logo { width: 80px; height: 80px; flex: 0 0 80px; }
    .rd-hero-title { font-size: 19px; }
    .rd-stats, .rd-actions { justify-content: center; }
    .rd-item { flex-wrap: wrap; padding: 16px; }
    .rd-rank { flex: 0 0 32px; width: 32px; height: 32px; font-size: 15px; }
    .rd-logo { flex: 0 0 56px; width: 56px; height: 56px; }
    .rd-body { flex: 1 1 calc(100% - 130px); }
    .rd-go { flex: 1 1 100%; text-align: center; margin-top: 8px; }
}
