@charset "utf-8";

/* ========== 整体容器：左 1/4 文章，右 3/4 切换区 ========== */
.service-center-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* ========== 左侧：文章正文（1 份） ========== */
.service-center-wrap {
    flex: 1 1 0;
    min-width: 0;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    overflow-wrap: break-word;
    word-break: break-word;
}
.service-center-wrap p {
    margin: 0 0 0.8em;
    font-size: 16px;
}
.service-center-wrap img {
    max-width: 100%;
    height: auto;
}
.service-center-wrap a {
    color: #9f0303;
    text-decoration: none;
}
.service-center-wrap a:hover {
    text-decoration: underline;
}

/* ========== 右侧：切换区（外层卡片） ========== */
.service-center-switch-wrap {
    flex: 3 1 0;
    min-width: 0;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 20px;
    box-sizing: border-box;
}

/* ========== 切换区上半：Tab 栏 ========== */
.switch-title {
    list-style: none;
    margin: 0 0 15px;
    padding: 0 0 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 2px solid #9f0303;
}
.switch-title li {
    padding: 8px 18px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}
.switch-title li:hover {
    background: #faf6f6;
    color: #9f0303;
}
.switch-title li.active {
    background: #9f0303;
    color: #ffffff;
}

/* ========== 切换区下半：内容区 ========== */
.switch-content {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 240px;
}
.switch-content li {
    display: none;
    text-align: center;
}
.switch-content li.active {
    display: block;
}
.switch-content li img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========== 平板：≤991px 上下堆叠 ========== */
@media (max-width: 991px) {
    .service-center-container {
        flex-direction: column;
    }
}

/* ========== 手机：≤767px Tab 栏可横滑 ========== */
@media (max-width: 767px) {
    .switch-title {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .switch-title li {
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 13px;
    }
    .service-center-wrap,
    .service-center-switch-wrap {
        padding: 15px;
    }
}
