:root {
    --bg:        #1b1b1f;
    --bg2:       #232329;
    --bg3:       #2a2a32;
    --bg-card:   #242428;
    --bg-card2:  #2e2e35;
    --orange:    #f57c00;
    --orange2:   #e65100;
    --amber:     #ffca28;
    --amber2:    #ffd54f;
    --orange-lt: rgba(245,124,0,0.12);
    --orange-glow: rgba(245,124,0,0.28);
    --white:     #ffffff;
    --text:      #e8e8ec;
    --text2:     #b0b0ba;
    --text3:     #6e6e7a;
    --border:    rgba(255,255,255,0.10);
    --border2:   rgba(245,124,0,0.30);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 20px rgba(245,124,0,0.25);
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 50px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', 'Google Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== LAYOUT ===== */
.fb-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.fb-inner { width: 100%; }
.fb-gap { margin-bottom: 6px; }

/* ===== HEADER ===== */
.fb-header {
    background: rgba(27,27,31,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.fb-header .fb-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.fb-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.fb-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
}

.fb-domain-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--orange-lt);
    border: 1px solid var(--border2);
    border-radius: var(--r-xs);
    padding: 5px 14px;
}

.fb-domain-lbl {
    font-size: 11px;
    color: var(--text3);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.4px;
}

.fb-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(255,202,40,0.40);
}

/* ===== PROMO ===== */
.fb-promo {
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
}
.fb-promo a { display: block; }
.fb-promo img { width: 100%; display: block; }

/* ===== NAV ===== */
.fb-nav-card {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 6px;
}

.fb-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.fb-nav-row:last-child { border-bottom: none; }

.fb-nav-zone {
    width: 15%;
    min-width: 42px;
    max-width: 80px;
    background: var(--orange-lt);
    color: var(--amber);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 2px;
    line-height: 1.3;
    flex-shrink: 0;
    word-break: break-all;
    letter-spacing: 0.5px;
    border-right: 1px solid var(--border);
}

.fb-nav-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 5px 6px;
    gap: 4px;
    background: var(--bg2);
}

.fb-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    border-radius: var(--r-xs);
    background: var(--bg3);
    color: var(--text2);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    flex: 1 0 calc(25% - 4px);
    max-width: calc(25% - 4px);
    text-align: center;
    border: 1px solid var(--border);
}

.fb-nav-links a:hover,
.fb-nav-links a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
    font-weight: 600;
    text-decoration: none;
}

/* ===== SEARCH ===== */
.fb-search-card {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.fb-sform {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.fb-sform input[type="text"] {
    flex: 1;
    min-width: 140px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    font-size: 14px;
    color: var(--text);
    background: var(--bg3);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fb-sform input[type="text"]::placeholder { color: var(--text3); }

.fb-sform input[type="text"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245,124,0,0.18);
    background: var(--bg2);
}

.fb-sform button {
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--orange);
    border-radius: var(--r-xs);
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
    white-space: nowrap;
}

.fb-sform button:hover {
    background: var(--orange2);
    border-color: var(--orange2);
    box-shadow: 0 0 14px var(--orange-glow);
    transform: scale(1.02);
}

/* ===== HOT TAGS ===== */
.fb-tags-card {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.fb-tags-card h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 7px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fb-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fb-tag-row a {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg3);
    color: var(--text2);
    border-radius: var(--r-xs);
    font-size: 12px;
    border: 1px solid var(--border);
    transition: all 0.15s;
    text-decoration: none;
}

.fb-tag-row a:hover {
    background: var(--orange-lt);
    color: var(--amber);
    border-color: var(--border2);
    box-shadow: 0 0 8px var(--orange-glow);
}

/* ===== SECTION ===== */
.fb-section { margin-bottom: 6px; }
.fb-section-inner { width: 100%; }

.fb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
}

.fb-section-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-section-head h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--amber), var(--orange));
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--orange-glow);
}

.fb-section-head h3 a { color: var(--white); text-decoration: none; }
.fb-section-head h3 a:hover { color: var(--amber); }

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

