body.cms-body {
    margin: 0;
    padding-top: 0;
    background: #f2f3f5;
    color: #222831;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.cms-body * {
    box-sizing: border-box;
}

.cms-body a {
    color: inherit;
    text-decoration: none;
}

.cms-body a:hover {
    color: #2168e8;
}

.cms-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.cms-notice {
    background: #2273ed;
    color: #fff;
    font-size: 14px;
}

.cms-notice-inner {
    position: relative;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.cms-notice-close {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    line-height: 18px;
}

.cms-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20,26,40,.08);
}

.cms-navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.cms-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-size: 26px;
    font-weight: 500;
    color: #2b2f36;
    letter-spacing: 0;
}

.cms-logo span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2168e8;
    position: relative;
}

.cms-logo img {
    width: 92px;
    height: 40px;
    flex: 0 0 auto;
    object-fit: contain;
}

.cms-logo span:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    width: 13px;
    height: 8px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
}

.cms-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.cms-nav-item {
    position: relative;
}

.cms-nav-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cms-nav a {
    color: #20242a;
    font-weight: 500;
}

.cms-subnav-toggle {
    display: none;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    position: relative;
}

.cms-subnav-toggle:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #303741;
    border-bottom: 1px solid #303741;
    transform: rotate(45deg);
}

.cms-subnav {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 18px);
    min-width: 130px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(20,26,40,.12);
    transform: translateX(-50%);
}

.cms-subnav:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.cms-subnav a {
    display: block;
    padding: 7px 12px;
    border-radius: 4px;
    color: #303741;
    font-size: 14px;
}

.cms-subnav a:hover {
    background: #f3f6fb;
}

.cms-nav-item.has-children:hover .cms-subnav,
.cms-nav-item.has-children:focus-within .cms-subnav {
    display: block;
}

.cms-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.cms-login-link {
    color: #333b46;
}

.cms-submit-link {
    padding: 6px 16px;
    border-radius: 4px;
    background: #2168e8;
    color: #fff;
    font-weight: 600;
}

.cms-submit-link:hover {
    color: #fff;
    background: #1558cc;
}

.cms-search-toggle,
.cms-nav-toggle {
    border: 0;
    background: transparent;
}

.cms-search-toggle {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #303741;
}

.cms-search-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.cms-nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: auto;
}

.cms-nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #303741;
}

.cms-search-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    align-items: flex-start;
    justify-content: center;
    padding-top: 110px;
}

.cms-search-panel.is-open {
    display: flex;
}

.cms-search-form {
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 18px;
    border: 1px solid #dce4f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(20,26,40,.12);
}

.cms-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 22px;
    outline: 0;
}

.cms-search-form button {
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.cms-search-form button[type="submit"] {
    min-width: 78px;
    height: 42px;
    padding: 0 18px;
    background: #2168e8;
    color: #fff;
}

.cms-search-form button[type="submit"]:hover {
    background: #1558cc;
}

.cms-search-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #f2f5fa;
    color: #526071;
    font-size: 26px;
    line-height: 1;
}

.cms-search-close:hover {
    background: #e8edf5;
    color: #111827;
}

.cms-main {
    padding: 24px 0 54px;
}

.cms-panel,
.cms-article-detail,
.cms-page-detail,
.cms-empty {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20,26,40,.04);
}

.cms-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
    gap: 14px;
}

.cms-slider,
.cms-hero-mini,
.cms-hero-article,
.cms-topic-card,
.cms-grid-image,
.cms-card-image,
.cms-related-media,
.cms-side-ad {
    overflow: hidden;
    border-radius: 8px;
    background: #eef0f3;
}

.cms-slider {
    position: relative;
    min-height: 315px;
}

.cms-slides,
.cms-slide {
    position: absolute;
    inset: 0;
}

.cms-slide {
    opacity: 0;
    transition: opacity .28s ease;
}

