/* 暗黑简洁主题 - 软件下载模板样式（极简扁平设计） */

/* ========== 软件下载模板样式 ========== */
.download-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: #1f2833;
    padding: 35px 35px;
    box-sizing: border-box;
}

/* 顶部提示框样式 */
.toast-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
    display: none;
    min-width: 280px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
}

.toast-notification.error {
    background: #4a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

.toast-notification.success {
    background: #1f4a2f;
    color: #4ade80;
    border: 1px solid #2a5a3f;
}

.toast-notification.warning {
    background: #4a3f1f;
    color: #fbbf24;
    border: 1px solid #5a4f2f;
}

.toast-notification.info {
    background: #1f2f4a;
    color: #60a5fa;
    border: 1px solid #2f3f5a;
}

/* 头部标题区域 */
.download-header {
    text-align: center;
    margin-bottom: 30px;
}

.download-title {
    font-size: 32px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 10px;
}

.download-description {
    font-size: 14px;
    color: #a0a8b0;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* 搜索框区域 */
.download-search-box {
    max-width: 560px;
    margin: 0 auto 35px;
    position: relative;
}

.download-search-input {
    width: 100%;
    padding: 10px 46px 10px 18px;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    transition: border-color 0.2s;
    background: #1f2833;
    color: #CCCCCC;
    box-sizing: border-box;
}

.download-search-input::placeholder {
    color: #a0a8b0;
}

.download-search-input:focus {
    outline: none;
    border-color: #5dade2;
}

.download-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #5dade2;
    border: none;
    border-radius: 2px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-search-btn:hover {
    background: #4a9bc7;
}

/* 主导航区域 */
.download-main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 0;
}

.download-main-nav-btn {
    padding: 10px 24px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
}

.download-main-nav-btn:hover {
    border-color: #5dade2;
    color: #5dade2;
}

.download-main-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 子导航区域 */
.download-sub-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
    flex-wrap: wrap;
    background: #2a3441;
    border-radius: 2px;
    border: 1px solid #2a3441;
    min-height: 54px;
}

.download-sub-nav-btn {
    padding: 8px 16px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    font-size: 13px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.download-sub-nav-btn:hover {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.download-sub-nav-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

/* 软件下载内容区域 */
.download-content-area {
}

/* 下载展示区域 */
.download-display {
    display: none;
}

.download-display.active {
    display: block;
}

/* 软件卡片网格 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* 软件卡片样式 */
.download-card {
    background: #1f2833;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    max-height: none;
    border: 1px solid #2a3441;
}

.download-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: #5dade2;
}

/* 卡片图标区域 */
.download-card-icon-wrapper {
    width: 110px;
    height: 110px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    background: #2a3441;
}

/* 正方形图标容器 */
.download-card-icon-square {
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 74px;
    max-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 2px;
    overflow: hidden;
}

.download-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.download-card-icon[src=""] {
    display: none;
}

.download-card-icon-emoji {
    font-size: 48px;
    line-height: 1;
    position: absolute;
    display: block;
}

.download-card-icon-wrapper:has(img:not([src=""])) .download-card-icon-emoji,
.download-card-icon-wrapper img:not([src=""]) ~ .download-card-icon-emoji {
    display: none;
}

/* 卡片内容区域 */
.download-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    justify-content: space-between;
}

.download-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 6px;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 18px;
}

/* 软件描述 */
.download-card-description {
    font-size: 12px;
    color: #a0a8b0;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-height: 34px;
}

/* 标签和按钮区域 */
.download-card-bottom {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    min-height: 0;
}

/* 标签区域 - 隐藏 */
.download-card-tags {
    display: none;
}

/* 下载按钮 */
.download-card-btn {
    padding: 6px 14px;
    background: #5dade2;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    align-self: flex-end;
    height: fit-content;
}

.download-card-btn:hover {
    background: #4a9bc7;
}

/* 下载弹窗样式 */
.download-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s;
}

.download-modal-overlay.active {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-modal {
    position: relative;
    background: #1f2833;
    border-radius: 4px;
    max-width: 620px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #2a3441;
}

.download-modal-header {
    padding: 25px;
    border-bottom: 1px solid #2a3441;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    background: #1f2833;
}

.download-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 2px;
    background: #2a3441;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #2a3441;
}

.download-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-modal-icon-emoji {
    font-size: 42px;
}

.download-modal-info {
    flex: 1;
    min-width: 0;
}

.download-modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #CCCCCC;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.download-modal-description {
    font-size: 13px;
    color: #a0a8b0;
    line-height: 1.6;
    margin: 0;
}

.download-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #2a3441;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a0a8b0;
    transition: background 0.2s;
    z-index: 10;
}

.download-modal-close:hover {
    background: #2a3441;
    color: #CCCCCC;
}

.download-modal-body {
    padding: 20px 25px 25px 25px;
    overflow-y: auto;
    max-height: 560px;
    background: #1f2833;
}

.download-modal-body::-webkit-scrollbar {
    width: 4px;
}

.download-modal-body::-webkit-scrollbar-track {
    background: #2a3441;
}

.download-modal-body::-webkit-scrollbar-thumb {
    background: #2a3441;
    border-radius: 2px;
}

