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

/* 页面主体样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 顶部导航栏样式已统一由 index.css 提供（与 p-feedback 等页面共用同一套顶栏），此处不再重复定义 */

/* ==================== 响应式设计 ==================== */

/* Bootstrap 5 断点参考：
   - xs: <576px    (手机竖屏)
   - sm: 576-767px (手机横屏)
   - md: 768-991px (平板)
   - lg: 992-1199px (桌面)
   - xl: >=1200px   (大屏桌面)
*/

/* 大屏桌面 (xl) */
@media (min-width: 1200px) {
    .main-content {
        max-width: 1200px;
    }
}

/* 桌面设备 (lg) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .main-content {
        max-width: 90%;
    }
}

/* 平板设备 (md) */
@media (max-width: 991.98px) {
    /* 顶栏适配统一由 index.css 提供 */

    /* 主内容区域适配 */
    .main-content {
        max-width: 95%;
        padding: 24px 15px;
    }
    
    /* 模块内容区域改为纵向排列 */
    .module-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-list,
    .knowledge-list {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step-item,
    .knowledge-item {
        flex: none;
        white-space: nowrap;
    }
    
    /* 下载卡片适配 */
    .download-card {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    /* 底栏适配 */
    .last {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        height: auto;
        padding: 30px 20px;
    }

    .last ul {
        min-width: 100px;
        margin-left: 0;
    }

    .last p {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        text-align: center;
        max-width: 100%;
    }
}

.login-btn:hover {
    background-color: #0885c9;
}

/* 主内容区域样式 */
.main-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 32px 20px;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

/* 页面标题文字样式 */
.page-title h1 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* 模块区域样式 */
.module-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 模块头部样式 */
.module-header {
    border-left: 4px solid #1E4ED8;
    padding-left: 12px;
    margin-bottom: 24px;
}

/* 模块标题样式 */
.module-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 模块内容区域样式 */
.module-content {
    display: flex;
    gap: 24px;
}

/* 步骤列表和知识列表样式 */
.step-list,
.knowledge-list {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 步骤项和知识项样式 */
.step-item,
.knowledge-item {
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-size: 14px;
}

/* 步骤项和知识项悬停状态 */
.step-item:hover,
.knowledge-item:hover {
    background-color: #f0f4ff;
    color: #1E4ED8;
}

/* 步骤项和知识项激活状态 - 渐变背景 */
.step-item.active,
.knowledge-item.active {
    background: linear-gradient(135deg, #cceaf8 0%, #0a9ce7 100%);
    color: #fff;
}

/* 步骤数字样式 */
.step-number {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
}

/* 步骤内容和知识内容区域样式 */
.step-content,
.knowledge-content {
    flex: 1;
    position: relative;
}

/* 内容卡片样式 */
.content-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

/* 卡片标题样式 */
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* 卡片图片样式 */
.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 卡片图片容器样式 */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 卡片描述样式 */
.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 卡片文本段落样式 */
.card-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 卡片文本最后一段样式 */
.card-text p:last-child {
    margin-bottom: 0;
}

/* 卡片文本强调样式 */
.card-text strong {
    color: #333;
    font-weight: 600;
}

/* 下载卡片样式 */
.download-card {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 24px 16px;
}

/* 下载图标样式 */
.download-icon {
    width: 48px;
    height: 48px;
    background-color: #1E4ED8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #fff;
}

/* 下载链接样式 */
.download-link {
    text-decoration: none;
    color: #1E4ED8;
    font-size: 14px;
    text-align: center;
    word-break: break-all;
}

/* 下载链接悬停状态 */
.download-link:hover {
    text-decoration: underline;
}

/* FAQ内容区域样式 */
.faq-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* FAQ分类样式 */
.faq-category {
    flex: 1;
    min-width: 200px;
}

/* 分类标题样式 */
.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* FAQ链接列表样式 */
.faq-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* FAQ链接样式 */
.faq-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s;
}

/* FAQ链接前置圆点样式 */
.faq-link::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #1E4ED8;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s;
}

/* FAQ链接悬停状态 */
.faq-link:hover {
    color: #1E4ED8;
}

/* FAQ链接悬停时圆点样式 */
.faq-link:hover::before {
    background-color: #163bb8;
    transform: scale(1.2);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

/* 模态框遮罩层样式 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 模态框内容样式 */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 100px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 模态框头部样式 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

/* 模态框标题样式 */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 模态框关闭按钮样式 */
.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

/* 模态框关闭按钮悬停状态 */
.modal-close:hover {
    color: #333;
}

/* 模态框主体内容样式 */
.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

/* 模态框内容标题样式 */
.modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 模态框内容段落样式 */
.modal-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 模态框内容列表样式 */
.modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

/* 模态框内容列表项样式 */
.modal-body li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 模态框操作区域样式 */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

/* 按钮基础样式 */
.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

/* 主要按钮样式 */
.btn-primary {
    background-color: #1E4ED8;
    color: #fff;
    border-color: #1E4ED8;
}

/* 主要按钮悬停状态 */
.btn-primary:hover {
    background-color: #163bb8;
    border-color: #163bb8;
}

/* 底栏开始 */
.last {
    position: relative;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    height: 180px;
    margin: 0 auto;
    margin-top: 100px;
    padding: 20px;
    background-color: #0a9ce7;
    border: 3px solid #fff;
}

.last .logo-last {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 160px;
    height: auto;
}

.last .logo-last img {
    width: 100%;
    height: auto;
    display: block;
}



.last ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    min-width: 120px;
    text-align: center;
    margin-left: 50px;
}

.last h5 {
    font-weight: 500;
    color: #fff;
    font-size: 14px;
    margin: 14px 0;
}

.last ul li {
    margin: 0;
}

.last p {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 0;
    text-align: right;
    max-width: 50%;
}

.last ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: color 0.3s ease;
}

.last ul li a:hover {
    color: #e0e0e0;
}

/* 底栏结束 */

/* 小型平板/手机横屏 (sm) */
@media (max-width: 767.98px) {
    /* 顶栏适配统一由 index.css 提供 */

    /* 主内容区域适配 */
    .main-content {
        padding: 20px 12px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .module-section {
        padding: 16px;
    }
    
    /* 模块内容区域改为纵向排列 */
    .module-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-list,
    .knowledge-list {
        flex: none;
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .step-item,
    .knowledge-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
    }
    
    /* 下载卡片适配 */
    .download-card {
        flex: none;
        width: 100%;
        flex-direction: row;
        gap: 12px;
        padding: 16px;
    }
    
    /* FAQ内容区域改为单列 */
    .faq-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .faq-category {
        min-width: 100%;
    }
    
    /* 模态框适配 */
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    /* 底栏适配 */
    .last {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
        height: auto;
    }

    .last .logo-last {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 10px;
    }

    .last ul {
        min-width: 100%;
        margin-left: 0;
    }

    .last p {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        text-align: center;
        max-width: 100%;
    }
}

/* 手机竖屏 (xs) */
@media (max-width: 575.98px) {
    /* 顶栏适配统一由 index.css 提供 */

    /* 主内容区域适配 */
    .main-content {
        padding: 16px 8px;
    }
    
    .page-title h1 {
        font-size: 20px;
    }
    
    .module-section {
        padding: 12px;
    }
    
    .module-header {
        margin-bottom: 16px;
    }
    
    .module-title {
        font-size: 15px;
    }
    
    /* 步骤列表和知识列表适配 */
    .step-list,
    .knowledge-list {
        gap: 6px;
    }
    
    .step-item,
    .knowledge-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 内容卡片适配 */
    .content-card {
        padding: 14px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-desc,
    .card-text p {
        font-size: 13px;
    }
    
    /* FAQ适配 */
    .faq-category {
        margin-bottom: 16px;
    }
    
    .category-title {
        font-size: 13px;
    }
    
    .faq-link {
        font-size: 13px;
    }
    
    /* 模态框适配 */
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 0;
    }
    
    .modal-header {
        padding: 14px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 14px;
        max-height: 300px;
    }
    
    /* 底栏适配 */
    .last {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }

    .last .logo-last {
        width: 100px;
        margin-bottom: 5px;
    }

    .last h5 {
        font-size: 13px;
    }

    .last ul li a {
        font-size: 12px;
    }

    .last p {
        font-size: 11px;
        margin-top: 10px;
    }
}