.cms-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.cms-slide img,
.cms-hero-mini img,
.cms-hero-article img,
.cms-topic-card img,
.cms-grid-image img,
.cms-card-image img,
.cms-detail-cover,
.cms-related-media img,
.cms-related-media .cms-media-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-slide:after,
.cms-hero-mini:after,
.cms-hero-article:after,
.cms-topic-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.68));
}

.cms-slide-title,
.cms-hero-mini strong,
.cms-hero-article strong,
.cms-topic-card strong {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 16px;
    color: #fff;
    font-weight: 700;
}

.cms-slide-title {
    font-size: 20px;
}

.cms-slider-dots {
    position: absolute;
    z-index: 4;
    right: 22px;
    bottom: 20px;
    display: flex;
    gap: 7px;
}

.cms-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
}

.cms-slider-dots button.is-active {
    width: 18px;
    border-radius: 999px;
    background: #2168e8;
}

.cms-hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 315px;
}

.cms-hero-mini,
.cms-hero-article {
    position: relative;
    min-height: 150px;
}

.cms-hero-article strong {
    display: -webkit-box;
    overflow: hidden;
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cms-side-ad {
    min-height: 315px;
    border-radius: 8px;
    background: #eceeef;
}

.cms-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, #f1f3f6 0%, #f1f3f6 58%, #d8dde5 100%);
}

.cms-section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.cms-section-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.cms-section-head p {
    flex: 1;
    margin: 0;
    color: #6f7885;
}

.cms-section-head a {
    color: #2168e8;
}

.cms-topic-panel,
.cms-link-panel {
    margin-top: 20px;
    padding: 22px;
}

.cms-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.cms-topic-grid-page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-topic-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
}

.cms-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px) 300px;
    gap: 20px;
    align-items: start;
}

.cms-home-hero + .cms-panel + .cms-content-layout,
.cms-content-layout {
    margin-top: 20px;
}

.cms-content-main,
.cms-sidebar {
    min-width: 0;
}

.cms-article-panel {
    padding: 20px;
}

.cms-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 10px;
    overflow-x: auto;
}

.cms-tabs a,
.cms-tabs span {
    display: block;
    padding: 0 0 14px;
    white-space: nowrap;
    font-size: 16px;
}

.cms-tabs span {
    color: #2168e8;
    border-bottom: 2px solid #2168e8;
}

.cms-list {
    padding: 0;
}

.cms-list.cms-panel {
    padding: 20px;
}

.cms-article-card {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eef0f3;
}

.cms-list.cms-panel .cms-article-card:first-child {
    padding-top: 0;
}

.cms-article-card:last-child {
    border-bottom: 0;
}

.cms-list.cms-panel .cms-article-card:last-of-type {
    padding-bottom: 0;
}

.cms-card-image,
.cms-grid-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
}

.cms-card-image em,
.cms-grid-image em {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.cms-card-body h2,
.cms-grid-body h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.38;
    font-weight: 500;
}

.cms-card-body h2 span {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #587cff;
    color: #fff;
    font-size: 14px;
}

.cms-card-body p {
    margin: 0;
    color: #3e4651;
    font-size: 15px;
}

.cms-card-meta,
.cms-grid-stats,
.cms-grid-meta,
.cms-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #6f7885;
    font-size: 13px;
}

.cms-card-meta {
    margin-top: 20px;
}

.cms-card-tags,
.cms-grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cms-grid-tags {
    margin-bottom: 12px;
}

