* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器统一设置增强 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 管理员页面容器 - 满铺自适应 */
.admin-container {
    width: 100%;
    padding: 0 20px;
    margin: 0;
    box-sizing: border-box;
    flex: 1;
}

/* 顶部导航栏 - 固定布局 */
.header-top {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.header-top .container {
    display: flex;
    justify-content: space-between; /* 关键：强制两端对齐 */
    align-items: center;
    width: 100%;
    min-width: 100%; /* 防止收缩 */
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#usernameDisplay {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.header-top a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.header-top a:hover {
    color: #3498db;
}

/* 主头部 - 增强布局稳定性 */
.main-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: orange;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
}

/* 固定顶部导航 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 下载页面样式 */

/* 页面头部 */
.page-header-section {
    text-align: center;
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.section-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.section-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 软件介绍区 */
.software-intro-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.software-intro-content {
    margin-top: 20px;
}

.intro-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* 模块介绍 */
.module-section {
    margin-top: 30px;
}

.module-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.module-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.module-icon i {
    color: white;
    font-size: 2rem;
}

.module-card h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.module-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 下载分区 */
.download-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.latest-version-section {
    margin-top: 20px;
}

.version-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.version-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
}

.meta-item i {
    color: #3498db;
    font-size: 1.1rem;
}

/* 最新版本特点 */
.update-content-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.update-content-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.feature-item span {
    color: #555;
    font-weight: 500;
}

/* 系统要求分区 */
.system-requirements-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.system-requirements-content {
    margin-top: 20px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.requirement-category h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.requirement-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-category li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #e9ecef;
}

.requirement-category li:last-child {
    border-bottom: none;
}

.requirement-category li strong {
    color: #2c3e50;
}

/* 历史版本更新分区 */
.version-history-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.version-history-content {
    margin-top: 20px;
}

