/* Base Styles */
:root {
    --primary-color: #212529;
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-color: #fff;
    --card-bg: #fff;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Header */
.site-title {
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* Software Cards */
.software-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.software-card:hover {
    color: inherit;
}

.software-card .card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.software-card .card-body {
    padding: 2rem 1.5rem;
}

.software-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.software-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.software-icon.large {
    width: 88px;
    height: 88px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.software-icon.large i {
    font-size: 2.75rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card-text {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.software-meta {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.software-meta .badge {
    font-weight: 400;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

/* Detail Page */
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-color);
}

/* Detail Wrapper - 整体卡片包裹 */
.detail-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Detail Header */
.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-header .software-icon.large {
    flex-shrink: 0;
    margin: 0;
}

.header-info {
    flex: 1;
}

.detail-title {
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
}

.meta-tag i {
    font-size: 0.75rem;
}

/* Features Section */
.features-section {
    margin-bottom: 0;
}

.section-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Download Panel */
.download-panel {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 100px;
}

.download-btn {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-link-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.download-meta i {
    font-size: 0.75rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 991px) {
    .detail-wrapper {
        padding: 1.5rem;
    }

    .download-panel {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .software-icon {
        width: 56px;
        height: 56px;
    }

    .software-icon i {
        font-size: 1.5rem;
    }

    .software-card .card-body {
        padding: 1.5rem 1.25rem;
    }

    .detail-wrapper {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .header-info {
        text-align: center;
    }

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

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-desc {
        font-size: 0.9rem;
    }

    .software-icon.large {
        width: 72px;
        height: 72px;
    }

    .software-icon.large i {
        font-size: 2rem;
    }

    .section-title {
        justify-content: center;
    }

    .feature-list li {
        font-size: 0.85rem;
    }
}
