/* ==================== 详情页专属样式 ==================== */

/* 网站介绍区块 */
.site-intro {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.site-intro h1 {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-intro h1 a {
    color: var(--text-color);
}

.site-intro h1 a:hover {
    color: var(--primary-color);
}

.update-date {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.intro-content {
    line-height: 1.8;
    color: var(--text-light);
}

.intro-content p {
    margin-bottom: 12px;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 网站名+URL高亮区块 */
.site-url-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.site-url-links .url-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.site-url-links .url-item:last-child {
    margin-bottom: 0;
}

.site-url-links .url-name {
    color: #555;
    font-weight: 500;
}

.site-url-links a {
    color: #1a73e8;
    word-break: break-all;
}

.site-url-links a:hover {
    text-decoration: underline;
}

/* 标签行 */
.tag-line {
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    font-size: 14px;
}

.tag-label {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 5px;
}

.tag-link {
    color: #666;
    margin-right: 15px;
}

.tag-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 网址列表 */
.url-list {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.url-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.url-item {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.url-name {
    font-weight: 500;
}

.url-item a {
    color: #1a73e8;
    word-break: break-all;
}

.url-item a:hover {
    color: var(--primary-hover);
}

/* 相关网站 & 相关专题 */
.related-sites,
.related-topics {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.related-sites h2,
.related-topics h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-item {
    display: block;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 13px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.related-item:hover {
    background: #e0e0e0;
    color: var(--text-color);
    border-color: #ccc;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 翻页导航 */
.pagination-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.page-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
    flex: 1;
}

.page-link:hover {
    background: #e0e0e0;
    color: var(--text-color);
    text-decoration: none;
}

.page-link.next {
    justify-content: flex-end;
    text-align: right;
}

.arrow {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-light);
}

.page-title {
    font-size: 13px;
}

.page-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.page-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 动画 */
.site-intro,
.tag-line,
.url-list,
.related-sites,
.related-topics,
.pagination-nav {
    animation: fadeIn 0.5s ease forwards;
}

.tag-line { animation-delay: 0.05s; }
.url-list { animation-delay: 0.1s; }
.related-sites { animation-delay: 0.15s; }
.related-topics { animation-delay: 0.2s; }
.pagination-nav { animation-delay: 0.25s; }

/* 响应式 */
@media (max-width: 576px) {
    .site-intro,
    .url-list,
    .related-sites,
    .related-topics,
    .tag-line {
        padding: 15px;
    }

    .site-intro h1 {
        font-size: 20px;
    }

    .url-item {
        font-size: 13px;
    }

    .tag-line {
        font-size: 13px;
    }

    .tag-link {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .related-item {
        padding: 10px;
        font-size: 12px;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 10px;
    }

    .page-link {
        justify-content: center;
    }

    .page-link.next {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}

@media print {
    .site-intro,
    .url-list,
    .related-sites,
    .related-topics,
    .tag-line {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

.url-item::before {
    content: "🔗 ";
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    font-size: 13px;
    color: #999;
    display: inline;
}
.breadcrumb a {
    color: #888 !important;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary-color) !important;
}
/* 链接之间的分隔符 >> */
.breadcrumb a + a::before {
    content: " >> ";
    color: #ccc;
    margin: 0 4px;
}