/* source/plugin/site_detail/css/site_detail.css */
/* 站点详情页专用样式 - 与主站主题统一 */

/* 站点详情卡片 */
.site-detail-card {
    background: rgba(18, 25, 35, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 详情头部 */
.detail-header {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.05));
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
}

/* Favicon容器 */
.detail-favicon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
    flex-shrink: 0;
}

.detail-favicon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0.9);
}

.detail-favicon i {
    font-size: 40px;
    color: #06b6d4;
}

/* 详情信息区域 */
.detail-info {
    flex: 1;
    min-width: 280px;
}

.detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* URL显示 */
.detail-url {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    max-width: 100%;
}

.detail-url i {
    color: #06b6d4;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.detail-url span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* 信息徽章组 */
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-badge i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* 友链检测容器 */
.link-check-container {
    flex-shrink: 0;
}

/* 友链检测徽章 */
.link-check-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

.link-check-badge.checking {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: pulse 1.5s infinite;
}

.link-check-badge.has-link {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.link-check-badge.no-link {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.link-check-badge.failed {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 工具提示 */
.link-check-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(18, 25, 35, 0.95);
    color: #e2e8f0;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.link-check-badge:hover .link-check-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 详情章节 */
.detail-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.detail-section:last-of-type {
    border-bottom: none;
}

/* 章节标题 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
}

.section-title i {
    margin-right: 0.75rem;
    color: #06b6d4;
    font-size: 1.25rem;
}

/* 描述框 */
.description-box {
    background: rgba(18, 25, 35, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    line-height: 1.7;
    color: #cbd5e1;
    border-left: 4px solid #06b6d4;
}

/* 详情元信息 */
.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.meta-item {
    background: rgba(18, 25, 35, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.meta-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
}

.meta-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-label i {
    color: #06b6d4;
    margin-right: 0.25rem;
}

.meta-value {
    font-size: 1.125rem;
    color: #e2e8f0;
    font-weight: 600;
    word-break: break-all;
}

/* 操作按钮区域 */
.detail-actions {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(18, 25, 35, 0.5);
}

/* 主要按钮 */
.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 160px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

/* 次要按钮 */
.btn-secondary {
    background: transparent;
    color: #06b6d4;
    border: 2px solid rgba(6, 182, 212, 0.3);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 160px;
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

/* 返回链接样式 */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #06b6d4;
}

.back-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-info {
        text-align: center;
    }
    
    .detail-badges {
        justify-content: center;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .detail-favicon {
        width: 80px;
        height: 80px;
    }
    
    .detail-favicon img {
        width: 36px;
        height: 36px;
    }
    
    .detail-favicon i {
        font-size: 32px;
    }
    
    .detail-section {
        padding: 1.5rem;
    }
    
    .detail-actions {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .link-check-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
/* 时间徽章特殊样式 */
.time-badge {
    position: relative;
    padding-right: 1rem;
}

.time-label {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    padding: 0.15rem 0.4rem;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 4px;
    color: #94a3b8;
    font-weight: normal;
}

/* 有时间更新的徽章 */
.time-badge.has-update {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.time-badge.has-update .time-label {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* 时间提示条 */
.time-info-tip {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.time-info-tip i {
    color: #06b6d4;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .time-info-tip {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    .time-label {
        font-size: 0.65rem;
        margin-left: 0.25rem;
        padding: 0.1rem 0.3rem;
    }
}
/* ========== 强化时间标签样式 ========== */

/* 时间徽章 - 全新设计 */
.time-badge {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem !important;
    background: rgba(18, 25, 35, 0.8) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.time-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* 时间徽章图标 */
.time-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.time-badge-icon i {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

/* 收录时间图标特殊样式 */
.created-badge .time-badge-icon {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.created-badge .time-badge-icon i {
    color: #4ade80 !important;
}

/* 更新时间图标特殊样式 */
.updated-badge .time-badge-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.updated-badge .time-badge-icon i {
    color: #3b82f6 !important;
}

/* 有更新时的样式 */
.updated-badge.has-update .time-badge-icon {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.updated-badge.has-update .time-badge-icon i {
    color: #4ade80 !important;
}

/* 时间徽章内容 */
.time-badge-content {
    display: flex;
    flex-direction: column;
}

.time-badge-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.time-badge-value {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* 暂无更新时的样式 */
.updated-badge:not(.has-update) .time-badge-value {
    color: #9ca3af;
    font-style: italic;
}

/* 分类徽章样式 */
.category-badge {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem;
}

.category-badge i {
    color: #a78bfa !important;
}

/* 时间信息卡片 */
.time-info-card {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(18, 25, 35, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.created-dot {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.updated-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.time-info-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.time-info-label {
    color: #e2e8f0;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .time-badge {
        width: 100%;
        padding: 0.75rem !important;
    }
    
    .time-info-card {
        padding: 0.875rem;
    }
    
    .time-info-text {
        font-size: 0.8rem;
    }
}

/* 徽章网格布局优化 */
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-badge {
    flex: 1 1 auto;
    min-width: 180px;
}

@media (max-width: 640px) {
    .detail-badge {
        min-width: 100%;
    }
}
