/* 网站详情页样式 */

.site-detail-page {
    padding: 2rem 0;
    min-height: 80vh;
}



/* 网站详情卡片 */
.site-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* 加载状态 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 网站头部信息 */
.site-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.site-main-info {
    flex: 1;
}

.site-info {
    flex: 1;
}

.site-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.site-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #eee;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.site-url {
    display: none; /* 隐藏URL显示 */
}

.site-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.meta-item.language-only {
    gap: 0;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #e8f4f8;
    color: #0066cc;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.language-badge.chinese {
    background: #e8f5e8;
    color: #28a745;
}

.language-badge.english {
    background: #fff3cd;
    color: #856404;
}

.language-badge.other {
    background: #f8f9fa;
    color: #6c757d;
}

/* 访问按钮 */
.site-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.visit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.visit-button:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.visit-button .icon {
    width: 16px;
    height: 16px;
}

.detail-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #007bff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.detail-button:hover {
    background: #007bff;
    color: white;
}

/* 分类和标签 */
.site-categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-tag, .tag-item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-tag:hover, .tag-item:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.category-tag {
    background: #e8f4f8;
    color: #0066cc;
}

.category-tag:hover {
    background: #d1ecf1;
}

.tag-item {
    background: #fff3cd;
    color: #856404;
}

.tag-item:hover {
    background: #ffeaa7;
}

/* 网站详细信息 */
.site-details {
    padding: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.summary-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    /* border-left: 4px solid #007bff; */
}

.summary-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    white-space: pre-line; /* 保留换行 */
}

.summary-text h1, .summary-text h2, .summary-text h3, 
.summary-text h4, .summary-text h5, .summary-text h6 {
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.summary-text h1 { font-size: 1.4rem; }
.summary-text h2 { font-size: 1.3rem; }
.summary-text h3 { font-size: 1.2rem; }
.summary-text h4 { font-size: 1.1rem; }

.summary-text p {
    margin: 0.8rem 0;
}

.summary-text ul, .summary-text ol {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.summary-text li {
    margin: 0.4rem 0;
}

.summary-text strong {
    color: #333;
    font-weight: 600;
}

/* 网站截图部分 */
.site-screenshot-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.screenshot-container {
    text-align: center;
    margin-top: 1rem;
}

.site-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* 相关推荐部分 */
.related-sites-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.related-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .related-sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* 相关推荐区域使用search.css中的标准样式，无需特殊调整 */

/* 错误状态 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.error-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-detail-page {
        padding: 1rem 0;
    }
    
    .site-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .site-main-info {
        width: 100%;
    }
    
    .site-title-row {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .site-logo {
        width: 32px;
        height: 32px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-actions {
        align-self: stretch;
        flex-direction: row;
        justify-content: center;
    }
    
    .site-details {
        padding: 1.5rem;
    }
    
    .site-screenshot-section,
    .related-sites-section {
        padding: 1.5rem;
    }
    
    .related-sites-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .visit-button,
    .detail-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .site-details {
        padding: 1rem;
    }
    
    .site-screenshot-section,
    .related-sites-section {
        padding: 1rem;
    }
}

/* 动画效果 */
.site-detail-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-screenshot-section,
.related-sites-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.site-screenshot-section {
    animation-delay: 0.1s;
}

.related-sites-section {
    animation-delay: 0.2s;
}
