:root {
    --color-bg: #0f1117;
    --color-panel: #181c24;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f4f6fb;
    --color-muted: rgba(244, 246, 251, 0.65);
    --color-primary: #ff6b6b;
    --color-ghost: rgba(255, 255, 255, 0.15);
    --radius: 18px;
    --transition: all .25s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-size: .95rem;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(120deg,#ff9773,#ff6b6b);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 30px rgba(255,107,107,.35);
}

.btn.ghost {
    border-color: var(--color-ghost);
    background: transparent;
    color: var(--color-text);
}

.btn.primary:hover,
.btn.ghost:hover {
    transform: translateY(-2px);
}

.h5-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: rgba(10,12,20,.85);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
}

.h5-header.header-color-flow {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
}

.header-color-flow {
    position: relative;
    overflow: hidden;
}

.header-color-flow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg,#f472b6,#38bdf8,#4ade80);
    background-size: 200% 200%;
    opacity: .45;
    mix-blend-mode: screen;
    animation: headerColorFlow 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.header-color-flow > * {
    position: relative;
    z-index: 2;
}

.h5-header-inner {
    width: 100%;
    max-width: 1900px;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.h5-brand a {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 1.2;
}

.h5-brand small {
    color: var(--color-muted);
    font-size: .75rem;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-ghost);
    border-radius: 12px;
    background: transparent;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin-left: auto;
}

.nav-toggle span {
    height: 2px;
    background: var(--color-text);
    width: 60%;
    margin: 0 auto;
    transition: var(--transition);
}

.h5-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.h5-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.h5-nav li {
    padding: 0;
    border-radius: 14px;
}

.h5-nav li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(15,17,23,.55);
    color: rgba(248,250,252,.85);
    font-weight: 500;
    letter-spacing: .02em;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.h5-nav li a:hover {
    border-color: rgba(255,255,255,.3);
    color: #fff;
    background: rgba(99,102,241,.25);
}

.h5-nav li.active a {
    background: linear-gradient(120deg,#6366f1,#8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 35px rgba(99,102,241,.35);
}

@media (max-width: 768px) {
    .h5-nav {
        width: 100%;
    }
    .h5-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .4rem;
        gap: .6rem;
    }
    .h5-nav li {
        flex: 0 0 auto;
    }
    .h5-nav li a {
        white-space: nowrap;
    }
}

@keyframes headerColorFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.h5-nav .h5-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .25rem .3rem .25rem .6rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, .45), rgba(14, 165, 233, .25));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 12px 35px rgba(15,23,42,.45);
    width: 100%;
    max-width: 280px;
    min-width: 180px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.h5-nav .h5-search::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,.2), transparent 55%);
    opacity: .35;
    pointer-events: none;
}

.h5-nav .h5-search input {
    flex: 1;
    background: rgba(5, 7, 12, .45);
    border: none;
    color: #f8fafc;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    position: relative;
    z-index: 1;
}

.h5-nav .h5-search input::placeholder {
    color: rgba(248,250,252,.65);
}

.h5-nav .h5-search button {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #db2777);
    color: #fff;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(219,39,119,.45);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    z-index: 1;
}

.h5-nav .h5-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(219,39,119,.55);
}

