/* 工具详情页面样式 */

.tool-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.tool-detail-content {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(108, 117, 125, 0.1);
}

.dark-theme .tool-detail-content {
    background: #101218;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-detail-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.tool-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.tool-detail-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    color: white;
}

.tool-detail-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tool-detail-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tool-detail-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.tool-detail-body {
    padding: 3rem;
}

.tool-detail-section {
    margin-bottom: 2.5rem;
}

.tool-detail-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: var(--dark-color);
    position: relative;
    padding-left: 1rem;
}

.tool-detail-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.dark-theme .tool-detail-section h2 {
    color: #f5f5f5;
}

.dark-theme .tool-detail-section h2::before {
    background: #c8102e;
}

.tool-detail-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.dark-theme .tool-detail-section p {
    color: #e5e5e5;
}

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

.tool-feature-card {
    background: rgba(108, 117, 125, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: var(--transition);
}

.tool-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .tool-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .tool-feature-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tool-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(108, 117, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dark-theme .tool-feature-icon {
    background: rgba(200, 16, 46, 0.15);
    color: #c8102e;
}

.tool-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.dark-theme .tool-feature-title {
    color: #f5f5f5;
}

.tool-feature-desc {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.dark-theme .tool-feature-desc {
    color: rgba(220, 220, 225, 0.65);
}

.tool-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tool-spec-item {
    background: rgba(108, 117, 125, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-theme .tool-spec-item {
    background: rgba(255, 255, 255, 0.05);
}

.tool-spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(108, 117, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.dark-theme .tool-spec-icon {
    background: rgba(200, 16, 46, 0.15);
    color: #c8102e;
}

.tool-spec-info {
    flex: 1;
}

.tool-spec-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark-theme .tool-spec-label {
    color: rgba(220, 220, 225, 0.65);
}

.tool-spec-value {
    font-weight: 600;
    color: var(--dark-color);
}

.dark-theme .tool-spec-value {
    color: #f5f5f5;
}

.tool-download-section {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08), rgba(108, 117, 125, 0.03));
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    text-align: center;
}

.dark-theme .tool-download-section {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
}

.tool-download-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.dark-theme .tool-download-title {
    color: #f5f5f5;
}

.tool-download-desc {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.dark-theme .tool-download-desc {
    color: rgba(220, 220, 225, 0.65);
}

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

.download-btn {
    padding: 0;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
    background: none;
    border: none;
}

.download-btn i {
    font-size: 1.1rem;
}

.download-btn-title {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-btn-info {
    font-size: 0.75rem;
    color: var(--gray-color);
    font-weight: 400;
}

.download-btn-primary {
    color: var(--primary-color);
}

.download-btn-primary:hover {
    color: #1a1a1a;
}

.dark-theme .download-btn-primary {
    color: #c8102e;
}

.dark-theme .download-btn-primary:hover {
    color: #e61c3a;
}

.download-btn-secondary {
    color: var(--primary-color);
}

.download-btn-secondary:hover {
    color: #1a1a1a;
}

.dark-theme .download-btn-secondary {
    color: #c8102e;
}

.dark-theme .download-btn-secondary:hover {
    color: #e61c3a;
}

.download-extra-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(108, 117, 125, 0.15);
    flex-wrap: wrap;
}

.dark-theme .download-extra-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-extra-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    background: rgba(108, 117, 125, 0.05);
}

.download-extra-link:hover {
    color: var(--primary-color);
    background: rgba(108, 117, 125, 0.1);
    transform: translateY(-2px);
}

.dark-theme .download-extra-link {
    color: rgba(220, 220, 225, 0.65);
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .download-extra-link:hover {
    color: #c8102e;
    background: rgba(255, 255, 255, 0.08);
}

.tool-screenshots {
    margin-top: 2rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tool-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 117, 125, 0.1);
    flex-wrap: wrap;
}

.dark-theme .tool-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-actions .btn {
    min-width: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-detail-container {
        padding: 100px 16px 40px;
    }

    .tool-detail-header {
        height: 250px;
    }

    .tool-detail-header-content {
        padding: 1.5rem;
    }

    .tool-detail-title {
        font-size: 2rem;
    }

    .tool-detail-body {
        padding: 2rem 1.5rem;
    }

    .tool-detail-section h2 {
        font-size: 1.4rem;
    }

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

    .tool-specs {
        grid-template-columns: 1fr;
    }

    .tool-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .download-btn {
        min-width: auto;
    }

    .download-extra-links {
        flex-direction: row;
        gap: 1.5rem;
        align-items: center;
    }

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

    .tool-actions {
        flex-direction: column;
    }

    .tool-actions .btn {
        width: 100%;
    }
}
