/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 各部分通用标题样式 */
section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* 下载区域样式 */
.download-section {
    margin-bottom: 3rem;
}

.software-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.download-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
    text-align: center;
}

.download-btn:hover {
    background-color: #c0392b;
}

.version-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.version-info p {
    margin: 0.5rem 0;
}

/* 软件介绍区域样式 */
.intro-section {
    margin-bottom: 3rem;
}

.intro-content h3 {
    color: #2980b9;
    margin: 1.5rem 0 1rem;
}

.intro-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.intro-content li {
    margin-bottom: 0.5rem;
}

/* 使用说明区域样式 */
.instruction-section {
    margin-bottom: 3rem;
}

.instruction-content ol {
    padding-left: 1.5rem;
}

.instruction-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 留言板样式 */
.message-board-section {
    margin-bottom: 2rem;
}

.message-board-content h3 {
    color: #2980b9;
    margin-bottom: 1.5rem;
}

.message-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
        font-family: inherit;
    }

/* 统一模态框按钮字体大小 */
.modal-buttons .btn {
    font-size: 16px;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
} 

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.word-count {
    float: right;
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.submit-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #229954;
}

/* 留言示例和列表样式 */
.message-example,
.message-list {
    margin-top: 2rem;
}

.message-example h4,
.message-list h4 {
    color: #2980b9;
    margin-bottom: 1rem;
}

.message-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message-author {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.message-text {
    color: #555;
    line-height: 1.6;
}

/* 快速导航窗口样式 - 右侧固定显示 */
.sidebar {
    /* 确保在所有环境下都使用固定定位 */
    position: fixed !important;
    
    /* 明确定位在右侧，不依赖其他布局属性 */
    right: 30px !important;  /* 距离右侧30像素 */
    top: 180px !important;   /* 距离顶部180像素 */
    
    /* 明确设置宽度和高度 */
    width: 260px !important;
    height: auto !important;
    min-height: 300px;
    
    /* 样式设置 */
    background-color: white !important;
    padding: 1.2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e0e0e0 !important;
    
    /* 确保不受其他布局影响 */
    float: none !important;
    margin: 0 !important;
    transform: none !important;
    left: auto !important;  /* 明确不设置左侧位置 */
    bottom: auto !important; /* 明确不设置底部位置 */
    
    /* 确保在最上层 */
    z-index: 9999 !important;
    overflow: visible !important;
    clear: none !important;
    display: block !important;
    visibility: visible !important;
}

/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 10000; /* 更高的层级 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
}

/* 模态框内容样式 */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s;
}

/* 关闭按钮样式 */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover, .close-modal:focus {
    color: #000;
    text-decoration: none;
}

/* 视频容器样式 */
.video-container {
    width: 100%;
    margin: 20px 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 视频元素样式 */
.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* 模态框描述文本样式 */
.modal-description {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-size: 16px;
}

/* 模态框动画 */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 下载链接样式 */
.download-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.download-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.download-link:active {
    transform: translateY(0);
}

.quick-nav h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.quick-nav ul {
    list-style: none;
}

.quick-nav li {
    margin-bottom: 0.8rem;
}

.quick-nav a {
    display: block;
    padding: 0.8rem;
    color: #3498db;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.quick-nav a:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

/* 技术支持信息样式 */
.support-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.support-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.support-info p {
    margin-bottom: 0.8rem;
    color: #555;
}

.support-info a {
    color: #3498db;
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover, .close-modal:focus {
    color: #333;
    text-decoration: none;
}

/* 视频容器样式 */
.video-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    text-align: center;
}

/* 常见问题样式 */
.faq-content {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin-bottom: 8px;
    color: #333;
}

/* 技术支持内容样式 */
.support-content {
    margin-top: 20px;
}

/* 下载确认模态框样式 */
.download-content {
    margin-top: 20px;
    text-align: center;
}

.software-icon {
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #f0f7ff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.download-desc {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.download-details {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.download-details p {
    margin: 8px 0;
    color: #333;
}

.start-download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.start-download-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }
    .sidebar {
        display: none !important; /* 强制隐藏导航栏 */
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        z-index: -1 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .version-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content,
    .sidebar {
        padding: 1.5rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main-content,
    .sidebar {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 20% auto;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* 格式选择样式 */
.format-selection {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

    .format-selection h4 {
        margin: 0 0 10px 0;
        color: #333;
        font-size: 16px;
    }

.format-options {
    display: flex !important;
    gap: 10px;
    flex-wrap: nowrap !important;
    width: 100%;
}

.format-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 !important; /* 强制等分宽度 */
    min-width: 0; /* 防止内容溢出 */
}
    .format-option:hover {
        border-color: #4CAF50;
        background-color: #f0f9f0;
    }

    .format-option input[type="radio"] {
        margin-right: 10px;
    }

        .format-option input[type="radio"]:checked + .format-info {
            color: #4CAF50;
        }

.format-info {
    display: flex;
    flex-direction: column;
}

.format-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.format-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 文件信息样式 */
.file-info {
    margin: 15px 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

    .file-info p {
        margin: 5px 0;
        font-size: 14px;
    }

/* 动态注意事项样式 */
.download-warning {
    margin: 15px 0;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
}

    .download-warning p {
        margin: 0 0 8px 0;
        font-weight: bold;
        color: #856404;
    }

    .download-warning ul {
        margin: 0;
        padding-left: 20px;
    }

    .download-warning li {
        margin: 5px 0;
        font-size: 13px;
        color: #856404;
    }
/* 模态框按钮容器样式 */
.modal-buttons {
    margin-top: 1.5rem;
    text-align: right;
}

/* 通用按钮样式 */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-left: 0.5rem;
}

/* 主要按钮样式（确认下载） */
.btn-primary {
    background-color: #3498db;
    color: white;
}

    .btn-primary:hover {
        background-color: #2980b9;
    }

/* 次要按钮样式（取消） */
/* 次要按钮样式（取消） */
.btn-secondary {
    background-color: #95a5a6;
    color: white;
    font-size: 1rem; /* 与确认下载按钮相同的字体大小 */
    padding: 0.8rem 1.5rem; /* 与确认下载按钮相同的内边距 */
}

    .btn-secondary:hover {
        background-color: #7f8c8d;
    }