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

:root {
    --lj-teal: #167494;
    --lj-teal-dk: #0e5a73;
    --lj-teal-lt: #e8f4f8;
    --lj-blue: #1aa3cc;
    --lj-blue-dk: #1285a8;
    --lj-header: #1d2939;
    --lj-header2: #243447;
    --lj-gold: #f5a623;
    --lj-body: #eef0f3;
    --lj-surface: #ffffff;
    --lj-muted: #f0f2f5;
    --lj-border: #dde1e7;
    --lj-border2: #c8cdd6;
    --lj-text: #1a1d23;
    --lj-text2: #3d4452;
    --lj-text3: #8c94a4;
    --lj-sh1: 0 1px 3px rgba(0,0,0,.07);
    --lj-sh2: 0 2px 10px rgba(0,0,0,.09);
    --lj-sh3: 0 5px 20px rgba(0,0,0,.12);
    --lj-r: 4px;
    --lj-r2: 3px;
    --lj-r3: 6px;
    --lj-pill: 20px;
}

html { font-size: 15px; }

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

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

/* ===== CONTAINER ===== */
.lj-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== HEADER ===== */
.lj-navbar {
    background: var(--lj-header);
    border-bottom: none;
    padding: 9px 0;
}

.lj-navbar .lj-outer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

.lj-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.lj-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
}

.lj-brand-name .lj-accent {
    color: var(--lj-blue);
    font-style: normal;
}

.lj-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--lj-r3);
    padding: 4px 13px;
}

.lj-url-pill .up-note {
    font-size: 0.67rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}

.lj-url-pill .up-link {
    font-size: 1.07rem;
    font-weight: 700;
    color: var(--lj-blue);
    white-space: nowrap;
}

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

/* ===== NAV PANEL ===== */
.lj-navcards {
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-top: 3px solid var(--lj-teal);
    border-radius: var(--lj-r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--lj-sh1);
}

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

.lj-navline:last-child { border-bottom: none; }

.lj-navtag {
    background: var(--lj-header);
    color: rgba(255,255,255,.75);
    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 rgba(255,255,255,.08);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

.lj-navitems a {
    font-size: .82rem;
    color: var(--lj-text2);
    padding: 4px 5px;
    border-radius: var(--lj-r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.lj-navitems a:hover {
    background: var(--lj-teal-lt);
    color: var(--lj-teal);
    border-color: #9fd4e8;
}

.lj-navitems a.active {
    background: var(--lj-teal);
    color: #fff;
    border-color: var(--lj-teal);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.lj-searchpanel {
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r3);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--lj-sh1);
}

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

.lj-searchpanel input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--lj-border2);
    border-radius: var(--lj-r2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--lj-text);
    background: var(--lj-muted);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.lj-searchpanel input[type="text"]:focus {
    border-color: var(--lj-teal);
    box-shadow: 0 0 0 3px rgba(22,116,148,.12);
    background: var(--lj-surface);
}

.lj-searchpanel button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--lj-r2);
    background: var(--lj-header);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.lj-searchpanel button:hover { background: var(--lj-header2); }

.lj-searchpanel button[value="1"] { background: var(--lj-teal); }
.lj-searchpanel button[value="1"]:hover { background: var(--lj-teal-dk); }

.lj-searchpanel button[value="2"] { background: var(--lj-blue); }
.lj-searchpanel button[value="2"]:hover { background: var(--lj-blue-dk); }

/* ===== HOT TAGS ===== */
.lj-tagpanel {
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r3);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--lj-sh1);
}

.lj-tagpanel h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--lj-teal);
    margin-bottom: 5px;
    letter-spacing: .2px;
}

.lj-tagset {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lj-tagset .lj-tag {
    display: inline-block;
    background: var(--lj-muted);
    color: var(--lj-text2);
    border: 1px solid var(--lj-border2);
    border-radius: var(--lj-pill);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.lj-tagset .lj-tag:hover {
    background: var(--lj-teal-lt);
    color: var(--lj-teal);
    border-color: #9fd4e8;
}

/* ===== CONTENT BLOCK ===== */
.lj-postcard {
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--lj-sh1);
}

.lj-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lj-muted);
    position: relative;
}

.lj-card-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 36px;
    height: 2px;
    background: var(--lj-teal);
    border-radius: 2px;
}

.lj-card-header h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--lj-text);
}

.lj-card-header h3 a { color: var(--lj-text); }
.lj-card-header h3 a:hover { color: var(--lj-teal); }

.lj-card-header h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--lj-text);
}

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

