body, html {
    padding: 0;
    margin: 0;
}
video, a, img {
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ===== 页面容器（视觉对齐 service 设计稿：200px 边距体系） ===== */
.service-container {
    width: 100%;
    min-height: calc(100vh - 64px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 100px;
    background: #ffffff;
}

/* ===== 顶部横幅模块（背景图 1920x380，宽适配） ===== */
.service-container .service-hero {
    width: 100%;
    height: 380px;
    box-sizing: border-box;
    background-color: #0F1217;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.service-hero .service-hero-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* 设计稿垂直分布：顶74 + 面包屑22 + 26 + 标题82 + 26 + 描述27 + 底123 = 380 */
    padding: 74px 0 123px 200px;
}

.service-hero .service-breadcrumb {
    height: 22px;
    line-height: 22px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 26px;
}

.service-breadcrumb .crumb-sep {
    margin: 0 8px;
}

.service-breadcrumb .crumb-current {
    color: #FFE300;
}

.service-hero .service-title {
    height: 82px;
    line-height: 82px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 500;
    font-size: 60px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 26px;
}

.service-hero .service-desc {
    height: 27px;
    line-height: 27px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 20px;
    color: #FFFFFF;
    opacity: 0.74;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

/* ===== 栏目 Tab 导航（四页真实链接，黄色下划线高亮；a 链接补 color/text-decoration 适配） ===== */
.service-container .service-tabs {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 64px;
    width: 100%;
    padding-left: 200px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
    border-bottom: 2px solid #EFEFEF;
}

.service-container .service-tab {
    position: relative;
    line-height: 25px;
    /* 文字距黄线 15px + 黄线高 4px */
    padding-bottom: 19px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.service-container .service-tab::after {
    content: " ";
    position: absolute;
    left: 0;
    /* 与 tabs 整体下边框 0 距离 */
    bottom: 0;
    width: 100%;
    height: 4px;
    background: #FFE300;
    transform: scaleX(0);
    transition: transform 0.25s ease-out;
}

.service-container .service-tab-active {
    color: #333333;
    font-weight: bold;
}

.service-container .service-tab-active::after {
    transform: scaleX(1);
}

/* ===== 条款与政策：气泡子标签（售后条款 / 免责声明，按后台 termsItems 渲染） ===== */
.service-container .terms-tabs {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-left: 200px;
    box-sizing: border-box;
    /* 箭头尖到内容卡片 24px + 箭头高 10px */
    margin-bottom: 34px;
}

.service-container .terms-tab {
    position: relative;
    /* 英文版：类型名较宽，胶囊按内容自适应不换行；短文案总宽仍为 120px（与中文版视觉一致） */
    width: auto;
    min-width: 120px;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background: #EEEEEE;
    border-radius: 10px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 17px;
    color: #333333;
    letter-spacing: 0;
    font-style: normal;
    text-transform: none;
    cursor: pointer;
    user-select: none;
}

/* 下方小箭头（气泡尾巴） */
.terms-tab::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top: 10px solid #EEEEEE;
    border-bottom: none;
}

.service-container .terms-tab-active {
    background: #FFE300;
}

.service-container .terms-tab-active::after {
    border-top-color: #FFE300;
}

.terms-panel {
    display: none;
}

.terms-panel-active {
    display: block;
}

/* 容器是 flex column + align-items:center，面板须显式全宽，
   否则 terms-card 的 calc(100% - 400px) 无法解析会收缩为内容宽 */
.service-container .terms-panel {
    width: 100%;
    box-sizing: border-box;
}

/* ===== 条款内容卡片（设计稿 1520 宽 = 1920 两侧各 200px，高自适应富文本内容） ===== */
.service-container .terms-card {
    width: calc(100% - 400px);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 24px 30px;
    background: #FFFFFF;
    box-shadow: 0px 0px 16px 1px rgba(136, 136, 136, 0.16);
    border-radius: 10px;
}

/* ===== 富文本基础排版（后台富文本内容样式，沿用） ===== */
.terms-content p {
    font-size: 16px;
    color: #555555;
    line-height: 28px;
    margin: 0 0 16px;
}
.terms-content h1, .terms-content h2, .terms-content h3, .terms-content h4, .terms-content h5 {
    font-family: AlibabaPuHuiTi-Medium;
    font-weight: 500;
    color: #333333;
    line-height: 30px;
    margin: 32px 0 16px;
}
.terms-content h1 { font-size: 28px; }
.terms-content h2 { font-size: 24px; }
.terms-content h3 { font-size: 20px; }
.terms-content h4, .terms-content h5 { font-size: 18px; }
.terms-content ul, .terms-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}
.terms-content li {
    font-size: 16px;
    color: #555555;
    line-height: 28px;
}
.terms-content img {
    max-width: 100%;
    height: auto;
    margin: 16px auto;
}
.terms-content table {
    border-collapse: collapse;
    width: 100%;
}
.terms-content table td, .terms-content table th {
    border: 1px solid #E5E6EB;
    padding: 8px 12px;
    font-size: 16px;
    color: #555555;
    line-height: 24px;
}

/* ===== 空态 ===== */
.service-panel-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 16px;
    color: #00000066;
    letter-spacing: 0;
}
