/* 9SOSO 官网首页样式（版式对齐老站：文字覆盖式 Hero 轮播 + 服务文章卡片网格；
   卡片区样式参考老站 style20160721 主题：单行标题 / 图片等比不裁切 / #ff821f 下划线） */

/* ---------- Hero 轮播 ---------- */
.soso-hero { position: relative; overflow: hidden; }
.soso-hero-slide {
    display: none;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.soso-hero-slide.active { display: block; }
.soso-hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10, 40, 80, .72), rgba(10, 40, 80, .28));
}
.soso-hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 96px 20px;
    color: #fff;
}
.soso-hero-inner h1 {
    margin: 0 0 18px;
    font-size: 34px; line-height: 1.4; font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.soso-hero-desc {
    font-size: 16px; line-height: 2; max-width: 760px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.soso-hero-btn {
    display: inline-block; margin-top: 26px;
    padding: 12px 38px;
    background: #1e6fd9; color: #fff;
    font-size: 16px; text-decoration: none;
    border-radius: 4px; transition: background .2s;
}
.soso-hero-btn:hover { background: #185bb8; }
.soso-hero-dots {
    position: absolute; bottom: 18px; left: 0; right: 0;
    text-align: center; z-index: 2;
}
.soso-hero-dots i {
    display: inline-block; width: 26px; height: 4px;
    margin: 0 5px; background: rgba(255, 255, 255, .45);
    cursor: pointer; border-radius: 2px;
}
.soso-hero-dots i.on { background: #fff; }

/* ---------- 服务文章网格（对齐老站 gridnode 卡片） ---------- */
.soso-svc { background: #fff; padding: 46px 0 20px; }
.soso-svc-hd {
    text-align: center; margin-bottom: 34px;
    position: relative; padding-bottom: 14px;
    border-bottom: 1px solid #ddd;             /* 老站 titlelinelong */
}
.soso-svc-hd::after {                           /* 老站 titlelineshort：100×6 橙色条 */
    content: "";
    position: absolute; bottom: 0; left: 50%;
    width: 100px; height: 6px; margin-left: -50px;
    background: #ff821f;
}
.soso-svc-hd h3 {
    margin: 0; font-size: 24px; color: #333;
    font-weight: 600; letter-spacing: 1px;
}
.soso-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.soso-grid li {
    min-width: 0;                                /* 防止 nowrap 标题把 1fr 轨道撑开 */
    background: #fff;
    box-shadow: 0 0 6px rgba(134, 128, 128, .5); /* 老站 gridboxshadow */
    padding: 10px;
}
.soso-grid a { text-decoration: none; display: block; min-width: 0; overflow: hidden; }
.soso-grid .img {
    display: flex; align-items: center; justify-content: center;
    height: 180px; overflow: hidden;             /* 老站 imghg180：等比缩放不裁切 */
    background: #fff;
}
.soso-grid .img img {
    max-height: 180px; width: auto; max-width: 100%;
    display: block;
    transition: transform .3s;
}
.soso-grid a:hover .img img { transform: scale(1.06); } /* 老站 zoomimgwrap */
.soso-grid .title {
    display: block;
    height: 35px; line-height: 35px;              /* 老站：单行溢出隐藏 */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 14px; text-align: left;
    color: #237dc8;
}
.soso-grid a:hover .title { text-decoration: underline; }

@media (max-width: 1000px) {
    .soso-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .soso-hero-inner { padding: 64px 16px; }
    .soso-hero-inner h1 { font-size: 24px; }
    .soso-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- 类目列表页（对齐老站 knowledge 页） ---------- */
.soso-catebanner {
    height: 250px;
    background: url("/static/soso/cate-banner.jpg") center center no-repeat;
    background-size: cover;
}
.soso-listcard {
    max-width: 1200px; margin: 0 auto; padding: 30px 40px 50px;
    background: #fff;
}
/* 子类目按钮（老站 sdcontent 选项卡） */
.soso-catebtns { text-align: center; margin-bottom: 28px; }
.soso-catebtns a {
    display: inline-block; margin: 0 6px; padding: 9px 22px;
    border: 1px solid #ddd; background: #fff;
    font-size: 14px; color: #333; text-decoration: none;
}
.soso-catebtns a:hover { color: #237dc8; border-color: #237dc8; }
.soso-catebtns a.active { background: #237dc8; border-color: #237dc8; color: #fff; }
/* 板块标题 + 面包屑 */
.soso-listhd {
    display: flex; align-items: flex-end; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 24px;
    border-bottom: 1px solid #237dc8;
}
.soso-listhd h3 {
    margin: 0; font-size: 20px; color: #223;
    padding-left: 12px; border-left: 5px solid #237dc8; line-height: 1.3;
}
.soso-crumb { font-size: 13px; color: #999; }
.soso-crumb a { color: #999; text-decoration: none; }
.soso-crumb a:hover { color: #237dc8; }
/* 服务横幅 */
.soso-promo { display: block; margin-bottom: 34px; }
.soso-promo img { width: 100%; display: block; }
/* 文章网格（图片完整显示 + 单行标题 + 两行摘要） */
.soso-listgrid { margin-top: 10px; }
.soso-listgrid .img { height: 250px; }
.soso-listgrid .img img { max-height: 250px; }
.soso-listgrid .title {
    height: auto; line-height: 1.6; white-space: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 8px; font-weight: 400;
}
.soso-listgrid .brief {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px; line-height: 1.7; color: #999;
}
/* 分页 */
.soso-pagebar { text-align: center; margin-top: 36px; }
.soso-pagebar a, .soso-pagebar span {
    display: inline-block; min-width: 34px; padding: 7px 12px; margin: 0 4px;
    border: 1px solid #ddd; font-size: 13px; color: #555; text-decoration: none;
}
.soso-pagebar a:hover { border-color: #237dc8; color: #237dc8; }
.soso-pagebar .current { background: #237dc8; border-color: #237dc8; color: #fff; }

@media (max-width: 720px) {
    .soso-listcard { padding: 20px 16px 30px; }
    .soso-listhd { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- 头部（对齐老站：浅蓝顶条 + 白色一行式头部） ---------- */
.soso-topbar { background: #b5d1ee; font-size: 12px; color: #333; }
.soso-topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 30px; line-height: 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.soso-topbar .tb-slogan { flex: 1; }
.soso-topbar .tb-links { text-align: right; }
.soso-topbar .tb-links a { color: #333; text-decoration: none; margin: 0 2px; }
.soso-topbar .tb-links a:hover { color: #237dc8; }
.soso-topbar .tb-links i { font-style: normal; margin: 0 4px; color: #7d9cc0; }

.soso-header { background: #fff; position: relative; z-index: 20; }
.soso-hd-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 86px; display: flex; align-items: center;
}
.soso-header .logo { flex: 0 0 auto; margin-right: 50px; }
.soso-header .logo img { max-height: 62px; display: block; }
.soso-nav { flex: 1; }
.soso-nav .nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap;
}
.soso-nav .nav-list > li { position: relative; }
.soso-nav .nav-list > li > a {
    display: block; padding: 0 18px; line-height: 86px;
    font-size: 16px; color: #333; text-decoration: none;
}
.soso-nav .nav-list > li > a:hover,
.soso-nav .nav-list > li > a.active { color: #237dc8; }
.soso-nav .nav-sub {
    list-style: none; margin: 0; padding: 0;
    display: none; position: absolute; top: 100%; left: 0;
    min-width: 200px; background: #fff; z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.soso-nav .nav-item.has-sub:hover .nav-sub { display: block; }
.soso-nav .nav-sub li a {
    display: block; padding: 10px 18px;
    font-size: 14px; color: #333; text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}
.soso-nav .nav-sub li a:hover { background: #f2f7fc; color: #237dc8; }
/* 搜索 */
.soso-search { flex: 0 0 auto; position: relative; margin-left: 20px; }
.soso-search .search-icon { cursor: pointer; display: flex; align-items: center; height: 86px; }
.soso-search .search-form { display: flex; }
.soso-search .search-form input {
    width: 180px; height: 32px; padding: 0 10px;
    border: 1px solid #ddd; border-right: none; outline: none; font-size: 13px;
}
.soso-search .search-form button {
    height: 32px; padding: 0 14px; border: none;
    background: #237dc8; color: #fff; cursor: pointer; font-size: 13px;
}

@media (max-width: 1000px) {
    .soso-hd-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; }
    .soso-header .logo { margin-right: 20px; }
    .soso-header .logo img { max-height: 46px; }
    .soso-nav .nav-list > li > a { padding: 0 10px; line-height: 48px; font-size: 14px; }
}

/* 当前菜单项：老站为纯文字不高亮色块（覆盖共享 site.css 的蓝底样式） */
.soso-nav .nav-list > li > a.active {
    background: none;
    color: #237dc8;
}