.cms-card-tags a,
.cms-grid-tags a {
    max-width: 100%;
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f4f7fb;
    color: #435065;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cms-card-tags a:hover,
.cms-grid-tags a:hover {
    color: #2168e8;
    background: #eef4ff;
}

.cms-sidebar {
    position: sticky;
    top: 98px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cms-side-ad {
    overflow: hidden;
    min-height: 90px;
    border-radius: 8px;
    background: #eef2f7;
}

.cms-side-ad a,
.cms-side-ad img {
    display: block;
    width: 100%;
}

.cms-side-ad img {
    height: auto;
    object-fit: cover;
}

.cms-side-section {
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

.cms-side-title h3 {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid #2168e8;
    font-size: 18px;
}

.cms-side-desc {
    margin: -4px 0 14px;
    color: #7a8492;
    font-size: 13px;
    line-height: 1.6;
}

.cms-rank-tab-nav {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 14px;
}

.cms-rank-tab-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 0 10px;
    color: #555f6d;
}

.cms-rank-tab-nav button.is-active {
    color: #2168e8;
    border-bottom: 2px solid #2168e8;
}

.cms-rank-panel {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cms-rank-panel.is-active {
    display: block;
}

.cms-rank-panel li {
    padding: 10px 0;
    border-bottom: 1px dashed #e6e9ee;
}

.cms-rank-panel li:last-child {
    border-bottom: 0;
}

.cms-rank-panel a {
    display: block;
    color: #1f2630;
    line-height: 1.45;
}

.cms-rank-panel span {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #ff4d5e;
    color: #fff;
    font-size: 12px;
}

.cms-rank-panel em {
    display: block;
    margin-top: 6px;
    color: #7a8492;
    font-style: normal;
    font-size: 12px;
}

.cms-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cms-side-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e6e9ee;
}

.cms-side-list li:first-child {
    padding-top: 0;
}

.cms-side-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cms-side-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2630;
    line-height: 1.45;
}

.cms-side-list img {
    flex: 0 0 56px;
    width: 56px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef2f7;
}

.cms-side-list span {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cms-side-list em {
    display: block;
    margin-top: 6px;
    color: #7a8492;
    font-style: normal;
    font-size: 12px;
}

.cms-side-links img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 4px;
}

.cms-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cms-side-tags a {
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 4px;
    background: #f4f7fb;
    color: #435065;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}

.cms-side-tags a:hover,
.cms-side-list a:hover,
.cms-rank-panel a:hover {
    color: #2168e8;
}

.cms-filter-panel,
.cms-archive-head,
.cms-topic-hero {
    padding: 20px;
    margin-bottom: 20px;
}

.cms-tags-page {
    padding-top: 0;
}

.cms-tags-panel {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20,26,40,.04);
}

.cms-page-hero {
    padding: 22px 24px 34px;
    margin-bottom: 20px;
}

.cms-page-main {
    max-width: 960px;
}

.cms-page-head {
    text-align: center;
}

.cms-page-head h1 {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 16px;
    color: #111827;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 500;
}

.cms-page-head h1:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: #6f7885;
    transform: translateX(-50%);
}

.cms-page-head p {
    margin: 0;
    color: #6f7885;
    font-size: 15px;
}

.cms-tags-panel {
    padding: 22px;
}

.cms-tags-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.cms-tags-grid a {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    color: #111827;
    background: #fbfcfe;
    font-size: 16px;
    line-height: 1.45;
}

.cms-tags-grid a:hover {
    color: #2168e8;
    border-color: #b9cdf7;
    background: #f5f8ff;
}

.cms-tags-grid span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cms-tags-grid em {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2168e8;
    font-style: normal;
    font-size: 13px;
}

.cms-topic-list-page {
    padding-top: 0;
}

.cms-topic-list-head {
    margin-bottom: 20px;
}

.cms-topic-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.cms-topic-list-card {
    min-height: 0;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
}

.cms-topic-list-top {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 24px;
}

.cms-topic-list-image {
    display: block;
    overflow: hidden;
    height: 172px;
    border-radius: 8px;
    background: #eef0f3;
}

.cms-topic-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-topic-list-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cms-topic-list-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cms-topic-list-title h2 {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 500;
}

.cms-topic-list-more {
    position: relative;
    flex: 0 0 auto;
    padding-right: 18px;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
}

.cms-topic-list-more:after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

.cms-topic-list-info p {
    min-height: 52px;
    margin: 0;
    color: #18212c;
    font-size: 15px;
    line-height: 1.7;
}

.cms-topic-list-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
    color: #5c6570;
    font-size: 15px;
    line-height: 1.4;
}

