.app-shell {
    min-height: 100vh;
    background: #f5f6f8;
    color: #0f172a;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 20px;
    text-decoration: none;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tag {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tabs a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    transition: all 0.2s ease;
}

.tabs a.active {
    background: #111827;
    color: #ffffff;
}

.tabs a:hover {
    background: #e2e8f0;
}

.page-content {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 22px 18px 70px;
}

.top-ad {
    padding: 10px 18px 0;
}

.top-ad .ad-slot {
    width: min(980px, 100%);
    margin: 0 auto;
    max-height: 90px;
    overflow: hidden;
}

.top-ad .ad-slot ins,
.top-ad .ad-slot iframe {
    display: block;
    width: 100%;
    max-height: 90px !important;
    height: 90px !important;
}

.page-grid {
    display: block;
}

.site-footer {
    width: min(980px, 100%);
    margin: 0 auto 30px;
    padding: 16px 18px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

.site-footer a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-grid {
        display: block;
    }
}
