/*
Theme Name: SoftDown 下载站
Theme URI: https://yourdomain.com
Description: 专业的软件下载站主题，支持分类展示、软件详情、搜索功能
Version: 3.6.1
Author: SoftDown Team
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fb;
    color: #2c3e50;
    line-height: 1.5
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    overflow: visible
}

.site-header {
    background: #1a252f;
    color: #ecf0f1;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 70px
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap
}

.logo {
    font-size: 24px;
    font-weight: 700
}

.logo a {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #fff, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent
}

.logo a:hover {
    opacity: 0.9
}

.site-description {
    font-size: 12px;
    color: #8aa4b8;
    letter-spacing: 0.5px;
    padding-left: 12px;
    border-left: 1px solid #3a4a5a
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0
}

.primary-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 24px 0;
    display: inline-block;
    transition: all 0.2s;
    border-bottom: 3px solid transparent
}

.primary-menu li a:hover,
.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    color: #fff;
    border-bottom-color: #ff9800
}

.search-area {
    margin-left: 20px
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px 4px 4px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff9800
}

.search-input {
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    outline: none;
    width: 180px
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6)
}

.search-btn {
    background: #ff9800;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: white;
    font-weight: 500
}

.search-btn:hover {
    background: #f57c00;
    transform: scale(1.02)
}

.breadcrumb-wrapper {
    background: #f8f9fc;
    border-bottom: 1px solid #eef2f6;
    padding: 12px 0
}

.breadcrumb {
    font-size: 13px;
    color: #7a8a9a
}

.breadcrumb a {
    color: #5a6e7c;
    text-decoration: none;
    transition: color 0.2s
}

.breadcrumb a:hover {
    color: #ff9800
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #cbd5e0
}

.breadcrumb-current {
    color: #1e2a3a;
    font-weight: 500
}

.home-hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 30px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    position: relative;
    z-index: 1
}

.hero-subtitle {
    font-size: 18px;
    color: #b0c4de;
    margin-bottom: 32px;
    position: relative;
    z-index: 1
}

.hero-search-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1
}

.hero-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1)
}

.hero-search-input:focus {
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3)
}

.hero-search-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3)
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.4)
}

.category-section {
    margin-bottom: 60px
}

.category-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0
}

.category-title a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    position: relative
}

.category-title a:hover {
    color: #ff9800
}

.category-title a::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff9800;
    border-radius: 2px
}

.category-desc {
    color: #7a8a9a;
    font-size: 14px;
    margin: 0;
    flex: 1;
    padding-left: 20px
}

.category-more {
    color: #ff9800;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff3e0
}

.category-more:hover {
    background: #ff9800;
    color: white
}

.category-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px
}

.software-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02)
}

.software-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    border-color: #ff9800
}

.card-inner {
    padding: 24px 20px 20px;
    text-align: center
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: #f8f9fc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center
}

.card-icon img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto
}

.icon-emoji {
    font-size: 36px
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 44px
}

.card-title a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-title a:hover {
    color: #ff9800
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #9aaebf;
    margin-bottom: 12px
}

.card-excerpt {
    font-size: 12px;
    color: #7a8a9a;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    font-size: 12px
}

.card-downloads {
    color: #ff9800;
    font-weight: 500
}

.card-link {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s
}

.card-link:hover {
    color: #e65100
}

.featured-section {
    background: linear-gradient(135deg, #fef9f0, #fff5e6);
    border-radius: 30px;
    padding: 50px 40px;
    margin: 60px 0 30px
}

.featured-header {
    text-align: center;
    margin-bottom: 40px
}

.featured-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 10px
}

.featured-header p {
    color: #ff9800;
    font-size: 16px
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px
}

.featured-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffe8d4
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 152, 0, 0.15);
    border-color: #ff9800
}

.featured-card a {
    text-decoration: none;
    color: inherit
}

.featured-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #fff8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px
}

.featured-card-icon img {
    max-width: 40px;
    max-height: 40px
}

.featured-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e2a3a;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 42px
}

.featured-link {
    display: inline-block;
    font-size: 13px;
    color: #ff9800;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff3e0;
    transition: all 0.2s
}

.featured-card:hover .featured-link {
    background: #ff9800;
    color: white
}

.search-header {
    background: linear-gradient(135deg, #fff9e6, #fff);
    border-radius: 20px;
    padding: 25px 30px;
    margin: 20px 0 30px;
    border-left: 5px solid #ff9800
}

.search-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #1e2a3a
}

.search-header p {
    color: #7a8a9a;
    font-size: 14px
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 35px 0
}

.software-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column
}

.software-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column
}

.software-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
    border-color: #e0e7ed
}

.software-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px 12px
}

.soft-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fc;
    border-radius: 14px;
    padding: 8px
}

.soft-icon img {
    max-width: 44px;
    max-height: 44px;
    width: auto;
    height: auto
}

.software-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4
}

.software-title a {
    text-decoration: none;
    color: #1e2a3a;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.software-title a:hover {
    color: #ff9800
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 22px;
    background: #fafbfd;
    font-size: 12px;
    color: #7a8a9a;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5
}

.software-excerpt {
    padding: 16px 22px 0;
    color: #5a6e7c;
    font-size: 13px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 65px
}

.software-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    font-size: 12px;
    color: #9aaebf;
    border-top: 1px solid #f5f5f5
}

.software-footer {
    padding: 0 22px 22px 22px
}

.detail-btn {
    display: block;
    background: #f8f9fc;
    color: #5a6e7c;
    text-align: center;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.25s;
    border: 1px solid #e8ecf2
}

.detail-btn:hover {
    background: #ff9800;
    color: white;
    border-color: #ff9800
}

.pagination {
    text-align: center;
    margin: 50px 0
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: white;
    border-radius: 40px;
    text-decoration: none;
    color: #1e2a3a;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid #e2e8f0
}

.pagination a:hover {
    background: #ff9800;
    color: white;
    border-color: #ff9800
}

.pagination .current {
    background: #ff9800;
    color: white;
    border-color: #ff9800
}

.site-footer {
    background: #1a252f;
    color: #b0bec5;
    margin-top: 70px;
    padding: 50px 0 25px;
    font-size: 14px
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a3a48
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600
}

.footer-widget p,
.footer-widget ul li {
    line-height: 1.8;
    color: #9aaebf
}

.footer-widget ul {
    list-style: none;
    padding: 0
}

.footer-widget ul li {
    margin-bottom: 10px
}

.footer-widget ul li a {
    color: #9aaebf;
    text-decoration: none;
    transition: color 0.2s
}

.footer-widget ul li a:hover {
    color: #ff9800
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #7e95ab
}

.footer-bottom p {
    margin: 6px 0
}

.single-download {
    background: white;
    padding: 40px 45px;
    border-radius: 24px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f8
}

.single-download h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1e2a3a;
    font-weight: 700
}

.single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px
}

.single-header h1 {
    margin: 0;
    font-size: 32px;
    flex: 1
}

.download-link {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    white-space: nowrap
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    color: white
}

.download-link.disabled {
    background: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none
}

.soft-meta {
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 20px;
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px 40px;
    border-left: 4px solid #ff9800
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.meta-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px
}

.meta-value {
    color: #5a6e7c;
    font-size: 14px
}

.meta-value a {
    color: #ff9800;
    text-decoration: none
}

.meta-value a:hover {
    text-decoration: underline
}

.soft-description {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.75;
    color: #2c3e50
}

.soft-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #ff9800
}

.screenshots-gallery {
    margin: 30px 0
}

.screenshots-gallery h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1e2a3a;
    padding-left: 12px;
    border-left: 4px solid #ff9800
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px
}

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: all 0.3s
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ff9800
}

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

.changelog {
    margin: 30px 0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px
}

.changelog h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e2a3a
}

.changelog-content {
    font-size: 14px;
    line-height: 1.7;
    color: #5a6e7c;
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eef2f6
}

.related-software {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eef2f6
}

.related-software h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1e2a3a;
    padding-left: 12px;
    border-left: 4px solid #ff9800
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px
}

.related-card {
    max-width: 100%
}

@media (max-width:992px) {
    .related-grid {
        gap: 20px
    }
}

@media (max-width:768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px
    }
}

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

    .related-card {
        padding: 15px 12px
    }

    .related-card-icon {
        width: 50px;
        height: 50px
    }

    .related-card-icon img,
    .related-card-icon span {
        max-width: 32px;
        max-height: 32px;
        font-size: 28px
    }

    .related-card h4 {
        font-size: 13px;
        min-height: 36px
    }

    .related-version {
        font-size: 11px
    }
}

@media (max-width:380px) {
    .related-grid {
        gap: 12px
    }

    .related-card {
        padding: 12px 8px
    }

    .related-card h4 {
        font-size: 12px
    }

    .related-version {
        font-size: 10px
    }
}

.related-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02)
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #ff9800
}

.related-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #f8f9fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center
}

.related-card-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto
}

.related-card-icon span {
    font-size: 32px
}

.related-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4
}

.related-card h4 a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.related-card h4 a:hover {
    color: #ff9800
}

.related-version {
    font-size: 12px;
    color: #9aaebf
}

.related-price-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 8px
}

.rating-meta-item {
    flex: 1;
    min-width: 200px
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.star-rating {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
    position: relative
}

.star {
    font-size: 20px;
    color: #ddd;
    transition: all 0.1s ease;
    position: relative;
    display: inline-block
}

.star.full {
    color: #ff9800
}

.star.half {
    position: relative;
    color: #ff9800
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ff9800
}

.star.half {
    color: #ddd
}

.star.hover-full {
    color: #ffc107 !important
}

.star.hover-half {
    position: relative;
    color: #ffc107 !important
}

.star.hover-half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107 !important
}

.star.hover-half {
    color: #ddd !important
}

.star.hover-empty {
    color: #ffe0b3 !important
}

.rating-text {
    font-size: 14px;
    color: #5a6e7c
}

.rating-count {
    font-size: 12px;
    color: #9aaebf;
    margin-left: 4px
}

.rated-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: normal
}

.star-rating[data-can-vote="false"] {
    cursor: default
}

.star-rating[data-can-vote="false"] .star {
    cursor: default
}

.method-section {
    margin: 35px 0;
    background: #f8fafc;
    border-radius: 20px;
    padding: 25px
}

.method-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #ff9800;
    color: #1e2a3a
}

.method-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.method-video {
    position: relative;
    width: 100%
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none
}

.method-text {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    color: #2c3e50;
    border: 1px solid #eef2f6
}

.method-text p {
    margin-bottom: 1em
}

.method-text ul,
.method-text ol {
    margin: 0.5em 0 0.5em 1.5em
}

.method-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0
}

.payment-preview {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    border: 1px solid #eef2f6
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd
}

.preview-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ff9800
}

.preview-badge {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px
}

.preview-content {
    color: #666;
    line-height: 1.7
}

.payment-content.purchased {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #4caf50
}

.payment-content.purchased h3 {
    color: #2e7d32;
    margin-bottom: 15px
}

.payment-content-body {
    line-height: 1.8
}

.payment-locked {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 25px 0;
    border: 1px solid #eef2f6
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px
}

.payment-locked h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e2a3a
}

.payment-locked p {
    color: #7a8a9a;
    margin-bottom: 20px
}

.payment-trigger-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s
}

.payment-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3)
}

.price-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px
}

.current-price {
    color: #ff9800;
    font-size: 24px;
    font-weight: 700
}

.sold-count {
    font-size: 12px;
    color: #999;
    margin-left: 8px
}

.payment-success-notice {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745
}

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    animation: modalFadeIn 0.3s ease
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px)
    }

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

.payment-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.payment-modal-header h3 {
    margin: 0;
    color: #1e2a3a
}

.payment-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s
}

.payment-modal-close:hover {
    color: #e74c3c
}

.payment-modal-body {
    padding: 25px
}

.product-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px
}

.product-info p {
    margin: 8px 0
}

.payment-method-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column
}

.payment-method {
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white
}

.payment-method.alipay {
    background: linear-gradient(135deg, #1677ff, #0a5fcf)
}

.payment-method.alipay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3)
}

.payment-method.wechat {
    background: linear-gradient(135deg, #07c160, #05a64e)
}

.payment-method.wechat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.3)
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-search {
    display: none
}

.desktop-search {
    display: block
}

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: 15px
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05)
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2)
}

.back-to-top.show {
    opacity: 1;
    visibility: visible
}

.back-to-top:hover {
    background: #f57c00;
    transform: translateY(-3px)
}

body.dark-mode {
    background: #0f1218;
    color: #e8edf5
}

body.dark-mode .single-download,
body.dark-mode .software-card,
body.dark-mode .software-item,
body.dark-mode .featured-card,
body.dark-mode .related-card {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .single-download h1,
body.dark-mode .software-title a,
body.dark-mode .card-title a,
body.dark-mode .related-card h4 a,
body.dark-mode .featured-card h3 {
    color: #ffffff
}

body.dark-mode .single-download h1:hover,
body.dark-mode .software-title a:hover,
body.dark-mode .card-title a:hover,
body.dark-mode .related-card h4 a:hover {
    color: #ffb347
}

body.dark-mode .soft-meta,
body.dark-mode .method-section,
body.dark-mode .changelog,
body.dark-mode .payment-preview,
body.dark-mode .payment-locked {
    background: #131b2a;
    border-color: #2d3a4e
}

body.dark-mode .meta-label {
    color: #d4e0ec;
    font-weight: 600
}

body.dark-mode .meta-value {
    color: #b8c5d6
}

body.dark-mode .software-meta {
    background: #131b2a;
    border-top-color: #2d3a4e;
    border-bottom-color: #2d3a4e;
    color: #b8c5d6
}

body.dark-mode .software-meta .version,
body.dark-mode .software-meta .size,
body.dark-mode .software-meta .date {
    color: #b8c5d6
}

body.dark-mode .soft-description {
    color: #d4e0ec
}

body.dark-mode .soft-description h3 {
    color: #ffffff
}

body.dark-mode .software-excerpt {
    color: #b8c5d6
}

body.dark-mode .card-excerpt {
    color: #b0bec9
}

body.dark-mode .method-text,
body.dark-mode .changelog-content {
    background: #1e2a3f;
    border-color: #2d3a4e;
    color: #d4e0ec
}

body.dark-mode .method-text p,
body.dark-mode .changelog-content p {
    color: #d4e0ec
}

body.dark-mode .category-title a {
    color: #ffffff
}

body.dark-mode .category-title a:hover {
    color: #ffb347
}

body.dark-mode .category-desc {
    color: #b8c5d6
}

body.dark-mode .category-header {
    border-bottom-color: #2d3a4e
}

body.dark-mode .breadcrumb-wrapper {
    background: #131b2a;
    border-bottom-color: #2d3a4e
}

body.dark-mode .breadcrumb {
    color: #b8c5d6
}

body.dark-mode .breadcrumb a {
    color: #b8c5d6
}

body.dark-mode .breadcrumb a:hover {
    color: #ffb347
}

body.dark-mode .breadcrumb-current {
    color: #ffffff
}

body.dark-mode .breadcrumb .separator {
    color: #5a6e8a
}

body.dark-mode .search-header {
    background: #131b2a;
    border-left-color: #ff9800
}

body.dark-mode .search-header h2 {
    color: #ffffff
}

body.dark-mode .search-header p {
    color: #b8c5d6
}

body.dark-mode .pagination a,
body.dark-mode .pagination span {
    background: #1a2332;
    border-color: #2d3a4e;
    color: #d4e0ec
}

body.dark-mode .pagination a:hover {
    background: #ff9800;
    border-color: #ff9800;
    color: white
}

body.dark-mode .pagination .current {
    background: #ff9800;
    border-color: #ff9800;
    color: white
}

body.dark-mode .detail-btn {
    background: #131b2a;
    border-color: #2d3a4e;
    color: #b8c5d6
}

body.dark-mode .detail-btn:hover {
    background: #ff9800;
    border-color: #ff9800;
    color: white
}

body.dark-mode .card-meta {
    color: #9aabc0
}

body.dark-mode .card-footer {
    border-top-color: #2d3a4e
}

body.dark-mode .card-downloads {
    color: #ffb347
}

body.dark-mode .card-link {
    color: #ffb347
}

body.dark-mode .card-link:hover {
    color: #ffcc80
}

body.dark-mode .software-stats {
    border-top-color: #2d3a4e;
    color: #b8c5d6
}

body.dark-mode .featured-section {
    background: linear-gradient(135deg, #1a1f2e, #13182a)
}

body.dark-mode .featured-header h2 {
    color: #ffffff
}

body.dark-mode .featured-header p {
    color: #ffb347
}

body.dark-mode .featured-card {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .featured-card .featured-link {
    background: #2d3a4e;
    color: #ffb347
}

body.dark-mode .featured-card:hover .featured-link {
    background: #ff9800;
    color: white
}

body.dark-mode .rating-text {
    color: #b8c5d6
}

body.dark-mode .rating-count {
    color: #9aabc0
}

body.dark-mode .star.empty {
    color: #4a5a72
}

body.dark-mode .rated-badge {
    background: #4caf50;
    color: white
}

body.dark-mode .gallery-item {
    border-color: #2d3a4e
}

body.dark-mode .screenshots-gallery h3 {
    color: #ffffff
}

body.dark-mode .related-software {
    border-top-color: #2d3a4e
}

body.dark-mode .related-software h3 {
    color: #ffffff
}

body.dark-mode .related-card-icon {
    background: #131b2a
}

body.dark-mode .related-version {
    color: #9aabc0
}

body.dark-mode .payment-preview .preview-header h3 {
    color: #ffb347
}

body.dark-mode .preview-content {
    color: #b8c5d6
}

body.dark-mode .payment-locked h4 {
    color: #ffffff
}

body.dark-mode .payment-locked p {
    color: #b8c5d6
}

body.dark-mode .payment-content.purchased {
    background: linear-gradient(135deg, #1a3a2a, #0f281c)
}

body.dark-mode .payment-content.purchased h3 {
    color: #81c784
}

body.dark-mode .payment-content-body {
    color: #d4e0ec
}

body.dark-mode .original-price {
    color: #9aabc0
}

body.dark-mode .sold-count {
    color: #9aabc0
}

body.dark-mode .payment-success-notice {
    background: #1a3a2a;
    color: #81c784;
    border-left-color: #4caf50
}

body.dark-mode .payment-modal-content {
    background: #1a2332
}

body.dark-mode .payment-modal-header {
    border-bottom-color: #2d3a4e
}

body.dark-mode .payment-modal-header h3 {
    color: #ffffff
}

body.dark-mode .product-info {
    background: #131b2a
}

body.dark-mode .product-info p {
    color: #d4e0ec
}

body.dark-mode .method-section h3 {
    color: #ffffff
}

body.dark-mode .changelog h3 {
    color: #ffffff
}

body.dark-mode .site-footer {
    background: #0a0f16
}

body.dark-mode .footer-widget h3 {
    color: #ffffff
}

body.dark-mode .footer-widget p,
body.dark-mode .footer-widget ul li,
body.dark-mode .footer-widget ul li a {
    color: #b8c5d6
}

body.dark-mode .footer-widget ul li a:hover {
    color: #ffb347
}

body.dark-mode .footer-bottom {
    color: #7e8ea8
}

body.dark-mode .home-hero {
    background: linear-gradient(135deg, #0f1a24, #0a121a)
}

body.dark-mode .search-form {
    background: rgba(255, 255, 255, 0.08)
}

body.dark-mode .search-input {
    color: #ffffff
}

body.dark-mode .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5)
}

body.dark-mode .lightbox-caption {
    color: #cccccc
}

body.dark-mode .software-grid>p {
    color: #b8c5d6
}

@media (max-width:1200px) {
    .container {
        padding: 0 20px
    }
}

@media (max-width:992px) {
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        position: relative
    }

    .menu-toggle {
        display: block;
        order: 2
    }

    .dark-mode-toggle {
        order: 3
    }

    .logo-area {
        order: 1;
        flex: 1
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #1a252f;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 70px 20px 30px;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2)
    }

    .nav-wrapper.active {
        left: 0
    }

    .nav-wrapper.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        pointer-events: auto
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0
    }

    .primary-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1)
    }

    .primary-menu li a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: none
    }

    .primary-menu li a:hover,
    .primary-menu .current-menu-item a {
        border-bottom: none;
        color: #ff9800;
        padding-left: 10px
    }

    .mobile-search {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1)
    }

    .mobile-search .search-form {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 40px;
        display: flex;
        padding: 4px 4px 4px 18px
    }

    .mobile-search .search-input {
        background: transparent;
        border: none;
        flex: 1;
        padding: 10px 0;
        color: white;
        outline: none
    }

    .mobile-search .search-input::placeholder {
        color: rgba(255, 255, 255, 0.6)
    }

    .mobile-search .search-btn {
        background: #ff9800;
        border: none;
        padding: 8px 20px;
        border-radius: 40px;
        color: white;
        cursor: pointer
    }

    .desktop-search {
        display: none
    }

    .category-header {
        flex-direction: column;
        gap: 12px
    }

    .category-title a::after {
        bottom: -8px
    }

    .category-more {
        align-self: flex-start
    }

    .category-desc {
        width: 100%;
        padding-left: 0;
        margin-top: 8px
    }
}

@media (max-width:768px) {
    .home-hero {
        padding: 40px 25px;
        margin: 20px 0 30px
    }

    .hero-title {
        font-size: 32px
    }

    .hero-subtitle {
        font-size: 14px
    }

    .hero-search-form {
        flex-direction: column;
        gap: 12px
    }

    .hero-search-btn {
        padding: 12px
    }

    .category-software-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px
    }

    .software-grid {
        gap: 18px;
        grid-template-columns: 1fr
    }

    .single-download {
        padding: 25px
    }

    .single-download h1 {
        font-size: 26px
    }

    .single-header {
        flex-direction: column;
        align-items: flex-start
    }

    .download-link {
        width: 100%;
        text-align: center
    }

    .soft-meta {
        flex-direction: column;
        gap: 12px
    }

    .featured-section {
        padding: 40px 25px
    }

    .featured-header h2 {
        font-size: 28px
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 15px
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px
    }

    .method-section {
        padding: 18px
    }

    .method-section h3 {
        font-size: 18px
    }

    .method-text {
        padding: 15px;
        font-size: 14px
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
    }

    .gallery-item img {
        height: 120px
    }

    .meta-item {
        width: calc(50% - 10px)
    }

    .rating-meta-item {
        width: 100%
    }
}

@media (max-width:600px) {
    .logo-area {
        justify-content: center;
        text-align: center
    }

    .site-description {
        border-left: none;
        padding-left: 0
    }

    .primary-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center
    }

    .primary-menu li a {
        padding: 8px 0
    }

    .breadcrumb {
        font-size: 12px
    }

    .breadcrumb .separator {
        margin: 0 5px
    }

    .category-software-grid {
        grid-template-columns: 1fr
    }

    .featured-grid {
        grid-template-columns: 1fr
    }

    .search-header {
        padding: 18px 20px
    }

    .search-header h2 {
        font-size: 18px
    }

    .meta-item {
        width: 100%
    }

    .rating-container {
        flex-direction: column;
        align-items: flex-start
    }
}

@media (max-width:480px) {
    .nav-wrapper {
        width: 85%;
        max-width: 280px
    }

    .logo {
        font-size: 18px
    }

    .site-description {
        font-size: 10px
    }
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

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

.category-section,
.featured-section {
    animation: fadeInUp 0.5s ease-out
}

.software-card {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both
}

.software-card:nth-child(1) {
    animation-delay: 0.05s
}

.software-card:nth-child(2) {
    animation-delay: 0.1s
}

.software-card:nth-child(3) {
    animation-delay: 0.15s
}

.software-card:nth-child(4) {
    animation-delay: 0.2s
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease
}

img.lazy.loaded {
    opacity: 1
}

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease
}

.image-lightbox.active {
    display: block;
    opacity: 1
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer
}

.lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    text-align: center
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3)
}

.lightbox-caption {
    margin-top: 12px;
    color: #ccc;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 32px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1)
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none
}

.lightbox-prev {
    left: -70px
}

.lightbox-next {
    right: -70px
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 152, 0, 0.7);
    transform: translateY(-50%) scale(1.05)
}

@media (max-width:768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px
    }

    .lightbox-prev {
        left: -50px
    }

    .lightbox-next {
        right: -50px
    }

    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 28px
    }
}

@media (max-width:480px) {

    .lightbox-prev,
    .lightbox-next {
        width: 32px;
        height: 32px;
        font-size: 24px
    }

    .lightbox-prev {
        left: -40px
    }

    .lightbox-next {
        right: -40px
    }

    .lightbox-close {
        top: -30px;
        width: 30px;
        height: 30px;
        font-size: 24px
    }
}

body.dark-mode .lightbox-caption {
    color: #ddd
}

.gallery-item,
.gallery-item img,
.soft-description img,
.method-text img {
    cursor: pointer
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0
}

.video-wrapper iframe[src*="bilibili"] {
    border-radius: 12px;
    background: #000
}

.software-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02)
}

.software-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    border-color: #ff9800
}

.card-inner {
    padding: 24px 20px 20px;
    text-align: center
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: #f8f9fc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.card-icon img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto
}

.icon-emoji {
    font-size: 36px
}

.paid-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 20px;
    font-weight: bold
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 44px
}

.card-title a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-title a:hover {
    color: #ff9800
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #9aaebf;
    margin-bottom: 12px
}

.card-version,
.card-size {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.card-excerpt {
    font-size: 12px;
    color: #7a8a9a;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    font-size: 12px
}

.card-downloads {
    color: #ff9800;
    font-weight: 500
}

.card-link {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s
}

.card-link:hover {
    color: #e65100
}

.archive-header {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 30px 35px;
    margin: 20px 0 30px;
    border-left: 5px solid #ff9800;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04)
}

.archive-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #1e2a3a;
    font-weight: 700
}

.archive-description {
    color: #7a8a9a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0
}

.category-software-grid,
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 30px 0
}

.no-results {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 24px;
    grid-column: 1/-1;
    border: 1px solid #eef2f6
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px
}

.no-results h3 {
    font-size: 24px;
    color: #1e2a3a;
    margin-bottom: 12px
}

.no-results p {
    color: #7a8a9a;
    margin-bottom: 25px
}

.no-results-search {
    max-width: 450px;
    margin: 0 auto
}

.no-results-search .search-form {
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border: 1px solid #eef2f6;
    border-radius: 50px;
    overflow: hidden;
    padding: 0
}

.no-results-search .search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    color: #1e2a3a;
    outline: none
}

.no-results-search .search-input::placeholder {
    color: #aaa
}

.no-results-search .search-btn {
    background: #ff9800;
    border: none;
    padding: 14px 28px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
    white-space: nowrap
}

.no-results-search .search-btn:hover {
    background: #f57c00
}

body.dark-mode .no-results {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .no-results h3 {
    color: #ffffff
}

body.dark-mode .no-results p {
    color: #b8c5d6
}

body.dark-mode .no-results-search .search-form {
    background: #131b2a;
    border-color: #2d3a4e
}

body.dark-mode .no-results-search .search-input {
    color: #ffffff
}

body.dark-mode .no-results-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5)
}

body.dark-mode .no-results-search .search-btn {
    background: #ff9800;
    color: white
}

body.dark-mode .no-results-search .search-btn:hover {
    background: #f57c00
}

@media (max-width:768px) {

    .category-software-grid,
    .software-grid {
        gap: 18px;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
    }

    .archive-header {
        padding: 20px 25px
    }

    .archive-title {
        font-size: 22px
    }

    .archive-description {
        font-size: 13px
    }
}

@media (max-width:480px) {

    .category-software-grid,
    .software-grid {
        grid-template-columns: 1fr
    }
}

.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit
}

.card-link-wrapper:hover {
    text-decoration: none
}

.related-card-link {
    display: block;
    text-decoration: none;
    color: inherit
}

.related-card-link:hover {
    text-decoration: none
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1
}

.title-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 16px;
    background: #f8f9fc;
    padding: 8px;
    border: 1px solid #eef2f6
}

.title-icon-emoji {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fc;
    border-radius: 16px;
    border: 1px solid #eef2f6
}

.single-download h1 {
    margin: 0;
    flex: 1
}

.card-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 16px;
    background: #f8f9fc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s ease
}

.software-card:hover .card-icon {
    transform: scale(1.05)
}

.card-icon img {
    max-width: 55px;
    max-height: 55px;
    width: auto;
    height: auto
}

.icon-emoji {
    font-size: 42px
}

.featured-card-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px;
    background: #fff8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px
}

.featured-card-icon img {
    max-width: 50px;
    max-height: 50px
}

.related-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #f8f9fc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center
}

.related-card-icon img {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto
}

.related-card-icon span {
    font-size: 38px
}

body.dark-mode .title-icon {
    background: #131b2a;
    border-color: #2d3a4e
}

body.dark-mode .title-icon-emoji {
    background: #131b2a;
    border-color: #2d3a4e
}

@media (max-width:768px) {
    .title-with-icon {
        gap: 12px
    }

    .title-icon,
    .title-icon-emoji {
        width: 48px;
        height: 48px;
        font-size: 36px
    }

    .title-icon-emoji {
        font-size: 36px
    }

    .single-download h1 {
        font-size: 24px
    }

    .card-icon {
        width: 75px;
        height: 75px
    }

    .card-icon img {
        max-width: 48px;
        max-height: 48px
    }

    .icon-emoji {
        font-size: 38px
    }
}

@media (max-width:480px) {
    .title-with-icon {
        flex-direction: column;
        text-align: center;
        gap: 10px
    }

    .title-icon,
    .title-icon-emoji {
        width: 55px;
        height: 55px
    }

    .title-icon-emoji {
        font-size: 32px
    }

    .single-download h1 {
        text-align: center
    }
}

.featured-card-link {
    display: block;
    text-decoration: none;
    color: inherit
}

.featured-card-link:hover {
    text-decoration: none
}

.featured-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffe8d4
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 152, 0, 0.15);
    border-color: #ff9800
}

.featured-card-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px;
    background: #fff8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    position: relative;
    transition: transform 0.2s ease
}

.featured-card:hover .featured-card-icon {
    transform: scale(1.05)
}

.featured-card-icon img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto
}

.featured-card-icon span {
    font-size: 38px
}

.featured-paid-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 20px;
    font-weight: bold
}

.featured-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e2a3a;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 42px
}

.featured-link {
    display: inline-block;
    font-size: 13px;
    color: #ff9800;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff3e0;
    transition: all 0.2s
}

.featured-card:hover .featured-link {
    background: #ff9800;
    color: white
}

body.dark-mode .featured-card {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .featured-card-icon {
    background: #131b2a
}

body.dark-mode .featured-card h3 {
    color: #ffffff
}

body.dark-mode .featured-link {
    background: #2d3a4e;
    color: #ffb347
}

body.dark-mode .featured-card:hover .featured-link {
    background: #ff9800;
    color: white
}

.social-links {
    margin-top: 10px
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    color: #ecf0f1
}

.social-icon:hover {
    background: #ff9800;
    color: white;
    transform: translateY(-2px)
}

body.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.08)
}

body.dark-mode .social-icon:hover {
    background: #ff9800
}

.footer-custom {
    margin-top: 10px;
    font-size: 12px;
    color: #9aaebf
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 13px;
    color: #7e95ab
}

.footer-bottom p {
    margin: 6px 0
}

.footer-bottom a[href*="beian.miit.gov.cn"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9aaebf;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    letter-spacing: 0.5px
}

.footer-bottom a[href*="beian.miit.gov.cn"]::before {
    content: "🛡️";
    font-size: 12px;
    opacity: 0.7
}

.footer-bottom a[href*="beian.miit.gov.cn"]:hover {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.12);
    transform: translateY(-1px)
}

.related-software {
    margin-top: 50px;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 2px solid #eef2f6;
    position: relative;
    overflow: visible
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap
}

.related-software h3 {
    font-size: 22px;
    color: #1e2a3a;
    padding-left: 12px;
    border-left: 4px solid #ff9800;
    margin: 0
}

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

.related-prev,
.related-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f2f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #5a6e7c
}

.related-prev:hover:not(:disabled),
.related-next:hover:not(:disabled) {
    background: #ff9800;
    color: white
}

.related-prev:disabled,
.related-next:disabled {
    opacity: 0.4;
    cursor: not-allowed
}

.related-carousel-container {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 15px
}

.related-carousel {
    display: flex;
    flex-direction: row;
    gap: 25px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
    align-items: stretch
}

.related-card {
    flex: 0 0 auto;
    width: calc(25% - 19px);
    min-width: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    overflow: hidden
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #ff9800;
    z-index: 10;
    position: relative
}

.related-carousel-container .related-card {
    margin-bottom: 0
}

.related-card-link {
    display: block;
    text-decoration: none;
    color: inherit
}

.related-card-link:hover {
    text-decoration: none
}

.related-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #f8f9fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center
}

.related-card-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto
}

.related-card-icon span {
    font-size: 32px
}

.related-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.related-card h4 a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s
}

.related-card h4 a:hover {
    color: #ff9800
}

.related-version {
    font-size: 12px;
    color: #9aaebf
}

.related-price-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 8px
}

@media (max-width:1200px) {
    .related-card {
        width: calc(33.333% - 17px)
    }
}

@media (max-width:900px) {
    .related-card {
        width: calc(50% - 13px)
    }
}

@media (max-width:600px) {
    .related-card {
        width: calc(100% - 0px)
    }

    .related-nav {
        margin-top: 10px
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .related-carousel-container {
        padding-top: 8px;
        padding-bottom: 12px
    }
}

body.dark-mode .related-card {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .related-card-icon {
    background: #131b2a
}

body.dark-mode .related-card h4 a {
    color: #ffffff
}

body.dark-mode .related-card h4 a:hover {
    color: #ffb347
}

body.dark-mode .related-version {
    color: #9aabc0
}

body.dark-mode .related-prev,
body.dark-mode .related-next {
    background: #2d3a4e;
    color: #b8c5d6
}

body.dark-mode .related-prev:hover:not(:disabled),
body.dark-mode .related-next:hover:not(:disabled) {
    background: #ff9800;
    color: white
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    position: relative
}

.primary-menu li {
    position: relative
}

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a252f;
    border-radius: 12px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1)
}

.primary-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(-10px)
}

.primary-menu .sub-menu li:hover>.sub-menu {
    transform: translateX(0)
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #ecf0f1;
    border-bottom: none;
    white-space: nowrap
}

.primary-menu .sub-menu li a:hover {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    padding-left: 25px
}

.menu-item-has-children>a {
    position: relative;
    padding-right: 20px !important
}

.menu-item-has-children>a::after {
    display: none
}

.menu-dropdown-icon {
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s
}

.menu-item-has-children:hover .menu-dropdown-icon {
    transform: rotate(180deg)
}

.sub-menu .menu-item-has-children .menu-dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%)
}

.sub-menu .menu-item-has-children:hover .menu-dropdown-icon {
    transform: translateY(-50%) rotate(90deg)
}

@media (max-width:992px) {
    .menu-dropdown-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%)
    }

    .menu-item-has-children>a {
        position: relative;
        padding-right: 35px !important
    }

    .sub-menu .menu-item-has-children .menu-dropdown-icon {
        transform: translateY(-50%)
    }

    .sub-menu .menu-item-has-children.active .menu-dropdown-icon {
        transform: translateY(-50%) rotate(180deg)
    }
}

.sub-categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eef2f6
}

.sub-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #f8f9fc;
    border-radius: 30px;
    font-size: 13px;
    color: #5a6e7c;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eef2f6
}

.sub-cat-link:hover {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
    transform: translateY(-2px)
}

.sub-cat-count {
    font-size: 11px;
    color: #9aaebf
}

.sub-cat-link:hover .sub-cat-count {
    color: rgba(255, 255, 255, 0.8)
}

body.dark-mode .sub-categories-nav {
    border-bottom-color: #2d3a4e
}

body.dark-mode .sub-cat-link {
    background: #131b2a;
    border-color: #2d3a4e;
    color: #b8c5d6
}

body.dark-mode .sub-cat-link:hover {
    background: #ff9800;
    color: white
}

body.dark-mode .sub-cat-count {
    color: #7e8ea8
}

@media (max-width:768px) {
    .sub-categories-nav {
        gap: 8px;
        margin-bottom: 18px
    }

    .sub-cat-link {
        padding: 4px 12px;
        font-size: 12px
    }
}

@media (max-width:480px) {
    .sub-categories-nav {
        gap: 6px
    }

    .sub-cat-link {
        padding: 4px 10px;
        font-size: 11px
    }
}

.subcategory-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px
}

.subcategory-header h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1e2a3a;
    padding-left: 12px;
    border-left: 4px solid #ff9800
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px
}

.subcategory-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eef2f6
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ff9800
}

.subcategory-link {
    text-decoration: none;
    color: inherit;
    display: block
}

.subcategory-icon {
    font-size: 36px;
    margin-bottom: 12px
}

.subcategory-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1e2a3a
}

.subcategory-count {
    font-size: 12px;
    color: #ff9800;
    font-weight: 500;
    margin: 0
}

.subcategory-desc {
    font-size: 12px;
    color: #7a8a9a;
    margin-top: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body.dark-mode .subcategory-section {
    background: #131b2a
}

body.dark-mode .subcategory-card {
    background: #1a2332;
    border-color: #2d3a4e
}

body.dark-mode .subcategory-card h4 {
    color: #ffffff
}

body.dark-mode .subcategory-desc {
    color: #b8c5d6
}

@media (max-width:768px) {
    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px
    }

    .subcategory-card {
        padding: 15px
    }

    .subcategory-icon {
        font-size: 28px
    }

    .subcategory-card h4 {
        font-size: 14px
    }
}

.mobile-sub-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s
}

.mobile-sub-toggle.active {
    transform: translateY(-50%) rotate(180deg)
}

@media (min-width:993px) {
    .mobile-sub-toggle {
        display: none
    }
}

.mobile-sub-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    padding: 12px;
    z-index: 10;
    transition: transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.mobile-sub-toggle:hover {
    background: rgba(255, 255, 255, 0.1)
}

.mobile-sub-toggle.active {
    transform: translateY(-50%) rotate(180deg)
}

@media (max-width:992px) {
    .primary-menu .menu-item-has-children>a {
        padding-right: 50px !important;
        position: relative
    }
}

@media (min-width:993px) {
    .mobile-sub-toggle {
        display: none
    }
}

/* 重新设计的软件卡片 - 信息更丰富，布局更紧凑 */
.software-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.software-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.12);
    border-color: #ff9800;
}

