* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-size: 14px;
}
a {
    color: #333;
    text-decoration: none;
}

.w-e-text img {
    width: 100% !important;
}

.card {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
}

.line1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line2 {
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 超出几行省略 */
    overflow: hidden;
}

/* 富文本容器：控制整体宽度、居中、基础字体 */
.rich-text-content {
    max-width: 1100px; /* 限制宽度，避免过宽影响阅读 */
    margin: 0 auto;    /* 水平居中 */
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* 现代系统字体栈 */
    font-size: 16px;
    line-height: 1.7;  /* 行高更宽松，提升可读性 */
    color: #333;       /* 柔和深色，替代纯黑 */
}

/* 一级标题：突出显示 + 底部装饰 */
.rich-text-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee; /* 底部浅边框，区分标题与内容 */
    color: #2c3e50;
}

/* 二级标题：左侧标识 + 层级区分 */
.rich-text-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #34495e;
    padding-left: 8px;
}

/* 三级标题（可选）：轻微强调 */
.rich-text-content h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #4a4a4a;
}

/* 段落：增加上下间距 */
.rich-text-content p {
    margin-bottom: 16px;
}

/* 列表：自定义符号 + 缩进调整 */
.rich-text-content ul,
.rich-text-content ol {
    margin: 16px 0;
    padding-left: 28px; /* 缩进更合理 */
}

.rich-text-content li {
    margin-bottom: 8px;
}

/* 无序列表：自定义圆点（可选更精致的图标） */
.rich-text-content ul li {
    list-style-type: disc;
}

/* 有序列表：数字更清晰 */
.rich-text-content ol li {
    list-style-type: decimal;
}

/* 强调文本（如加粗）：颜色强化 */
.rich-text-content strong {
    font-weight: 600;
    color: #2c3e50;
}

/* 技术栈等小条目（可选）：增加前置标识 */
.rich-text-content .tech-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.rich-text-content .tech-item::before {
    content: "•";
    color: #42b983;
    margin-right: 8px;
}

/* 🔧 新增：移动端适配样式 */
/* 平板设备 */
@media screen and (max-width: 1024px) {
    .rich-text-content {
        max-width: 95%;
        padding: 15px;
        font-size: 15px;
    }
    
    .rich-text-content h1 {
        font-size: 26px;
    }
    
    .rich-text-content h2 {
        font-size: 20px;
    }
    
    .rich-text-content h3 {
        font-size: 18px;
    }
}

/* 手机设备 */
@media screen and (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .card {
        padding: 15px;
        border-radius: 4px;
    }
    
    .rich-text-content {
        max-width: 100%;
        padding: 12px;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .rich-text-content h1 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .rich-text-content h2 {
        font-size: 18px;
        margin: 24px 0 12px;
        padding-left: 6px;
    }
    
    .rich-text-content h3 {
        font-size: 16px;
        margin: 20px 0 10px;
    }
    
    .rich-text-content p {
        margin-bottom: 12px;
    }
    
    .rich-text-content ul,
    .rich-text-content ol {
        margin: 12px 0;
        padding-left: 20px;
    }
    
    .rich-text-content li {
        margin-bottom: 6px;
    }
}

/* 小屏手机设备 */
@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .card {
        padding: 12px;
    }
    
    .rich-text-content {
        padding: 10px;
        font-size: 13px;
    }
    
    .rich-text-content h1 {
        font-size: 20px;
    }
    
    .rich-text-content h2 {
        font-size: 16px;
    }
    
    .rich-text-content h3 {
        font-size: 15px;
    }
}

/* 🔧 新增：移动端表格优化 */
@media screen and (max-width: 768px) {
    /* 隐藏表格中的某些列 */
    .el-table .el-table__header-wrapper,
    .el-table .el-table__body-wrapper {
        overflow-x: auto;
    }
    
    /* 调整表格单元格内边距 */
    .el-table .cell {
        padding: 8px 5px;
    }
    
    /* 调整按钮大小 */
    .el-button--mini {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .el-button--small {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* 🔧 新增：移动端表单优化 */
@media screen and (max-width: 768px) {
    .el-form-item__label {
        font-size: 13px;
    }
    
    .el-input__inner,
    .el-textarea__inner {
        font-size: 13px;
    }
    
    .el-dialog {
        width: 95% !important;
        margin-top: 5vh !important;
    }
    
    .el-dialog__body {
        padding: 15px;
    }
}

/* 🔧 新增：移动端导航优化 */
@media screen and (max-width: 768px) {
    .el-menu {
        border-right: none;
    }
    
    .el-menu-item,
    .el-submenu__title {
        font-size: 14px;
        padding: 0 15px;
        height: 50px;
        line-height: 50px;
    }
}

/* 🔧 新增：移动端分页优化 */
@media screen and (max-width: 768px) {
    .el-pagination {
        text-align: center;
    }
    
    .el-pagination .el-pager li {
        min-width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
    
    .el-pagination button {
        min-width: 28px;
        height: 28px;
        line-height: 28px;
    }
}

/* 🔧 新增：移动端卡片优化 */
@media screen and (max-width: 768px) {
    .el-card__body {
        padding: 15px;
    }
    
    .el-card__header {
        padding: 12px 15px;
    }
}

/* 🔧 新增：移动端图片优化 */
@media screen and (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .el-image {
        width: 100%;
    }
}

/* 🔧 新增：移动端触摸优化 */
@media screen and (max-width: 768px) {
    /* 增大可点击区域 */
    .el-button,
    .el-input__icon,
    .el-select .el-input__icon {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 优化触摸反馈 */
    .el-button:active {
        opacity: 0.7;
    }
}

