/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --mx-wine:     #6B1B3A;
    --mx-wine2:    #7d1f43;
    --mx-wine3:    #8e2550;
    --mx-wine-dk:  #520e2b;
    --mx-wine-lt:  #f9eef3;
    --mx-wine-mid: #e8b8cc;
    --mx-wine-bg:  rgba(107,27,58,.09);
    --mx-rose:     #a52a5a;
    --mx-rose-lt:  #fdf0f5;
    --mx-gold:     #c8a228;
    --bg:          #ffffff;
    --bg-soft:     #f5f5f5;
    --bg-muted:    #ebebeb;
    --ink:         #1c1c1c;
    --ink2:        #3a3a3a;
    --ink3:        #6b6b6b;
    --ink4:        #a8a8a8;
    --rule:        #e0e0e0;
    --rule2:       #cccccc;
    --sh1: 0 1px 4px rgba(0,0,0,.07);
    --sh2: 0 4px 16px rgba(107,27,58,.10);
    --sh3: 0 8px 28px rgba(107,27,58,.16);
    --rd:   6px;
    --rd-sm: 3px;
    --rd-lg: 10px;
    --rd-xl: 14px;
    --rd-pill: 40px;
}

html { font-size: 15px; }

body {
    background: var(--bg-soft);
    color: var(--ink);
    font-family: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
    line-height: 1.65;
}

a { color: var(--mx-wine); text-decoration: none; transition: color .15s; }
a:hover { color: var(--mx-rose); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.cf::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.mx-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== SITE HEADER ===== */
.mx-header {
    background: var(--mx-wine);
    border-bottom: 3px solid var(--mx-wine-dk);
    padding: 9px 0;
    box-shadow: 0 2px 12px rgba(82,14,43,.4);
}

.mx-header .mx-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.mx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mx-logo-lnk {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mx-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.mx-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: var(--rd-pill);
    padding: 5px 17px;
    backdrop-filter: blur(4px);
}

.mx-domain-badge .mdb-hint {
    font-size: 0.61rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    font-weight: 600;
}

.mx-domain-badge .mdb-url {
    font-size: 1.07rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.mx-promo {
    margin: 4px 0 3px;
}
.mx-promo img { border-radius: var(--rd-lg); width: 100%; }

/* ===== CATEGORY NAV ===== */
.mx-nav {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-top: 3px solid var(--mx-wine);
    border-radius: 0 0 var(--rd-xl) var(--rd-xl);
    overflow: hidden;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.mx-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
    min-height: 37px;
}

.mx-nav-row:last-child { border-bottom: none; }

.mx-nav-zone {
    background: var(--mx-wine);
    color: rgba(255,255,255,.88);
    font-size: .67rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid rgba(255,255,255,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.mx-nav-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 3px 8px;
    gap: 3px;
    flex: 1;
}

.mx-nav-links a {
    font-size: .8rem;
    color: var(--ink2);
    padding: 4px 5px;
    border-radius: var(--rd-sm);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.mx-nav-links a:hover {
    background: var(--mx-wine-lt);
    color: var(--mx-wine);
    border-color: var(--mx-wine-mid);
}

.mx-nav-links a.active {
    background: var(--mx-wine);
    color: #fff;
    border-color: var(--mx-wine);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.mx-search {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 9px 16px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.mx-search form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.mx-search input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--ink);
    background: var(--bg-soft);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.mx-search input[type="text"]::placeholder { color: var(--ink4); }

.mx-search input[type="text"]:focus {
    border-color: var(--mx-wine);
    box-shadow: 0 0 0 3px var(--mx-wine-bg);
    background: var(--bg);
}

.mx-search button {
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-pill);
    background: var(--bg-muted);
    color: var(--ink2);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.mx-search button:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.mx-search button[value="1"] {
    background: var(--mx-wine);
    color: #fff;
    border-color: var(--mx-wine);
    box-shadow: 0 2px 8px var(--mx-wine-bg);
}

.mx-search button[value="1"]:hover {
    background: var(--mx-wine2);
    border-color: var(--mx-wine2);
}

.mx-search button[value="2"] {
    background: var(--mx-rose);
    color: #fff;
    border-color: var(--mx-rose);
}

.mx-search button[value="2"]:hover {
    background: var(--mx-wine3);
    border-color: var(--mx-wine3);
}

/* ===== HOT TAGS ===== */
.mx-hotwords {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    padding: 8px 14px;
    margin: 3px 0;
    box-shadow: var(--sh1);
}

.mx-hotwords h4 {
    font-size: .75rem;
    font-weight: 800;
    color: var(--mx-wine);
    margin-bottom: 6px;
}

.mx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mx-tags .mxtag {
    display: inline-block;
    background: var(--mx-wine-lt);
    color: var(--mx-wine);
    border: 1.5px solid var(--mx-wine-mid);
    border-radius: var(--rd-pill);
    padding: 2px 11px;
    font-size: .73rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.mx-tags .mxtag:hover {
    background: var(--mx-wine);
    color: #fff;
    border-color: var(--mx-wine);
}

/* ===== CONTENT SECTION ===== */
.mx-section {
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-xl);
    padding: 13px 15px 11px;
    margin: 4px 0;
    box-shadow: var(--sh1);
}

.mx-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.mx-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--mx-wine);
    border-radius: 2px;
}

.mx-sect-hd h3 {
    font-size: .97rem;
    font-weight: 900;
    color: var(--mx-wine);
}

.mx-sect-hd h3 a { color: var(--mx-wine); }
.mx-sect-hd h3 a:hover { color: var(--mx-rose); }

.mx-sect-hd h4 {
    font-size: .95rem;
    font-weight: 900;
    color: var(--mx-wine);
}

/* ===== FILM GRID ===== */
.mx-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mx-grid li {
    border-radius: var(--rd-lg);
    overflow: hidden;
    border: 1.5px solid var(--rule);
    background: var(--bg-soft);
    transition: box-shadow .2s, transform .2s;
}

.mx-grid li:hover {
    box-shadow: var(--sh3);
    transform: translateY(-2px);
    border-color: var(--mx-wine-mid);
}

.mx-cover {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

.mx-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

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

.mx-card-foot {
    padding: 6px 9px 9px;
    border-top: 1px solid var(--rule);
}

.mx-card-foot h5 {
    font-size: .76rem;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mx-card-foot h5 a { color: var(--ink2); }
.mx-card-foot h5 a:hover { color: var(--mx-wine); }

/* ===== PAGINATION ===== */
.mx-pager {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.mx-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.mx-pager-row a.mxpb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg);
    border: 1.5px solid var(--rule2);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    color: var(--ink2);
    text-decoration: none;
    transition: all .15s;
}

.mx-pager-row a.mxpb:hover {
    background: var(--mx-wine-lt);
    border-color: var(--mx-wine);
    color: var(--mx-wine);
}

.mx-pager-row a.mxpb-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--mx-wine);
    border: 1.5px solid var(--mx-wine);
    border-radius: var(--rd-sm);
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px var(--mx-wine-bg);
}

/* ===== FOOTER ===== */
.mx-footer-bk {
    background: var(--mx-wine-dk);
    border-radius: var(--rd-lg);
    padding: 10px 15px;
    margin: 4px 0;
}

.mx-footer-bk .mx-sect-hd { border-bottom-color: rgba(255,255,255,.1); }
.mx-footer-bk .mx-sect-hd::after { background: var(--mx-wine-mid); }
.mx-footer-bk .mx-sect-hd h4 { color: rgba(255,255,255,.48); }

.mx-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mx-flinks dd { display: inline; }

.mx-flinks a {
    display: inline-block;
    font-size: .74rem;
    color: rgba(255,255,255,.4);
    padding: 2px 9px;
    border-radius: var(--rd-sm);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    text-decoration: none;
    transition: all .15s;
}

.mx-flinks a:hover {
    color: #fff;
    border-color: rgba(232,184,204,.5);
    background: rgba(107,27,58,.4);
}

.mx-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--ink4);
    font-size: .73rem;
}

