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

:root {
    --rdt-orange: #ff4500;
    --rdt-orange-dk: #d93a00;
    --rdt-orange-bg: #fff3ef;
    --rdt-orange-lite: #ffe8e0;
    --rdt-blue: #0079d3;
    --rdt-blue-dk: #005fa3;
    --rdt-gold: #ffd635;
    --rdt-surface: #ffffff;
    --rdt-body: #f6f7f8;
    --rdt-muted: #edeff1;
    --rdt-text: #1c1c1c;
    --rdt-text2: #3c3c3c;
    --rdt-text3: #878a8c;
    --rdt-border: #edeff1;
    --rdt-border2: #d8dadc;
    --rdt-sh1: 0 1px 3px rgba(0,0,0,.06);
    --rdt-sh2: 0 2px 10px rgba(0,0,0,.08);
    --rdt-sh3: 0 4px 18px rgba(0,0,0,.12);
    --rdt-r: 4px;
    --rdt-r2: 3px;
    --rdt-r3: 8px;
    --rdt-pill: 20px;
}

html { font-size: 15px; }

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

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

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

/* ===== HEADER ===== */
.rdt-topnav {
    background: var(--rdt-surface);
    border-bottom: 1px solid var(--rdt-border);
    padding: 9px 0;
    box-shadow: var(--rdt-sh1);
}

.rdt-topnav .rdt-frame {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

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

.rdt-logolink {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rdt-sitename {
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--rdt-orange);
    font-style: normal;
    letter-spacing: -.5px;
    text-decoration: none;
    border-bottom: none;
}

.rdt-domainchip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rdt-orange-bg);
    border: 1.5px solid var(--rdt-orange-lite);
    border-radius: var(--rdt-pill);
    padding: 4px 13px;
}

.rdt-domainchip .dc-note {
    font-size: 0.67rem;
    color: var(--rdt-orange);
    white-space: nowrap;
    font-weight: 600;
}

.rdt-domainchip .dc-addr {
    font-size: 1.07rem;
    font-weight: 800;
    color: var(--rdt-orange);
    white-space: nowrap;
}

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

/* ===== CATEGORY NAV ===== */
.rdt-catblock {
    background: var(--rdt-surface);
    border: 1px solid var(--rdt-border);
    border-radius: var(--rdt-r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--rdt-sh1);
}

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

.rdt-catrow:last-child { border-bottom: none; }

.rdt-catlabel {
    background: var(--rdt-orange);
    color: rgba(255,255,255,.92);
    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,.15);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

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

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

.rdt-catlinks a:hover {
    background: var(--rdt-orange-bg);
    color: var(--rdt-orange);
    border-color: #ffc4ae;
}

.rdt-catlinks a.active {
    background: var(--rdt-orange);
    color: #fff;
    border-color: var(--rdt-orange);
    font-weight: 700;
}

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

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

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

.rdt-searchbar input[type="text"]:focus {
    border-color: var(--rdt-orange);
    box-shadow: 0 0 0 3px rgba(255,69,0,.12);
    background: var(--rdt-surface);
}

.rdt-searchbar button {
    height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: var(--rdt-pill);
    background: var(--rdt-text);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.rdt-searchbar button:hover { background: #333; }

.rdt-searchbar button[value="1"] { background: var(--rdt-orange); }
.rdt-searchbar button[value="1"]:hover { background: var(--rdt-orange-dk); }

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

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

.rdt-hotbox h4 {
    font-size: .78rem;
    font-weight: 800;
    color: var(--rdt-orange);
    margin-bottom: 5px;
    letter-spacing: .2px;
}

.rdt-pillset {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rdt-pillset .rdt-pill-a {
    display: inline-block;
    background: var(--rdt-muted);
    color: var(--rdt-text2);
    border: 1.5px solid var(--rdt-border2);
    border-radius: var(--rdt-pill);
    padding: 3px 11px;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.rdt-pillset .rdt-pill-a:hover {
    background: var(--rdt-orange-bg);
    color: var(--rdt-orange);
    border-color: #ffc4ae;
}

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

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

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

.rdt-card-head h3 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--rdt-text);
}

.rdt-card-head h3 a { color: var(--rdt-text); }
.rdt-card-head h3 a:hover { color: var(--rdt-orange); }

.rdt-card-head h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--rdt-text);
}

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

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

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

.rdt-post-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--rdt-muted);
}

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

.rdt-post-thumb:hover img { transform: scale(1.05); }

.rdt-post-info {
    padding: 6px 7px 8px;
    border-top: 2px solid transparent;
    transition: border-color .15s;
}

.rdt-posts li:hover .rdt-post-info { border-top-color: var(--rdt-orange); }

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

.rdt-post-info h5 a { color: var(--rdt-text); }
.rdt-post-info h5 a:hover { color: var(--rdt-orange); }

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

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

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

.rdt-pagerow a.rdt-pgbtn:hover {
    background: var(--rdt-orange-bg);
    border-color: var(--rdt-orange);
    color: var(--rdt-orange);
}

.rdt-pagerow a.rdt-pgactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--rdt-orange);
    border: 1.5px solid var(--rdt-orange);
    border-radius: var(--rdt-pill);
    font-size: .84rem;
    font-weight: 800;
    color: #fff;
    cursor: default;
}

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

.rdt-flinkrow {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rdt-flinkrow dd { display: inline; }

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

.rdt-flinkrow a:hover { color: var(--rdt-orange); border-color: var(--rdt-orange); background: var(--rdt-orange-bg); }

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

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

.rdt-dtl-head a {
    color: var(--rdt-orange);
    font-weight: 800;
    margin-right: 6px;
}

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

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

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

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

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

.rdt-abtn:hover {
    background: var(--rdt-orange-dk);
    color: #fff;
    transform: translateY(-1px);
}

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

.rdt-clinote a { color: var(--rdt-text); font-weight: 700; }
.rdt-clinote a:hover { color: var(--rdt-orange); }

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

.rdt-sharebox .rsb-lbl { font-size: .77rem; color: var(--rdt-text3); white-space: nowrap; font-weight: 600; }
.rdt-sharebox .rsb-url { font-size: .79rem; color: var(--rdt-text2); flex: 1; min-width: 0; word-break: break-all; }

.rdt-sharebox .rsb-copybtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--rdt-orange);
    color: #fff;
    border: none;
    border-radius: var(--rdt-pill);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.rdt-sharebox .rsb-copybtn:hover { background: var(--rdt-orange-dk); }

/* ===== VISIBILITY ===== */
.rdt-desktop { display: block; }
.rdt-mobile { display: none; }

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

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

    .rdt-sitename { font-size: 1.12rem; }
    .rdt-domainchip .dc-addr { font-size: .9rem; }

    .rdt-catrow { align-items: stretch; }

    .rdt-catlabel {
        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;
    }

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

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

    .rdt-searchbar form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .rdt-searchbar input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 8px;
    }

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

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

    .rdt-post-thumb { aspect-ratio: 600 / 350; }
    .rdt-post-info h5 { font-size: .72rem; }
    .rdt-card { padding: 9px 9px 7px; }
    .rdt-abtn { padding: 9px 14px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .rdt-catlabel { font-size: 10px; }
    .rdt-catlinks a { font-size: 13px; }
}

@media (max-width: 380px) {
    .rdt-catlabel { font-size: 10px; }
    .rdt-catlinks a { font-size: 12px; }
    .rdt-searchbar button { padding: 0 5px; font-size: .68rem; }
}
