/* 首页专用样式 - 左右两栏比例 68% / 32% */
.two-columns-home {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
}
.home-left-col {
    flex: 1 1 0;
    max-width: 68%;
}
.home-right-col {
    flex: 1 1 0;
    max-width: 32%;
    min-width: 0;
}
.books-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.ancient-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.hot-recommend-horizontal {
    overflow-x: auto;
}
.hot-novels-horizontal {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
}
.hot-novel-card-horizontal {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-sm, 0 2px 5px rgba(0,0,0,0.05));
    transition: transform 0.2s;
}
.hot-novel-card-horizontal:hover {
    transform: translateY(-4px);
}
.hot-cover-horizontal img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.hot-info-horizontal {
    margin-top: 0.8rem;
}
.hot-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.hot-author, .hot-tickets {
    font-size: 0.8rem;
    color: #6c757d;
}
.btn-detail {
    display: inline-block;
    background: #8b5a2b;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-decoration: none;
    margin-top: 0.5rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.category-card {
    background: #faf9f5;
    border-radius: 12px;
    padding: 1rem;
}
.category-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #8b5a2b;
    border-left: 3px solid #8b5a2b;
    padding-left: 0.5rem;
}
.category-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-card-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.cat-author {
    font-size: 0.75rem;
    color: #6c757d;
}
.poetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.poetry-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.category-title {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    border-left: 4px solid var(--secondary-color, #8b5a2b);
    padding-left: 0.75rem;
    margin-bottom: 0.8rem;
}
.category-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-posts li {
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 0.6rem;
}
.two-column-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.magazine-card {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.magazine-cover {
    flex: 0 0 140px;
}
.magazine-cover img {
    width: 100%;
    border-radius: 12px;
}
.magazine-info {
    flex: 1;
}
.collections-card {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.collection-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.collection-item-cover {
    flex: 0 0 60px;
}
.collection-item-cover img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.literary-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: #f4f1ea;
    border-radius: 1rem;
    text-align: center;
    width: 100%;
}
.home-right-col .widget {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm, 0 2px 5px rgba(0,0,0,0.05));
    border: 1px solid var(--border-light, #e2e8f0);
}
.home-right-col .widget-title {
    font-size: 1.2rem;
    font-family: var(--font-serif, 'Noto Serif SC', serif);
    border-left: 4px solid var(--secondary-color, #8b5a2b);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .two-columns-home { flex-direction: column; }
    .home-left-col, .home-right-col { flex: auto; width: 100%; }
    .books-grid-3, .ancient-grid-3, .category-grid, .categories-grid { grid-template-columns: 1fr; }
    .magazine-card { flex-direction: column; }
    .poetry-grid { grid-template-columns: 1fr; }
    .two-column-flex { flex-direction: column; }
    .hot-novels-horizontal { flex-wrap: wrap; justify-content: center; }
    .hot-novel-card-horizontal { flex: 0 0 200px; }
}

.widget {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0e6d2;
    transition: box-shadow 0.2s;
}
.widget:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.widget-title {
    font-size: 1.2rem;
    font-family: 'Noto Serif SC', serif;
    border-left: 4px solid #8b5a2b;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    color: #2c3e2f;
}
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}
.widget_search input[type="search"] {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-family: inherit;
}
.widget_search button[type="submit"] {
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
}
.widget_calendar table {
    width: 100%;
    text-align: center;
}
.widget_calendar caption {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.widget_calendar th, .widget_calendar td {
    padding: 0.3rem;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed #f0e6d2;
    padding-bottom: 0.6rem;
}
.widget li:last-child {
    border-bottom: none;
}
.widget .tagcloud a {
    display: inline-block;
    background: #f3f4f6;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem !important;
    margin: 0.2rem;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s;
}
.widget .tagcloud a:hover {
    background: #8b5a2b;
    color: #fff;
}

.sf-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-widget-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #f0e6d2;
}
.sf-widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sf-widget-list a {
    text-decoration: none;
    color: #2c3e2f;
    font-weight: 500;
    transition: color 0.2s;
}
.sf-widget-list a:hover {
    color: #8b5a2b;
}
.sf-reply-count {
    font-size: 0.75rem;
    color: #8b5a2b;
    margin-left: 0.3rem;
}
.sf-widget-meta {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}
.sf-widget-author,
.sf-widget-date {
    display: inline-block;
}