.h5-main {
    max-width: 1900px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

.hero {
    padding: 2.8rem;
    border-radius: var(--radius);
    background: radial-gradient(circle at top left,rgba(255,255,255,.12),transparent 55%),
                linear-gradient(130deg,#1f2430,#11131a);
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
}

.hero .label {
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .75rem;
    color: var(--color-muted);
}

.hero h1 {
    font-size: clamp(2rem,4vw,3.2rem);
    margin: .4rem 0 1rem;
}

.hero .sub {
    max-width: 520px;
    color: var(--color-muted);
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.waterfall {
    column-count: 3;
    column-gap: 1.5rem;
}

.water-card {
    background: var(--color-panel);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform .35s ease, opacity .35s ease;
}

.water-card .cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.water-card .cover img {
    width: 100%;
    height: auto;
    transition: transform .6s ease;
}

.water-card .cover:hover img {
    transform: scale(1.05);
}

.water-card .cover .cover-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.water-card .cover .badge-size {
    letter-spacing: normal;
}
.water-card .cover .cover-badge.badge-left {
    left: .75rem;
    right: auto;
}

.cover-meta {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: .6rem;
    border-radius: 12px;
    background: rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cover-meta em {
    font-style: normal;
    font-size: .8rem;
    color: var(--color-muted);
}

.cover-meta strong {
    font-size: 1rem;
}

.card-info {
    padding: 1rem 1.2rem 1.4rem;
}

.card-info .card-title {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
}

.card-info p {
    color: var(--color-muted);
    margin: 0 0 .9rem;
    min-height: 2.5rem;
}

.card-info .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}

.card-info .meta span {
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

@media (max-width: 768px) {
    #homeWaterfall .card-info .card-title {
        font-size: .95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.img-fallback {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.img-fallback .bg {
    fill: rgba(255,255,255,0.08);
}

.img-fallback .shine {
    fill: rgba(255,255,255,0.04);
    transform-box: fill-box;
    transform-origin: 0 0;
    animation: svg-shimmer 1.6s linear infinite;
}

.img-fallback.hero {
    border-radius: var(--radius);
}

.img-fallback.small {
    border-radius: 16px;
}

@keyframes svg-shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(400px); }
}

.cta {
    margin: 3rem 0 1rem;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(120deg,#471bff,#e441ff);
}

.cta p {
    color: rgba(255,255,255,.8);
}

.list-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 260px;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
}

.list-hero.fallback {
    background-image: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.list-hero .overlay {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    background: linear-gradient(120deg,rgba(0,0,0,.75),rgba(0,0,0,.2));
}
.list-hero .overlay.overlay-aurora {
    overflow: hidden;
}

.list-hero .overlay.overlay-aurora::before {
    content: "";
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,.5), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(236,72,153,.35), transparent 60%),
        radial-gradient(circle at 60% 80%, rgba(94,234,212,.35), transparent 60%);
    filter: blur(35px);
    opacity: .6;
    animation: overlayAurora 12s ease-in-out infinite;
    pointer-events: none;
}

.list-hero h1 {
    margin: .6rem 0;
    font-size: 2rem;
}

.list-hero .meta span {
    margin-right: 1rem;
    color: var(--color-muted);
}

@keyframes overlayAurora {
    0% { transform: translate(-10%, -5%) scale(1); }
    50% { transform: translate(8%, 6%) scale(1.05); }
    100% { transform: translate(-10%, -5%) scale(1); }
}

.list-waterfall {
    column-count: 3;
}

.list-waterfall .water-card {
    break-inside: avoid;
}

.list-waterfall.list-waterfall-five {
    column-count: 5;
}

.feed-empty {
    text-align: center;
    color: var(--color-muted);
    padding: 2rem 0;
    width: 100%;
    display: block;
}

.model-grid {
    column-count: 5;
}

.model-grid .water-card {
    break-inside: avoid;
}

.model-loader {
    text-align: center;
    margin: 1rem 0 2rem;
}

.model-loader span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2);
    border-top-color: var(--color-primary);
    display: inline-block;
    animation: loader-spin .8s linear infinite;
}

.model-loader span:after {
    content: '';
}

@keyframes loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.water-card.card-enter {
    opacity: 0;
    transform: translateY(24px);
}

.pager {
    margin: 2rem auto;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.pager a,
.pager span,
.pager b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.pager a:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.pager b {
    background: linear-gradient(120deg,#ff9773,#ff6b6b);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 25px rgba(255,107,107,.35);
}

.pager .nextpage {
    font-size: 1.1rem;
    padding: .45rem 1.2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--color-muted);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-text);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    border-radius: calc(var(--radius) + 12px);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(15,21,33,.65);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 40%);
    opacity: .45;
    pointer-events: none;
}

.detail-hero > * {
    position: relative;
    z-index: 1;
}

.detail-hero .hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(12,16,27,.95), rgba(8,10,18,.85));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 45px rgba(0,0,0,.45);
    height: clamp(320px, 40vw, 520px);
}

.detail-hero .hero-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--radius) - 8px);
    box-shadow: 0 18px 35px rgba(0,0,0,.35);
}

/* 多图轮播样式 */
.detail-hero .hero-media.has-multi {
    position: relative;
    overflow: hidden;
}

.detail-hero .hero-media.has-multi img {
    display: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: inherit;
    margin: 0 auto;
}

.detail-hero .hero-media.has-multi img.is-active {
    display: block;
}

.hero-media-controls {
    position: absolute;
    inset: auto 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.hero-media-controls .hero-btn {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.hero-media-controls .hero-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.hero-media-controls .hero-dots {
    pointer-events: auto;
    display: inline-flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
}

.hero-media-controls .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.hero-media-controls .hero-dot.is-active {
    background: #ff6b6b;
    transform: scale(1.1);
}

.detail-hero .hero-info {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-panel);
}

.detail-hero .meta span {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    gap: .3rem;
    color: var(--color-muted);
}

.hero-latest {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
}

.hero-latest-grid {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem;
    align-content: flex-start;
}

.hero-latest-grid li {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
    display: flex;
}

.hero-info-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.hero-latest-grid img,
.hero-latest-grid svg {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.hero-latest-grid p {
    margin: .5rem .8rem .9rem;
    font-size: .9rem;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-gallery {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-panel);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.detail-gallery.hot-tags {
    text-align: left;
    margin-bottom: .6rem;
}

.detail-gallery.hot-tags h4 {
    margin: 0;
    font-size: 1.05rem;
}

.detail-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.detail-section-head h4 {
    margin: 0;
    font-size: 1.1rem;
}

.tag-chip-list {
    list-style: none;
    padding: .8rem 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.tag-chip-list li a {
    display: inline-flex;
    align-items: center;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(248,250,252,.85);
    background: rgba(255,255,255,.04);
    font-size: .9rem;
    transition: var(--transition);
}

.tag-chip-list li a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.35);
    background: rgba(99,102,241,.3);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.recommend-nav {
    padding-top: 0;
    justify-content: flex-end;
}

.recommend-nav li a {
    font-size: .85rem;
    padding: .35rem .75rem;
}

.detail-gallery.breadcrumb-panel {
    padding: .8rem 1.2rem;
    margin-bottom: 1rem;
}

.detail-gallery.breadcrumb-panel .breadcrumb {
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: .3rem;
    min-height: 700px;
}

.gallery-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,.02);
    display: flex;
    flex-direction: column;
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-card figcaption {
    padding: .45rem .6rem;
    font-size: .9rem;
    color: var(--color-text);
    min-height: 2.6rem;
}

.download-panel,
.related-panel {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-panel);
    padding: 1.5rem;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,.15);
}

.download-tags,
.hot-tags {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px dashed var(--color-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.download-tags i {
    color: var(--color-muted);
}

.download-tags .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex: 1;
}

.download-tags .tag-list a {
    padding: .3rem .8rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: .85rem;
}

.related-grid {
    margin-top: 1rem;
}

.related-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 1rem;
}

.related-grid li {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,.02);
}

.related-grid img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.related-grid .card-info {
    padding: .8rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.channel-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: rgba(0,0,0,.15);
}

.group-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.group-head h2 {
    margin: 0;
    font-size: 1.4rem;
}

.group-head p {
    color: var(--color-muted);
    margin: .3rem 0 0;
}

.group-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.group-grid .water-card {
    width: calc((100% - 3 * 1.5rem) / 4);
    margin: 0;
}

/* Utility: hide elements on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

.water-card.small .cover img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem;
}

.prev-next .item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    background: var(--color-panel);
}

.h5-footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    background: #0c0d12;
}

.h5-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: .6rem;
}

@media (max-width: 1400px) {
    .list-waterfall.list-waterfall-five {
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .list-waterfall.list-waterfall-five {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .detail-hero {
        grid-template-columns: 1fr;
    }
    .waterfall {
        column-count: 2;
    }
    .model-grid {
        column-count: 2;
    }
    .list-waterfall.list-waterfall-five {
        column-count: 2;
    }
    .h5-main {
        padding: 1.5rem;
    }
    .group-grid .water-card {
        width: calc((100% - 1.5rem) / 2);
    }
    .gallery-grid {
        gap: .3rem;
    }
    .gallery-card img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .h5-main {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
    }
    .h5-header {
        flex-wrap: wrap;
    }
    .h5-header-inner {
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    .h5-nav {
        display: none;
        width: 100%;
        flex-direction: row;
        gap: .6rem;
    }
    .h5-nav.open {
        display: block;
    }
    .nav-toggle {
        display: flex;
    }
    .h5-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .4rem;
        gap: .6rem;
    }
    .h5-nav li {
        flex: 0 0 auto;
        width: auto;
    }
    .h5-nav li a {
        width: auto;
        white-space: nowrap;
    }
    .h5-nav .h5-search {
        margin-left: 0;
        max-width: 100%;
    }
    .detail-hero .hero-media {
        height: auto;
        padding: .75rem;
    }
    .detail-hero .hero-media img {
        width: 100%;
        height: auto;
    }
    .waterfall,
    .list-waterfall {
        column-count: 1;
    }
    .model-grid {
        column-count: 1;
    }
    .list-waterfall.list-waterfall-five {
        column-count: 1;
    }
    .group-head {
        flex-direction: column;
    }
    .group-grid {
        flex-direction: column;
    }
    .group-grid .water-card {
        width: 100%;
    }
    .gallery-grid {
        gap: .3rem;
    }
    .gallery-card img {
        height: 200px;
    }
    .category-preview {
        flex-direction: column;
    }
    .hero {
        padding: 1.5rem;
    }
}
.category-filter {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-panel);
}

.filter-title {
    font-weight: 600;
    margin-bottom: .6rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-tags .tag {
    border: 1px solid var(--color-ghost);
    padding: .35rem .9rem;
    border-radius: 999px;
    color: var(--color-text);
    background: transparent;
    transition: var(--transition);
}

.filter-tags .tag.active {
    background: var(--color-primary);
    border-color: transparent;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    flex: 1;
    min-width: 220px;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: rgba(0,0,0,.15);
}

.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    font-weight: 600;
}

.preview-head .listMore a {
    font-size: .85rem;
    color: var(--color-muted);
}

.preview-intro {
    color: var(--color-muted);
    margin: 0;
    font-size: .9rem;
}
