.home-page { background: radial-gradient(ellipse at 50% 0, #edf3fb, #f5f7fa 65%); }
.home-page .top-nav { margin-bottom: 0; box-shadow: 0 3px 14px rgba(28,42,72,.025); }
.home-layout { max-width: 1320px; margin: 16px auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 2.47fr) minmax(310px, 1fr); gap: 16px; align-items: start; }
.home-primary, .home-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-page a { text-decoration: none; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-xs); overflow: hidden; }
.home-hero { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); }
.hero-copy { position: relative; z-index: 1; }
.home-hero h1 { margin: 0 0 6px; font-size: clamp(23px, 2.1vw, 29px); line-height: 1.45; letter-spacing: -.04em; color: #080f22; }
.home-hero .hero-copy > p { color: #465574; font-size: 14px; margin: 0; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.home-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--border); border-radius: 5px; background: rgba(255,255,255,.65); color: var(--text); font-size: 12px; transition: background .2s; }
.home-button.primary { background: #2460ff; border-color: #2460ff; color: #fff; }
.home-button:hover { background: #e9efff; }
.home-button.primary:hover { background: #194bdf; }

.hero-note { flex: 0 0 auto; margin: 0; max-width: 240px; text-align: right; font-family: STKaiti,KaiTi,serif; color: var(--text-secondary); }
.hero-note p { font-size: 17px; line-height: 1.7; margin: 0; }
.hero-note cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; }
.latest-panel, .home-sidebar .panel { padding: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; line-height: 1.4; margin: 0; letter-spacing: -.025em; color: var(--text); }
.section-head > a { color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.post-item { display: flex; align-items: center; gap: 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--border); }
.post-item:first-child { padding-top: 2px; }
.post-item:last-child { padding-bottom: 0; border-bottom: 0; }
.post-cover { flex: 0 0 152px; height: 86px; border-radius: 5px; overflow: hidden; position: relative; background: linear-gradient(135deg,#19374e,#0c202e); box-shadow: var(--shadow-xs); }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.post-cover:hover img { transform: scale(1.04); }


.post-content { min-width: 0; flex: 1; }
.post-content h3 { font-size: 14px; margin: 0 0 6px; line-height: 1.6; }
.post-content h3 a { color: var(--text); }
.post-content h3 a:hover { color: var(--accent); }
.post-content > p { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--text-secondary); }
.category-badge { color: var(--accent); padding: 2px 9px; background: #edf3ff; border-radius: 5px; }
.profile-intro { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.profile-intro h2 { font-size: 17px; margin: 0 0 4px; }
.profile-intro p { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.7; }
.profile-about { display: inline-block; margin: 12px 0 0 66px; color: var(--accent); font-size: 12px; }
.project-list { display: flex; flex-direction: column; }
.project-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.project-item:first-child { padding-top: 0; }
.project-item:last-child { border-bottom: 0; padding-bottom: 0; }
.project-content { flex: 1; min-width: 0; }
.project-content h3 { font-size: 14px; margin: 0; line-height: 1.6; }
.project-item:hover h3 { color: var(--accent); }
.project-content p { font-size: 12px; color: var(--text-secondary); margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-arrow { font-size: 19px; color: var(--text-secondary); }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.friend-links a { color: var(--text); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.friend-links a:hover,.profile-about:hover { color: var(--accent); text-decoration: underline; }
.empty-state { padding: 24px 0; text-align: center; color: var(--text-secondary); font-size: 13px; }
.home-page footer { margin-top: 18px; padding: 20px 0; background: linear-gradient(120deg,#172335,#1a2638); }
html[data-theme="dark"] .home-hero { background-color: #1b2a40; background-blend-mode: soft-light; }
html[data-theme="dark"] .home-hero h1 { color: var(--text); }
html[data-theme="dark"] .hero-note, html[data-theme="dark"] .home-hero .hero-copy > p { color: #b9c9df; }
html[data-theme="dark"] .home-button:not(.primary), html[data-theme="dark"] .category-badge { background: #233553; }
@media (min-width: 1400px) { .home-layout { margin-top: 16px; } .post-item { padding-top: 12px; padding-bottom: 14px; } }
@media (max-width: 1150px) { .home-hero { flex-direction: column; align-items: flex-start; gap: 18px; } .hero-note { text-align: left; } .home-layout { grid-template-columns: minmax(0, 1fr) 310px; } .post-cover { flex-basis: 120px; height: 78px; } }
@media (max-width: 900px) { .home-layout { grid-template-columns: minmax(0, 1fr); } .home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; } .home-hero { flex-direction: row; align-items: center; } .hero-note { text-align: right; } }
@media (max-width: 600px) { .home-layout { padding: 0 12px; margin-top: 12px; gap: 12px; } .home-primary, .home-sidebar { gap: 12px; } .home-sidebar { display: flex; } .home-hero { padding: 20px 16px; } .home-hero h1 { font-size: 26px; } .home-hero .hero-copy > p { font-size: 12px; } .home-hero { flex-direction: column; align-items: flex-start; gap: 16px; } .hero-note { text-align: left; padding-top: 12px; border-top: 1px solid var(--border); width: 100%; max-width: none; } .hero-note p { font-size: 15px; } .hero-note cite { margin-top: 4px; }   .latest-panel, .home-sidebar .panel { padding: 14px; } .post-item { gap: 12px; align-items: start; padding: 14px 0; } .post-cover { flex-basis: 92px; height: 70px; margin-top: 3px; } .post-content h3 { font-size: 13px; } .post-content > p { display: block; margin-bottom: 6px; } .post-meta { font-size: 10px; gap: 5px 9px; } .section-head h2 { font-size: 18px; } }
@media (max-width: 600px) {
    .home-sidebar { align-items: stretch; }

}