.cms-topic-list-articles {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.cms-topic-list-articles li {
    position: relative;
    margin-top: 12px;
    padding-left: 16px;
    color: #18212c;
    font-size: 15px;
    line-height: 1.5;
}

.cms-topic-list-articles li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: .72em;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #d3d3d3;
}

.cms-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #6f7885;
    font-size: 13px;
}

.cms-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
}

.cms-filter-row:last-child {
    border-bottom: 0;
}

.cms-filter-row span {
    width: 72px;
    color: #2a3038;
}

.cms-filter-row a {
    padding: 2px 10px;
    border-radius: 4px;
}

.cms-filter-row a.is-active {
    background: #2168e8;
    color: #fff;
}

.cms-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cms-grid-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.cms-grid-image {
    border-radius: 0;
}

.cms-grid-body {
    padding: 16px;
}

.cms-grid-body h2 {
    font-size: 17px;
    min-height: 48px;
}

.cms-grid-stats {
    margin: 10px 0 14px;
}

.cms-grid-meta {
    justify-content: space-between;
}

.cms-archive-head h1,
.cms-topic-hero h1,
.cms-detail-head h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 500;
}

.cms-archive-head p,
.cms-topic-hero p,
.cms-detail-head p {
    margin: 0;
    color: #6f7885;
}

.cms-topic-hero img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 18px;
}

.cms-article-detail,
.cms-page-detail {
    min-width: 0;
    padding: 28px 20px 0;
}

.cms-page-detail {
    padding: 28px 24px 36px;
}

.cms-detail-head {
    margin-bottom: 24px;
}

.cms-detail-meta {
    margin: 12px 0 24px;
}

.cms-detail-cover {
    display: block;
    max-height: 460px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cms-detail-content {
    font-size: 16px;
    color: #111827;
}

.cms-detail-content p {
    margin: 0 0 18px;
}

.cms-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.cms-detail-content h2,
.cms-detail-content h3 {
    border-left: 3px solid #2168e8;
    padding-left: 12px;
}

.cms-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.cms-detail-tags a,
.cms-primary-link {
    padding: 6px 12px;
    border-radius: 4px;
    background: #eef4ff;
    color: #2168e8;
}

.cms-prev-next {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eef0f3;
}

.cms-related {
    margin-top: 28px;
    padding-bottom: 8px;
}

.cms-related h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.cms-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cms-related-grid a {
    display: block;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.cms-related-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.cms-related-grid strong {
    display: block;
    min-height: 48px;
    padding: 10px 12px 12px;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.cms-detail-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 24px;
    margin: 0 -20px;
    padding: 14px 20px;
    border-top: 1px solid #eef0f3;
    background: rgba(255,255,255,.96);
    color: #6f7885;
}

.cms-partner-panel {
    margin-top: 20px;
    padding: 18px 18px 16px;
    background: #fff;
}

.cms-partner-head h2 {
    margin: 0 0 18px;
    color: #1f2630;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
}

.cms-partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cms-partner-grid a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid #e6e9ee;
    border-radius: 4px;
    background: #fff;
}

.cms-partner-grid img {
    max-width: 120px;
    max-height: 34px;
}

.cms-friend-panel {
    margin-top: 20px;
    padding: 18px 18px 26px;
    background: #fff;
}

.cms-friend-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 18px;
}

.cms-friend-head h2 {
    margin: 0;
    color: #1f2630;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
}

.cms-friend-head p {
    margin: 0;
    color: #3f4650;
    font-size: 16px;
    line-height: 1.5;
}

.cms-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 20px;
}

.cms-friend-links a {
    color: #5c6570;
    font-size: 17px;
    line-height: 1.45;
}

.cms-pagination {
    margin-top: 22px;
    text-align: center;
}

.cms-pagination .pagination {
    margin: 0;
}

.cms-empty {
    padding: 42px 20px;
    text-align: center;
    color: #6f7885;
}

.cms-empty-page {
    min-height: 320px;
    display: grid;
    place-content: center;
    gap: 12px;
}

.cms-footer {
    background: #2b3034;
    color: #c9ced3;
}

.cms-footer-inner {
    min-height: 188px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    padding: 36px 0;
}

