:root {
    --bg: #f6f4ef;
    --panel: rgba(255, 255, 255, 0.86);
    --line: rgba(32, 32, 28, 0.1);
    --text: #1a1a16;
    --muted: #6a685f;
    --accent: #1f4d3d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(202, 184, 140, 0.22), transparent 34%),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

a,
a:hover {
    text-decoration: none;
}

.page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 16px;
}

.shell {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    margin: 0;
    height: 1000px;
    padding: 14px 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(50, 43, 22, 0.08);
    backdrop-filter: blur(10px);
}

.category-nav {
    position: absolute;
    right: 100%;
    top: 30px;
    width: 48px;
    pointer-events: none;
}

.category-item {
    position: absolute;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    background: transparent;
    border: 1px solid transparent;
    border-right: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.category-item:hover {
    padding-left: 30px;
    padding-right: 14px;
    background: rgba(249, 249, 248, 1);
    box-shadow: -4px 2px 16px rgba(31, 77, 61, 0.08);
    backdrop-filter: blur(8px);
}

.category-item.active {
    padding-left: 30px;
    padding-right: 16px;
    background: rgba(249, 249, 248, 1);
    border-right: none;
    box-shadow: -4px 2px 16px rgba(31, 77, 61, 0.1);
    backdrop-filter: blur(10px);
}

.category-short {
    position: absolute;
    right: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    transition: opacity 0.15s;
}

.category-item:hover .category-short,
.category-item.active .category-short {
    opacity: 0;
}

.category-full {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s 0.08s;
}

.category-item:hover .category-full,
.category-item.active .category-full {
    opacity: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.header-main {
    min-width: 0;
}

.auth-entry {
    flex-shrink: 0;
    padding-top: 2px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.kicker {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.item {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.title-main {
    min-width: 0;
}

.title-wrap {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.title {
    min-width: 0;
    max-width: 70%;
    overflow: hidden;
    color: #2d2d2d;
    font-size: 15px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-word;
}

.title:hover {
    color: var(--accent);
}

.cat-tag {
    display: inline-flex;
    width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    line-height: 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    gap: 4px;
    color: #bbbbbb;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

.comment-badge svg {
    width: 14px;
    height: 14px;
    stroke: #bbbbbb;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.time-badge {
    margin-left: auto;
    padding-left: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.empty {
    padding: 28px 0 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.pager-link {
    color: var(--accent);
    font-size: 13px;
    padding: 2px 6px;
}

@media (max-width: 640px) {
    .shell {
        width: min(100vw, 760px);
        margin: 0;
        padding: 14px 14px 12px;
        border-radius: 0;
        height: auto;
        border: none;
        box-shadow:none;
        background: #fff;
    }
    .footer-icp{
        font-size: 12px;
    }
    .site-footer{
        background: #fff;   
        margin-top:0px !important;
        font-size: 12px !important;
    }
    .page-container {
        padding: 0;
    }

    .header {
        align-items: center;
    }

    .title {
        max-width: 65%;
        font-size: 14px;
    }

    .title-wrap {
        gap: 5px;
    }
}

.site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
   
}

.footer-content {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-icp {
    color: #999;
    font-size: 13px;
}