.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 头部区域：图标 + 标题 + 付费标签 */
.card-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #f8f9fc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.icon-emoji {
    font-size: 32px;
}

.paid-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
}

.card-title-area {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.card-title a {
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: #ff9800;
}

.card-category {
    display: inline-block;
    font-size: 11px;
    color: #ff9800;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
}

.card-category:hover {
    background: #ff9800;
    color: white;
}

/* 信息网格区域 - 2x2 布局 */
.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5a6e7c;
}

.info-item .info-label {
    font-weight: 500;
    color: #2c3e50;
}

.info-item .info-value {
    color: #7a8a9a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章摘要 - 3行显示 */
.card-excerpt {
    font-size: 13px;
    color: #7a8a9a;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

/* 底部区域 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #f0f2f5;
}

.card-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ff9800;
    font-weight: 500;
}

.card-link {
    font-size: 13px;
    color: #ff9800;
    font-weight: 500;
    transition: all 0.2s;
}

.card-link:hover {
    color: #e65100;
    transform: translateX(2px);
}

/* 网格布局调整 - 更合理的列数 */
.category-software-grid,
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-software-grid,
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .card-inner {
        padding: 16px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-icon img {
        max-width: 34px;
        max-height: 34px;
    }
    
    .icon-emoji {
        font-size: 28px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-info-grid {
        padding: 10px 12px;
        gap: 8px 12px;
    }
    
    .info-item {
        font-size: 11px;
    }
    
    .card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .category-software-grid,
    .software-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 暗色模式适配 */
body.dark-mode .software-card {
    background: #1a2332;
    border-color: #2d3a4e;
}

body.dark-mode .card-title a {
    color: #ffffff;
}

body.dark-mode .card-title a:hover {
    color: #ffb347;
}

body.dark-mode .card-info-grid {
    background: #131b2a;
}

body.dark-mode .info-item {
    color: #b8c5d6;
}

body.dark-mode .info-item .info-label {
    color: #d4e0ec;
}

body.dark-mode .info-item .info-value {
    color: #9aabc0;
}

body.dark-mode .card-excerpt {
    color: #b0bec9;
}

body.dark-mode .card-footer {
    border-top-color: #2d3a4e;
}

body.dark-mode .card-category {
    background: #2d3a4e;
    color: #ffb347;
}




/* ========================================
   软件卡片样式 - 完整修复版
   ======================================== */

/* 卡片容器 */
.software-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.software-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #ff9800;
}

.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 封面区域 */
.card-cover {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.card-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.card-cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 42, 58, 0.7) 0%, rgba(15, 26, 36, 0.85) 100%);
}

/* 图标区域 */
.card-icon-wrapper {
    position: absolute;
    bottom: -20px;
    left: 16px;
    z-index: 5;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.2);
    position: relative;
}

.card-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.icon-emoji {
    font-size: 32px;
}

.paid-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
}

.paid-badge::before {
    content: '💰';
    font-size: 10px;
}

/* 分类标签 */
.card-category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.card-category-tag a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.card-category-tag a:hover {
    background: #ff9800;
}

/* 内容区域 */
.card-content {
    padding: 24px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 标题 */
.card-title {
    margin-bottom: 8px;
}

.card-title a {
    font-size: 16px;
    font-weight: 700;
    color: #1e2a3a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 44px;
}

.card-title a:hover {
    color: #ff9800;
}

/* 评分区域 */
.card-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    font-size: 13px;
    color: #ddd;
}

.rating-stars .star.filled {
    color: #ff9800;
}

.rating-stars .star.half-filled {
    position: relative;
    color: #ddd;
}

.rating-stars .star.half-filled::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ff9800;
}

.rating-score {
    font-size: 12px;
    font-weight: 600;
    color: #ff9800;
}

.rating-count {
    font-size: 11px;
    color: #9aaebf;
}

/* 信息行 - 使用flex网格 */
.card-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.info-chip .chip-icon {
    font-size: 12px;
}

.info-chip .chip-label {
    color: #7a8a9a;
}

.info-chip .chip-value {
    color: #2c3e50;
    font-weight: 500;
}

