/* ===== Design Tokens ===== */
:root {
    --bg: #1c1c1c;
    --bg2: #141414;
    --surface: #242424;
    --surface2: #2c2c2c;
    --surface3: #323232;
    --teal: #3ecfb0;
    --teal-dark: #2eb89b;
    --teal-dim: rgba(62,207,176,0.12);
    --teal-bg: rgba(62,207,176,0.08);
    --coral: #f07855;
    --coral-dark: #d65e3a;
    --coral-dim: rgba(240,120,85,0.15);
    --white: #ffffff;
    --txt: #e8e8e8;
    --txt-muted: #aaaaaa;
    --txt-dim: #666666;
    --border: #333333;
    --border-light: #404040;
    --hd-bg: #ffffff;
    --hd-border: #e5e5e5;
    --hd-txt: #1a1a1a;
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.6);
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 32px;
    --max-w: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--txt); text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.hp-blk { width: 100%; margin-bottom: 8px; }
.hp-in {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Site Header ===== */
.hp-hd {
    background: var(--hd-bg);
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hp-hd .hp-in {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 18px;
    flex-wrap: nowrap;
}
.hp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}
.hp-logo-lk { display: inline-block; }
.hp-site-nm {
    font-size: 21px;
    font-weight: 900;
    color: var(--hd-txt);
    letter-spacing: -0.5px;
    white-space: nowrap;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}
.hp-site-nm:hover { color: var(--teal-dark); }

.hp-url-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--teal-dim);
    border: 1.5px solid var(--teal-dark);
    border-radius: var(--r-xs);
    padding: 4px 13px 4px 10px;
    flex-shrink: 0;
}
.hp-url-lbl {
    font-size: 10px;
    color: var(--teal-dark);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.hp-url-val {
    font-size: 16px;
    color: var(--coral);
    font-weight: 800;
    white-space: nowrap;
}

/* ===== Banner ===== */
.hp-bn { margin: 6px 0; }
.hp-bn a img { border-radius: var(--r-sm); width: 100%; }

/* ===== Category Navigation ===== */
.hp-nav {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--teal);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.hp-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.hp-nav-row:last-child { border-bottom: none; }

.hp-zone-nm {
    flex: 0 0 80px;
    background: var(--surface2);
    border-right: 2px solid var(--border-light);
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hp-nav-lks {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 8px;
    gap: 5px;
}
.hp-nav-lks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    flex: 1 0 calc(12.5% - 5px);
    min-width: 0;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    color: var(--txt-muted);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s;
}
.hp-nav-lks a:hover {
    background: var(--teal-bg);
    color: var(--teal);
    border-color: var(--teal-dark);
}
.hp-nav-lks a.active {
    background: var(--teal);
    color: var(--bg);
    border-color: var(--teal-dark);
    font-weight: 800;
}

/* ===== Search ===== */
.hp-sq {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 13px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.hp-sq-fm {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}
.hp-sq-fm input[type="text"] {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--r-xs);
    font-size: 14px;
    color: var(--txt);
    background: var(--surface2);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-sq-fm input[type="text"]::placeholder { color: var(--txt-dim); }
.hp-sq-fm input[type="text"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62,207,176,0.15);
}
.hp-sq-fm button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--r-xs);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}
.hp-sq-fm button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.hp-sq-fm button[value="1"] { background: var(--teal); color: var(--bg); font-weight: 800; }
.hp-sq-fm button[value="1"]:hover { background: var(--teal-dark); }
.hp-sq-fm button[value="2"] { background: var(--coral); color: #fff; }
.hp-sq-fm button[value="2"]:hover { background: var(--coral-dark); }
.hp-sq-fm button:not([value]) { background: var(--surface3); color: var(--txt-muted); border: 1px solid var(--border-light); }

/* ===== Hot Tags ===== */
.hp-kw {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 11px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.hp-kw h4 {
    font-size: 11px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hp-kw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.hp-kw-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface2);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xs);
    font-size: 12px;
    color: var(--txt-muted);
    font-weight: 500;
    transition: all 0.15s;
}
.hp-kw-tags a:hover {
    background: var(--teal-bg);
    border-color: var(--teal-dark);
    color: var(--teal);
}

