* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #ffffff;
    color: #8c7562;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-size: 15px;
    line-height: 1.8;
}
.site-header {
    border-bottom: none;
    padding: 30px 0;
}
.header-wrap {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-block {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #b89c84;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-name {
    font-size: 22px;
    color: #444;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    font-weight: 700;
}
.logo-slogan {
    font-size: 15px;
    color: #9c836e;
    margin-left: 8px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.nav-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.nav-list a {
    font-size: 13px;
    color: #9c836e;
    text-decoration: none;
    padding: 4px 10px;
    transition: 0.2s;
    cursor: pointer;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.nav-list a.active {
    background: #9c836e;
    color: #fff;
}
.nav-list a:hover:not(.active) {
    color: #6d5745;
    background: #f3efe9;
}

.container {
    width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    display: none;
}

.page-section {
    display: none;
    animation: fade 0.25s ease;
}
.page-section.active {
    display: block;
}
@keyframes fade {
    0% { opacity: 0.6; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== 首页样式 ===== */
.home-row {
    display: grid;
    grid-template-columns: 200px 1fr 320px;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.home-left {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.home-left .post-title {
    font-size: 20px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 24px;
}
.home-left .post-date {
    font-size: 13px;
    color: #999999;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.divider-line {
    display: block;
    width: 32px;
    height: 1px;
    background: #b89c84;
    margin: 10px auto 0;
}

.center-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.tilted-card {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1.8;
    background-color: #b89c84;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 160px;
    display: block;
}
.tilted-card:hover {
    transform: rotate(0deg);
}
.tilted-card.has-image {
    background-color: transparent !important;
}

#homeLatest {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

#homeLatest .list-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border-bottom: none;
    width: 100%;
}

#homeLatest .list-item .item-title {
    font-size: 18px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    cursor: pointer;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s;
    display: block;
}
#homeLatest .list-item .item-title:hover {
    opacity: 0.7;
}

#homeLatest .list-item .item-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    font-weight: 400;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

#homeLatest .list-item .item-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #a8917e;
    margin-top: 2px;
    flex-wrap: wrap;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
#homeLatest .list-item .item-footer .tag {
    font-size: 12px;
    display: inline-block;
    padding: 0;
    background: none;
}
#homeLatest .list-item .item-footer .item-time {
    font-size: 11px;
    color: #b8a898;
}
#homeLatest .list-item .divider-line {
    display: none !important;
}
#homeLatest .list-item .item-header {
    display: none !important;
}

/* ===== 通用列表 ===== */
.article-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #f3efe9;
    text-align: left;
    flex-wrap: wrap;
}
.article-date {
    font-size: 14px;
    color: #666666;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
}
.article-text {
    font-size: 20px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}
.article-text a {
    text-decoration: none;
    cursor: pointer;
}
.article-text a:hover {
    text-decoration: underline;
}

/* ===== 十年灯·文 系列卡片 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.series-card {
    border: 1px solid #c9b39f;
    padding: 24px 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
}
.card-index {
    font-size: 14px;
    margin-bottom: 12px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.card-title {
    font-size: 20px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 10px;
}
.card-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 400;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-link {
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-top: auto;
}
.card-link:hover {
    opacity: 0.7;
}

/* ===== 文章详情 ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 48px;
}
.detail-grid .breadcrumb {
    display: none;
}
.book-main .title,
.book-main .book-title {
    font-size: 22px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 6px;
}
.book-main .date,
.book-main .book-date {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.book-content p {
    margin-bottom: 14px;
    font-size: 15px;
    color: #444444;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}
.back-btn {
    border: 1px solid #b89c84;
    color: #8c7562;
    background: #fff;
    padding: 4px 16px;
    font-size: 13px;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    cursor: pointer;
    margin-top: 40px;
}
.back-btn:hover {
    background-color: #f8f5f1;
}

/* ===== 侧边栏 ===== */
.sidebar {
    background-color: #fcfafa;
    padding: 20px 18px;
    align-self: start;
}
.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 14px;
}
.sidebar-list a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
    word-break: break-all;
    transition: opacity 0.2s;
}
.sidebar-list a:hover {
    opacity: 0.7;
}
.sidebar-list a:last-child {
    margin-bottom: 0;
}
.sidebar-year {
    font-size: 20px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 14px;
}

/* ===== 山野渔夫 ===== */
.about-text p {
    font-size: 20px;
    font-weight: 700;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
    margin-bottom: 8px;
}
.date-footer {
    margin-top: 120px;
    font-size: 13px;
    color: #999999;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

/* ===== 响应式 ===== */
@media (max-width: 1020px) {
    .header-wrap,
    .container {
        width: 100%;
        max-width: 1000px;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 1024px) {
    .home-row {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        margin: 0 auto;
    }
    .home-left { width: 100%; }
    .center-image { width: 100%; display: flex; justify-content: center; }
    .tilted-card { max-width: 240px; min-height: 180px; }
    #homeLatest { max-width: 100%; width: 100%; }
    #homeLatest .list-item .item-title { font-size: 18px; }
    #homeLatest .list-item .item-desc { font-size: 13px; }
    #homeLatest .list-item .item-footer { font-size: 12px; gap: 14px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { order: 2; margin-top: 20px; }
    .header-wrap, .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    .header-wrap { flex-direction: column; align-items: flex-start; }
    .nav-list { width: 100%; justify-content: flex-start; gap: 8px; }
    .article-item { 
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 0;
    }
    .article-date {
        min-width: auto;
        white-space: normal;
    }
    .card-grid { grid-template-columns: 1fr; }
    .home-row { gap: 30px; max-width: 100%; }
    .home-left { width: 100%; padding: 0; }
    .center-image { width: 100%; display: flex; justify-content: center; }
    .tilted-card { max-width: 180px; min-height: 140px; }
    #homeLatest { max-width: 100%; width: 100%; gap: 28px; }
    #homeLatest .list-item .item-title { font-size: 17px; }
    #homeLatest .list-item .item-desc { font-size: 13px; }
    #homeLatest .list-item .item-footer { font-size: 11px; gap: 12px; flex-wrap: wrap; }
    #homeLatest .list-item .item-footer .tag { font-size: 11px; padding: 0; }
    #homeLatest .list-item .item-footer .item-time { font-size: 11px; }
    .header-wrap, .container { padding: 0 16px; }
    .detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { width: 100%; }
    .series-card { height: auto; min-height: 160px; }
}
