/* ==================== 域名交易列表页 ==================== */

/* 域名-筛选 */
.dm-filters { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.fm-label { font-size: 13px; color: #909399; margin-right: 10px; font-weight: 500; }
.dm-filters a { display: inline-block; font-size: 13px; color: #606266; text-decoration: none; padding: 4px 12px; margin-right: 6px; margin-bottom: 3px; border-radius: 16px; transition: all 0.2s; }
.dm-filters a:hover { color: #9B59B6; background: #f5f0f7; }
.dm-filters a.cur { color: #fff; background: #9B59B6; }

/* 域名-列表 */
.dm-grid { display: flex; flex-wrap: wrap; margin-bottom: 16px; }
.dm-cell { width: 33.33%; box-sizing: border-box; padding: 0 8px 8px 0; display: flex; }
.dm-card { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 18px 20px; text-decoration: none; color: inherit; transition: all 0.3s; position: relative; overflow: hidden; }
.dm-card:hover { box-shadow: 0 6px 24px rgba(155,89,182,0.12); transform: translateY(-3px); border-color: #d7bde2; text-decoration: none; color: inherit; }
.dm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #9B59B6, #b97fd9, #9B59B6);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.dm-card:hover::before { transform: scaleX(1); }
.dm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dm-name { font-size: 17px; font-weight: 700; color: #222; word-break: break-all; font-family: Consolas, 'Courier New', monospace; }
.dm-card:hover .dm-name { color: #9B59B6; }
.dm-len { flex-shrink: 0; font-size: 12px; color: #999; background: #f5f5f5; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.dm-tags { font-size: 13px; color: #aaa; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dm-tags span { display: inline-flex; align-items: center; gap: 3px; }
.dm-tg { font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.dm-tg-premium { color: #d46b08; border: 1px solid #ffd591; background: #fffbe6; }
.dm-tg-brand { color: #9B59B6; border: 1px solid #d7bde2; background: #f5f0f7; }
.dm-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.dm-price { font-size: 18px; font-weight: 700; color: #F56C6C; }
.dm-old { font-size: 13px; color: #bbb; text-decoration: line-through; }
.dm-shop { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #999; margin-left: auto; flex-shrink: 0; }
.dm-shop img { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #eee; }

/* 公用侧边卡片 */
.side-card { background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; padding: 16px 20px; }
.side-card h4 { margin: 0 0 12px; font-size: 15px; color: #303133; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.side-btn { display: block; text-align: center; background: #9B59B6; color: #fff; font-size: 15px; padding: 10px 0; border-radius: 4px; text-decoration: none; }
.side-btn:hover { background: #8b4ba3; color: #fff; }
.sb-mb { margin-bottom: 16px; }

/* 排名列表 */
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f5f5f5; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li .rn { width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 12px; color: #fff; background: #c0c4cc; border-radius: 4px; flex-shrink: 0; margin-right: 10px; }
.rank-list li:nth-child(1) .rn,
.rank-list li:nth-child(2) .rn,
.rank-list li:nth-child(3) .rn { background: #9B59B6; }
.rank-list li a { flex: 1; text-decoration: none; color: #606266; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-list li a:hover { color: #9B59B6; }
.rank-list li .rp { flex-shrink: 0; color: #F56C6C; font-weight: 500; margin-left: 8px; font-size: 13px; }

/* 空状态 */
.empty-state { padding: 60px 20px; text-align: center; color: #909399; background: #fff; border: 1px solid #EBEEF5; border-radius: 8px; }
.empty-state i { font-size: 56px; display: block; margin-bottom: 16px; color: #DCDFE6; }
.empty-state p { margin: 0; font-size: 14px; }

/* 域名-详情 */
.dm-detail { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 28px 30px; margin-bottom: 16px; }
.dmd-header { margin-bottom: 18px; }
.dmd-title { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #222; }
.dmd-tags { display: flex; gap: 8px; }
.dtg { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 2px; }
.dtg.pre { color: #d46b08; border: 1px solid #ffd591; background: #fffbe6; }
.dtg.brd { color: #9B59B6; border: 1px solid #d7bde2; background: #f5f0f7; }
.dtg.len { color: #888; border: 1px solid #ddd; background: #fafafa; }

.dmd-price-box { background: #f5f0f7; border: 1px solid #d7bde2; border-radius: 4px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.dmd-price { font-size: 26px; font-weight: 700; color: #9B59B6; }
.dmd-old { font-size: 14px; color: #bbb; text-decoration: line-through; }
.dmd-actions { margin-left: auto; display: flex; gap: 10px; }
.dmd-btn { display: inline-block; background: #9B59B6; color: #fff; font-size: 14px; padding: 8px 22px; border-radius: 4px; text-decoration: none; }
.dmd-btn:hover { background: #8b4ba3; color: #fff; }
.dmd-btn2 { display: inline-block; border: 1px solid #ccc; color: #555; font-size: 14px; padding: 8px 22px; border-radius: 4px; text-decoration: none; }
.dmd-btn2:hover { color: #9B59B6; border-color: #9B59B6; }

.dmd-section { margin-bottom: 22px; }
.dmd-section h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #333; padding-left: 8px; border-left: 3px solid #9B59B6; }
.dmd-info-grid { display: flex; flex-wrap: wrap; }
.dm-info-item { width: 50%; box-sizing: border-box; padding: 8px 12px 8px 0; }
.dm-info-item label { display: block; font-size: 12px; color: #bbb; margin-bottom: 2px; }
.dm-info-item span { font-size: 14px; color: #333; }
.dmd-content { font-size: 14px; color: #555; line-height: 1.8; }
.dmd-content p { margin-bottom: 12px; }
.whois { font-size: 12px; color: #888; font-family: Consolas, monospace; white-space: pre-wrap; background: #fafafa; padding: 12px; border-radius: 3px; }
.dmd-images { display: flex; flex-wrap: wrap; gap: 8px; }
.dmd-images img { width: 120px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid #eee; }

.dmd-shop-bar { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 14px 18px; display: flex; align-items: center; }
.dsb-left { display: flex; align-items: center; gap: 10px; }
.dsb-left img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; }
.dsb-name { font-size: 14px; color: #333; margin-right: 8px; }
.dsb-lv { font-size: 11px; color: #d46b08; border: 1px solid #ffd591; background: #fffbe6; padding: 0 6px; border-radius: 2px; }

.side-dm-list { margin: 0; padding: 0; list-style: none; }
.side-dm-list li { padding: 8px 0; border-bottom: 1px dashed #f5f5f5; }
.side-dm-list li:last-child { border-bottom: 0; }
.side-dm-list li a { display: flex; justify-content: space-between; text-decoration: none; color: #555; font-size: 13px; }
.side-dm-list li a:hover { color: #9B59B6; }
.sdl-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sdl-price { flex-shrink: 0; color: #F56C6C; font-weight: 500; margin-left: 8px; }

@media (max-width: 992px) { .dm-cell { width: 50%; } }
@media (max-width: 768px) {
  .dm-cell { width: 100%; padding-right: 0; }
  .dm-detail { padding: 16px; }
  .dmd-title { font-size: 20px; }
}