.download-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.download-version-item {
    border: 1px solid #2a3441;
    border-radius: 2px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    background: #1f2833;
}

.download-version-item:hover {
    border-color: #5dade2;
    background: #1f2f4a;
}

.download-version-item:last-child {
    margin-bottom: 0;
}

.download-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.download-version-name {
    font-size: 16px;
    font-weight: 500;
    color: #CCCCCC;
    margin: 0;
    flex: 1;
}

.download-version-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.download-version-btn {
    padding: 8px 16px;
    background: #5dade2;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.download-version-btn:hover {
    background: #4a9bc7;
}

.download-version-btn.free {
    background: #5dade2 !important;
}

.download-version-btn.free:hover {
    background: #4a9bc7 !important;
}

.download-version-btn.vip {
    background: #f44336 !important;
}

.download-version-btn.vip:hover {
    background: #d32f2f !important;
}

.download-version-btn svg {
    flex-shrink: 0;
}

.download-version-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.download-version-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 2px;
    background: #2a3441;
    color: #a0a8b0;
    border: 1px solid #2a3441;
    font-weight: 400;
}

.download-version-tag-icon {
    font-size: 14px;
}

/* ========== 分页样式 ========== */
.download-container .pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    gap: 8px;
    flex-wrap: wrap;
}

.download-container .pagination-btn {
    padding: 8px 14px;
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 2px;
    color: #a0a8b0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 400;
    min-width: 36px;
    text-align: center;
}

.download-container .pagination-btn:hover:not(.disabled) {
    background: #1f2f4a;
    border-color: #5dade2;
    color: #5dade2;
}

.download-container .pagination-btn.active {
    background: #5dade2;
    border-color: #5dade2;
    color: white;
}

.download-container .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a3441;
}

.download-container .pagination-info {
    padding: 6px 14px;
    color: #a0a8b0;
    font-size: 13px;
    white-space: nowrap;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1400px) {
    .download-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .download-container {
        padding: 22px 28px;
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .download-card {
        height: auto;
    }
    
    .download-card-icon-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .download-container {
        padding: 18px 18px;
    }
    
    .download-header {
        margin-bottom: 22px;
    }
    
    .download-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .download-description {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .download-search-box {
        margin-bottom: 25px;
    }
    
    .download-search-input {
        padding: 8px 42px 8px 14px;
        font-size: 13px;
    }
    
    .download-search-btn {
        width: 28px;
        height: 28px;
        right: 3px;
    }
    
    .download-main-nav {
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .download-main-nav-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .download-sub-nav-container {
        gap: 6px;
        padding: 10px;
        margin-bottom: 22px;
        min-height: auto;
    }
    
    .download-sub-nav-btn {
        padding: 6px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .download-card {
        height: 108px;
        max-height: 108px;
    }
    
    .download-card-icon-wrapper {
        width: 90px;
        height: 108px;
        padding: 10px;
    }
    
    .download-card-icon-square {
        max-width: 70px;
        max-height: 70px;
    }
    
    .download-card-icon-emoji {
        font-size: 38px;
    }
    
    .download-card-body {
        padding: 8px 10px;
    }
    
    .download-card-title {
        font-size: 13px;
        margin-bottom: 5px;
        min-height: 16px;
    }
    
    .download-card-description {
        font-size: 11px;
        margin-bottom: 6px;
        min-height: 30px;
    }
    
    .download-card-bottom {
        gap: 5px;
    }
    
    .download-card-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    /* 移动端下载弹窗适配 */
    .download-modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 18px 10px;
    }
    
    .download-modal-header {
        padding: 18px;
        gap: 12px;
    }
    
    .download-modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .download-modal-title {
        font-size: 16px;
    }
    
    .download-modal-description {
        font-size: 12px;
    }
    
    .download-modal-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .download-modal-body {
        padding: 14px 18px 18px;
    }
    
    .download-version-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .download-version-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .download-version-name {
        font-size: 14px;
        text-align: left;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .download-version-buttons {
        justify-content: flex-end;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    
    .download-version-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .download-version-tags {
        justify-content: center;
        gap: 6px;
    }
    
    .download-version-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .download-version-tag-icon {
        font-size: 12px;
    }
    
    .download-container .pagination-container {
        margin-top: 25px;
        gap: 5px;
    }
    
    .download-container .pagination-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 32px;
    }
    
    .download-container .pagination-info {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .download-container {
        padding: 28px 18px;
    }
    
    .download-title {
        font-size: 26px;
    }
    
    .download-description {
        font-size: 13px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .download-card {
        height: 100px;
        max-height: 100px;
    }
    
    .download-card-icon-wrapper {
        width: 100px;
        height: 100px;
        padding: 12px;
    }
    
    .download-card-icon-square {
        max-width: 76px;
        max-height: 76px;
    }
    
    .download-card-icon-emoji {
        font-size: 42px;
    }
    
    .download-card-body {
        padding: 10px 12px;
    }
    
    .download-card-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .download-card-tags {
        font-size: 9px;
    }
    
    .download-card-tag {
        font-size: 9px;
        padding: 0;
    }
    
    .download-card-bottom {
        gap: 6px;
    }
    
    .download-card-btn {
        font-size: 10px;
        padding: 5px 12px;
    }
}

    }
}

  }
}

