:root {
    --s04-bg: #0b1020;
    --s04-bg-deep: #080c17;
    --s04-surface: #121a2a;
    --s04-surface-raised: #182338;
    --s04-surface-soft: rgba(18, 26, 42, .82);
    --s04-border: rgba(148, 163, 184, .10);
    --s04-border-strong: rgba(125, 211, 252, .30);
    --s04-text: #f4f7fb;
    --s04-text-soft: #c4cfdf;
    --s04-muted: #8e9bb1;
    --s04-primary: #69d6f6;
    --s04-primary-strong: #3289ed;
    --s04-secondary: #ff7f8e;
    --s04-secondary-soft: rgba(255, 127, 142, .12);
    --s04-success: #63d7ad;
    --s04-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    --s04-radius: 14px;
    color-scheme: dark;
}

/* s04 unified visual layer: data, links and existing interactions stay unchanged. */
html {
    background: var(--s04-bg-deep);
    scroll-behavior: smooth;
}

body,
body.theme-black,
body:not(.theme-white) {
    background: var(--s04-bg) !important;
    color: var(--s04-text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(50, 137, 237, .16), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(255, 127, 142, .11), transparent 28%),
        linear-gradient(180deg, #0b1020 0%, #0b1020 58%, #080c17 100%);
}

a {
    color: var(--s04-text-soft);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover {
    color: var(--s04-primary);
}

button,
input,
textarea {
    font-family: inherit;
}

::selection {
    color: #fff;
    background: var(--s04-primary);
}

.hidden,
.websitecommondom {
    display: none !important;
}

.home-page-content {
    min-height: 100vh;
    background: transparent !important;
}

.homeIndex,
.page-content,
.common-content,
.content-shell,
.article-content {
    width: min(1320px, 100%);
}

.homeIndex {
    margin-left: auto;
    margin-right: auto;
    padding:8px;
}

/* Header and navigation */
.head-nav-name {
    height: 68px;
    background: rgba(11, 16, 32, .82) !important;
    border-bottom: 1px solid var(--s04-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px) saturate(140%);
}

.head-nav-name-box {
    width: min(1320px, calc(100% - 32px));
    gap: 16px;
}

.head-nav-link-box {
    width: 250px;
    height: 68px;
    flex: 0 0 250px;
}

.head-nav-link-box::before {
    content: "";
    width: 11px;
    height: 34px;
    margin-right: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--s04-primary), var(--s04-primary-strong));
    box-shadow: 0 0 22px rgba(105, 214, 246, .42);
}

.box-right-info {
    min-width: 0;
    color: var(--s04-primary);
}

.head-title-link {
    overflow: hidden;
    color: var(--s04-text) !important;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.head-time-now {
    margin-top: 4px;
    color: var(--s04-muted);
    font-size: 12px;
}

.nav-pc-menu {
    flex: 1;
    gap: 2px;
    margin-left: 0;
    align-items: center;
}

.top-header .nav-pc-menu a {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--s04-text-soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.top-header .nav-pc-menu a::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 3px;
    left: 14px;
    height: 2px;
    border-radius: 99px;
    background: var(--s04-primary);
    opacity: 0;
    transform: scaleX(.25);
    transition: opacity .2s ease, transform .2s ease;
}

.top-header .nav-pc-menu a:hover,
.top-header .nav-pc-menu a.active {
    color: var(--s04-primary) !important;
    background: transparent;
}

.top-header .nav-pc-menu a:hover::after,
.top-header .nav-pc-menu a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

#theme-color-set {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

#theme-color-set a,
#theme-color-set-h5 a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--s04-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--s04-muted);
}

#theme-color-set a:hover,
#theme-color-set-h5 a:hover {
    color: var(--s04-primary);
    border-color: var(--s04-border-strong);
    background: rgba(105, 214, 246, .1);
}

#theme-color-set a i,
#theme-color-set-h5 a i {
    display: block;
    height: 24px;
    line-height: 24px;
    font-size: 24px;
}

#theme-color-set-h5 a i {
    color: var(--s04-primary) !important;
}

/* Show exactly one switch icon: moon in light mode, sun in dark mode. */
#theme-color-set a.theme-black-icon,
#theme-color-set-h5 a.theme-black-icon {
    display: none !important;
}