.cms-footer-logo {
    width: 96px;
    height: 48px;
    display: grid;
    place-items: center;
    background: transparent;
}

.cms-footer-logo img {
    width: 96px;
    height: 48px;
    object-fit: contain;
}

.cms-footer-logo span {
    position: relative;
    width: 48px;
    height: 28px;
}

.cms-footer-logo span:before,
.cms-footer-logo span:after {
    content: "";
    position: absolute;
    top: 5px;
    width: 23px;
    height: 18px;
    border-bottom: 8px solid #2b3034;
}

.cms-footer-logo span:before {
    left: 1px;
    border-left: 8px solid #2b3034;
    border-radius: 0 0 0 10px;
    transform: rotate(-45deg);
}

.cms-footer-logo span:after {
    right: 1px;
    border-right: 8px solid #2b3034;
    border-radius: 0 0 10px 0;
    transform: rotate(45deg);
}

.cms-footer a {
    color: #d6dadf;
}

.cms-footer a:hover {
    color: #fff;
}

.cms-footer-main {
    min-width: 0;
}

.cms-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.cms-footer-links a {
    position: relative;
    margin-right: 14px;
    padding-right: 14px;
}

.cms-footer-links a:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: rgba(214,218,223,.6);
    transform: translateY(-50%);
}

.cms-footer-links a:last-child {
    margin-right: 0;
    padding-right: 0;
}

.cms-footer-links a:last-child:after {
    display: none;
}