.fb-media-grid li {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.fb-media-grid li:hover {
    box-shadow: var(--shadow-card), 0 0 18px var(--orange-glow);
    transform: translateY(-3px);
    border-color: rgba(245,124,0,0.35);
}

.fb-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--bg3);
}

.fb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.fb-caption {
    padding: 7px 9px 9px;
    border-top: 1px solid var(--border);
}

.fb-caption h5 {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text2);
}

.fb-caption h5 a { color: var(--text2); text-decoration: none; }
.fb-caption h5 a:hover { color: var(--amber); }

/* ===== PAGINATION ===== */
.fb-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 0;
}

.fb-pager a,
.fb-pager .a_page_info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-xs);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
}

.fb-pager a:hover,
.fb-pager .a_page_info:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 0 10px var(--orange-glow);
    text-decoration: none;
}

.fb-pager .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--orange);
    color: #fff;
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 0 12px var(--orange-glow);
    border: 1px solid var(--orange2);
}

/* ===== DETAIL PAGES ===== */
.fb-detail-title {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
    color: var(--text);
}

.fb-detail-title a {
    color: var(--amber);
    font-weight: 700;
    margin-right: 6px;
    text-decoration: none;
}

.fb-detail-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
    color: var(--text2);
}

.fb-capture-box {
    width: 100%;
    margin-top: 10px;
}

.fb-capture-box picture,
.fb-capture-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-xs);
}

.fb-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--r-xl);
    background: transparent;
    color: var(--amber);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--amber);
    transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.fb-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px var(--orange-glow);
    text-decoration: none;
}

.fb-client-hint {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text3);
}

.fb-client-hint a { color: var(--amber); font-weight: 500; }

/* ===== SHARE ===== */
.fb-share-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.fb-share-url-part {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    overflow: hidden;
}

.fb-share-lbl {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    background: var(--orange-lt);
    padding: 2px 10px;
    border-radius: var(--r-xs);
    border: 1px solid var(--border2);
    letter-spacing: 0.3px;
}

.fb-share-url-text {
    font-size: 12px;
    color: var(--amber);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.fb-share-btn {
    background: transparent;
    color: var(--amber);
    border: 2px solid var(--amber);
    border-radius: var(--r-xl);
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fb-share-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 0 12px var(--orange-glow);
}

/* ===== FRIEND LINKS ===== */
.fb-fl-card {
    background: var(--bg-card);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.fb-fl-card h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 7px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fb-fl-card dl { margin: 0; padding: 0; }
.fb-fl-card dd { display: inline-block; margin: 3px 4px; }

.fb-fl-card dd a {
    color: var(--text2);
    font-size: 12px;
    padding: 2px 11px;
    background: var(--bg3);
    border-radius: var(--r-xs);
    border: 1px solid var(--border);
    transition: all 0.15s;
    display: inline-block;
    text-decoration: none;
}

.fb-fl-card dd a:hover {
    background: var(--orange-lt);
    color: var(--amber);
    border-color: var(--border2);
    box-shadow: 0 0 8px var(--orange-glow);
}

/* ===== FOOTER ===== */
.fb-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
}

.fb-footer a { color: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fb-brand-name { font-size: 17px; }
    .fb-domain-val { font-size: 14px; }

    .fb-nav-zone {
        width: 15%;
        min-width: 40px;
        max-width: 52px;
        font-size: 10px;
    }

    .fb-nav-links { width: 85%; }

    .fb-nav-links a {
        font-size: 12px;
        flex: 1 0 calc(25% - 4px);
        max-width: calc(25% - 4px);
        padding: 4px 2px;
    }

    .fb-media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .fb-action-row { gap: 8px; }
    .fb-btn { padding: 9px 20px; font-size: 13px; }
    .fb-share-box { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 480px) and (max-width: 768px) {
    .fb-nav-links a { font-size: 14px; }
}

@media (min-width: 769px) {
    .fb-nav-zone {
        font-size: 13px;
        width: auto;
        min-width: 68px;
        max-width: 90px;
    }
    .fb-nav-links a {
        font-size: 14px;
        flex: 1 0 calc(12.5% - 4px);
        max-width: calc(12.5% - 4px);
    }
    .fb-media-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }
