:root {
    --bg-deep:  #0d0520;
    --bg-mid:   #130830;
    --bg-card:  rgba(255,255,255,0.055);
    --bg-card2: rgba(255,255,255,0.08);
    --purple:   #7c3aed;
    --purple2:  #6d28d9;
    --purple3:  #9f67ff;
    --purple-glow: rgba(124,58,237,0.35);
    --violet:   #a78bfa;
    --white:    #ffffff;
    --text:     #f0eaff;
    --text2:    #c4b5fd;
    --text3:    #8b7aaa;
    --border:   rgba(167,139,250,0.18);
    --border2:  rgba(167,139,250,0.30);
    --shadow-glow: 0 0 22px rgba(124,58,237,0.30);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.45);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 50px;
}

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

body {
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.28) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(109,40,217,0.18) 0%, transparent 60%);
    color: var(--text);
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

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

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

/* ===== GLASS MIXIN ===== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* ===== HEADER ===== */
.ex-header {
    background: rgba(13,5,32,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

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

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

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

.ex-domain-row {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(124,58,237,0.18);
    border: 1px solid var(--border2);
    border-radius: var(--r-xl);
    padding: 5px 16px;
}

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

.ex-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--purple3);
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(159,103,255,0.5);
}

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

/* ===== NAV ===== */
.ex-nav-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 6px;
}

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

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

.ex-nav-zone {
    width: 15%;
    min-width: 42px;
    max-width: 80px;
    background: rgba(124,58,237,0.35);
    color: var(--violet);
    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);
}

.ex-nav-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 5px 6px;
    gap: 4px;
    background: rgba(255,255,255,0.025);
}

.ex-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.05);
    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);
}

.ex-nav-links a:hover,
.ex-nav-links a.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple3);
    box-shadow: 0 0 12px rgba(124,58,237,0.45);
    font-weight: 600;
    text-decoration: none;
}

/* ===== SEARCH ===== */
.ex-search-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

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

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

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

.ex-sform input[type="text"]:focus {
    border-color: var(--purple3);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.20), var(--shadow-glow);
    background: rgba(255,255,255,0.10);
}

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

.ex-sform button:hover {
    background: var(--purple2);
    box-shadow: 0 0 16px rgba(124,58,237,0.50);
    transform: scale(1.02);
}

/* ===== HOT TAGS ===== */
.ex-tags-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 14px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

.ex-tags-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

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

.ex-tag-row a {
    display: inline-block;
    padding: 3px 13px;
    background: rgba(124,58,237,0.15);
    color: var(--text2);
    border-radius: var(--r-xl);
    font-size: 12px;
    border: 1px solid var(--border);
    transition: all 0.15s;
    text-decoration: none;
}

.ex-tag-row a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple3);
    box-shadow: 0 0 10px rgba(124,58,237,0.40);
}

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

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

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

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

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

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

.ex-media-grid li {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.ex-media-grid li:hover {
    box-shadow: var(--shadow-card), 0 0 20px var(--purple-glow);
    transform: translateY(-3px);
    border-color: var(--border2);
}

.ex-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: rgba(124,58,237,0.12);
}

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

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

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

.ex-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);
}

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

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

.ex-pager a,
.ex-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-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
}

.ex-pager a:hover,
.ex-pager .a_page_info:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple3);
    box-shadow: 0 0 12px rgba(124,58,237,0.40);
    text-decoration: none;
}

.ex-pager .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--purple);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 0 14px rgba(124,58,237,0.50);
    border: 1px solid var(--purple3);
}

/* ===== DETAIL PAGES ===== */
.ex-detail-title {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
    background: rgba(124,58,237,0.15);
    border-radius: var(--r-md);
    border: 1px solid var(--border2);
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
    color: var(--text);
}

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

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

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

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

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

.ex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--r-xl);
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--purple3);
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    text-decoration: none;
}

.ex-btn:hover {
    background: var(--purple2);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 0 22px rgba(124,58,237,0.55);
    text-decoration: none;
}

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

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

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

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

.ex-share-lbl {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    background: rgba(124,58,237,0.18);
    padding: 2px 10px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
}

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

.ex-share-btn {
    background: var(--purple);
    color: #fff;
    border: 1px solid var(--purple3);
    border-radius: var(--r-xl);
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ex-share-btn:hover {
    background: var(--purple2);
    box-shadow: 0 0 14px rgba(124,58,237,0.50);
}

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

.ex-fl-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
    margin-bottom: 7px;
}

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

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

.ex-fl-card dd a:hover {
    background: rgba(124,58,237,0.28);
    color: var(--violet);
    border-color: var(--border2);
    box-shadow: 0 0 8px rgba(124,58,237,0.30);
}

/* ===== FOOTER ===== */
.ex-footer {
    background: rgba(13,5,32,0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
}

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

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

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

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

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

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

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

@media (min-width: 769px) {
    .ex-nav-zone {
        font-size: 13px;
        width: auto;
        min-width: 68px;
        max-width: 90px;
    }
    .ex-nav-links a {
        font-size: 14px;
        flex: 1 0 calc(12.5% - 4px);
        max-width: calc(12.5% - 4px);
    }
    .ex-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; } }
