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

:root {
    --ink: #0e0e0f;
    --ink2: #181818;
    --ink3: #222224;
    --ink4: #2e2e30;
    --ink5: #3c3c40;
    --neon: #00c8e0;
    --neon-dk: #009eb4;
    --neon-glow: rgba(0,200,224,.13);
    --cobalt: #1565f0;
    --cobalt-dk: #0e50cc;
    --amber: #f0a800;
    --txt-hi: #f0f0f2;
    --txt-md: #a8a8b4;
    --txt-lo: #5a5a68;
    --divider: #2a2a2c;
    --divider2: #363638;
    --sh-sm: 0 1px 5px rgba(0,0,0,.45);
    --sh-md: 0 4px 16px rgba(0,0,0,.55);
    --sh-lg: 0 8px 30px rgba(0,0,0,.7);
    --curve: 5px;
    --curve-sm: 3px;
    --curve-lg: 8px;
    --pill: 22px;
}

html { font-size: 15px; }

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

a { color: var(--neon); text-decoration: none; transition: color .18s; }
a:hover { color: var(--neon-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.grp::after { content: ''; display: table; clear: both; }

/* ===== LAYOUT ===== */
.ep-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== HEADER ===== */
.ep-topbar {
    background: #080808;
    border-bottom: 1px solid var(--divider);
    padding: 10px 0;
}

.ep-topbar .ep-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

.ep-homelink {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ep-brand-txt {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--txt-hi);
    font-style: normal;
    letter-spacing: -.3px;
    text-decoration: none;
    border-bottom: none;
}

.ep-brand-txt .ep-neon-word {
    color: var(--neon);
    font-style: normal;
}

.ep-addr-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ink3);
    border: 1px solid var(--divider2);
    border-radius: var(--curve-sm);
    padding: 4px 12px;
}

.ep-addr-chip .ac-note {
    font-size: 0.67rem;
    color: var(--txt-lo);
    white-space: nowrap;
}

.ep-addr-chip .ac-link {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--neon);
    white-space: nowrap;
}

/* ===== PROMO ===== */
.ep-spotlight {
    margin: 4px 0 3px;
}
.ep-spotlight img { border-radius: var(--curve); width: 100%; }

/* ===== NAV ===== */
.ep-navdeck {
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-top: 2px solid var(--neon);
    border-radius: var(--curve);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}

.ep-navrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--divider);
    min-height: 38px;
}

.ep-navrow:last-child { border-bottom: none; }

.ep-navsign {
    background: #050505;
    color: var(--txt-lo);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--divider);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.ep-navlinks a {
    font-size: .82rem;
    color: var(--txt-md);
    padding: 4px 5px;
    border-radius: var(--curve-sm);
    transition: all .16s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.ep-navlinks a:hover {
    background: var(--neon-glow);
    color: var(--neon);
    border-color: rgba(0,200,224,.3);
}

.ep-navlinks a.active {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.ep-finder {
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-radius: var(--curve);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}

.ep-finder form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.ep-finder input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--divider2);
    border-radius: var(--curve-sm);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--txt-hi);
    background: var(--ink3);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.ep-finder input[type="text"]::placeholder { color: var(--txt-lo); }

.ep-finder input[type="text"]:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0,200,224,.15);
    background: var(--ink4);
}

.ep-finder button {
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--divider2);
    border-radius: var(--curve-sm);
    background: var(--ink4);
    color: var(--txt-md);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .16s;
    flex-shrink: 0;
}

.ep-finder button:hover {
    background: var(--ink5);
    color: var(--txt-hi);
}

.ep-finder button[value="1"] {
    background: var(--neon);
    color: #000;
    border-color: var(--neon);
}
.ep-finder button[value="1"]:hover { background: var(--neon-dk); border-color: var(--neon-dk); }

.ep-finder button[value="2"] {
    background: var(--cobalt);
    color: #fff;
    border-color: var(--cobalt);
}
.ep-finder button[value="2"]:hover { background: var(--cobalt-dk); border-color: var(--cobalt-dk); }

/* ===== HOT TAGS ===== */
.ep-heatbar {
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-radius: var(--curve);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}

.ep-heatbar h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.ep-kwset {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ep-kwset .ep-kw {
    display: inline-block;
    background: var(--ink3);
    color: var(--txt-md);
    border: 1px solid var(--divider2);
    border-radius: var(--curve-sm);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .16s;
}

.ep-kwset .ep-kw:hover {
    background: var(--neon-glow);
    color: var(--neon);
    border-color: rgba(0,200,224,.4);
}

/* ===== CONTENT BLOCK ===== */
.ep-shelf {
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-radius: var(--curve-lg);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}

.ep-shelf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--divider);
    position: relative;
}

.ep-shelf-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--neon);
    border-radius: 1px;
}

.ep-shelf-top h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--txt-hi);
}

