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);
}

/* ===== 内容标题 / 副题 ===== */
.service-container .docs-title {
    width: 100%;
    box-sizing: border-box;
    padding-left: 200px;
    height: 50px;
    line-height: 50px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: bold;
    font-size: 36px;
    color: #000000;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
    /* 与主 tabs 间距 60px = 主 tabs 下边距 40px + 这里 20px */
    margin-top: 20px;
}

.service-container .docs-desc {
    width: 100%;
    box-sizing: border-box;
    padding-left: 200px;
    height: 22px;
    line-height: 22px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    letter-spacing: 0;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-top: 20px;
}

/* ===== 分类筛选胶囊（doc-filter-tag 为 doc.js 前端过滤钩子，视觉为 service 胶囊） ===== */
.service-container .docs-tabs {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 200px;
    box-sizing: border-box;
    /* 距上部（描述行）40px，距下方卡片 40px */
    margin-top: 40px;
    margin-bottom: 40px;
}

.service-container .docs-tab {
    height: 48px;
    line-height: 44px;
    /* 宽度自适应：左右边距 30px */
    padding: 0 30px;
    box-sizing: border-box;
    border: 2px solid #E9E9E9;
    border-radius: 24px;
    background: #FFFFFF;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.service-container .docs-tab-active,
.service-container .doc-filter-active {
    background: #FFE300;
    /* 选中去边框：保留 2px 透明占位，避免盒子尺寸跳动 */
    border-color: transparent;
}

/* ===== 卡片网格（每行 3 列，服务端渲染后台 docItems） ===== */
.service-container .docs-cards {
    width: 100%;
    box-sizing: border-box;
    padding-left: 200px;
    display: flex;
    flex-wrap: wrap;
    /* 上下 28px，左右 31px */
    gap: 28px 31px;
}

.service-container .docs-card {
    width: 486px;
    height: 277px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #FFFFFF;
    border: 2px solid #E9E9E9;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* 鼠标滑过：阴影 + 上移 10px */
.service-container .docs-card:hover {
    box-shadow: 0px 6px 16px 1px rgba(119, 119, 119, 0.16);
    transform: translateY(-10px);
}

/* tag 行：单行不换行，放不下由 doc.js 隐藏多余 tag 并显示省略号 */
.docs-card .docs-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

/* 溢出时的省略号指示 */
.docs-card .docs-card-tags .docs-card-tags-more {
    flex: none;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    letter-spacing: 0;
    line-height: 36px;
}

/* 产品名称 tag：宽度自适应，左右边距 16px */
.docs-card .docs-card-tag {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #FCF8DA;
    border-radius: 8px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    letter-spacing: 0;
    white-space: nowrap;
}

/* 类型 tag：样式同产品 tag，底色 #F1EEF9 */
.docs-card .docs-card-type {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #F1EEF9;
    border-radius: 8px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    letter-spacing: 0;
    white-space: nowrap;
}

.docs-card .docs-card-name {
    margin-top: 12px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 500;
    font-size: 26px;
    color: #000000;
    letter-spacing: 0;
    line-height: 35px;
    /* 单行超出省略，hover 由原生 title 显示完整内容 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-card .docs-card-desc {
    margin-bottom: 12px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    letter-spacing: 0;
    line-height: 22px;
    /* 单行超出省略，hover 由原生 title 显示完整内容 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-card .docs-card-date {
    margin-bottom: 24px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 16px;
    color: #999999;
    letter-spacing: 0;
    line-height: 22px;
}

/* 立即查阅按钮：宽 100%，hover 变黄底黑字并切换箭头图标 */
.docs-card .docs-card-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    background: #000000;
    border: none;
    border-radius: 10px;
    font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    letter-spacing: 0;
    text-decoration: none;
    transition: background 0.25s ease-out, color 0.25s ease-out;
}

.docs-card .docs-card-btn:hover {
    background: #FFE300;
    color: #000000;
}

.docs-card .docs-card-btn .docs-card-btn-img {
    width: 20px;
    height: 15px;
}

.docs-card .docs-card-btn .docs-card-btn-img-black {
    display: none;
}

.docs-card .docs-card-btn:hover .docs-card-btn-img-white {
    display: none;
}

.docs-card .docs-card-btn:hover .docs-card-btn-img-black {
    display: block;
}

/* ===== 空态 ===== */
.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;
}
