/* ===== Design Tokens ===== */
:root {
    --bg: #0d3d2e;
    --bg2: #0a3326;
    --surface: #124838;
    --surface2: #163f30;
    --surface3: #1a4a38;
    --mint: #00e676;
    --mint-dark: #00c060;
    --mint-dim: rgba(0,230,118,0.15);
    --mint-bg: rgba(0,230,118,0.1);
    --white: #ffffff;
    --txt: #e8f5f0;
    --txt-muted: #7ab89a;
    --txt-dim: #4a8068;
    --border: #1e5a42;
    --border-light: #266b4f;
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.45);
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --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', 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 ===== */
.bk { width: 100%; margin-bottom: 8px; }
.bi {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Site Header ===== */
.tp-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}
.tp-bar .bi {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 18px;
    flex-wrap: nowrap;
}
.hd-grp {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}
.nm-link { display: inline-block; }
.nm-text {
    font-size: 21px;
    font-weight: 900;
    color: var(--mint);
    letter-spacing: -0.3px;
    white-space: nowrap;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}
.nm-text:hover { color: #fff; }

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

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

/* ===== Category Navigation ===== */
.nv-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--mint);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.nv-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}
.nv-line:last-child { border-bottom: none; }

.nv-lbl {
    flex: 0 0 80px;
    background: var(--surface2);
    border-right: 1px solid var(--border-light);
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nv-cats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 8px;
    gap: 5px;
}
.nv-cats 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;
}
.nv-cats a:hover {
    background: var(--mint-bg);
    color: var(--mint);
    border-color: var(--mint-dark);
}
.nv-cats a.active {
    background: var(--mint);
    color: var(--bg);
    border-color: var(--mint-dark);
    font-weight: 800;
}

/* ===== Search ===== */
.sq-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 13px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.sq-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}
.sq-form 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;
}
.sq-form input[type="text"]::placeholder { color: var(--txt-dim); }
.sq-form input[type="text"]:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(0,230,118,0.12);
}
.sq-form 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;
}
.sq-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sq-form button[value="1"] { background: var(--mint); color: var(--bg); font-weight: 800; }
.sq-form button[value="1"]:hover { background: var(--mint-dark); }
.sq-form button[value="2"] { background: var(--surface3); color: var(--txt); border: 1px solid var(--border-light); }
.sq-form button:not([value]) { background: var(--surface2); color: var(--txt-muted); border: 1px solid var(--border); }

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

/* ===== Section Headings ===== */
.cs-blk { margin-bottom: 8px; }
.cs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cs-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--mint);
    border-radius: 2px;
}
.cs-head h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cs-head h3 a {
    color: var(--txt-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.15s;
}
.cs-head h3 a:hover { color: var(--mint); }

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

/* ===== Entry Detail ===== */
.et-ttl {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--mint);
    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);
}
.et-ttl .cl {
    color: var(--mint);
    font-weight: 700;
    margin-right: 8px;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.et-ttl b { color: var(--white); }

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

/* Preview */
.pv-box { margin-top: 12px; }
.pv-box picture img {
    width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    display: block;
}

/* ===== Action Buttons ===== */
.act-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}
.ab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 28px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.ab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ab-mn { background: var(--mint); color: var(--bg); font-weight: 800; }
.ab-mn:hover { background: var(--mint-dark); }
.ab-sc { background: var(--surface3); color: var(--txt); border: 1px solid var(--border-light); }
.ab-sc:hover { border-color: var(--mint); color: var(--mint); box-shadow: none; transform: none; }

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

/* ===== Share ===== */
.shr-row {
    background: var(--surface);
    border: 1px solid var(--border);
    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);
}
.shr-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.shr-badge {
    font-size: 10px;
    background: var(--mint);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.shr-link {
    font-size: 12px;
    color: var(--txt-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shr-cp {
    background: var(--surface2);
    color: var(--mint);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xs);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}
.shr-cp:hover { background: var(--mint); color: var(--bg); border-color: var(--mint); }

/* ===== Pagination ===== */
.pgn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 0;
}
.pgn a,
.pgn .pga {
    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);
    background: var(--surface);
    color: var(--txt-muted);
    transition: all 0.15s;
}
.pgn a:hover {
    background: var(--mint-bg);
    border-color: var(--mint-dark);
    color: var(--mint);
}
.pgn .pga {
    background: var(--mint);
    color: var(--bg);
    border-color: var(--mint-dark);
    font-weight: 800;
}

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

.ft-base {
    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) {
    .vg { grid-template-columns: repeat(2, 1fr); }
}

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

    .sq-form input[type="text"] { flex: 1 1 0; }
    .sq-form button {
        padding: 9px 8px;
        font-size: 12px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nm-text { font-size: 16px; }
    .url-tag-val { font-size: 13px; }

    .nv-lbl {
        flex: 0 0 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
    }
    .nv-cats {
        flex: 0 0 85%;
        padding: 4px;
        gap: 3px;
    }
    .nv-cats a {
        flex: 1 0 calc(25% - 3px);
        font-size: 12px;
        padding: 5px 2px;
    }
}

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

@media (min-width: 769px) {
    .nv-lbl { flex: 0 0 80px; font-size: 11px; }
    .nv-cats a {
        flex: 1 0 calc(12.5% - 5px);
        font-size: 13px;
    }
}
