:root {
    --primary: #2c6fd1;
    --primary-dark: #1a56b5;
    --primary-light: #e3f2fd;
    --secondary: #4caf50;
    --accent: #ff9800;
    --accent-light: #fff3e0;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gradient-start: #2c6fd1;
    --gradient-end: #4caf50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f9fbfd 0%, #e6f0ff 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    padding: 0 10px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 24px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.navbar-nav {
    display: flex;
    gap: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    animation: underlineGrow 0.3s ease-out;
}

/* 头部区域 */
.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    animation: fadeInDown 0.8s ease-out;
}

.header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 15px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave .shape-fill {
    fill: #f9fbfd;
}

/* 主内容区域 */
main {
    position: relative;
    margin-top: -40px;
    z-index: 10;
    padding-bottom: 60px;
}

/* 筛选器 */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.filter-btn .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 软件网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.software-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.software-card.hidden {
    display: none;
}

.software-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.software-header {
    padding: 25px 20px 15px;
    text-align: center;
    background: linear-gradient(to bottom, var(--primary-light), white);
    position: relative;
}

.software-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.software-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.software-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.software-icon i {
    font-size: 40px;
    color: var(--primary);
}

.software-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.software-subtitle {
    color: var(--gray);
    font-size: 1rem;
}

.software-content {
    padding: 20px;
    flex-grow: 1;
}

.software-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.software-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--light);
    border-radius: 8px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.software-footer {
    padding: 20px;
    background: var(--light);
    border-top: 1px solid var(--light-gray);
}

.download-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(44, 111, 209, 0.3);
    transform: translateY(-3px);
}

.download-btn i {
    margin-right: 8px;
}

/* 推荐部分 */
.featured-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.page-disclaimer {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 12px 16px;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

/* 底部区域 */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a i {
    width: 18px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .software-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}