/* 首页专用：不覆盖其他页面的通用卡片和头图。 */
.home-page { max-width: 1200px; margin: 0 auto; padding: 24px 24px 40px; }
.home-page [hidden] { display: none !important; }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.home-page .home-slide:focus-visible { outline-offset: -4px; }
.home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-intro { display: grid; grid-template-columns: 2fr 3fr; gap: 28px; align-items: center; }
.home-search { min-width: 0; padding: 12px 0; }
.home-eyebrow { font-size: 11px; color: #987d65; letter-spacing: .16em; }
.home-search h1 { font-family: var(--font-serif); font-size: 28px; letter-spacing: .08em; line-height: 1.5; margin: 0 0 8px; }
.home-subtitle { font-family: var(--font-serif); font-size: 14px; color: #777; letter-spacing: .12em; margin-bottom: 20px; }
.home-search .search-container { margin-bottom: 12px; }
.home-search .search-container input { height: 50px; font-size: 14px; padding-left: 18px; }
.home-search .search-btn { width: 36px; height: 36px; }
.home-hot-search { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #68645e; font-size: 12px; }
.home-hot-search > span { color: #aaa; }
.home-hot-search a:hover { color: var(--color-accent); }
.home-carousel { position: relative; min-width: 0; border-radius: 10px; background: #ece9df; overflow: hidden; }
.home-slides { position: relative; }
.home-slide { display: flex; position: relative; align-items: center; height: 280px; overflow: hidden; isolation: isolate; }
.home-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.home-slide-image img { width: 100%; height: 100%; object-fit: cover; }
.home-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246,242,230,.97), rgba(246,242,230,.7) 65%, rgba(246,242,230,.28)); }
.home-slide--poem::before { background: linear-gradient(90deg, rgba(237,243,236,.96), rgba(237,243,236,.65) 65%, rgba(237,243,236,.24)); }
.home-slide--author::before { background: linear-gradient(90deg, rgba(244,235,226,.97), rgba(244,235,226,.75) 65%, rgba(244,235,226,.35)); }
.home-slide-copy { min-width: 0; padding: 24px 32px 58px; width: 100%; }
.home-slide-label { display: inline-block; font-size: 11px; letter-spacing: .1em; color: #93684a; border: 1px solid #93684a55; padding: 1px 8px; margin-bottom: 12px; }
.home-slide h2 { font-family: var(--font-serif); font-size: 26px; line-height: 1.45; margin-bottom: 10px; letter-spacing: .04em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-slide-copy > p { max-width: 400px; font-size: 13px; line-height: 1.8; color: #6c6a60; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-slide-action { display: inline-block; margin-top: 14px; font-size: 12px; color: #98504c; }
.home-slide-action > span { display: inline-block; margin-left: 6px; }
.home-slide-portrait { width: 112px; height: 142px; object-fit: cover; border-radius: 50% 50% 8px 8px; margin-right: 30px; flex-shrink: 0; border: 3px solid rgba(255,255,255,.65); }
.home-slide--author .home-slide-copy { width: calc(100% - 142px); }
.home-carousel-controls { position: absolute; right: 22px; bottom: 14px; left: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.home-carousel-controls button { display: grid; place-items: center; height: 30px; min-width: 30px; border: 1px solid #6b675e22; border-radius: 50%; background: #ffffffa6; color: #5d5951; cursor: pointer; font-size: 20px; }
.home-carousel-controls button:hover { background: #fff; }
.home-carousel-dots { display: flex; align-items: center; }
.home-carousel-dots button { position: relative; border: 0; background: transparent; min-width: 28px; width: 28px; }
.home-carousel-dots button::before { content: ''; width: 6px; height: 6px; background: #aaa295; border-radius: 10px; }
.home-carousel-dots button[aria-pressed="true"]::before { width: 18px; background: #9f5550; }
.home-carousel-controls .home-carousel-pause { border-radius: 5px; font-size: 11px; padding: 0 8px; min-width: 40px; }
.home-carousel-fallback { display: flex; flex-wrap: wrap; gap: 12px; background: #f2eee4; padding: 8px 20px; font-size: 12px; }
.home-education { display: flex; align-items: center; gap: 24px; margin: 20px 0 26px; padding: 16px 20px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; }
.home-education-heading { flex: 0 0 130px; }
.home-education-heading h2 { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; }
.home-education-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); flex: 1; gap: 24px; }
.home-education-links a { border-left: 1px solid #ece9e2; padding-left: 24px; }
.home-education-links h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 500; }
.home-education-links a > span { color: #999; font-size: 11px; }
.home-education-links a > span > span { margin-left: 12px; color: #a9856b; }
.home-columns { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 28px; margin-top: 26px; }
.home-recommendations, .home-sidebar { min-width: 0; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-section-heading h2 { font-family: var(--font-serif); font-size: 20px; letter-spacing: .06em; }
.home-section-heading > a { font-size: 12px; color: #888; white-space: nowrap; }
.home-page a:hover { color: var(--color-accent); }
.home-poem-list { display: grid; gap: 14px; }
.home-poem-card { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 22px 26px 16px; }
.home-poem-card h3 { font-family: var(--font-serif); font-size: 20px; line-height: 1.5; letter-spacing: .03em; }
.home-poem-meta { font-size: 12px; color: #888; margin-top: 6px; }
.home-poem-meta > span { margin: 0 7px; }
.home-poem-content { font-family: var(--font-serif); font-size: 16px; line-height: 1.95; white-space: pre-line; margin: 14px 0; overflow-wrap: anywhere; }
.home-poem-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f2f1ed; padding-top: 10px; }
.home-poem-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.home-poem-tags a { color: #999; background: #f8f7f3; font-size: 11px; border-radius: 3px; padding: 1px 7px; }
.home-read-link { color: #a26761; font-size: 12px; white-space: nowrap; }
.home-sidebar { display: flex; flex-direction: column; gap: 22px; }
.home-daily, .home-authors { border: 1px solid var(--color-border); border-radius: 8px; padding: 20px; background: #fff; }
.home-daily { background: linear-gradient(150deg,#f5f0e6,#faf8f1); }
.home-daily .home-section-heading { margin-bottom: 18px; }
.home-daily .home-section-heading h2, .home-authors .home-section-heading h2 { font-size: 17px; }
.home-daily-mark { display: grid; place-items: center; border: 1px solid #b1756580; color: #b17565; width: 25px; height: 28px; font-family: var(--font-serif); font-size: 14px; }
.home-daily h3 { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; }
.home-daily-content { font-family: var(--font-serif); font-size: 15px; line-height: 2; white-space: pre-line; margin: 14px 0; overflow-wrap: anywhere; }
.home-author-list { display: grid; gap: 14px; }
.home-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-author img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; background: #f4f0e9; }
.home-author strong { display: block; font-family: var(--font-serif); font-size: 14px; font-weight: 500; }
.home-author-count { display: block; font-size: 11px; color: #999; }
.home-author-arrow { margin-left: auto; color: #bbb; font-size: 13px; }
.home-quotes { margin-top: 32px; }
.home-quotes-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.home-quote { padding: 20px 24px; background: #f2f0e9; border-radius: 6px; }
.home-quote p { font-family: var(--font-serif); font-size: 17px; line-height: 1.9; }
.home-quote > span { display: block; margin-top: 8px; color: #999; font-size: 11px; }
.home-browse { margin-top: 32px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 22px 24px; }
.home-browse-group { display: flex; gap: 24px; margin-top: 18px; font-size: 12px; }
.home-browse .home-section-heading + .home-browse-group { margin-top: 0; }
.home-browse-group h3 { flex-shrink: 0; font-size: 12px; color: #999; font-weight: 400; }
.home-browse-group > div { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #666; }
@media (max-width: 960px) and (min-width: 769px) {
    .home-columns { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
    .home-slide-copy { padding-left: 22px; padding-right: 22px; }
    .home-slide h2 { font-size: 23px; }
    .home-slide-portrait { width: 84px; height: 110px; margin-right: 20px; }
    .home-slide--author .home-slide-copy { width: calc(100% - 104px); }
}
@media (max-width: 768px) {
    .home-page { padding: 16px 16px 28px; }
    .home-intro { grid-template-columns: 1fr; gap: 16px; }
    .home-search { padding: 0; }
    .home-search h1 { font-size: 22px; margin: 0 0 6px; }
    .home-subtitle { font-size: 12px; margin-bottom: 12px; }
    .home-search .search-container input { height: 46px; font-size: 13px; }
    .home-search .search-container { margin-bottom: 8px; }
    .home-hot-search { font-size: 11px; gap: 4px 12px; }
    .home-slide { height: 180px; }
    .home-slide-copy { padding: 16px 20px 44px; }
    .home-slide-label { margin-bottom: 6px; font-size: 10px; }
    .home-slide h2 { font-size: 21px; margin-bottom: 6px; -webkit-line-clamp: 1; }
    .home-slide-copy > p { font-size: 11px; line-height: 1.7; }
    .home-slide-action { margin-top: 8px; font-size: 11px; }
    .home-slide-portrait { width: 76px; height: 98px; margin-right: 18px; }
    .home-slide--author .home-slide-copy { width: calc(100% - 94px); padding-right: 8px; }
    .home-carousel-controls { bottom: 8px; left: 12px; right: 12px; gap: 4px; }
    .home-carousel-controls button { height: 28px; min-width: 28px; }
    .home-education { display: block; padding: 12px 14px; margin: 16px 0 20px; }
    .home-education-heading { display: flex; align-items: center; gap: 10px; }
    .home-education-heading .home-eyebrow { display: none; }
    .home-education-heading h2 { font-size: 14px; }
    .home-education-links { margin-top: 8px; gap: 8px; }
    .home-education-links a { padding-left: 8px; }
    .home-education-links a:first-child { border-left: 0; padding-left: 0; }
    .home-education-links h3 { font-size: 12px; }
    .home-education-links a > span { font-size: 10px; }
    .home-education-links a > span > span { margin-left: 4px; }
    .home-columns { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
    .home-section-heading { margin-bottom: 12px; }
    .home-section-heading h2 { font-size: 18px; }
    .home-poem-card { padding: 18px 18px 14px; }
    .home-poem-card h3 { font-size: 18px; }
    .home-poem-content { font-size: 15px; margin: 12px 0; }
    .home-sidebar { gap: 18px; }
    .home-author-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .home-author { gap: 8px; }
    .home-author-arrow { display: none; }
    .home-quotes-grid { grid-template-columns: 1fr; }
    .home-quote { padding: 16px 18px; }
    .home-quote p { font-size: 15px; }
    .home-browse { padding: 18px; }
    .home-browse-group { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
}
