/* MF 影视 — 前台视觉层（覆盖 style.css 中的列表/详情表现） */

:root {
    --bg: #eef1f4;
    --bg-deep: #dfe6ec;
    --surface: #ffffff;
    --surface-hover: #f4f7fa;
    --border: #d5dde5;
    --text: #15202b;
    --text-muted: #5b6b7c;
    --primary: #c45c26;
    --primary-hover: #a84a1c;
    --accent: #1f6f8b;
    --ink: #0c1520;
    --radius: 10px;
    --shadow: 0 8px 28px rgba(12, 21, 32, 0.08);
    --shadow-hover: 0 14px 36px rgba(196, 92, 38, 0.16);
    --header-bg: rgba(12, 21, 32, 0.92);
    --font-display: "Syne", "Noto Sans SC", sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(31, 111, 139, 0.12), transparent 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(196, 92, 38, 0.1), transparent 50%),
        linear-gradient(180deg, #e8edf2 0%, var(--bg) 40%, #e7ecf1 100%);
    color: var(--text);
}

.container {
    max-width: 1280px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: 64px;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo {
    color: #fff;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #c45c26, #e3a05a);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 160px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 8px 12px 8px 14px;
    font-size: 0.88rem;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.header-search button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 14px 8px 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-link-primary {
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    padding: 7px 14px;
}

.site-header .nav-link-primary:hover {
    background: var(--primary-hover);
}

/* Hero */
.hero-section,
.carousel-section {
    position: relative;
    background: var(--ink);
    border-bottom: none;
}

.hero,
.carousel {
    height: min(36vh, 320px);
    min-height: 240px;
}

.carousel-bg {
    filter: saturate(1.05) contrast(1.05);
}

.carousel-overlay {
    background:
        linear-gradient(90deg, rgba(8, 14, 22, 0.92) 0%, rgba(8, 14, 22, 0.55) 42%, rgba(8, 14, 22, 0.2) 100%),
        linear-gradient(0deg, rgba(8, 14, 22, 0.75) 0%, transparent 45%);
}

.carousel-content {
    max-width: 620px;
    padding-left: 24px;
    animation: heroIn 0.8s ease both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.carousel-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.carousel-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    max-width: 420px;
}

.carousel-btn {
    box-shadow: 0 8px 24px rgba(196, 92, 38, 0.4);
}

.carousel-arrow {
    background: rgba(12, 21, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.carousel-dot {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--primary);
}

.hero-fallback {
    min-height: 280px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-fallback-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, #0c1520 0%, #1a3040 45%, #2a1a12 100%),
        repeating-linear-gradient(-12deg, transparent 0 14px, rgba(255, 255, 255, 0.02) 14px 15px);
}

.hero-fallback .carousel-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    transform: none;
    top: auto;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hot search */
.hot-search-section {
    padding: 18px 0 4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.hot-search-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
}

.hot-search-label {
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(196, 92, 38, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.hot-search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: 0;
}

.hot-search-item {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hot-search-item:hover {
    color: var(--primary);
}

.hot-search-item.is-top {
    color: var(--primary);
    font-weight: 600;
}

.hot-search-bar--detail {
    margin: 0 0 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs-sep {
    opacity: 0.45;
}

.breadcrumbs-current {
    color: var(--ink);
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sections */
.filter-section {
    padding: 36px 0 8px;
}

.section-head {
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.section-desc a {
    color: var(--primary);
    text-decoration: none;
}

.section-desc a:hover {
    text-decoration: underline;
}

.category-filter {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    border-radius: 8px;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    padding: 8px 14px;
}

.filter-btn:hover {
    color: var(--primary);
    border-color: rgba(196, 92, 38, 0.25);
    background: #fff;
}

.filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: none;
}

.search-result-tip {
    margin-bottom: 8px;
}

.search-clear {
    color: var(--primary);
}

/* Poster grid */
.resource-section {
    padding: 8px 0 72px;
}

.latest-section {
    padding: 28px 0 16px;
}

.latest-section .section-head {
    margin-bottom: 20px;
}

/* Play rankings */
.rank-section {
    padding: 8px 0 20px;
}

.rank-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.rank-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.rank-tab {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rank-tab:hover {
    color: var(--primary);
    border-color: rgba(196, 92, 38, 0.25);
    background: #fff;
}

.rank-tab.is-active,
.rank-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.rank-panel {
    display: none !important;
}

.rank-panel.is-active,
.rank-panel.active {
    display: block !important;
}

.rank-panel-label {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}

.rank-item {
    min-width: 0;
}

.rank-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.15s ease;
}

.rank-link:hover {
    background: #fff;
}

.rank-link:hover .rank-title {
    color: var(--primary);
}

.rank-no {
    flex: 0 0 28px;
    width: 28px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1;
}

.rank-no-1 { color: #c45c26; }
.rank-no-2 { color: #b07a3a; }
.rank-no-3 { color: #8a6a4a; }

.rank-cover {
    flex: 0 0 52px;
    width: 52px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-deep);
}

.rank-cover img,
.rank-cover-ph {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.rank-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rank-cat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 7em;
}

.rank-plays {
    flex-shrink: 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 14px;
}

.resource-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    min-width: 0;
}

.resource-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.card-cover {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #cbd5e1;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-cover img {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-grid {
    grid-template-columns: repeat(4, 1fr);
}

.member-grid .card-cover,
.detail-recommend-grid .card-cover {
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
}

.detail-recommend-grid .card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-card:hover .card-cover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(12, 21, 32, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-badge::after {
    content: "";
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(196, 92, 38, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.resource-card:hover .play-badge {
    opacity: 1;
}

.category-badge {
    top: auto;
    bottom: 10px;
    left: 10px;
    background: rgba(12, 21, 32, 0.72);
    color: #fff;
    border: 0;
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.category-badge.large {
    background: rgba(196, 92, 38, 0.12);
    color: var(--primary);
    border: 1px solid rgba(196, 92, 38, 0.2);
}

a.category-badge.large {
    text-decoration: none;
    display: inline-block;
}

.card-body {
    padding: 10px 2px 0;
    gap: 6px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--primary);
}

.card-intro {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    margin: 0;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    justify-content: space-between;
}

.card-actions {
    display: none;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(196, 92, 38, 0.06);
}

/* Detail */
.detail-section {
    padding: 28px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #cbd5e1;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-main {
    min-width: 0;
    width: 100%;
}

.detail-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.detail-content h2,
.detail-gallery-title,
.detail-recommend-title {
    font-family: var(--font-display);
    color: var(--ink);
}

.watch-box,
.download-box {
    background:
        linear-gradient(135deg, rgba(196, 92, 38, 0.1), rgba(31, 111, 139, 0.08)),
        #fff;
    border: 1px solid rgba(196, 92, 38, 0.22);
    border-radius: 14px;
    margin-top: 24px;
}

.detail-recommend-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 14px;
}

.detail-recommend-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.gallery-thumbs {
    gap: 12px;
}

.thumb-btn {
    width: 120px;
    height: 80px;
    display: block;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(196, 92, 38, 0.2);
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    border-top: none;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-desc {
    max-width: 520px;
    margin: 0 auto 14px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.disclaimer-section {
    padding: 48px 0 72px;
}

.disclaimer-section .narrow {
    max-width: 760px;
}

.disclaimer-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 24px;
}

.disclaimer-body {
    line-height: 1.8;
    color: var(--text, #243041);
}

.disclaimer-body h2 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
}

.disclaimer-body ul {
    padding-left: 1.2em;
    margin: 0 0 8px;
}

.disclaimer-body li {
    margin-bottom: 8px;
}

.disclaimer-note {
    margin: 28px 0 20px;
    color: var(--muted, #667788);
}

h1.hero-brand {
    margin: 0 0 10px;
}

.embed-player-wrap {
    width: 800px !important;
    max-width: 100% !important;
    margin: 22px 0 0;
    box-sizing: border-box;
}

.embed-player-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.embed-player {
    position: relative;
    display: block;
    width: 800px !important;
    max-width: 100% !important;
    height: 450px !important;
    padding-bottom: 0 !important;
    background: #0b1220;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.embed-player iframe {
    position: static !important;
    display: block !important;
    width: 800px !important;
    max-width: 100% !important;
    height: 450px !important;
    border: 0 !important;
}

.member-player-block {
    margin-top: 8px;
}

.member-video-title {
    font-size: 1.6rem;
    margin: 0 0 10px;
}

.member-player-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 16px;
}

.member-player-wrap {
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    margin-top: 0 !important;
    min-width: 0;
}

.member-player-wrap .member-player {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.member-player-wrap .embed-player iframe,
.member-player-wrap iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
}

.member-player video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background: #000;
    object-fit: contain;
}

.member-side-ads {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.member-side-ad {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 0;
    min-height: 0;
    padding: 8px;
    text-decoration: none;
    color: inherit;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-side-ad:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.member-side-ad-thumb {
    width: 100%;
    flex: 1 1 auto;
    min-height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.member-side-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-side-ad-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
    min-height: calc(1.35em * 2);
}

.member-intro {
    margin-top: 28px;
}

.embed-player-tip {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--muted, #667788);
}

/* Auth / user surfaces inherit new tokens */
.logo-icon {
    background: linear-gradient(135deg, var(--primary), #e3a05a);
    box-shadow: 0 2px 8px rgba(196, 92, 38, 0.25);
}

.sidebar-avatar {
    background: linear-gradient(135deg, var(--primary), #1f6f8b);
}

.sidebar-link.active {
    background: rgba(196, 92, 38, 0.1);
    color: var(--primary);
}

@media (max-width: 1200px) {
    .resource-grid,
    .detail-recommend-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .member-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-ads-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1100px) {
    .detail-ads-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .resource-grid,
    .detail-recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }

    .header-search input {
        width: 120px;
    }

    .member-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .member-player-row {
        flex-direction: column;
    }

    .member-side-ads {
        flex: none;
        flex-direction: row;
        width: 100%;
    }

    .member-side-ad {
        flex: 1 1 0;
    }

    .member-side-ad-thumb {
        aspect-ratio: 16 / 10;
        flex: none;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 12px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        padding-bottom: 4px;
    }

    .header-actions {
        margin-left: auto;
    }

    .hot-search-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
    }

    .hot-search-list {
        gap: 6px 12px;
    }

    .hot-search-item {
        font-size: 0.86rem;
    }

    .rank-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rank-head {
        align-items: flex-start;
    }

    .rank-cover {
        flex-basis: 46px;
        width: 46px;
        height: 62px;
    }

    .hero,
    .carousel,
    .hero-fallback {
        height: auto;
        min-height: 220px;
    }

    .carousel-content {
        top: auto;
        bottom: 36px;
        transform: none;
        max-width: 100%;
    }

    .hero-brand {
        font-size: 2rem;
    }

    .resource-grid,
    .detail-recommend-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 10px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 220px;
        margin: 0 auto;
    }

    .detail-ads-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .resource-grid,
    .detail-recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        display: none;
    }
}
