:root {
    --purple: #1e003b;
    --purple2: #2d0060;
    --purple3: #3b0080;
    --lime: #c5f135;
    --lime-dk: #a8d020;
    --cyan: #1fdfdf;
    --cyan-lt: #b2f7f7;
    --surface: #2a0052;
    --surface2: #380070;
    --border: rgba(197,241,53,0.18);
    --border2: rgba(197,241,53,0.30);
    --text: #ffffff;
    --text2: #d4c5f0;
    --text3: #a088c8;
    --shadow-xs: 0 1px 6px rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.40);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.50);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 100px;
}

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

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

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

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

/* ===== HEADER ===== */
.sp-header {
    background: var(--purple2);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

.sp-header .sp-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 46px;
}

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

.sp-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.sp-domain-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(197,241,53,0.12);
    border: 1px solid var(--border2);
    border-radius: var(--r-xl);
    padding: 4px 16px;
}

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

.sp-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--lime);
    letter-spacing: 0.5px;
}

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

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

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

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

.sp-nav-zone {
    width: 15%;
    min-width: 42px;
    max-width: 80px;
    background: rgba(197,241,53,0.15);
    color: var(--lime);
    font-size: 10px;
    font-weight: 800;
    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.3px;
    border-right: 1px solid var(--border);
}

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

.sp-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.06);
    color: var(--text2);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    flex: 1 0 calc(25% - 4px);
    max-width: calc(25% - 4px);
    text-align: center;
    border: 1px solid transparent;
}

.sp-nav-links a:hover,
.sp-nav-links a.active {
    background: var(--lime);
    color: var(--purple);
    font-weight: 800;
    border-color: var(--lime);
}

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

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

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

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

.sp-sform input[type="text"]:focus {
    border-color: var(--lime);
    background: rgba(197,241,53,0.08);
}

.sp-sform button {
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: var(--r-xl);
    background: var(--lime);
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}

.sp-sform button:hover {
    background: var(--lime-dk);
    transform: scale(1.03);
}

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

.sp-tags-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--lime);
    margin-bottom: 7px;
}

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

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

.sp-tag-row a:hover {
    background: rgba(197,241,53,0.18);
    color: var(--lime);
    border-color: var(--border2);
}

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

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

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

.sp-section-head h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--lime);
    border-radius: 2px;
    flex-shrink: 0;
}

.sp-section-head h3 a { color: var(--lime); }
.sp-section-head h3 a:hover { color: var(--lime-dk); }

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

.sp-media-grid li {
    background: var(--surface2);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: box-shadow 0.18s, transform 0.18s;
}

.sp-media-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--border2);
}

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

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

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

.sp-caption {
    padding: 7px 9px 9px;
}

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

.sp-caption h5 a { color: var(--text2); }
.sp-caption h5 a:hover { color: var(--lime); }

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

.sp-pager a,
.sp-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(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 13px;
    transition: all 0.18s;
    text-decoration: none;
}

.sp-pager a:hover,
.sp-pager .a_page_info:hover {
    background: var(--lime);
    color: var(--purple);
    border-color: var(--lime);
    font-weight: 700;
}

.sp-pager .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--lime);
    color: var(--purple);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: default;
}

/* ===== DETAIL PAGES ===== */
.sp-detail-title {
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
    background: var(--surface);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
}

.sp-detail-title a {
    color: var(--lime);
    font-weight: 700;
    margin-right: 6px;
}

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

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

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

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

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: var(--r-xl);
    background: var(--lime);
    color: var(--purple);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: background 0.18s, transform 0.15s;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.sp-btn:hover {
    background: var(--lime-dk);
    transform: scale(1.04);
    color: var(--purple);
}

.sp-client-hint {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
}

.sp-client-hint a { color: var(--lime); font-weight: 600; }

/* ===== SHARE ===== */
.sp-share-box {
    background: var(--surface);
    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-xs);
}

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

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

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

.sp-share-btn {
    background: var(--lime);
    color: var(--purple);
    border: none;
    border-radius: var(--r-xl);
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-share-btn:hover { background: var(--lime-dk); }

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

.sp-fl-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--lime);
    margin-bottom: 7px;
}

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

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

.sp-fl-card dd a:hover {
    background: rgba(197,241,53,0.15);
    color: var(--lime);
    border-color: var(--border2);
}

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

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

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

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

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

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

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

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

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