/* 摘要 */
.card-excerpt {
    font-size: 12px;
    color: #7a8a9a;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
}

/* 底部操作区 */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.download-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ff9800;
    font-weight: 500;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ff9800;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #e68900;
    transform: translateX(2px);
}

.btn-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.view-btn:hover .btn-arrow {
    transform: translateX(2px);
}

/* 网格布局 */
.category-software-grid,
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .category-software-grid,
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .card-cover {
        height: 100px;
    }
    
    .card-icon {
        width: 52px;
        height: 52px;
    }
    
    .card-icon img {
        max-width: 34px;
        max-height: 34px;
    }
    
    .icon-emoji {
        font-size: 28px;
    }
    
    .card-content {
        padding: 22px 12px 12px 12px;
    }
    
    .card-title a {
        font-size: 15px;
        min-height: 40px;
    }
    
    .card-info-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        padding: 8px 10px;
    }
    
    .info-chip {
        font-size: 10px;
    }
    
    .card-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
        min-height: 44px;
    }
    
    .view-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-software-grid,
    .software-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 暗色模式 */
body.dark-mode .software-card {
    background: #1a2332;
    border-color: #2d3a4e;
}

body.dark-mode .card-icon {
    background: #1a2332;
    border-color: #2d3a4e;
}

body.dark-mode .card-title a {
    color: #ffffff;
}

body.dark-mode .card-title a:hover {
    color: #ffb347;
}

body.dark-mode .card-info-row {
    background: #131b2a;
}

body.dark-mode .info-chip .chip-label {
    color: #9aabc0;
}

body.dark-mode .info-chip .chip-value {
    color: #e8edf5;
}

body.dark-mode .card-excerpt {
    color: #b0bec9;
}

body.dark-mode .card-actions {
    border-top-color: #2d3a4e;
}

body.dark-mode .rating-count {
    color: #7e8ea8;
}

body.dark-mode .card-category-tag a {
    background: rgba(0, 0, 0, 0.6);
}


/* 截图缩略图样式 - 确保图片正常显示 */
.screenshots-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.screenshots-gallery .gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8f9fc;
}

.screenshots-gallery .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ff9800;
}

.screenshots-gallery .gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* 暗色模式适配 */
body.dark-mode .screenshots-gallery .gallery-item {
    background: #131b2a;
    border-color: #2d3a4e;
}

body.dark-mode .screenshots-gallery .gallery-item img {
    opacity: 0.9;
}