:root {
    --ink: #20262d;
    --muted: #59636c;
    --line: #e8ece8;
    --green: #6fa75c;
    --green-dark: #0c4d4c;
    --soft: #f7faf5;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.62;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.middle-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.middle-logo {
    display: block;
    width: 185px;
    min-width: 0;
}

.middle-logo img {
    width: 100%;
    height: auto;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 18px;
}

.tool-link {
    display: grid;
    justify-items: center;
    gap: 1px;
    color: #41484f;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.tool-link img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.middle-shell {
    width: min(788px, calc(100% - 40px));
    margin: 0 auto;
    padding: 14px 0 56px;
}

.middle-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #7b8490;
    font-size: 13px;
}

.middle-breadcrumb a {
    color: #7b8490;
}

.middle-breadcrumb span[aria-hidden="true"] {
    width: 9px;
    height: 9px;
    border-top: 2px solid #9aa3aa;
    border-right: 2px solid #9aa3aa;
    transform: rotate(45deg);
}

.category-intro {
    margin-bottom: 20px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.category-title img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 31px;
    line-height: 1.25;
    font-weight: 800;
}

.category-intro p {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 16px;
}

.pr-inline {
    padding: 10px 12px;
    border-left: 3px solid #e7b074;
    background: #fffaf2;
    color: #655140 !important;
    font-size: 12px !important;
}

.ranking-section {
    padding-top: 2px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    margin: 0 0 3px;
    padding: 1px 5px;
    border-radius: 4px;
    background: #edffec;
    color: #14a637;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
}

.ranking-section h2 {
    margin-bottom: 12px;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 800;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
}

.article-tile {
    display: block;
}

.article-tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    background: var(--soft);
}

.article-tile h3 {
    margin: 9px 0 0;
    color: #151a1f;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.article-tile:hover h3 {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.related-box {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.related-box h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.related-links a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--green-dark);
    font-weight: 800;
}

@media (max-width: 700px) {
    .middle-header {
        height: 55px;
        padding: 0 14px;
    }

    .middle-logo {
        width: 166px;
    }

    .header-tools {
        gap: 13px;
    }

    .tool-link img {
        width: 25px;
        height: 25px;
    }

    .middle-shell {
        width: min(100% - 32px, 520px);
        padding-top: 13px;
    }

    .middle-breadcrumb {
        margin-bottom: 21px;
    }

    h1 {
        font-size: 29px;
    }

    .category-intro p {
        font-size: 15px;
    }

    .ranking-section h2 {
        font-size: 23px;
    }

    .article-grid,
    .related-links {
        grid-template-columns: 1fr;
    }

    .article-grid {
        gap: 24px;
    }
}

@media (max-width: 390px) {
    .middle-logo {
        width: 148px;
    }

    .header-tools {
        gap: 10px;
    }

    h1 {
        font-size: 27px;
    }
}