#theme-color-set a.theme-white-icon,
#theme-color-set-h5 a.theme-white-icon {
    display: inline-flex !important;
}

body.theme-white #theme-color-set a.theme-black-icon,
body.theme-white #theme-color-set-h5 a.theme-black-icon {
    display: inline-flex !important;
}

body.theme-white #theme-color-set a.theme-white-icon,
body.theme-white #theme-color-set-h5 a.theme-white-icon {
    display: none !important;
}

.top-header-space {
    height: 68px !important;
}

.menu-h5 {
    width: auto;
    height: auto;
    right: 12px;
    top: 17px;
    z-index: 1100;
}

.open-pc-nav-box {
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 10px;
    background: var(--s04-surface-raised);
    box-shadow: 0 6px 18px rgba(50, 137, 237, .16);
}

.open-pc-nav span {
    width: 18px;
    height: 2px;
    background: var(--s04-primary) !important;
}

.menu-h5.active .open-pc-nav-box {
    background: var(--s04-primary);
}

.menu-h5.active .open-pc-nav span {
    background: #fff !important;
}

.nav-h5-menu {
    top: 68px;
    height: calc(100% - 55px);
    padding: 16px 12px 24px;
    background: linear-gradient(180deg, rgba(8, 12, 23, .94), rgba(11, 16, 32, .98)) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    visibility: hidden;
}

.nav-h5-menu.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.nav-h5-menu .card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--s04-border);
    border-radius: 18px;
    background: rgba(18, 26, 42, .76);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px) saturate(130%);
}

.nav-h5-menu .card a {
    position: relative;
    display: flex;
    width: auto;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 26px 0 12px;
    overflow: hidden;
    border: 1px solid var(--s04-border);
    border-radius: 12px;
    color: var(--s04-text-soft);
    background: linear-gradient(135deg, var(--s04-surface-raised), var(--s04-surface));
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-h5-menu .card a::after {
    position: absolute;
    right: 11px;
    color: var(--s04-muted);
    content: "›";
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

.nav-h5-menu .card a:hover,
.nav-h5-menu .card a:active,
.nav-h5-menu .card a:focus-visible,
.nav-h5-menu a.active {
    color: #fff !important;
    border-color: var(--s04-primary);
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary)) !important;
    box-shadow: 0 8px 18px rgba(50, 137, 237, .24);
    outline: none;
    transform: translateY(-1px);
}

.nav-h5-menu .card a:hover::after,
.nav-h5-menu .card a:active::after,
.nav-h5-menu .card a:focus-visible::after,
.nav-h5-menu a.active::after {
    color: #fff;
    transform: translateX(2px);
}

.nav-h5-menu .card a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.nav-menu {
    background: var(--s04-surface) !important;
    border-bottom: 1px solid var(--s04-border);
    box-shadow: var(--s04-shadow);
}

/* Search, notices and category navigation */
#vdo-search {
    padding: 8px;
    background: linear-gradient(135deg, rgba(18, 26, 42, .95), rgba(18, 30, 52, .88)) !important;
    border-top: 1px solid rgba(255, 255, 255, .04);
    border-bottom: 1px solid var(--s04-border);
}

#vdo-search h3 {
    margin: 8px auto 14px;
    color: var(--s04-muted);
    font-size: 13px;
    font-weight: 500;
}

.search-content {
    width: min(680px, 100%);
    margin: 0 auto;
}

.search-input {
    height: 48px;
    border: 1px solid var(--s04-border-strong);
    border-right: 0;
    background: rgba(8, 12, 23, .72);
    color: var(--s04-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.search-input::placeholder {
    color: var(--s04-muted);
}

.search-btn {
    height: 48px;
    line-height: 48px;
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary)) !important;
    color: #fff;
    font-weight: 800;
}

.search-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #4c9df2, #8be8fa) !important;
    box-shadow: 0 8px 20px rgba(50, 137, 237, .24);
}

.search-tag-list a {
    color: var(--s04-muted);
    font-weight: 800;
}

.search-tag-list a:hover,
.search-tag-list a.t-red {
    color: var(--s04-secondary) !important;
}

.search-category-panel {
    width: min(1320px, calc(100% - 16px));
    margin: 12px auto 0;
}

