/**
 * 网站主样式表
 * 包含首页、登录页、下载页等所有页面的样式定义
 * 使用响应式设计，适配移动端和桌面端
 */

/* ==================== 基础样式重置 ==================== */
/* 统一所有元素的盒模型，清除默认内外边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面主体样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ==================== 头部导航样式 ==================== */
/* 固定在顶部的头部容器 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 头部内容容器，最大宽度1200px，居中显示 */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

/* 导航菜单容器 */
.nav-menu {
    display: flex;
    gap: 30px;
}

/* 导航菜单项 */
.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

/* 导航菜单项悬停效果 */
.nav-item:hover {
    color: #0066cc;
}

/* ==================== 认证按钮样式 ==================== */
/* 登录/注册按钮容器 */
.auth-buttons {
    display: flex;
    gap: 15px;
}

/* 认证按钮通用样式 */
.btn-auth {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

/* 登录按钮样式 - 白色背景蓝色边框 */
.btn-login {
    background-color: #fff;
    color: #0066cc;
    border: 1px solid #0066cc;
}

/* 登录按钮悬停效果 */
.btn-login:hover {
    background-color: #0066cc;
    color: white;
}

/* 注册按钮样式 - 蓝色背景 */
.btn-register {
    background-color: #0066cc;
    color: white;
    border: 1px solid #0066cc;
}

/* 注册按钮悬停效果 */
.btn-register:hover {
    background-color: #0052a3;
}

/* ==================== 英雄区域样式 ==================== */
/* 首页顶部的大横幅区域 */
.hero {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* 英雄区域内容容器 */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 英雄区域标题 */
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 英雄区域描述文字 */
.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* 主要按钮样式（橙色） */
.btn-primary {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

/* 主要按钮悬停效果 */
.btn-primary:hover {
    background-color: #e55b00;
}

/* ==================== 特性展示区域样式 ==================== */
/* 特性区域容器 */
.features {
    padding: 100px 0;
    background-color: #f8f9fa;
}

/* 特性区域内容容器 */
.features-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 特性区域标题 */
.features-content h2 {
    font-size: 36px;
    margin-bottom: 60px;
}

/* 特性卡片网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* 特性卡片样式 */
.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 特性卡片悬停效果 - 上浮并增强阴影 */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 特性图标 */
.feature-icon {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 20px;
}

/* 特性标题 */
.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 特性描述文字 */
.feature-item p {
    color: #666;
}

/* ==================== 详细特性区域样式 ==================== */
/* 详细特性区域容器 */
.detailed-features {
    padding: 100px 0;
}

/* 单个特性区块 - 左右布局 */
.feature-section {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 80px;
    gap: 60px;
}

/* 反向排列的特性区块 - 右左布局 */
.feature-section.reverse {
    flex-direction: row-reverse;
}

/* 特性文字区域 */
.feature-text {
    flex: 1;
}

/* 特性标题 */
.feature-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0066cc;
}

/* 特性描述文字 */
.feature-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* 特性图片占位区域 */
.feature-image {
    flex: 1;
    background-color: #f0f0f0;
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* ==================== 页脚样式 ==================== */
/* 页脚容器 */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

/* 页脚内容容器 - 网格布局 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚列标题 */
.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 页脚列表 */
.footer-column ul {
    list-style: none;
}

/* 页脚列表项 */
.footer-column li {
    margin-bottom: 10px;
}

/* 页脚链接 */
.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

/* 页脚链接悬停效果 */
.footer-column a:hover {
    color: white;
}

/* 版权信息区域 */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* ==================== 响应式设计 ==================== */
/* 平板和手机设备（宽度小于768px） */
@media (max-width: 768px) {
    /* 隐藏导航菜单 */
    .nav-menu {
        display: none;
    }
    
    /* 调整认证按钮间距 */
    .auth-buttons {
        gap: 10px;
    }
    
    /* 调整认证按钮大小 */
    .btn-auth {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    /* 调整英雄区域标题大小 */
    .hero h1 {
        font-size: 36px;
    }
    
    /* 调整英雄区域描述文字大小 */
    .hero p {
        font-size: 18px;
    }
    
    /* 特性区块改为垂直布局 */
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    /* 调整特性图片高度 */
    .feature-image {
        height: 200px;
    }
}

/* ==================== 联系我们弹窗样式 ==================== */
/* 弹窗遮罩层 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 弹窗内容容器 */
.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 弹窗淡入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗关闭按钮 */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

/* 关闭按钮悬停效果 */
.close-modal:hover {
    color: #0066cc;
}

/* 弹窗标题 */
.modal-content h2 {
    color: #0066cc;
    padding: 30px 30px 0;
    margin-bottom: 20px;
    text-align: center;
}

/* 弹窗主体内容 - 左右布局 */
.modal-body {
    display: flex;
    gap: 20px;
}

/* 联系信息区域 */
.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0;
}

/* 联系表单区域 */
.contact-form {
    flex: 1;
    min-width: 300px;
    padding: 20px 30px;
    transform: scale(0.85);
    transform-origin: center;
    margin: -10px 0;
}

/* 联系信息标题 */
.contact-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 联系信息段落 */
.contact-info p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

/* 表单标题 */
.contact-form h3 {
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
    font-size: 18px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

/* 表单标签 */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

/* 表单输入框和文本域 */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

/* 输入框聚焦效果 */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* 文本域样式 */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 */
.btn-submit {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

/* 提交按钮悬停效果 */
.btn-submit:hover {
    background-color: #0052a3;
}

/* ==================== 响应式弹窗设计 ==================== */
@media (max-width: 768px) {
    /* 调整弹窗内边距 */
    .modal {
        padding: 10px;
    }
    
    /* 调整弹窗内容外边距 */
    .modal-content {
        margin: 10px;
    }
    
    /* 调整弹窗标题 */
    .modal-content h2 {
        padding: 25px 20px 0;
        font-size: 22px;
    }
    
    /* 弹窗主体改为垂直布局 */
    .modal-body {
        flex-direction: column;
    }
    
    /* 移动设备上取消缩放效果 */
    .contact-info,
    .contact-form {
        padding: 20px;
        min-width: auto;
        transform: none !important;
        margin: 0 !important;
    }
    
    /* 调整关闭按钮大小和位置 */
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}