/* 设计软件库 - 自定义CSS
此文件包含所有设计软件库主题的样式
*/

/* ============================================
   基础重置和全局样式
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: auto; 
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    font-size: 12px;
    min-height: 100vh;
    position: relative;
}

.container {
    display: flex;
    align-items: flex-start; 
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 5px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    overflow: visible; 
    position: relative;
}

/* ============================================
   左侧导航栏样式
============================================ */

.left-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    flex-shrink: 0;
    z-index: 100;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    /* 开启硬件加速，解决滚动时侧边栏边缘抖动/闪烁问题 */
    transform: translateZ(0);
    will-change: transform;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.left-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
}

.sidebar-content {
    padding: 25px 0 15px; 
    display: flex;
    flex-direction: column;
    height: 100vh; 
}

.sidebar-header {
    padding: 0 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(10px, 2vh, 16px); 
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 38px;
}

/* ============================================
   侧边栏搜索框样式
============================================ */

.sidebar-search {
    padding: 0 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: clamp(10px, 2vh, 16px);
}

.search-box {
    display: flex;
    position: relative;
    width: 100%;
}

.search-box input {
    flex: 1;
    /* 左侧文字顶格对齐，右侧留出放大镜图标的空间 */
    padding: 8px 34px 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    width: 100%;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    border-color: #06b6d4;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* 新增的搜索放大镜图标样式，可点击，居右对齐 */
.search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.search-box .search-icon:hover {
    color: #06b6d4;
    transform: translateY(-50%) scale(1.1);
}

.nav-menu {
    flex: 1;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    /* 1. 将 hidden 改为 auto，允许 Y 轴超出时滚动 */
    overflow-y: auto; 
    overflow-x: hidden;
    /* 2. 平滑滚动体验 */
    scroll-behavior: smooth;
    /* 3. Firefox 隐藏滚动条 */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

/* 4. Chrome/Safari/Edge 隐藏滚动条，但保留滚动功能 */
.nav-menu::-webkit-scrollbar {
    display: none;
    width: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(0px, 0.2vh, 1px); 
    padding-bottom: 20px;
}

.nav-item {
    padding: clamp(4px, 1.2vh, 8px) 10px; 
    margin: clamp(0px, 0.2vh, 1px) 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.75rem, 1.3vh, 0.8rem); 
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #6366f1;
    transform: scaleY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 1px 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-item.active::before {
    transform: scaleY(1);
    background: #06b6d4;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-item i, .nav-item .category-icon {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.nav-item span {
    position: relative;
    z-index: 1;
}

/* ============================================
   顶部Header样式 (极简自适应版)
============================================ */

.top-header {
    display: none; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding: 12px 20px;
    width: 100%;
}

/* ============================================
   主内容区样式
============================================ */

.main-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 65px);
}

/* ============================================
   所有软件列表 - 分类组卡片式分隔样式
============================================ */