.cms-footer p {
    margin: 0;
    color: #c9ced3;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .cms-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    }

    .cms-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .cms-navbar {
        min-height: 64px;
        gap: 12px;
    }

    .cms-nav-toggle {
        display: block;
    }

    .cms-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        padding: 14px 16px 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(20,26,40,.12);
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cms-nav.is-open {
        display: flex;
    }

    .cms-nav-item,
    .cms-nav-link-row {
        width: 100%;
    }

    .cms-nav-link-row {
        justify-content: space-between;
    }

    .cms-subnav-toggle {
        display: block;
    }

    .cms-nav-item.has-children:hover .cms-subnav,
    .cms-nav-item.has-children:focus-within .cms-subnav {
        display: none;
    }

    .cms-nav-item.is-open .cms-subnav {
        display: grid;
    }

    .cms-nav-item.is-open .cms-subnav-toggle:after {
        top: 10px;
        transform: rotate(225deg);
    }

    .cms-subnav {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 6px 0 4px 14px;
        border: 0;
        border-left: 2px solid #eef0f3;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .cms-subnav:before {
        display: none;
    }

    .cms-actions .cms-login-link,
    .cms-submit-link {
        display: none;
    }

    .cms-home-hero,
    .cms-content-layout {
        grid-template-columns: 1fr;
    }

    .cms-footer-inner {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 26px;
    }

    .cms-slider {
        min-height: 300px;
    }

    .cms-hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-sidebar {
        position: static;
    }

    .cms-side-ad {
        display: block;
    }

    .cms-topic-grid,
    .cms-topic-grid-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-tags-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cms-topic-list-page {
        padding-top: 0;
    }

    .cms-topic-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cms-container {
        width: min(100% - 30px, 1180px);
    }

    .cms-notice-inner {
        min-height: 60px;
        padding-right: 34px;
        line-height: 1.45;
    }

    .cms-logo {
        font-size: 24px;
    }

    .cms-logo span {
        width: 30px;
        height: 30px;
    }

    .cms-logo img {
        width: 82px;
        height: 36px;
    }

    .cms-main {
        padding-top: 0;
    }

    .cms-search-panel {
        padding-top: 88px;
    }

    .cms-search-form {
        gap: 8px;
        padding: 8px 8px 8px 12px;
    }

    .cms-search-form input {
        font-size: 18px;
    }

    .cms-search-form button[type="submit"] {
        min-width: 62px;
        height: 38px;
        padding: 0 12px;
    }

    .cms-search-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .cms-home-hero {
        width: 100%;
        gap: 16px;
    }

    .cms-slider {
        min-height: 190px;
        border-radius: 0;
    }

    .cms-slide-title {
        left: 20px;
        right: 84px;
        bottom: 18px;
        font-size: 18px;
    }

    .cms-hero-side {
        width: min(100% - 30px, 1180px);
        margin: 0 auto;
    }

    .cms-hero-mini,
    .cms-hero-article {
        min-height: 116px;
    }

    .cms-topic-panel,
    .cms-link-panel,
    .cms-article-panel,
    .cms-filter-panel,
    .cms-archive-head,
    .cms-topic-hero,
    .cms-article-detail,
    .cms-page-detail {
        border-radius: 0;
        box-shadow: none;
    }

    .cms-topic-grid,
    .cms-topic-grid-page,
    .cms-card-grid,
    .cms-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .cms-related-grid strong {
        min-height: 44px;
        padding: 9px 10px 10px;
        font-size: 14px;
    }

    .cms-tags-page {
        padding-top: 0;
    }

    .cms-tags-panel {
        min-height: 0;
        padding: 24px 16px 42px;
        border-radius: 8px;
    }

    .cms-page-head {
        margin-bottom: 24px;
    }

    .cms-page-head h1 {
        font-size: 24px;
    }

    .cms-tags-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cms-tags-grid a {
        min-height: 42px;
        font-size: 15px;
    }

    .cms-topic-list-page {
        padding-top: 0;
    }

    .cms-page-hero {
        padding: 16px 0 24px;
        margin-bottom: 18px;
    }

    .cms-topic-list-card {
        min-height: 0;
        padding: 16px;
    }

    .cms-topic-list-top {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cms-topic-list-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .cms-topic-list-title {
        margin-bottom: 10px;
    }

    .cms-topic-list-title h2 {
        font-size: 20px;
    }

    .cms-topic-list-info p {
        min-height: 0;
        font-size: 14px;
    }

    .cms-topic-list-meta {
        margin-top: 14px;
        font-size: 13px;
    }

    .cms-topic-list-articles {
        margin-top: 18px;
    }

    .cms-topic-list-articles li {
        margin-top: 10px;
        font-size: 14px;
    }

    .cms-content-layout {
        width: 100%;
    }

    .cms-content-main,
    .cms-sidebar {
        width: min(100% - 30px, 1180px);
        margin: 0 auto;
    }

    .cms-article-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 0;
    }

    .cms-card-body h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .cms-card-body p {
        display: none;
    }

    .cms-card-meta {
        margin-top: 8px;
        gap: 12px;
    }

    .cms-card-meta span:nth-child(1),
    .cms-card-meta span:nth-child(4),
    .cms-card-meta span:nth-child(5) {
        display: none;
    }

    .cms-grid-body h2 {
        font-size: 15px;
        min-height: 42px;
    }

    .cms-grid-stats {
        gap: 8px;
        font-size: 12px;
    }

    .cms-archive-head h1,
    .cms-topic-hero h1,
    .cms-detail-head h1 {
        font-size: 24px;
    }

    .cms-detail-actions {
        margin: 0 -20px;
    }

    .cms-partner-panel {
        width: 100%;
        padding: 16px 15px;
    }

    .cms-partner-head h2 {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .cms-friend-panel {
        width: 100%;
        padding: 16px 15px 22px;
    }

    .cms-friend-head {
        gap: 10px;
    }

    .cms-friend-head h2 {
        font-size: 20px;
    }

    .cms-friend-head p {
        font-size: 14px;
    }

    .cms-friend-links {
        gap: 14px 20px;
        margin-top: 16px;
    }

    .cms-friend-links a {
        font-size: 15px;
    }

    .cms-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 30px 0;
        text-align: center;
    }

    .cms-footer-logo {
        width: 88px;
        height: 42px;
    }

    .cms-footer-logo img {
        width: 88px;
        height: 42px;
    }

    .cms-footer-links {
        justify-content: center;
        font-size: 14px;
    }

    .cms-footer p {
        font-size: 14px;
    }

}