.search-category-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--s04-border-strong);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(105, 214, 246, .12), rgba(50, 137, 237, .06));
    color: var(--s04-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-category-toggle::-webkit-details-marker {
    display: none;
}

.search-category-toggle {
    list-style: none;
}

.search-category-toggle:hover,
.search-category-toggle:focus-visible {
    border-color: var(--s04-primary);
    background: linear-gradient(135deg, rgba(105, 214, 246, .2), rgba(50, 137, 237, .12));
    box-shadow: 0 8px 22px rgba(50, 137, 237, .14);
    outline: none;
}

.search-category-toggle:active {
    transform: translateY(1px);
}

.search-category-toggle-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--s04-primary);
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.search-category-toggle-title {
    color: var(--s04-text);
    font-size: 15px;
    font-weight: 800;
}

.search-category-toggle-selected {
    color: var(--s04-primary-strong);
    font-weight: 800;
    white-space: nowrap;
}

.search-category-toggle-text {
    margin-left: auto;
    color: var(--s04-muted);
    font-size: 12px;
}

.search-category-toggle-arrow {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    color: var(--s04-primary);
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

.search-category-toggle-arrow::before {
    content: "+";
}

.search-category-panel.is-expanded .search-category-toggle-arrow {
    transform: none;
}

.search-category-panel[open] .search-category-toggle-arrow {
    transform: none;
}

.search-category-panel.is-expanded .search-category-toggle-arrow::before,
.search-category-panel[open] .search-category-toggle-arrow::before {
    content: "−";
}

.category-all-ic {
    display: none;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--s04-border);
    border-radius: 14px;
    background: var(--s04-surface-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.category-all-ic.is-visible {
    display: block;
}

.search-category-panel[open] .category-all-ic {
    display: block;
}

.search-category-panel .category-content.category-all-index {
    display: flex;
    max-width: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.search-category-panel .category-content.category-all-index a {
    width: auto;
    min-width: 80px;
    height: 36px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
    line-height: 34px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.search-category-panel .category-content.category-all-index a:hover,
.search-category-panel .category-content.category-all-index a.active {
    border-color: var(--s04-primary);
    background: var(--s04-primary) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(50, 137, 237, .2);
}

.cate-list,
.category-content {
    gap: 8px;
    padding: 8px 0;
}

.cate-list a,
.category-content a {
    width: auto;
    min-width: 92px;
    height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--s04-text-soft);
    line-height: 36px;
    font-size: 14px;
    font-weight: 600;
}

.cate-list a:hover,
.cate-list a.active,
.category-content a:hover,
.category-content a.active {
    background: rgba(105, 214, 246, .14) !important;
    color: var(--s04-primary) !important;
    box-shadow: inset 0 -2px 0 var(--s04-primary);
}

.hcategoryall {
    width: min(1320px, calc(100% - 32px));
    margin: 14px auto 22px;
    padding: 12px 16px 16px;
    border-radius: 16px;
    background: var(--s04-surface-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.hcategoryall .cate-list-box {
    max-height: 510px;
}

.hcategoryall .category-content {
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.hcategoryall .category-content h5.tag-name-seo {
    width: 100%;
    margin: 0 0 5px;
    padding: 0;
    color: var(--s04-muted);
    font-size: 12px;
    font-weight: 500;
}

.hcategoryall .category-content.category-all-index a {
    width: auto;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
    line-height: 34px;
    font-size: 13px;
    font-weight: 700;
}

.hcategoryall .category-content.category-all-index a:hover,
.hcategoryall .category-content.category-all-index a.active {
    background: var(--s04-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(105, 214, 246, .18);
}

/* Full category directory: source -> parent -> child */
.category-directory {
    padding-top: 30px;
    padding-bottom: 72px;
}

.category-directory-heading {
    padding: 8px 4px 26px;
}

.category-directory-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--s04-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.category-directory-heading h1 {
    margin: 0;
    color: var(--s04-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.category-directory-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--s04-muted);
    font-size: 14px;
    line-height: 1.8;
}

.category-source-list {
    display: grid;
    gap: 18px;
}

.category-source-block {
    padding: 22px 24px 24px;
    border-radius: 18px;
    background: var(--s04-surface-soft);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

.category-source-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
}

.category-source-index {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.category-source-heading h2 {
    margin: 0;
    color: var(--s04-text);
    font-size: 18px;
    line-height: 1.35;
}

.category-source-heading p {
    margin: 4px 0 0;
    color: var(--s04-muted);
    font-size: 12px;
}

.category-tree {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.category-tree-group {
    width: 100%;
    padding: 12px 14px 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.category-parent,
.category-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.category-parent {
    color: var(--s04-text);
    font-size: 15px;
    font-weight: 800;
}

.category-parent::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 2px;
    border-radius: 50%;
    background: var(--s04-primary);
    box-shadow: 0 0 0 5px rgba(105, 214, 246, .10);
}

.category-parent span,
.category-child span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-parent span {
    flex: 1;
}

.category-parent small,
.category-child small {
    flex: 0 0 auto;
    color: var(--s04-primary);
    font-size: 11px;
    font-weight: 700;
}

.category-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0 22px;
    padding-left: 14px;
    border-left: 1px solid var(--s04-border);
}

.category-child {
    width: auto;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
    font-size: 13px;
}

.category-tree > .category-leaf {
    flex: 0 0 auto;
}

.category-child:hover,
.category-parent:hover {
    color: var(--s04-primary);
}

.category-child small {
    margin-left: 4px;
    opacity: .75;
}

.category-directory-empty {
    padding: 56px 20px;
    border-radius: 16px;
    background: var(--s04-surface-soft);
    color: var(--s04-muted);
    text-align: center;
}

.nav-link-content {
    padding-bottom: 28px;
}

.nav-link-content .list-item h3 {
    padding: 20px 0 12px;
    color: var(--s04-text);
    border-bottom: 1px solid var(--s04-border);
}

.nav-link-content .list-item h3 small,
.des-tips {
    color: var(--s04-muted);
}

/* Video / article cards */
.latest-news {
    padding: 8px 0;
}

.articleBar {
    gap: 16px;
    padding: 0;
}

.articleBar a {
    width: calc(25% - 12px);
    margin: 0;
    border: 0;
    border-radius: var(--s04-radius);
    background: linear-gradient(180deg, rgba(24, 35, 56, .96), rgba(18, 26, 42, .96));
}

.articleBar a:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(31, 50, 78, .98), rgba(18, 30, 52, .98));
    box-shadow: var(--s04-shadow);
}

.articleBar a .ln-info,
.articleBar a .img-box {
    border-radius: var(--s04-radius) var(--s04-radius) 0 0;
}

.articleBar a .img-box {
    padding-bottom: 64%;
    background-color: var(--s04-bg-deep);
}

.articleBar a .img-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 23, .58));
}

.articleBar a:hover .img-box::after {
    background: rgba(8, 12, 23, .24);
}

.articleBar a span.video-time {
    z-index: 2;
    right: 10px;
    bottom: 10px;
    background: rgba(8, 12, 23, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    color: var(--s04-text);
}

.articleBar a .detailInfo {
    padding: 12px 14px 14px;
}

.articleBar a h1 {
    margin-top: 3px;
    color: var(--s04-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.articleBar a .detailInfo .info {
    color: var(--s04-muted);
    font-family: inherit !important;
    font-size:0.8rem;
    font-weight: 800;
}

.articleBar a .view i {
    color: var(--s04-primary);
}

.v-pageList {
    /* gap: 8px; */
    margin: 24px auto;
}

.v-pageList a {
    height: 50px;
    min-width: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--s04-surface);
    line-height: 47px;
   border: 1px solid #70d5f4;
    color: #70d5f4;
}

.v-pageList a.active,
.v-pageList a:hover,
.v-pageList a.active:hover {
    background: var(--s04-primary) !important;
    color: #fff;
    box-shadow: 0 7px 18px rgba(105, 214, 246, .22);
}

/* Video detail */
.vdetail-content .content,
.vdetail-content .videoDetail,
.vdetail-content .more {
    border: 0;
    background: rgba(18, 26, 42, .9);
}

.vdetail-content .content {
    border-radius: var(--s04-radius);
    overflow: hidden;
}

.vdetail-content .title-info {
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(24, 35, 56, .96), rgba(18, 26, 42, .96));
    border-bottom: 1px solid var(--s04-border);
}

.vdetail-content .title-info h1,
.vdetail-content .content .title-info h1 {
    color: var(--s04-text);
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: .3px;
}

.vdetail-content .title-info>div {
    color: var(--s04-muted);
}

.vdetail-content .title-info>div span {
    margin-right: 12px;
}

.vdetail-content .title-info a.tag-cate {
    color: var(--s04-primary);
}

.vdetail-content .videoDetail {
    border-top: 0;
    border-radius: 0 0 var(--s04-radius) var(--s04-radius);
    overflow: hidden;
}

.vdetail-content #video,
.vdetail-content video {
    background: #05070d !important;
}

.vdetail-content .video-content-detail-info {
    margin: 18px;
    padding: 20px;
    border: 1px solid var(--s04-border);
    border-radius: 12px;
    background: rgba(8, 12, 23, .46);
    color: var(--s04-text-soft);
}

.vdetail-content .more {
    width: min(420px, calc(100% - 36px));
    max-width: none;
    margin: 24px auto 32px;
    padding: 0;
    border: 0;
    background: transparent;
}

.vdetail-content .more a {
    width: 280px;
    height: 50px;
    margin: 0 auto;
    border: 1px solid var(--s04-primary);
    border-radius: 10px;
    background: rgba(105, 214, 246, .12);
    color: var(--s04-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 48px;
}

.vdetail-content .more a:active {
    border-color: var(--s04-primary);
    background: var(--s04-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(105, 214, 246, .2);
}

.vdetail-content .detail-tujian-title {
    margin: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--s04-primary);
    color: var(--s04-text);
}

.video-action .item .icond {
    color: var(--s04-primary) !important;
}

/* Playback actions: clear, compact and consistent with the active theme. */
.video-action {
    height: auto;
    min-height: 72px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px;
    background: var(--s04-surface-soft);
    scrollbar-width: thin;
    scrollbar-color: var(--s04-primary) transparent;
}

.video-action::-webkit-scrollbar {
    height: 5px;
}

.video-action::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: var(--s04-primary);
}

.video-action-box {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: max-content;
    padding: 0 2px;
}

.video-action .item {
    display: flex;
    width: auto;
    min-width: 118px;
    min-height: 50px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
    box-shadow: inset 0 0 0 1px var(--s04-border);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.video-action .item .icond {
    color: var(--s04-primary) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.video-action .item:hover {
    background: rgba(105, 214, 246, .14);
    color: var(--s04-primary);
    box-shadow: inset 0 0 0 1px var(--s04-border-strong), 0 6px 16px rgba(50, 137, 237, .12);
    transform: translateY(-1px);
}

.video-action .item:active {
    background: var(--s04-primary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(105, 214, 246, .22);
    transform: translateY(0);
}

.video-action .item:active .icond {
    color: #fff !important;
}

/* Rewind actions use the secondary accent so they are easy to distinguish. */
.video-action .item:nth-child(n + 5) {
    background: var(--s04-secondary-soft);
    color: var(--s04-secondary);
    box-shadow: inset 0 0 0 1px rgba(255, 127, 142, .18);
}

.video-action .item:nth-child(n + 5) .icond {
    color: var(--s04-secondary) !important;
}

.video-action .item:nth-child(n + 5):hover {
    background: rgba(255, 127, 142, .2);
    color: var(--s04-secondary);
    box-shadow: inset 0 0 0 1px var(--s04-secondary), 0 6px 16px rgba(255, 127, 142, .14);
}

.video-action .item:nth-child(n + 5):active {
    background: var(--s04-secondary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(255, 127, 142, .22);
}

.video-action .item:nth-child(n + 5):active .icond {
    color: #fff !important;
}

/* The play toggle is red while paused, matching the rewind controls. */
.video-action .item.is-paused {
    background: var(--s04-secondary-soft);
    color: var(--s04-secondary);
    box-shadow: inset 0 0 0 1px rgba(255, 127, 142, .18);
}

.video-action .item.is-paused .icond {
    color: var(--s04-secondary) !important;
}

.video-action .item.is-paused:hover {
    background: rgba(255, 127, 142, .2);
    color: var(--s04-secondary);
    box-shadow: inset 0 0 0 1px var(--s04-secondary), 0 6px 16px rgba(255, 127, 142, .14);
}

.video-action .item.is-paused:active {
    background: var(--s04-secondary);
    color: #fff;
    box-shadow: 0 5px 14px rgba(255, 127, 142, .22);
}

.video-action .item.is-paused:active .icond {
    color: #fff !important;
}

/* Fixed-size playback state icon: pause bars while playing, red play triangle while paused. */
.video-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    position: relative;
    vertical-align: middle;
}

.video-action .item:first-child .icond {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 12px;
    line-height: 1.2;
}

.video-toggle-label {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.video-toggle-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 9px 0 0 currentColor;
}

.video-action .item.is-paused .video-toggle-icon::before {
    top: 0;
    left: 4px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--s04-secondary);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.video-action .item.is-paused:active .video-toggle-icon::before {
    border-left-color: #fff;
}

/* Book and image pages */
.content-shell {
    padding-top: 28px;
    padding-bottom: 72px;
}

.content-heading {
    padding: 24px 0 20px;
}

.content-kicker {
    color: var(--s04-primary);
    font-weight: 700;
}

.content-heading h1,
.content-detail-card h1 {
    color: var(--s04-text) !important;
}

.content-search input {
    border: 1px solid var(--s04-border);
    background: var(--s04-surface);
    color: var(--s04-text);
}

.content-search button {
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary));
    color: #fff;
    font-weight: 700;
}

.content-categories a {
    border: 0;
    background: var(--s04-surface);
    color: var(--s04-text-soft);
}

.content-categories a.active,
.content-categories a:hover {
    background: rgba(105, 214, 246, .14);
    color: var(--s04-primary);
    box-shadow: inset 0 -2px 0 var(--s04-primary);
}

.book-card,
.gallery-card,
.content-detail-card {
    border: 0;
    border-radius: var(--s04-radius);
    background: linear-gradient(180deg, rgba(24, 35, 56, .96), rgba(18, 26, 42, .96));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}

.book-card:hover,
.gallery-card:hover {
    box-shadow: var(--s04-shadow);
}

.book-card h2,
.gallery-card h2 {
    color: var(--s04-text);
}

.book-card p,
.gallery-card p,
.content-meta,
.content-empty {
    color: var(--s04-muted);
}

.book-card-info div,
.content-body {
    color: var(--s04-text-soft);
}

.content-pagination a {
    border: 0;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
}

.content-pagination a:hover {
    background: var(--s04-primary) !important;
    color: #fff;
}

/* Footer and dialogs */
.common-bottom {
    padding: 26px 16px;
    padding-top: 36px;
    border-top: 1px solid var(--s04-border);
    background: rgba(8, 12, 23, .72) !important;
    color: var(--s04-muted);
}

.common-bottom a,
.friendLink a {
    color: var(--s04-muted);
}

.common-bottom a:hover,
.friendLink a:hover {
    color: var(--s04-primary);
}

.friendLink {
}

#TanChuangGongGao {
    background: rgba(3, 7, 18, .78);
    backdrop-filter: blur(8px);
}

#TanChuangGongGao .TanChuangGongGaoBox,
#home-detail-open .detail-content {
    border: 1px solid var(--s04-border-strong);
    border-radius: var(--s04-radius);
    background: var(--s04-surface) !important;
    box-shadow: var(--s04-shadow);
}

#TanChuangGongGao .TanChangHeader,
#home-detail-open .detail-content h1 {
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary));
    color: #fff;
    font-weight: 800;
}

