:root {
    --purple: #4e2374;
    --purple2: #3b1857;
    --purple3: #6b3a96;
    --purple-lt: #f3eefa;
    --purple-mid: #e8d8f5;
    --bg: #ffffff;
    --bg2: #f8f8f8;
    --bg3: #f2f2f2;
    --surface: #ffffff;
    --border: #e0e0e0;
    --border2: #cccccc;
    --text: #1a1a1a;
    --text2: #444444;
    --text3: #888888;
    --shadow-xs: 0 1px 4px rgba(78,35,116,0.06);
    --shadow-sm: 0 2px 10px rgba(78,35,116,0.08);
    --shadow-md: 0 5px 22px rgba(78,35,116,0.12);
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 10px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Georgia', 'Microsoft YaHei', 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.6;
}

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

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

/* ===== HEADER ===== */
.ld-header {
    background: var(--bg);
    border-bottom: 3px solid var(--purple);
    padding: 0;
}

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

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

.ld-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', Arial, sans-serif;
}

.ld-domain-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--purple-lt);
    border: 1px solid var(--purple-mid);
    border-radius: var(--r-sm);
    padding: 5px 16px;
}

.ld-domain-lbl {
    font-size: 11px;
    color: var(--purple3);
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.8px;
    font-family: sans-serif;
}

.ld-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.2px;
    font-family: sans-serif;
}

/* ===== PROMO ===== */
.ld-promo {
    width: 100%;
    overflow: hidden;
    margin-bottom: 6px;
}
.ld-promo a { display: block; }
.ld-promo img { width: 100%; display: block; }

/* ===== NAV ===== */
.ld-nav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--purple);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    margin-bottom: 6px;
}

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

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

.ld-nav-zone {
    width: 15%;
    min-width: 42px;
    max-width: 80px;
    background: var(--purple);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    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;
    font-family: sans-serif;
}

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

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

.ld-nav-links a:hover,
.ld-nav-links a.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

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

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

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

.ld-sform input[type="text"]:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(78,35,116,0.12);
    background: #fff;
}

.ld-sform button {
    height: 38px;
    padding: 0 20px;
    border: 1px solid var(--purple);
    border-radius: var(--r-sm);
    background: var(--purple);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    font-family: sans-serif;
}

.ld-sform button:hover { background: var(--purple2); border-color: var(--purple2); }

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

.ld-tags-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
    font-family: sans-serif;
    border-left: 3px solid var(--purple);
    padding-left: 8px;
}

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

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

.ld-tag-row a:hover {
    background: var(--purple-lt);
    color: var(--purple);
    border-color: var(--purple-mid);
    text-decoration: none;
}

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

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

.ld-section-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--purple);
}

.ld-section-head h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-family: sans-serif;
    letter-spacing: -0.1px;
}

.ld-section-head h3 a { color: var(--text); text-decoration: none; }
.ld-section-head h3 a:hover { color: var(--purple); }

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

.ld-media-grid li {
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: box-shadow 0.18s, transform 0.18s;
}

.ld-media-grid li:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

.ld-thumb:hover img { transform: scale(1.04); }

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

.ld-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(--text);
    font-family: sans-serif;
}

.ld-caption h5 a { color: var(--text); text-decoration: none; }
.ld-caption h5 a:hover { color: var(--purple); }

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

.ld-pager a,
.ld-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(--surface);
    border: 1px solid var(--border2);
    color: var(--text2);
    font-size: 13px;
    transition: all 0.15s;
    text-decoration: none;
    font-family: sans-serif;
}

.ld-pager a:hover,
.ld-pager .a_page_info:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    text-decoration: none;
}

.ld-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;
    font-family: sans-serif;
}

/* ===== DETAIL PAGES ===== */
.ld-detail-title {
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-all;
    background: var(--purple-lt);
    border: 1px solid var(--purple-mid);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
    font-family: sans-serif;
}

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

.ld-detail-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    box-shadow: var(--shadow-xs);
    font-family: sans-serif;
}

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

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

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

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

.ld-btn:hover {
    background: var(--purple2);
    border-color: var(--purple2);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.ld-client-hint {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-family: sans-serif;
}

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

/* ===== SHARE ===== */
.ld-share-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--purple);
    padding: 10px 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}

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

.ld-share-lbl {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    font-weight: 500;
    font-family: sans-serif;
}

.ld-share-url-text {
    font-size: 12px;
    color: var(--purple);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-family: sans-serif;
}

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

.ld-share-btn:hover { background: var(--purple2); border-color: var(--purple2); }

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

.ld-fl-card h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 7px;
    font-family: sans-serif;
    border-left: 3px solid var(--purple);
    padding-left: 8px;
}

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

.ld-fl-card dd a {
    color: var(--text2);
    font-size: 12px;
    padding: 2px 10px;
    background: var(--bg2);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    transition: all 0.15s;
    display: inline-block;
    text-decoration: none;
    font-family: sans-serif;
}

.ld-fl-card dd a:hover {
    background: var(--purple-lt);
    color: var(--purple);
    border-color: var(--purple-mid);
    text-decoration: none;
}

/* ===== FOOTER ===== */
.ld-footer {
    background: var(--bg2);
    border-top: 3px solid var(--purple);
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
    font-family: sans-serif;
}

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

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

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

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

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

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

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

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