#header-container .nav{
   background: transparent;
   transition: all 0.2s ease;
}

#header-container .nav:hover {
  background: url("/images/nav-bg.jpg") no-repeat center / cover !important;
}

#header-container .nav .menu .split-line {
    color: transparent;
}

#header-container .nav:hover .menu .split-line{
    color: var(--color-primary-11);
}

.download-bg{
    box-sizing: border-box;
    width: 100%;
    height: 32vh;
    min-height: 300px;
    position: relative;
    border-top: 1px solid transparent;
}

.download-bg .bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.download-bg .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.download-bg .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    color: #ffffff;
    z-index: 1;
}

.download-bg  .title-section {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #b0b0b0;
    font-size: 18px;
}

:root {
    --primary-color: #cf4449;
    --primary-dark: #b03a3f;
    --primary-light: #e66a6f;
    --accent-color: #3a86ff;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --border-color: #e1e5eb;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

.download-container {
    width: 80vw;
    margin: 0 auto;
    border-top: 1px solid transparent;
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
}

.main-content {
    padding: 30px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* 产品卡片样式 */
.product-card {
    width: 190px;
    height: 100px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 水波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(207, 68, 73, 0.2);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.product-card.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(207, 68, 73, 0.3);
}

.product-card.active h3, 
.product-card.active p {
    color: white;
}

.product-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.product-card p {
    font-size: 16px;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.versions-section {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.sort-container {
    position: relative;
    display: inline-block;
    min-width: 180px;
}

.sort-select {
    appearance: none;
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: white;
    font-size: 15px;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    width: 100%;
}

.sort-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(207, 68, 73, 0.1);
}

.sort-container::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
}

.sort-select option {
    padding: 10px 15px;
    background: white;
    color: var(--text-dark);
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
}

.versions-table th,
.versions-table td {
    padding: 15px;
    text-align: center;
}

.versions-table tr:nth-child(even) {
    border-bottom: 1px solid #f2f2f2;
}

.versions-table th {
    background: rgba(207, 68, 73, 0.05);
    color: var(--text-medium);
    font-weight: 600;
}

.version-name {
    font-weight: 600;
    color: var(--text-dark);
}

.version-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.type-official {
    background: rgba(58, 134, 255, 0.1);
    color: var(--accent-color);
}

.type-free {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.type-overseas {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.version-size, .version-date {
    color: var(--text-medium);
}

.version-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(207, 68, 73, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(207, 68, 73, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(207, 68, 73, 0.4);
}

.changelog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0;
    background: var(--light-bg);
}

.changelog-content.open {
    max-height: 500px;
    padding: 20px;
}

.changelog-inner {
    line-height: 1.8;
    color: var(--text-medium);
    text-align: left;
}

.changelog-inner li {
   list-style-type: disc;
   list-style-position: inside;
   text-indent: 2em;
}

.changelog-inner .title:first-child {
    margin-top: 0;
}

.changelog-inner .title {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 8px;
}

.changelog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: var(--transition);
}

.changelog-link:hover {
    text-decoration: underline;
}

/* 移动端优化 */
@media (max-width: 1200px) {
    .download-container {
        width: 88vw;
    }
    .products-container {
        gap: 15px;
    }
    .product-card {
        width: 160px;
        height: 90px;
    }
}

@media (max-width: 992px) {
     .download-container {
        width: 90vw;
    }
    .product-card {
        width: 140px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .download-container {
        width: 94vw;
    }
    .download-container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .title-section h2 {
        font-size: 28px;
    }
    
    .title-section p {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .products-container {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .product-card {
        width: calc(50% - 12px);
        height: 80px;
        padding: 12px;
    }
    
    .versions-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-container {
        width: 100%;
    }
    
    .versions-table {
        display: block;
        overflow-x: auto;
    }
    
    .versions-table thead {
        display: none;
    }
    
    .versions-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .versions-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        padding: 15px;
        position: relative;
    }
    
    .versions-table td {
        padding: 8px;
        text-align: left;
        border: none !important;
        display: flex;
        flex-direction: column;
    }
    
    .versions-table td:nth-child(1)::before {
        content: '版本名称:';
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 3px;
    }
    
    .versions-table td:nth-child(2)::before {
        content: '版本类型:';
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 3px;
    }
    
    .versions-table td:nth-child(3)::before {
        content: '软件大小:';
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 3px;
    }
    
    .versions-table td:nth-child(4)::before {
        content: '更新时间:';
        font-size: 12px;
        color: var(--text-light);
        margin-bottom: 3px;
    }
    
    .versions-table td:nth-child(5) {
        grid-column: span 2;
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }
    
    .version-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }
    
    /* 更新日志移动端优化 */
    .changelog-content.open {
        padding: 15px;
        width: 100%;
    }
    
    .changelog-row {
        display: contents !important;
        /* display: none !important; */

    }
    .versions-table .changelog-row td:nth-child(1)::before {
        content: '';
    }
    .changelog-row td {
        grid-column: span 2;
        padding: 0 !important;
    }
    
    .changelog-content {
        border-radius: 8px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
        max-width: 280px;
    }
    
    .version-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}