/* Light mode keeps the same hierarchy instead of switching to unrelated pure white styles. */
body.theme-white {
    --s04-bg: #f3f6fb;
    --s04-bg-deep: #e9eef7;
    --s04-surface: #ffffff;
    --s04-surface-raised: #eef4fb;
    --s04-surface-soft: rgba(255, 255, 255, .88);
    --s04-border: rgba(35, 55, 85, .08);
    --s04-border-strong: rgba(50, 137, 237, .28);
    --s04-text: #172033;
    --s04-text-soft: #45536b;
    --s04-muted: #718096;
    --s04-primary: #297dcc;
    --s04-primary-strong: #4c67d8;
    --s04-secondary: #d8586d;
    --s04-secondary-soft: rgba(216, 88, 109, .12);
    color-scheme: light;
    background: var(--s04-bg) !important;
}

body.theme-white::before {
    background:
        radial-gradient(circle at 8% 0%, rgba(76, 103, 216, .12), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(216, 88, 109, .08), transparent 28%),
        linear-gradient(180deg, #f3f6fb 0%, #edf2f9 100%);
}

body.theme-white .head-nav-name,
body.theme-white .nav-h5-menu {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 245, 252, .98)) !important;
    box-shadow: 0 18px 40px rgba(35, 55, 85, .16);
}