.ep-shelf-top h3 a { color: var(--txt-hi); }
.ep-shelf-top h3 a:hover { color: var(--neon); }

.ep-shelf-top h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt-hi);
}

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

.ep-tiles li {
    border-radius: var(--curve);
    overflow: hidden;
    border: 1px solid var(--divider);
    background: var(--ink3);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    min-width: 0;
}

.ep-tiles li:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-2px);
    border-color: var(--neon);
}

.ep-tile-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--ink4);
}

.ep-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    opacity: .88;
}

.ep-tile-img:hover img { transform: scale(1.05); opacity: 1; }

.ep-tile-txt {
    padding: 5px 7px 7px;
}

.ep-tile-txt h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--txt-md);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ep-tile-txt h5 a { color: var(--txt-md); }
.ep-tile-txt h5 a:hover { color: var(--neon); }

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

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

.ep-flip-row a.ep-fp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--ink3);
    border: 1px solid var(--divider2);
    border-radius: var(--curve-sm);
    font-size: .84rem;
    color: var(--txt-md);
    text-decoration: none;
    transition: all .16s;
}

.ep-flip-row a.ep-fp:hover {
    background: var(--neon-glow);
    border-color: var(--neon);
    color: var(--neon);
}

.ep-flip-row a.ep-fp-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--neon);
    border: 1px solid var(--neon);
    border-radius: var(--curve-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #000;
    cursor: default;
}

/* ===== FOOTER LINKS ===== */
.ep-flinks-box {
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-radius: var(--curve);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--sh-sm);
}

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

.ep-flinks-dl dd { display: inline; }

.ep-flinks-dl a {
    display: inline-block;
    font-size: .77rem;
    color: var(--txt-lo);
    padding: 2px 9px;
    border-radius: var(--curve-sm);
    border: 1px solid var(--divider);
    background: var(--ink3);
    text-decoration: none;
    transition: all .16s;
}

.ep-flinks-dl a:hover { color: var(--neon); border-color: var(--neon); }

.ep-copyright {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--txt-lo);
    font-size: .76rem;
}

/* ===== DETAIL ===== */
.ep-dtl-caption {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-left: 3px solid var(--neon);
    border-radius: var(--curve);
    box-shadow: var(--sh-sm);
}

.ep-dtl-caption a {
    color: var(--neon);
    font-weight: 700;
    margin-right: 6px;
}

.ep-dtl-specs {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 17px;
    background: var(--ink2);
    border: 1px solid var(--divider);
    border-radius: var(--curve);
    box-shadow: var(--sh-sm);
    margin: 4px 0;
    color: var(--txt-md);
}

.ep-preview-wrap {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.ep-preview-wrap picture,
.ep-preview-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--curve-sm);
    display: block;
}

/* ===== BUTTONS ===== */
.ep-ops {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 11px 0;
}

.ep-op-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--neon);
    color: #000;
    border: none;
    border-radius: var(--curve-sm);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, transform .13s;
    text-decoration: none;
}

.ep-op-btn:hover {
    background: var(--neon-dk);
    color: #000;
    transform: translateY(-1px);
}

.ep-client-note {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.ep-client-note a { color: var(--neon); font-weight: 600; }
.ep-client-note a:hover { color: var(--neon-dk); }

/* ===== SHARE ===== */
.ep-sharestrip {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--ink3);
    border: 1px solid var(--divider);
    border-radius: var(--curve);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.ep-sharestrip .ess-lbl { font-size: .77rem; color: var(--txt-lo); white-space: nowrap; }
.ep-sharestrip .ess-url { font-size: .79rem; color: var(--txt-md); flex: 1; min-width: 0; word-break: break-all; }

.ep-sharestrip .ess-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--neon);
    color: #000;
    border: none;
    border-radius: var(--curve-sm);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.ep-sharestrip .ess-copy:hover { background: var(--neon-dk); }

/* ===== VISIBILITY ===== */
.show-pc { display: block; }
.show-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .ep-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .show-pc { display: none; }
    .show-mb { display: block; }
}

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

    .ep-brand-txt { font-size: 1.1rem; }
    .ep-addr-chip .ac-link { font-size: .9rem; }

    .ep-navrow { align-items: stretch; }

    .ep-navsign {
        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;
    }

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

    .ep-navlinks a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .ep-finder form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .ep-finder input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .ep-finder button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

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

    .ep-tile-img { aspect-ratio: 600 / 350; }
    .ep-tile-txt h5 { font-size: .72rem; }
    .ep-shelf { padding: 9px 9px 7px; }
    .ep-op-btn { padding: 9px 14px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .ep-navsign { font-size: 10px; }
    .ep-navlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .ep-navsign { font-size: 10px; }
    .ep-navlinks a { font-size: 12px; }
    .ep-finder button { padding: 0 5px; font-size: .68rem; }
}