/* ===== Section ===== */
.hp-sec { margin-bottom: 8px; }
.hp-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hp-sec-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--coral);
    border-radius: 2px;
}
.hp-sec-hd h3 {
    font-size: 14px;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hp-sec-hd h3 a {
    font-size: 11px;
    font-weight: 600;
    color: var(--txt-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 10px;
    transition: color 0.15s;
}
.hp-sec-hd h3 a:hover { color: var(--coral); }

/* ===== Media Grid ===== */
.hp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.hp-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-dark);
    transform: translateY(-3px);
}
.hp-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--surface2);
}
.hp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    filter: brightness(0.88);
}
.hp-card:hover .hp-thumb img {
    transform: scale(1.05);
    filter: brightness(1);
}
.hp-cap {
    padding: 7px 10px;
    border-top: 1px solid var(--border);
}
.hp-cap h5 {
    font-size: 12px;
    font-weight: 400;
    color: var(--txt-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
}
.hp-cap h5 a { color: inherit; }
.hp-cap h5 a:hover { color: var(--teal); }

/* ===== Entry Detail ===== */
.hp-ttl {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--teal);
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    word-break: break-all;
    line-height: 1.8;
    box-shadow: var(--shadow-sm);
}
.hp-ttl .cat-tag {
    display: inline-block;
    background: var(--teal-dim);
    color: var(--teal);
    border: 1px solid var(--teal-dark);
    border-radius: var(--r-xs);
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 800;
    margin-right: 10px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hp-ttl b { color: var(--white); }

.hp-meta {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 18px 22px;
    font-size: 14px;
    line-height: 2.1;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}
.hp-meta .mk { color: var(--coral); font-weight: 700; }

.hp-preview { margin-top: 12px; }
.hp-preview picture img {
    width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    display: block;
}

/* ===== Action Buttons ===== */
.hp-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 30px;
    border: none;
    border-radius: var(--r-xs);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hp-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hp-btn-tl { background: var(--teal); color: var(--bg); }
.hp-btn-tl:hover { background: var(--teal-dark); }
.hp-btn-co { background: var(--coral); color: #fff; }
.hp-btn-co:hover { background: var(--coral-dark); }
.hp-btn-gh {
    background: transparent;
    color: var(--txt-muted);
    border: 1.5px solid var(--border-light);
}
.hp-btn-gh:hover { border-color: var(--teal); color: var(--teal); box-shadow: none; transform: none; }

.hp-dl-note {
    text-align: center;
    padding: 10px;
    font-size: 13px;
}
.hp-dl-note a { color: var(--teal); font-weight: 600; }
.hp-dl-note a:hover { text-decoration: underline; }

/* ===== Share ===== */
.hp-share {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}
.hp-share-inf {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.hp-share-tag {
    font-size: 10px;
    background: var(--teal);
    color: var(--bg);
    padding: 2px 9px;
    border-radius: var(--r-xs);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-share-url {
    font-size: 12px;
    color: var(--txt-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-share-cp {
    background: var(--coral-dim);
    color: var(--coral);
    border: 1px solid var(--coral-dark);
    border-radius: var(--r-xs);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hp-share-cp:hover { background: var(--coral); color: #fff; border-color: var(--coral-dark); }

/* ===== Pagination ===== */
.hp-pgn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 0;
}
.hp-pgn a,
.hp-pgn .hp-pgc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--txt-muted);
    transition: all 0.15s;
}
.hp-pgn a:hover {
    background: var(--teal-bg);
    border-color: var(--teal-dark);
    color: var(--teal);
}
.hp-pgn .hp-pgc {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral-dark);
    font-weight: 800;
}

/* ===== Footer ===== */
.hp-fl {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.hp-fl h4 {
    font-size: 10px;
    font-weight: 800;
    color: var(--txt-dim);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}
.hp-fl-lks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.hp-fl-lks a {
    font-size: 12px;
    color: var(--txt-dim);
    transition: color 0.15s;
}
.hp-fl-lks a:hover { color: var(--teal); }

.hp-ft {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--txt-dim);
}

/* ===== Utilities ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.hide-mobile { display: block; }
.hide-pc { display: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .hide-pc { display: block; }

    .hp-site-nm { font-size: 16px; }
    .hp-url-val { font-size: 13px; }

    .hp-zone-nm {
        flex: 0 0 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
    }
    .hp-nav-lks {
        flex: 0 0 85%;
        padding: 4px;
        gap: 3px;
    }
    .hp-nav-lks a {
        flex: 1 0 calc(25% - 3px);
        font-size: 12px;
        padding: 5px 2px;
    }

    .hp-sq-fm { gap: 5px; }
    .hp-sq-fm input[type="text"] { flex: 1 1 0; }
    .hp-sq-fm button {
        flex: 0 0 auto;
        padding: 9px 10px;
        font-size: 12px;
        letter-spacing: 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hp-nav-lks a { font-size: 14px; }
}

@media (min-width: 769px) {
    .hp-zone-nm { flex: 0 0 80px; font-size: 10px; }
    .hp-nav-lks a {
        flex: 1 0 calc(12.5% - 5px);
        font-size: 13px;
    }
}
