/* ===== Design Variables ===== */
:root {
    --clr-bg: #0a0a0a;
    --clr-surface: #111111;
    --clr-surface2: #1a1a1a;
    --clr-surface3: #222222;
    --clr-border: #2e2e2e;
    --clr-border-light: #3a3a3a;
    --clr-red: #e03c2e;
    --clr-red-dark: #b82d21;
    --clr-red-glow: rgba(224, 60, 46, 0.15);
    --clr-white: #ffffff;
    --clr-text: #e0e0e0;
    --clr-text-muted: #888888;
    --clr-text-dim: #555555;
    --clr-heading: #ffffff;
    --max-width: 1200px;
    --r-sm: 2px;
    --r-md: 4px;
    --r-lg: 6px;
}

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

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

/* ===== Site Header ===== */
.s-hd {
    background: #000000;
    border-bottom: 2px solid var(--clr-red);
}
.s-hd .iw {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 20px;
    flex-wrap: nowrap;
}
.b-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}
.b-link { display: inline-block; }
.b-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--clr-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}
.b-name:hover { color: var(--clr-red); }

.u-ind {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border-light);
    border-left: 3px solid var(--clr-red);
    padding: 4px 14px 4px 10px;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}
.u-tag {
    font-size: 10px;
    color: var(--clr-red);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.u-val {
    font-size: 16px;
    color: var(--clr-white);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

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

/* ===== Category Navigation ===== */
.cat-nav {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 2px solid var(--clr-red);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 6px;
}
.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--clr-border);
}
.cat-row:last-child { border-bottom: none; }

.cat-label {
    flex: 0 0 80px;
    background: var(--clr-surface2);
    border-right: 2px solid var(--clr-red);
    color: var(--clr-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    text-transform: uppercase;
}
.cat-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 6px;
    gap: 4px;
}
.cat-items a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    flex: 1 0 calc(12.5% - 4px);
    min-width: 0;
    background: var(--clr-surface3);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    color: var(--clr-text);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-items a:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red-dark);
}
.cat-items a.active {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red-dark);
    font-weight: 700;
}

/* ===== Search ===== */
.sq-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 6px;
}
.sq-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.sq-form input[type="text"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid var(--clr-border-light);
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--clr-text);
    background: var(--clr-surface3);
    outline: none;
    transition: border-color 0.15s;
}
.sq-form input[type="text"]::placeholder { color: var(--clr-text-dim); }
.sq-form input[type="text"]:focus { border-color: var(--clr-red); }
.sq-form button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    text-transform: uppercase;
}
.sq-form button:hover { transform: translateY(-1px); }
.sq-form button[value="1"] { background: var(--clr-red); color: var(--clr-white); }
.sq-form button[value="2"] { background: var(--clr-surface3); color: var(--clr-white); border: 1px solid var(--clr-border-light); }
.sq-form button:not([value]) { background: var(--clr-surface2); color: var(--clr-text-muted); border: 1px solid var(--clr-border); }

/* ===== Hot Tags ===== */
.hot-kw {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    margin-bottom: 6px;
}
.hot-kw h4 {
    font-size: 10px;
    font-weight: 700;
    color: var(--clr-red);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.kw-list a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--clr-surface3);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-sm);
    font-size: 12px;
    color: var(--clr-text-muted);
    transition: all 0.15s;
}
.kw-list a:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: var(--clr-white);
}

/* ===== Content Sections ===== */
.cs {
    margin-bottom: 6px;
}
.cs-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}
.cs-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--clr-red);
}
.cs-hd h3 {
    font-size: 14px;
    font-weight: 900;
    color: var(--clr-white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.cs-hd h3 a {
    color: var(--clr-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.15s;
}
.cs-hd h3 a:hover { color: var(--clr-red); }

/* ===== Media Grid ===== */
.mg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.fc {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.fc:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
    border-color: var(--clr-red);
    transform: translateY(-2px);
}
.fc-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--clr-surface3);
}
.fc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.88;
}
.fc:hover .fc-img img { transform: scale(1.05); opacity: 1; }
.fc-info {
    padding: 7px 9px;
    border-top: 1px solid var(--clr-border);
}
.fc-info h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
}
.fc-info h5 a { color: inherit; }
.fc-info h5 a:hover { color: var(--clr-red); }

/* ===== Entry Title ===== */
.et-bar {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-red);
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
    word-break: break-all;
    line-height: 1.8;
}
.et-bar .ct-ref {
    color: var(--clr-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.et-bar b { color: var(--clr-white); }

.et-meta {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 18px 22px;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 8px;
}
.et-meta .mk { color: var(--clr-red); font-weight: 700; }

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

/* ===== Action Buttons ===== */
.act-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}
.ab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 30px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.ab:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(224,60,46,0.4); }
.ab-fill { background: var(--clr-red); color: var(--clr-white); }
.ab-line { background: transparent; color: var(--clr-white); border: 1.5px solid var(--clr-border-light); }
.ab-line:hover { border-color: var(--clr-red); color: var(--clr-red); box-shadow: none; }

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

/* ===== Share ===== */
.shr-row {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.shr-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.shr-tag {
    font-size: 10px;
    background: var(--clr-red);
    color: var(--clr-white);
    padding: 2px 7px;
    border-radius: var(--r-sm);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.shr-url {
    font-size: 12px;
    color: var(--clr-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shr-cp-btn {
    background: var(--clr-surface3);
    color: var(--clr-white);
    border: 1px solid var(--clr-border-light);
    border-radius: var(--r-sm);
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}
.shr-cp-btn:hover { background: var(--clr-red); border-color: var(--clr-red); }

/* ===== Pagination ===== */
.pg-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 14px 0;
}
.pg-row a,
.pg-row .pg-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-text-muted);
    transition: all 0.15s;
    letter-spacing: 0.3px;
}
.pg-row a:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: var(--clr-white);
}
.pg-row .pg-now {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red-dark);
}

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

.ft-bar {
    background: #000000;
    border-top: 1px solid var(--clr-border);
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--clr-text-dim);
    letter-spacing: 0.5px;
}

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

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

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

    .b-name { font-size: 16px; }
    .u-val { font-size: 13px; }

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

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

@media (min-width: 769px) {
    .cat-label { flex: 0 0 80px; font-size: 11px; }
    .cat-items a {
        flex: 1 0 calc(12.5% - 4px);
        font-size: 13px;
    }
}
