:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --text: #18212f;
    --muted: #657184;
    --primary: #135f88;
    --primary-dark: #0b4564;
    --border: #dce3ea;
    --success: #2b7a4b;
    --danger: #b43d3d;
    --shadow: 0 16px 40px rgba(20, 43, 62, 0.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.site-header {
    background: linear-gradient(135deg, #0f4f72, #14749f);
    color: #fff;
}

.header-inner,
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: rgba(255,255,255,.92);
    font-weight: 600;
}

.hero {
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 36%),
        linear-gradient(135deg, #0f4f72, #14749f);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 36px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.04;
}

.hero p {
    margin: 0 0 28px;
    max-width: 720px;
    color: rgba(255,255,255,.88);
    font-size: 1.12rem;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255,255,255,.98);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    font-size: 1rem;
    border-radius: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    color: #fff;
    background: var(--primary-dark);
}

.button.secondary {
    background: var(--surface-soft);
    color: var(--text);
}

.stats-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(10px);
}

.stats-card strong {
    display: block;
    font-size: 2rem;
}

main {
    padding: 48px 0 72px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header h2,
.page-title {
    margin: 0;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.entry-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(25, 51, 73, .05);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -26px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--surface-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}

.entry-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.entry-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
}

.entry-main,
.entry-sidebar {
    min-width: 0;
}

.screenshot-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #eaf0f5, #f9fbfd);
    border: 1px dashed #b9c6d1;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .94rem;
}

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7dd;
    border: 1px solid #f0d889;
}

.site-footer {
    padding: 34px 0;
    background: #102a3b;
    color: rgba(255,255,255,.78);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 820px) {
    .header-inner,
    .section-header {
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: column;
        padding: 18px 0;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .hero-grid,
    .entry-detail {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }
}