/* ===== DETAIL PAGES ===== */
.mx-entry-head {
    line-height: 1.8;
    padding: 12px 18px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-left: 4px solid var(--mx-wine);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
}

.mx-entry-head a {
    color: var(--mx-wine);
    font-weight: 700;
    margin-right: 8px;
    font-size: .75rem;
}

.mx-entry-head b { color: var(--ink); font-weight: 800; }

.mx-entry-detail {
    font-size: .9rem;
    line-height: 1.9;
    padding: 14px 18px;
    background: var(--bg);
    border: 1.5px solid var(--rule);
    border-radius: var(--rd-lg);
    box-shadow: var(--sh1);
    margin: 4px 0;
    color: var(--ink2);
}

.mx-img-box {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.mx-img-box picture,
.mx-img-box img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.mx-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.mx-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 26px;
    background: var(--mx-wine);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s, box-shadow .18s;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--mx-wine-bg);
}

.mx-action-btn:hover {
    background: var(--mx-rose);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(107,27,58,.25);
}

.mx-hint {
    text-align: center;
    padding: 6px;
    font-size: .81rem;
}

.mx-hint a { color: var(--ink3); font-weight: 600; }
.mx-hint a:hover { color: var(--mx-wine); }

/* ===== SHARE BAR ===== */
.mx-share-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--mx-wine-lt);
    border: 1.5px solid var(--mx-wine-mid);
    border-radius: var(--rd-lg);
    padding: 9px 15px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.mx-share-row .msr-lbl { font-size: .72rem; color: var(--mx-wine); white-space: nowrap; font-weight: 700; }
.mx-share-row .msr-url { font-size: .77rem; color: var(--ink2); flex: 1; min-width: 0; word-break: break-all; }

.mx-share-row .msr-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 15px;
    background: var(--mx-wine);
    color: #fff;
    border: none;
    border-radius: var(--rd-pill);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.mx-share-row .msr-btn:hover { background: var(--mx-rose); }

/* ===== VISIBILITY ===== */
.mx-dsk { display: block; }
.mx-mob { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .mx-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mx-dsk { display: none; }
    .mx-mob { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .mx-sitename { font-size: 1.08rem; }
    .mx-domain-badge .mdb-url { font-size: .9rem; }

    .mx-nav-row { align-items: stretch; }

    .mx-nav-zone {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mx-nav-links {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 3px 4px;
        align-items: center;
    }

    .mx-nav-links a {
        font-size: 13px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .mx-search form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .mx-search input[type="text"] {
        height: 34px;
        font-size: .78rem;
        padding: 0 10px;
    }

    .mx-search button {
        height: 34px;
        padding: 0 9px;
        font-size: .73rem;
    }

    .mx-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .mx-cover { aspect-ratio: 600 / 350; }
    .mx-card-foot h5 { font-size: .71rem; }
    .mx-section { padding: 10px 10px 8px; }
    .mx-action-btn { padding: 9px 18px; font-size: .83rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .mx-nav-zone { font-size: 10px; }
    .mx-nav-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .mx-nav-zone { font-size: 10px; }
    .mx-nav-links a { font-size: 12px; }
    .mx-search button { padding: 0 6px; font-size: .67rem; }
}