.lj-mediagrid li {
    border-radius: var(--lj-r);
    overflow: hidden;
    border: 1px solid var(--lj-border);
    background: var(--lj-muted);
    transition: box-shadow .18s, transform .18s;
    min-width: 0;
}

.lj-mediagrid li:hover {
    box-shadow: var(--lj-sh3);
    transform: translateY(-2px);
}

.lj-mediaimg {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--lj-border);
}

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

.lj-mediaimg:hover img { transform: scale(1.05); }

.lj-mediatxt {
    padding: 5px 7px 7px;
    border-top: 2px solid transparent;
    transition: border-color .15s;
}

.lj-mediagrid li:hover .lj-mediatxt { border-top-color: var(--lj-teal); }

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

.lj-mediatxt h5 a { color: var(--lj-text); }
.lj-mediatxt h5 a:hover { color: var(--lj-teal); }

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

.lj-pagingrow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.lj-pagingrow a.lj-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--lj-surface);
    border: 1.5px solid var(--lj-border2);
    border-radius: var(--lj-r2);
    font-size: .84rem;
    color: var(--lj-text2);
    text-decoration: none;
    transition: all .15s;
}

.lj-pagingrow a.lj-pgbtn:hover {
    background: var(--lj-teal-lt);
    border-color: var(--lj-teal);
    color: var(--lj-teal);
}

.lj-pagingrow a.lj-pgon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--lj-teal);
    border: 1.5px solid var(--lj-teal);
    border-radius: var(--lj-r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.lj-footbox {
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r3);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--lj-sh1);
}

.lj-footlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lj-footlinks dd { display: inline; }

.lj-footlinks a {
    display: inline-block;
    font-size: .77rem;
    color: var(--lj-text3);
    padding: 2px 9px;
    border-radius: var(--lj-r2);
    border: 1px solid var(--lj-border);
    background: var(--lj-muted);
    text-decoration: none;
    transition: all .15s;
}

.lj-footlinks a:hover { color: var(--lj-teal); border-color: var(--lj-teal); }

.lj-footcopy {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--lj-text3);
    font-size: .76rem;
}

/* ===== DETAIL ===== */
.lj-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-left: 4px solid var(--lj-teal);
    border-radius: var(--lj-r);
    box-shadow: var(--lj-sh1);
}

.lj-dtl-title a {
    color: var(--lj-teal);
    font-weight: 700;
    margin-right: 6px;
}

.lj-dtl-meta {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 17px;
    background: var(--lj-surface);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r);
    box-shadow: var(--lj-sh1);
    margin: 4px 0;
}

.lj-previewarea {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.lj-previewarea picture,
.lj-previewarea img {
    width: 100%;
    height: auto;
    border-radius: var(--lj-r2);
    display: block;
}

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

.lj-actbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--lj-teal);
    color: #fff;
    border: none;
    border-radius: var(--lj-r2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .13s;
    text-decoration: none;
}

.lj-actbtn:hover {
    background: var(--lj-teal-dk);
    color: #fff;
    transform: translateY(-1px);
}

.lj-clilink {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.lj-clilink a { color: var(--lj-header); font-weight: 600; }
.lj-clilink a:hover { color: var(--lj-teal); }

/* ===== SHARE BAR ===== */
.lj-sharezone {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--lj-muted);
    border: 1px solid var(--lj-border);
    border-radius: var(--lj-r3);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.lj-sharezone .lsz-lbl { font-size: .77rem; color: var(--lj-text3); white-space: nowrap; }
.lj-sharezone .lsz-url { font-size: .79rem; color: var(--lj-text2); flex: 1; min-width: 0; word-break: break-all; }

.lj-sharezone .lsz-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--lj-teal);
    color: #fff;
    border: none;
    border-radius: var(--lj-r2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.lj-sharezone .lsz-btn:hover { background: var(--lj-teal-dk); }

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

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

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

    .lj-brand-name { font-size: 1.1rem; }
    .lj-url-pill .up-link { font-size: .9rem; }

    .lj-navline { align-items: stretch; }

    .lj-navtag {
        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;
    }

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

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

    .lj-searchpanel form {
        flex-wrap: nowrap;
        gap: 4px;
    }

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

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

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

    .lj-mediaimg { aspect-ratio: 600 / 350; }
    .lj-mediatxt h5 { font-size: .72rem; }
    .lj-postcard { padding: 9px 9px 7px; }
    .lj-actbtn { padding: 9px 14px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .lj-navtag { font-size: 10px; }
    .lj-navitems a { font-size: 13px; }
}

@media (max-width: 380px) {
    .lj-navtag { font-size: 10px; }
    .lj-navitems a { font-size: 12px; }
    .lj-searchpanel button { padding: 0 5px; font-size: .68rem; }
}