body.theme-white .top-header .nav-pc-menu a:hover,
body.theme-white .top-header .nav-pc-menu a.active {
    color: var(--s04-primary) !important;
    background: transparent;
    border-color: transparent;
}

body.theme-white .top-header .nav-pc-menu a {
    background: transparent;
}

body.theme-white .v-pageList a,
body.theme-white .v-pageList a:hover,
body.theme-white .v-pageList a.active,
body.theme-white .v-pageList a.active:hover {
    border-color: transparent !important;
}

body.theme-white .v-pageList a.active,
body.theme-white .v-pageList a:hover,
body.theme-white .v-pageList a.active:hover {
    background: var(--s04-primary) !important;
    color: #fff !important;
}

body.theme-white .nav-h5-menu .card {
    border-color: var(--s04-border-strong);
    background: rgba(255, 255, 255, .84);
}

body.theme-white #vdo-search {
    background: linear-gradient(135deg, #ffffff, #eef4fb) !important;
}

body.theme-white .search-input {
    background: #ffffff;
}

body.theme-white .articleBar a,
body.theme-white .book-card,
body.theme-white .gallery-card,
body.theme-white .content-detail-card,
body.theme-white .vdetail-content .content,
body.theme-white .vdetail-content .videoDetail {
    background: rgba(255, 255, 255, .92);
}

body.theme-white .articleBar a h1,
body.theme-white .content-heading h1,
body.theme-white .content-detail-card h1,
body.theme-white .vdetail-content .title-info h1,
body.theme-white .vdetail-content .detail-tujian-title {
    color: var(--s04-text) !important;
}

body.theme-white .vdetail-content .title-info {
    background: linear-gradient(135deg, #ffffff, #eef4fb);
}

body.theme-white .vdetail-content .video-content-detail-info {
    background: #f6f8fc;
}

body.theme-white .common-bottom {
    background: #e9eef7 !important;
}
.main-m,.video-content{
    /* padding:0 8px; */
}
@media screen and (max-width: 1200px) {
    .articleBar a {
        width: calc(33.333% - 11px);
    }
}

@media screen and (max-width: 768px) {
    .homeIndex,
    .page-content,
    .common-content,
    .content-shell,
    .article-content,
    .head-nav-name-box {
        width: 100% ;
    }

    .head-nav-link-box {
        width: auto;
        flex: 1 1 auto;
    }

    .head-nav-link-box::before {
        width: 8px;
        height: 40px;
        margin-right: 9px;
    }

    .head-title-link {
        max-width: calc(100vw - 105px);
        font-size: 16px;
    }

    .head-time-now {
        font-size: 12px;
    }

    .top-header .nav-pc-menu a {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        padding: 0 14px;
    }

    #theme-color-set {
        display: none;
    }

    #theme-color-set-h5 {
        display: flex !important;
        align-items: center;
        gap: 0;
        width: 34px;
        height: 34px;
        top: 16px;
        right: 78px;
        margin: 0;
    }

    #theme-color-set-h5 a {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .menu-h5 {
        width: 48px;
        height: 48px;
        top: 9px;
        right: 10px;
    }

    .tab-bar {
        height: 58px;
        background: var(--s04-surface-soft) !important;
        border-top: 1px solid var(--s04-border);
        box-shadow: 0 -10px 26px rgba(0, 0, 0, .18) !important;
        backdrop-filter: blur(16px);
    }

    .tab-bar a,
    body.theme-white .tab-bar a {
        color: var(--s04-muted);
    }

    .tab-bar a.active,
    body.theme-white .tab-bar a.active {
        color: var(--s04-primary);
    }

    .articleBar {
        gap: 10px;
        padding:0 4px;
    }

    .articleBar a {
        width: calc(50% - 5px);
        border-radius: 12px;
    }

    .articleBar a .detailInfo {
        padding:0px 6px 6px;
    }

    .articleBar a h1 {
        font-size: 13px;
        line-height: 1.45;
    }

    .category-content,
    .cate-list {
        gap: 6px;
    }

    .cate-list a,
    .category-content a {
        min-width: 0;
        width: calc(25% - 5px);
        padding: 0 5px;
        font-size: 13px;
    }

    .nav-h5-menu .category-content.category-all-index {
        gap: 6px;
        margin: 0;
        padding: 0;
    }

    .nav-h5-menu .category-content.category-all-index a {
        width: auto;
        flex: 0 0 auto;
        min-width: 0;
        height: 34px;
        padding: 0 10px;
        line-height: 34px;
        font-size: 12px;
    }

    .vdetail-content .title-info {
        padding: 8px;
    }

    .vdetail-content .title-info h1,
    .vdetail-content .content .title-info h1 {
        font-size: 18px;
    }

    .vdetail-content .title-info>div span {
        display: inline-block;
        margin: 3px 8px 3px 0;
    }

    .vdetail-content .video-content-detail-info {
        margin: 12px;
        padding: 14px;
        font-size: 14px;
    }

    .video-action {
        min-height: 66px;
        padding: 8px 2px;
    }

    .video-action-box {
        display: grid;
        grid-template-columns: 1.25fr repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(48px, auto));
        gap: 7px;
        width: 100%;
        min-width: 0;
        padding: 0 2px;
    }

    .video-action .item {
        min-width: 0;
        min-height: 48px;
        padding: 0 7px;
    }

    .video-action .item:first-child {
        grid-row: 1 / span 2;
        min-height: 103px;
    }

    .video-action .item:first-child .icond {
        font-size: 16px;
    }

    .video-action .item .icond {
        font-size: 13px;
    }

    .content-shell {
        padding-top: 18px;
    }

    .content-heading {
        padding: 14px 0 16px;
    }

    .content-heading h1 {
        font-size: 26px;
    }

    .category-directory {
        padding-top: 20px;
        padding-bottom: 48px;
    }

    .category-directory-heading {
        padding: 10px;
        display: none;
    }

    .category-source-block {
        padding: 17px 14px 16px;
        border-radius: 14px;
    }

    .category-source-heading {
        gap: 10px;
        padding-bottom: 13px;
    }

    .category-source-index {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 10px;
        font-size: 11px;
    }

    .category-source-heading h2 {
        font-size: 16px;
    }

    .category-tree-group {
        padding: 10px 10px 11px 12px;
    }

    .category-children {
        margin-left: 11px;
        padding-left: 10px;
    }
}

