/* ==================== 基础样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #F8F8F8;
    overflow-x: hidden;
}

/* rpx 转换为 px (1rpx = 0.5px 在标准屏幕下) */
/* ==================== 主页面样式 ==================== */
.manual-page {
    width: 100%;
    min-height: 100vh;
    background-color: #F8F8F8;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 内容滚动区域 */
.content-scroll {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Banner 区域 */
.banner-wrapper {
    width: 100%;
    padding: 20px 15px 15px;
}

.banner-card {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5FF 100%);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(159, 159, 209, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 1px solid #FFFFFF;
}

.banner-content-left {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 21px;
    font-weight: bold;
    color: #1A1A2F;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-subtitle {
    font-size: 13px;
    color: #9F9FD1;
    margin-bottom: 1px;
    font-weight: 600;
    white-space: nowrap;
}

.banner-desc {
    font-size: 11px;
    color: #A3A3AC;
    white-space: nowrap;
}

.banner-content-right {
    flex-shrink: 0;
    margin-left: 10px;
}

.banner-btn {
    padding: 9px 16px;
    background: #9F9FD1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #8888BB;
    transform: scale(1.05);
}

.banner-btn span {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

/* 菜单容器 */
.menu-container {
    width: 100%;
    padding: 0 15px;
}

.menu-category {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(95, 68, 218, 0.05);
    overflow: hidden;
}

.category-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-header:hover {
    background-color: #F9F9FF;
}

.cat-left {
    display: flex;
    align-items: center;
}

.cat-icon {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    flex-shrink: 0;
}

.cat-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A2F;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.arrow-icon.rotate {
    transform: rotate(90deg);
}

/* 子菜单列表 */
.submenu-list {
    padding: 0 15px 15px;
    width: 100%;
    display: none;
}

.submenu-list.show {
    display: block;
}

.submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #F5F5F5;
    cursor: pointer;
    transition: all 0.3s;
}

.submenu-item:hover {
    padding-left: 5px;
}

.sub-left {
    display: flex;
    align-items: center;
}

.sub-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #BFBFE9;
    margin-right: 10px;
    flex-shrink: 0;
}

.sub-title {
    font-size: 14px;
    color: #555;
}

.sub-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.3;
    flex-shrink: 0;
}

.footer-space {
    height: 40px;
}

/* ==================== 详情页面样式 ==================== */
.detail-page {
    width: 100%;
    min-height: 100vh;
    background-color: #F8F8F8;
    display: flex;
    flex-direction: column;
    position: relative;
}

.detail-content {
    padding: 15px;
}

/* 核心参数卡片 */
.params-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(95, 68, 218, 0.05);
}

.card-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.title-decor {
    width: 30px;
    height: 16px;
    margin-right: 6px;
}

.card-label {
    font-size: 16px;
    font-weight: bold;
    color: #1A1A2F;
}

.params-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 示意图区域 */
.diagram-section {
    margin-bottom: 15px;
}

.diagram-box {
    width: 100%;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(95, 68, 218, 0.05);
}

.diagram-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.diagram-overlay {
    position: absolute;
    bottom: 10px;
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 10px;
}

.diagram-tip {
    font-size: 12px;
    color: #999;
}

/* 操作指南区域 */
.instruction-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(95, 68, 218, 0.05);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1A1A2F;
    margin-bottom: 15px;
    border-left: 4px solid #9F9FD1;
    padding-left: 10px;
}

.summary-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.step-list {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    margin-bottom: 20px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 24px;
    height: 24px;
    background: #F2F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-num {
    font-size: 13px;
    font-weight: bold;
    color: #1A1A2F;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.step-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

/* 加载状态 */
.loading-state {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9F9FD1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
    color: #999;
}

/* 返回按钮 */
.back-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    background: #9F9FD1;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(159, 159, 209, 0.3);
    transition: all 0.3s;
    z-index: 100;
}

.back-button:hover {
    background: #8888BB;
    transform: translateX(-50%) scale(1.05);
}

.back-button span {
    font-size: 14px;
    font-weight: bold;
}

/* 富文本区域（新格式） */
.rich-text-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(95, 68, 218, 0.05);
}

.rich-text-section .section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1A1A2F;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #9F9FD1;
}

.rich-text-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-text-content p {
    margin: 10px 0;
}

.rich-text-content strong {
    font-weight: 600;
    color: #1A1A2F;
}

.rich-text-content ul,
.rich-text-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.rich-text-content li {
    margin: 5px 0;
}

.rich-text-content a {
    color: #9F9FD1;
    text-decoration: none;
}

.rich-text-content a:hover {
    text-decoration: underline;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 10px 0;
}
