/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* 主显示容器 */
#main-display-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 页面主体样式 */
body {
    background-color: #171717;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 头部样式 */
header {
    width: 100%;
    color: rgb(178, 178, 178);
    padding: 20px 0;
    text-align: center;
}

.header-title {
    transform: scaleY(1.1);
    font-size: 4.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(252, 252, 252);
}

.header-subtitle {
    font-size: 1.1rem;
}

.header-disclaimer {
    font-size: 8px;
    color: #6b6b6b;
    padding-bottom: 1px;
}

/* 主容器样式 */
.main-container {
    width: 90%;
    max-width: 1000px;
    min-width: 420px;
    height: auto;
    min-height: 100%;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 内容区域样式 */
.content-area {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 搜索框容器样式 */
.search-container {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    text-align: center;
}

.search-box {
    width: 90%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 软件列表样式 */
.software-list {
    width: 108px;
    background-color: #f9f9f9;
    overflow-y: auto;
    padding: 10px 0;
    border-right: 1px solid #eee;
    position: relative;
}

.software-item {
    padding: 10px 15px;
    margin: 0 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    position: relative;
    transition: background-color 0.2s ease;
}

.software-item:hover {
    background-color: #f0f0f0;
}

.software-item.active {
    background-color: #3498db;
    color: white;
}

.software-name {
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 版本面板样式 */
.versions-panel {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

.panel-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.panel-icon {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.panel-description {
    color: #777;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* 版本项样式 */
.version-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.version-name {
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.version-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.version-date {
    color: #777;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* 下拉箭头样式 */
.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #777;
    border-top: 2px solid #777;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 0.3s ease;
    position: relative;
}

.arrow.right {
    transform: rotate(45deg);
}

.arrow.down {
    transform: rotate(135deg);
    top: 2px;
}

/* 按钮样式 */
.download-btn, .alt-download-btn, .copy-btn {
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}

.download-btn {
    background-color: #27ae60;
}

.alt-download-btn {
    background-color: #3498db;
}

.copy-btn {
    background-color: #9b59b6;
}

.download-btn:hover {
    background-color: #2ecc71;
}

.alt-download-btn:hover {
    background-color: #2980b9;
}

.copy-btn:hover {
    background-color: #8e44ad;
}

.download-buttons {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 下拉菜单样式 */
.version-dropdown {
    display: none;
    background-color: white;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.version-dropdown.show {
    display: block;
}

.version-options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
}

.version-option {
    min-width: 0;
}

.version-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    min-width: 0;
    overflow: hidden;
}

.version-option-content:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.version-option-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

/* 页脚样式 */
footer {
    width: 100%;
    color: #ababab;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: #9b9b9b;
}

.software-count {
    padding-bottom: 1px;
}

/* 验证码模态框样式 */
.verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    margin: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

.input-group {
    display: flex;
    margin-bottom: 5px;
    height: 40px;
}

.verification-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.verification-input:focus {
    border-color: #3498db;
}

.verify-btn {
    padding: 0 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.verify-btn:hover {
    background-color: #2980b9;
}

.instructions {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.instructions-beijing {
    font-weight: normal;
    background-color: #000000;
    color: #ffffff;
    padding: 3px;
    display: inline-block;
}

.qrcode-container {
    text-align: center;
    margin: 20px 0 10px;
    padding: 1px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.qrcode-img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
    margin: 0 auto;
}

/* 错误消息样式 */
.error-message {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    text-align: center;
    height: auto;
    min-height: 20px;
    position: fixed;
    left: 0;
    right: 0;
    background-color: rgb(211, 6, 6);
    padding: 10px;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
    display: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 4px;
    box-sizing: border-box;
    transition: top 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.error-message.hiding {
    opacity: 0;
    transform: translateY(-20px);
}

/* 动画效果 */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shake-animation {
    animation: shake 0.5s;
    border-color: #d6160c !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 如何下载按钮样式 */
.how-to-download-btn {
    position: absolute;
    top: 10px;
    right: 38px;
    background-color: #ec0303;
    color: #ffffff;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 2;
}

.how-to-download-btn:hover {
    background-color: #f93535;
    color: white;
}

.how-to-download-tooltip {
    position: absolute;
    top: 103%;
    right: 0;
    background-color: #ffffff;
    color: rgb(12, 12, 12);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 250px;
    display: none;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: left;
}

.how-to-download-btn:hover .how-to-download-tooltip {
    display: block;
}

/* 远程协助区样式 - 添加特定类名 */
.remote-assistance-section {
    display: block;
}

/* 响应式设计 - 桌面端 */
@media (min-width: 768px) {
    .version-options-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 767px) {
    /* 主容器调整 */
    .main-container {
        width: 95%;
        min-width: 320px;
    }
    
    /* 标题调整 */
    .header-title {
        font-size: 3.5rem;
    }
    
    /* 搜索框调整 */
    .search-box {
        width: 100%;
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    /* 让软件名称和按钮组分开显示 */
    .version-option-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    /* 软件名称占据整行 */
    .version-option-name {
        white-space: normal;
        margin-bottom: 8px;
        width: 100%;
        margin-right: 0;
    }
    
    /* 按钮组调整 */
    .download-buttons {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* 按钮大小调整 */
    .download-btn, .alt-download-btn, .copy-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* 保持图标和软件名称在同一行 */
    .version-name {
    flex-direction: row; /* 确保移动端也是水平排列 */
    align-items: center;
     }
    
    /* 调整版本logo和文本的排列 */
    .version-logo {
    margin-right: 8px;
    margin-bottom: 0; /* 移除移动端可能存在的底部边距 */
    }
    
    /* 验证码模态框调整 */
    .verification-modal .modal-content {
        padding: 15px;
    }
    
    /* 输入组调整为水平布局 */
    .input-group {
        flex-direction: row !important;
        height: 40px !important;
        margin-bottom: 15px;
    }
    
    .verification-input {
        border-radius: 4px 0 0 4px !important;
        margin-bottom: 0 !important;
        flex: 1;
    }
    
    .verify-btn {
        border-radius: 0 4px 4px 0 !important;
        width: auto !important;
        padding: 0 15px !important;
    }
    
    /* 调整二维码图片大小 */
    .qrcode-img {
        max-height: 120px;
    }
    
    /* 调整模态框标题和说明文字大小 */
    .modal-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .instructions {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    /* 在移动端隐藏远程协助区 */
    .remote-assistance-section {
        display: none !important;
    }
}
    /* 给crack添加样式 */
    .crack-link {
        color: #c6c6c6 !important;  /* 浅灰色 */
        /*text-decoration: none;   可选：去掉下划线 */
        font-size: 0.9em;       /* 可选：稍微小一点的字号 */
       /* margin-left: 1px;        可选：添加左边距 */
    }