.version-timeline {
    position: relative;
    padding-left: 30px;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.version-number {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.version-label {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.version-changelog h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.version-changelog ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-changelog li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.version-changelog li i {
    color: #e74c3c;
    font-size: 1rem;
}

/* 文档页面样式 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 文档布局 */
.documentation-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 侧边栏 */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.doc-nav h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.doc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    font-weight: 500;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: translateX(5px);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* 内容区 */
.content-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.documentation-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.documentation-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* 快速开始 */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.quick-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.quick-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 文档卡片 */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.document-card {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.document-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.document-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.document-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.document-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 常见问题 */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-question h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px 25px;
}

.faq-more {
    margin-top: 30px;
    text-align: center;
}

/* 视频教程 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.video-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.video-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.video-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 技术支持 */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.support-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.support-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.support-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.support-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.support-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .documentation-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .quick-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* 其他丰富设计分区 */
.additional-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 使用指南 */
.guide-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-content h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.guide-steps {
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

/* 技术支持 */
.support-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.support-info {
    text-align: center;
}

.support-text {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.support-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 1rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.2rem;
}

/* 下载卡片 */
.download-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-body {
    padding: 20px;
}

.software-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.software-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 软件列表区域样式 */
.software-list {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.download-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.download-card .card-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.download-card .card-header i {
    margin-right: 10px;
    font-size: 20px;
}

.download-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.download-card .card-body {
    padding: 20px;
}

.download-card .software-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.download-card .software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.download-card .meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-card .software-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.download-card .download-actions {
    display: flex;
    justify-content: center;
}

.download-card .download-btn {
    width: 100%;
    text-align: center;
}

/* 无软件和错误提示样式 */
.no-software, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

.download-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.download-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.download-btn span {
    position: relative;
    z-index: 1;
}

/* 响应式设计 - 全面适配 */
@media (max-width: 1024px) {
    .additional-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .software-intro-section,
    .download-section,
    .system-requirements-section,
    .version-history-section,
    .guide-section,
    .support-section {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .modules-grid,
    .feature-list,
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .version-timeline {
        padding-left: 30px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .version-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .download-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* 系统要求 */
.system-requirements-section li:last-child {
    border-bottom: none;
}

.system-requirements-section li strong {
    color: #2c3e50;
    width: 120px;
    font-weight: 600;
}

/* 版本历史 */
.version-history-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.version-history-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.version-history-section .version-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.version-history-section .timeline-item {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
}

.version-history-section .timeline-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.1);
}

.version-history-section .timeline-item .version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.version-history-section .timeline-item .version-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3498db;
}

.version-history-section .timeline-item .version-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.version-history-section .version-changelog ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-history-section .version-changelog li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.version-history-section .version-changelog li i {
    color: #27ae60;
    font-size: 0.8rem;
}

/* 下载说明 */
.download-notes {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #f39c12;
}

.download-notes h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.download-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-notes li {
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.download-notes li i {
    color: #f39c12;
    margin-top: 3px;
    font-size: 1rem;
}

/* 响应式设计 - 增强移动端体验 */
@media (max-width: 992px) {
    .download-content {
        flex-direction: column;
    }
    
    .download-right {
        width: 100%;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .software-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* 关键：强制两端对齐 */
    align-items: center;
    width: 100%;
    min-width: 100%;
    flex-wrap: nowrap; /* 防止换行 */
}

.main-header h1 {
    font-size: 2.2em;
    font-weight: 300;
    font-family: '黑体', sans-serif;
}

.main-header h1 i {
    margin-right: 12px;
    color: #3498db;
}

/* 导航菜单稳定性增强 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* 防止导航文字换行 */
}

/* 上传进度条样式 */
.upload-progress-container {
    margin: 15px 0;
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #2196F3 50%, #9C27B0 100%);
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-align: center;
}

.upload-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    background-color: #ffebee;
    text-align: center;
}

/* 表单操作按钮样式 */
.form-actions {
    display: flex;
    gap: 0;
    margin-top: 20px;
}

.form-actions .btn-secondary, .form-actions .btn-primary {
    flex: 1;
    margin: 0;
    padding: 12px;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.form-actions .btn-secondary {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.form-actions .btn-primary {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.form-actions .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-actions .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 管理员面板样式 */
.admin-dashboard {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.admin-dashboard h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.admin-dashboard p {
    color: #666;
    margin-bottom: 24px;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

/* 标签页样式 */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

/* 标签页内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

/* 按钮样式 */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
}

.search-box button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #2980b9;
}

/* 自定义文件上传样式 */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-btn:hover {
    background-color: #45a049;
}

.file-selected-text {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f8f9fa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 全宽文本域样式 */
.full-width-textarea {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.full-width-textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 版本号输入容器样式 */
.version-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.version-input-container input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.version-input-container input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.version-display {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 300px); /* 设置最大高度，减去头部和其他元素的高度 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

/* 系统信息样式 */
.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.info-section h4 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.info-item {
    background-color: white;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-item span {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

/* 活动日志样式 */
.activity-log {
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-log .log-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.activity-log .log-item:last-child {
    border-bottom: none;
}

.main-nav li {
    flex-shrink: 0; /* 防止导航项收缩 */
}

.main-nav a {
    color: orange;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* 焦点图/横幅响应式修复 */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.banner-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 300;
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 主体内容一致性修复 */
.main-content {
    flex: 1;
    background: white;
    padding: 60px 0;
    width: 100%;
}

.main-content .container {
    max-width: 60%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header h2 i {
    margin-right: 10px;
    color: #3498db;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.view-all {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2em;
    color: white;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.feature-link {
    color: #3498db;
    font-weight: 500;
}

/* 新闻部分 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.news-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* 按钮样式 */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 页脚 */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: row; /* 保持水平布局 */
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-content h2 {
        font-size: 2em;
    }
}

/* 极端小屏幕适配 */
@media (max-width: 480px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* 二维码 */
/* 模态框背景 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000; /* 置于顶层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 黑色半透明背景 */
    animation: fadeIn 0.3s ease-out; /* 淡入动画 */
}

/* 模态框内容 */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 居中 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px; /* 最大宽度 */
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out; /* 滑入动画 */
}

/* 关闭按钮 */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滑入动画 */
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 数据库测试区域样式 */
.db-test-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.db-test-container {
    max-width: 800px;
    margin: 0 auto;
}

.db-test-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
}

.db-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.db-test-header h3 {
    color: #4a5568;
    margin: 0;
}

.btn-test {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-test:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.test-config, .test-results {
    margin-bottom: 25px;
}

.test-config h4, .test-results h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.config-item:last-child {
    border-bottom: none;
}

.config-item label {
    font-weight: 600;
    color: #8a9ec0;
}

.config-item span {
    color: #71b4b6;
    font-family: 'Courier New', monospace;
}

.result-placeholder {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #718096;
    border: 2px dashed #cbd5e0;
}

.test-result {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.test-result.success {
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    color: #276749;
}

.test-result.error {
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #c53030;
}

.test-result.pending {
    background: #fffaf0;
    border: 2px solid #faf089;
    color: #d69e2e;
}

.test-details {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.db-test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.test-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: #e2e8f0;
    color: #7f98c1;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.last-test {
    color: #718096;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #ac9595;
}

.advanced-test-options {
    margin: 20px 0;
}

.test-option {
    margin: 15px 0;
}

.test-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.test-option input {
    margin-right: 10px;
}

/* 登录模态框样式 */
.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: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal {
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.login-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #667eea;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    display: none;
}

.login-footer {
    padding: 0 25px 25px;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 页面虚化遮罩样式 */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
}

/* 页面虚化效果 */
body.login-required {
    overflow: hidden;
}

body.login-required > :not(#loginModal):not(#pageOverlay) {
    filter: blur(5px) grayscale(30%);
    transition: filter 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .login-header {
        padding: 25px 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-body,
    .login-footer {
        padding: 20px;
    }
}

/* 数据库测试区域响应式设计 */
@media (max-width: 768px) {
  .db-test-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  
  
  .db-test-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .test-actions {
    justify-content: center;
  }
}

/* 文件上传样式 */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.file-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.file-selected-text {
    flex: 1;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

/* 版本号输入容器样式 */
.version-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.version-input-container input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.version-input-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.version-display {
    padding: 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #495057;
    font-weight: bold;
    text-align: center;
    flex: 1;
    box-sizing: border-box;
}

/* 全宽文本域样式 */
.full-width-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.full-width-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}