@media screen and (max-width: 768px) {
    .articleBar a .img-box {
        padding-bottom: 70%;
    }

    .articleBar a .detailInfo .info {
        font-size: 0.65rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2px;
        flex-wrap: nowrap;
        height: 25px;
        overflow: hidden;
    }

    .articleBar a h1 {
        font-size: 12px;
    }
}

/* High-DPI phones may report a CSS width above 768px. Keep the mobile
   playback layout active and override the old plyr flex rule. */
@media screen and (max-width: 1024px) {
    .vdetail-content .video-action {
        min-height: 66px;
        overflow-x: hidden;
        padding: 8px 2px;
    }

    .vdetail-content .video-action-box {
        display: grid !important;
        grid-template-columns: 1.25fr repeat(3, 1fr);
        grid-template-rows: repeat(2, minmax(48px, auto));
        gap: 7px;
        width: 100%;
        min-width: 0;
        padding: 0 2px;
    }

    .vdetail-content .video-action .item {
        min-width: 0;
        min-height: 48px;
        flex: none;
        padding: 0 7px;
    }

    .vdetail-content .video-action .item:first-child {
        grid-row: 1 / span 2;
        min-height: 103px;
    }

    .vdetail-content .video-action .item:first-child .icond {
        font-size: 16px;
    }

    .vdetail-content .video-action .item:first-child .icond .video-toggle-label {
        font-size: 12px;
        margin-top:6px;
    }

    .vdetail-content .video-action .item .icond {
        font-size: 13px;
    }

    .vdetail-content .more {
        width: 95%;
    }

    .vdetail-content .more a {
        width: 100%;
    }
}