.category-group {
    margin-bottom: 35px; 
    width: 100%;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-group-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.category-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.category-group-title i {
    color: #6366f1;
    font-size: 1rem;
    background: rgba(99, 102, 241, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* ============================================
   软件网格卡片布局
============================================ */

.software-grid-container {
    width: 100%;
    min-height: 350px;
    transition: min-height 0.3s ease;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    animation: fadeInGrid 0.3s ease-out forwards;
}

@keyframes fadeInGrid {
    from {
        opacity: 0.6;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.software-card.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 14px;
    gap: 12px;
}

.software-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.software-custom-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.software-logo i {
    font-size: 20px;
    color: #6366f1;
}

.software-info {
    flex: 1;
}

.software-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.software-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   版本详情模态框
============================================ */

.software-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.software-modal-overlay.active {
    display: flex;
}

.software-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    animation: modalFadeIn 0.12s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.modal-title-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1px;
}

.modal-title-text p {
    font-size: 0.75rem;
    color: #64748b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #94a3b8;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.modal-content {
    padding: 14px 16px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

.modal-section {
    margin-bottom: 16px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.software-description-full {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 14px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.version-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.version-item {
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.version-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.version-info {
    flex: 1;
    min-width: 0;
}

.version-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.platform-indicator-modal {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
}

.platform-indicator-modal i {
    font-size: 0.7rem;
}

.download-buttons-row {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.download-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    min-width: 70px;
    justify-content: center;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.download-btn.btn-quark-dl {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}
.download-btn.btn-quark-dl:hover {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4) !important;
}

.download-btn.btn-xunlei-dl {
    background: linear-gradient(135deg, #3b82f6, #4f46e5) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}
.download-btn.btn-xunlei-dl:hover {
    background: linear-gradient(135deg, #2563eb, #4338ca) !important;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

/* ============================================
   通用样式
============================================ */

.no-software {
    text-align: center;
    padding: 50px 14px;
    color: #64748b;
    background: #ffffff;
    border-radius: 8px;
    margin-top: 14px;
    border: 1px dashed #e2e8f0;
    width: 100%;
    grid-column: 1 / -1;
}

.no-software i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.no-software h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}

.no-software p {
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    align-items: center;
    gap: 5px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.overlay.show {
    display: block;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.software-description-full::-webkit-scrollbar {
    width: 4px;
}

.software-description-full::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.software-description-full::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.software-description-full::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   隐蔽版网站底部
============================================ */

.dsl-stealth-footer {
    margin-top: auto; 
    padding: 25px 10px 10px;
    text-align: center;
    width: 100%;
}

.dsl-stealth-footer p {
    font-size: 0.75rem; 
    color: #94a3b8; 
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.dsl-stealth-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 6px;
}

.dsl-stealth-footer a:hover {
    color: #6366f1;
}

.dsl-stealth-footer .sep {
    color: #cbd5e1;
    margin: 0 2px;
    font-size: 0.65rem;
    opacity: 0.8;
}

/* ============================================
   响应式设计
============================================ */

@media (max-width: 1400px) {
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .top-header {
        display: block; 
    }

    .mobile-menu-btn {
        display: flex !important;
    }
    
    .left-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .left-sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .header-content {
        padding: 12px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-header {
        padding: 8px 14px;
    }
    
    .modal-content {
        padding: 12px 14px;
    }
    
    .software-modal {
        max-width: 92%;
        max-height: 75vh;
    }
    
   /* ======== 手机端版本列表 - 单行独立卡片式显示 ======== */
    .version-item {
        display: flex !important;
        flex-direction: row !important; /* 强制左右横向排列 */
        align-items: center !important;
        justify-content: space-between !important; /* 核心：左边文字，右边按钮 */
        background: #ffffff;
        border: 1px solid #eef2f8; /* 增加类似参考图的浅色边框 */
        border-radius: 8px; 
        padding: 12px 14px !important;
        margin-bottom: 10px; /* 每行之间的独立间距 */
        box-shadow: 0 4px 10px rgba(0,0,0,0.02); /* 增加一点微阴影提升立体感 */
    }
    
    .version-info {
        flex: 1; /* 文字区域占据左侧弹性的剩余空间 */
        min-width: 0;
        margin-bottom: 0 !important; /* 清除原有底部间距 */
    }
    
    .version-title {
        font-size: 0.85rem;
        color: #1e293b;
        font-weight: 600;
        margin: 0;
        /* 改为允许自然换行 */
        white-space: normal; 
        word-wrap: break-word; /* 确保超长的纯英文字符也能正常折行 */
        line-height: 1.4; /* 增加一点行高，如果换行了阅读起来更舒服 */
        padding-right: 8px; /* 给右边按钮留出一点呼吸空间 */
    }
    
    /* 按钮容器靠右紧凑排列 */
    .download-buttons-row {
        display: flex !important;
        width: auto !important;
        margin-left: 10px !important;
        justify-content: flex-end !important;
        gap: 8px; /* 两个按钮中间的间隙 */
        flex-shrink: 0; /* 核心：防止按钮组在小屏幕被强行挤压变形 */
    }
    
    /* 缩小收紧的胶囊状下载按钮 */
    .download-btn {
        width: auto !important; 
        flex: 0 1 auto;
        padding: 6px 12px !important; /* 左右内边距稍微收紧，适应窄屏手机 */
        font-size: 0.75rem !important; 
        border-radius: 30px !important; /* 完全的胶囊形状 */
        font-weight: 500;
        white-space: nowrap; /* 绝对禁止按钮内文字换行 */
        box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important; /* 给按钮也加一点点立体感 */
    }
    
    .download-btn i {
        font-size: 0.75rem;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .software-logo {
        width: 44px;
        height: 44px;
    }
    
    .software-custom-icon {
        width: 34px;
        height: 34px;
    }
    
    .card-header {
        padding: 12px;
        gap: 10px;
    }
    
    .software-name {
        font-size: 0.85rem;
    }
    
    .software-description {
        font-size: 0.7rem;
    }
    
    .modal-header {
        padding: 6px 12px;
    }
    
    .modal-content {
        padding: 10px 12px;
    }
}

.admin-bar .container {
    margin-top: 32px;
    height: calc(100vh - 32px);
}

.admin-bar .top-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .container {
        margin-top: 46px;
        height: calc(100vh - 46px);
    }
    
    .admin-bar .top-header {
        top: 46px;
    }
}

.admin-bar .left-sidebar.show {
    top: 32px;
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .left-sidebar.show {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.no-versions {
    text-align: center;
    padding: 16px 12px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 5px;
    border: 1px dashed #e2e8f0;
}

.no-versions i {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #cbd5e1;
    display: block;
}

.no-versions p {
    font-size: 0.75rem;
    margin: 0;
}

/* ============================================
   更多版本折叠展示
============================================ */

.show-more-versions-wrapper {
    margin-top: 10px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.show-more-versions-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.show-more-versions-btn:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.show-more-versions-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.show-more-versions-btn:hover i {
    transform: translateY(2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-footer-mobile {
    display: none; 
}

@media (max-width: 768px) {
    .modal-footer-mobile {
        display: block;
        padding: 12px 16px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
        margin-top: auto;
    }
    
    .close-btn-mobile {
        width: 100%;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        color: #475569;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .close-btn-mobile:active {
        background: #f1f5f9;
        transform: scale(0.98);
    }

    .software-modal {
        display: flex;
        flex-direction: column;
        max-height: 85vh;
    }
    
    .modal-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 0; 
    }
}

/* ============================================
   首次访问欢迎弹窗
============================================ */

.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(0.1px); 
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-modal-overlay.active {
    display: flex;
}

.welcome-modal {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: welcomeFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomeFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.welcome-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 30px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.welcome-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-header p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.welcome-body {
    padding: 25px;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

/* ========== 每日弹窗样式控制 ========== */

/* 弹窗容器 */
.daily-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* 遮罩层深度 */
    z-index: 999999;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 弹出状态 */
.daily-popup-overlay.active {
    display: flex;
}

/* 弹窗主体 */
.daily-popup-box {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px; /* 严格限制宽度 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: daily-popup-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes daily-popup-appear {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗标题区域 */
.daily-popup-header {
    background: #f5f5f5;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.daily-popup-title {
    margin: 0;
    color: #000000;
    font-size: 20px;
    font-weight: 900; /* 把字重拉到最大级别 (Black/Heavy) */
    letter-spacing: 0.5px;
    -webkit-text-stroke: 0.8px #000000; /* 核心黑科技：给文字加一圈 0.8px 的黑色描边，强制变厚 */
}

/* 内容主体 */
.daily-popup-body {
    padding: 25px;
    color: #000000;
    line-height: 1.7;
}

.daily-popup-body p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
}

.daily-popup-body strong {
    color: #000;
    font-weight: 700;
}

/* 温馨提示区域 - 蓝色 */
.daily-popup-tip {
    background: #f0f7ff;
    border-left: 4px solid #2c7be5;
    padding: 14px 16px;
    margin-top: 25px;
    border-radius: 6px;
    font-size: 14px;
    color: #2c7be5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-popup-tip i {
    color: #2c7be5;
    font-size: 16px;
}

/* 底部按钮区域 */
.daily-popup-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

/* 不再提醒按钮 */
.daily-popup-btn {
    background: #2c7be5;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 123, 229, 0.2);
    min-width: 160px;
    width: auto; 
}

.daily-popup-btn:hover {
    background: #1a6bd2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 123, 229, 0.3);
}

/* 右上角关闭按钮 */
.daily-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    padding: 0;
    line-height: 1;
}

.daily-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .daily-popup-box { width: 92%; }
    .daily-popup-body { padding: 20px; }
}

.tip-text strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.tip-text span {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
}



.welcome-action {
    padding: 0 25px 25px;
}

.enter-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .tips-grid { grid-template-columns: 1fr; }
    .welcome-header { padding: 20px 15px; }
}

/* 消除 button 点击后默认的黑色焦点边框 */
button:focus,
.download-btn:focus,
.secure-dl-btn:focus,
.search-icon:focus {
    outline: none !important;
}

/* 消除移动端（手机）点击时默认的灰色/蓝色半透明背景块 */
button,
.download-btn,
.secure-dl-btn,
.search-icon {
    -webkit-tap-highlight-color: transparent !important;
}

/* ============================================
   网盘下载按钮 - 品牌浅色极简风
============================================ */
.download-btn {
    box-shadow: none !important; 
    border: 1px solid transparent !important;
}/* 移动端顶部 Header 优化 */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 两端对齐 */
    padding: 10px 16px;
    position: relative;
}

.mobile-brand-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 绝对居中 */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.mobile-brand-title i {
    color: #6366f1;
    font-size: 1.2rem;
}

/* 优化左侧汉堡菜单按钮，使其变成精致的小方块 */
.mobile-menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
}
/* ============================================
   终极完美复刻：全容器覆盖（碳灰悬浮大胶囊版）
============================================ */

/* 1. 强力介入：将主视窗和主内容容器的滚动条统一加宽 */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 15px !important;
    height: 15px !important;
}

/* 2. 统一轨道背景色（极其干净的浅清灰色） */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
    border-radius: 0 !important;
}

/* 3. 核心大胶囊：通过 3.5px 的四周等宽透明挤压，精准还原居中悬浮感 */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background-color: #666666 !important; /* 精准中深碳灰色 */
    background-clip: padding-box !important; /* 锁定让 border 区域变成纯净的轨道留白 */
    
    /* 四周留出 3.5px 的绝对均等空隙 */
    border: 3.5px solid transparent !important; 
    
    /* 饱满的大圆角，强制滑块两头化为完美的一体式弧面胶囊 */
    border-radius: 20px !important; 
}

/* 鼠标悬停与拖拽时的质感反馈 */
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background-color: #4d4d4d !important;
}
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
.main-content::-webkit-scrollbar-thumb:active {
    background-color: #333333 !important;
}

/* 4. 上下两端小箭头按钮容器（与轨道背景无缝融合） */
html::-webkit-scrollbar-button:single-button,
body::-webkit-scrollbar-button:single-button,
.main-content::-webkit-scrollbar-button:single-button {
    background-color: #f5f5f5 !important;
    display: block !important;
    background-size: 8px !important; /* 控制小三角的精致比例 */
    background-repeat: no-repeat !important;
    background-position: center !important;
    height: 16px !important;
    width: 15px !important;
}

/* 5. 顶端向上深灰三角小箭头 */
html::-webkit-scrollbar-button:single-button:start:decrement,
body::-webkit-scrollbar-button:single-button:start:decrement,
.main-content::-webkit-scrollbar-button:single-button:start:decrement {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23666666'><polygon points='50,35 15,75 85,75'/></svg>") !important;
}

/* 6. 底端向下深灰三角小箭头 */
html::-webkit-scrollbar-button:single-button:end:increment,
body::-webkit-scrollbar-button:single-button:end:increment,
.main-content::-webkit-scrollbar-button:single-button:end:increment {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23666666'><polygon points='50,65 15,25 85,25'/></svg>") !important;
}
/* ===========================================
   软件弹窗：加载历史版本按钮美化
=========================================== */
.show-more-versions-wrapper {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.show-more-versions-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.show-more-versions-btn:hover {
    background: #f1f5f9;
    color: #6366f1;
    border-color: #c7d2fe;
}