/* 页面容器 */
.page-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    /* 定位 */
    position: relative;
}

/* 左侧主内容区 */
.main-content-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-area {
    background-color: #fff;
    padding: 20px 15px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff8c00;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.page-title::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #ff8c00;
    border-radius: 50%;
}

/* 顶部文章卡片 */
.top-article {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    /* 鼠标移入变小手 */
    cursor: pointer;
}

.article-cover {
    width: 220px;
    height: 140px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.article-cover img {
    width: 100%;
    height: 100%;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
}

.article-desc {
    font-size: 14px;
    color: #666;
}

.article-date {
    font-size: 13px;
    color: #999;
    padding-left: 15px;
    border-left: 2px solid #ff8c00;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文章列表 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 列表项 */
.article-list li {
    padding: 10px;
    border-bottom: 1px dashed #eee;
    /* 虚线分隔 */
    line-height: 1.5;
    color: #333;
    /* 鼠标移入变小手 */
    cursor: pointer;
}

.article-list li:hover {
    /* 背景色改为淡橙色 */
    background-color: #fffbf5;
    /* 元素向上移动 */
    transform: translateY(-2px);
}

/* 最后一项去掉下边框 */
.article-list li:last-child {
    border-bottom: none;
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    position: relative;
}

.article-item::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.article-item::after {
    content: "";
    width: 1px;
    height: 100%;
    background-color: #eee;
    position: absolute;
    left: 3px;
    top: 16px;
}

.article-item:last-child::after {
    display: none;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    gap: 8px;
    padding: 10px;
}

.article-item-title {
    font-size: 16px;
    font-weight: 500;
}

.article-item-desc {
    font-size: 12px;
    color: #666;
}

.btn-read-more {
    width: 80px;
    padding: 4px 8px;
    font-size: 12px;
    color: #ff8c00;
    border: 1px solid #ff8c00;
    border-radius: 3px;
    background-color: #fff;
}

.article-item-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.article-item :hover {
    background-color: #fffbf5;
}

/* 右侧边栏 */
.sidebar-right {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.first-child {
    background-color: #333;
    color: #fff;
}

.widget-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qrcode-box {
    text-align: center;
}

.qrcode-box img {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    margin: 0 auto 10px;
}

/* 按钮 */
.btn-orange {
    display: block;
    background-color: #ff8c00;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.service-info {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.case-list,
.wiki-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-item-List,
.wiki-item {
    padding: 5px;
    font-size: 12px;
    color: #666;
    /* 下边框 */
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.case-item-List:hover,
.wiki-item:hover {
    background-color: #fffbf5;
}

.case-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.wiki-title,
.case-title {
    display: block;
    font-size: 14px;
    color: #333;
    /* 字体加粗 */
    font-weight: 600;
    /* 超出显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-desc,
.case-desc {
    font-size: 12px;
    color: #666;
    /* 显示两行摘要，超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar-right {
        width: 100%;
    }

    .top-article {
        flex-direction: column;
    }

    .article-cover {
        width: 100%;
        height: auto;
    }
}