/* 详情页 */
.detail-page {
    background: #f5f5f5;
    min-height: 100vh;
}
.detail-topbar {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
}
.detail-logo {
    font-weight: bold;
    color: #FF6B00;
    font-size: 18px;
    text-decoration: none;
}
.detail-topbar-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-left: 16px;
}
.detail-topbar-links a:hover {
    color: #FF6B00;
}
.detail-container {
    width: 100%;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    padding: 0 24px;
}
.detail-main {
    flex: 1;
    min-width: 0;
}
.detail-sidebar {
    width: 30%;
    max-width: 340px;
    min-width: 240px;
    flex-shrink: 0;
}
.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}
.detail-card-heading {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 14px;
}
.detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.detail-favicon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #eee;
}
.detail-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}
.detail-site-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    margin-top: 4px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ff7800;
    display: -webkit-box;
   -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.detail-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}
.detail-domain-info {
    font-size: 13px;
    color: #666;
}
.domain-sep {
    color: #ddd;
    margin: 0 8px;
}
.detail-actions {
    display: flex;
    gap: 10px;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.action-btn.primary {
    background: #FF6B00;
    color: #fff;
}
.action-btn.primary:hover {
    background: #e55a00;
}
.action-btn.back {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}
.action-btn.back:hover {
    background: #f5f5f5;
}
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.promo-item {
    padding: 10px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.promo-blue {
    background: #2A52BE;
    color: #fff;
}
.promo-red {
    background: #FF3B30;
    color: #fff;
}
.promo-badge {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}
.promo-text {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}
.promo-icon {
    font-size: 16px;
}
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.stats-total {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.stats-tabs {
    display: flex;
}
.stats-tab {
    padding: 4px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
}
.stats-tab:first-child {
    border-radius: 4px 0 0 4px;
}
.stats-tab:last-child {
    border-radius: 0 4px 4px 0;
}
.stats-tab.active {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}
.stats-numbers {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    background: #f8f9fa;
    border-radius: 6px;
}
.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #4A90E2;
}
.stats-chart {
    background: #fafafa;
    border-radius: 6px;
    padding: 12px;
}
.chart-svg {
    width: 100%;
    height: 120px;
}
.info-link {
    color: #4A90E2;
    text-decoration: none;
    word-break: break-all;
}
.info-link:hover {
    color: #FF6B00;
    text-decoration: underline;
}
.related-favicon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}
.related-hint {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}
.detail-ai-desc p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.detail-ai-desc strong {
    color: #333;
}
.detail-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    min-width: 0;
    overflow: hidden;
}
.related-card:hover {
    background: #f0f7ff;
    border-color: #c0d4f0;
}
.related-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    flex-shrink: 0;
}
.related-info {
    flex: 1;
    min-width: 0;
}
.related-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-domain {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.sidebar-heading {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.sidebar-preview {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
}
.preview-screenshot {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}
.preview-screenshot:hover {
    transform: scale(1.02);
}
.preview-placeholder {
    background: #f0f0f0;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.preview-icon {
    font-size: 32px;
}
.preview-text {
    font-size: 12px;
    color: #999;
}
.info-list {
    display: flex;
    flex-direction: column;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: #999;
}
.info-value {
    color: #333;
    font-weight: 500;
}
.seo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.seo-sub {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.seo-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.seo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.seo-link {
    text-decoration: none;
    color: #555;
    padding: 4px 0;
    transition: color 0.2s;
}
.seo-link:hover {
    color: #4A90E2;
}
.seo-icon {
    font-size: 14px;
    color: #999;
}
.seo-link:hover .seo-icon {
    color: #4A90E2;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sidebar-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.detail-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #999;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.footer-sep {
    margin: 0 4px;
}
.footer-link {
    color: #666;
    text-decoration: none;
}
.footer-link:hover {
    color: #FF6B00;
}
@media (max-width: 900px) {
    .detail-container {
        flex-direction: column;
    }
    .detail-sidebar {
        width: 100%;
    }
    .detail-related {
        grid-template-columns: 1fr;
    }
}
