/* 详情页样式 */

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px 12px 0 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.breadcrumb li {
    color: #6c757d;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.breadcrumb li:hover {
    transform: translateY(-1px);
}

.breadcrumb li:not(:last-child) {
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: "";
    position: relative;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin: 0 16px;
    box-shadow: 0 0 8px rgba(108, 117, 125, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.breadcrumb li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
}

.breadcrumb li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.breadcrumb li a:hover {
    color: var(--secondary-color);
    background: rgba(108, 117, 125, 0.1);
    transform: translateY(-1px);
}

.breadcrumb li a:hover::before {
    width: 80%;
}

.breadcrumb li a:active {
    transform: translateY(0px) scale(0.98);
    transition: all 0.1s ease;
}

.breadcrumb li[aria-current="page"] {
    color: #212529;
    font-weight: 600;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.breadcrumb li[aria-current="page"]::before {
    content: "📍";
    margin-right: 6px;
    font-size: 12px;
    animation: locationBounce 2s infinite;
}

@keyframes locationBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 16px;
        margin: 16px 0;
        border-radius: 8px;
    }

    .breadcrumb ol {
        font-size: 14px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 12px;
        width: 5px;
        height: 5px;
    }

    .breadcrumb li a,
    .breadcrumb li[aria-current="page"] {
        padding: 4px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 10px 12px;
    }

    .breadcrumb ol {
        font-size: 13px;
    }

    .breadcrumb li:not(:last-child)::after {
        margin: 0 8px;
    }

    .breadcrumb li a,
    .breadcrumb li[aria-current="page"] {
        padding: 3px 6px;
        font-size: 12px;
    }

    .breadcrumb li[aria-current="page"]::before {
        font-size: 10px;
        margin-right: 4px;
    }
}

/* 相关网站推荐 */
.related-sites {
    margin: 40px 0;
}

.related-sites h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-site {
    display: block;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-site:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.related-site h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.related-site p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.related-site .related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #adb5bd;
}

/* FAQ板块样式 */
.detail-faq {
    margin: 40px 0;
}

.detail-faq h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.faq-container {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3::before {
    content: "Q";
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.faq-item p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
    padding-left: 34px;
}

.faq-item p::before {
    content: "A";
    background: var(--secondary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* 详情页头部 */
.detail-header {
    margin: 2rem 0;
}

.site-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-hover);
}

.site-hero-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.site-hero-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.category-badge, .language-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.language-badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.verified-badge {
    background-color: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.site-rating-hero {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-display {
    display: flex;
    gap: 0.2rem;
    color: #ffc107;
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.site-hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.hero-btn.primary {
    background-color: white;
    color: var(--primary-color);
}

.hero-btn.primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 网站简介 */
.detail-description {
    margin: 3rem 0;
}

.description-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.description-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-card h2 i {
    color: var(--secondary-color);
}

.description-card p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.site-tags h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-tags h3 i {
    color: var(--secondary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags-container .site-tag {
    padding: 0.4rem 1rem;
    background-color: #e3f2fd;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.tags-container .site-tag:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* 核心优势 */
.detail-features {
    margin: 3rem 0;
}

.detail-features h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-features h2 i {
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 使用指南 */
.detail-guide {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
}

.detail-guide h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-guide h2 i {
    color: var(--secondary-color);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* 相关推荐 */
.detail-recommendations {
    margin: 3rem 0;
}

.detail-recommendations h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-recommendations h2 i {
    color: var(--secondary-color);
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.recommendation-card-header {
    padding: 1rem;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.recommendation-title h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.recommendation-category {
    font-size: 0.8rem;
    color: #666;
}

.recommendation-card-body {
    padding: 1rem;
}

.recommendation-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.recommendation-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.recommendation-link:hover {
    color: #2980b9;
    transform: translateX(3px);
}

/* CTA区域 */
.detail-cta {
    margin: 3rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.cta-secondary {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* 用户评价 */
.detail-reviews {
    margin: 3rem 0;
}

.detail-reviews h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-reviews h2 i {
    color: var(--secondary-color);
}

.reviews-container {
    display: grid;
    gap: 1.5rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.reviewer-name {
    font-weight: bold;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.9rem;
    color: #666;
}

.review-rating {
    color: #ffc107;
}

.review-content p {
    color: #666;
    line-height: 1.6;
}

/* 返回按钮 */
.back-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.back-btn:hover {
    background-color: #2980b9;
    transform: translateX(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .site-hero-info h1 {
        font-size: 1.5rem;
    }

    .site-meta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-hero {
        padding: 1.5rem;
    }

    .site-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .step {
        gap: 0.8rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.recommendation-card,
.review-item {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }