/* Homepage A: compact blue/lilac cards, scenic banner and aligned author rail. */
.fresh-home {
    background: #eaf3ff;
    isolation: isolate;
    color: #182233;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    --a-muted: #4e5b70;
    --a-border: #dee4f3;
}
.fresh-home .site-header, .fresh-home .home-page, .fresh-home .site-footer {
    width: calc(100% - 64px);
    max-width: 1180px;
    padding-left: 0;
    padding-right: 0;
}
.fresh-home .site-header { min-height: 76px; gap: 24px; flex-wrap: nowrap; border: 1px solid #ffffffb3; margin-top: 16px; margin-bottom: 16px; padding-left: 20px; padding-right: 20px; border-radius: 14px; background: #ffffffeb; box-shadow: 0 4px 20px #35577d0a; backdrop-filter: blur(10px); }
.fresh-home .site-name { display: flex; align-items: center; flex-shrink: 0; font-size: 20px; font-weight: 750; letter-spacing: 0; color: #121c2a; }
.fresh-home .site-name::before { content: '✿'; width: 34px; height: 34px; border-radius: 50%; margin-right: 12px; color: #fff; background: linear-gradient(135deg, #21bdb8, #51cbd0); font-size: 23px; }
.fresh-home .public-nav { flex: 1; justify-content: center; gap: 24px; flex-wrap: nowrap; margin-left: 0; font-size: 14px; white-space: nowrap; }
.fresh-home .public-nav > a[aria-current="page"], .fresh-home .discover-menu summary.is-current { color: #087f91; background: #e3f6f9; padding: 5px 15px; border-radius: 8px; }
.fresh-home .discover-menu summary { list-style: none; }
.fresh-home .discover-menu summary::-webkit-details-marker { display: none; }
.fresh-home .discover-menu summary::after { content: '⌄'; margin-left: 5px; color: #7c879a; }
.fresh-home .home-page { padding-top: 0; padding-bottom: 24px; }
.home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 190px; overflow: hidden; border: 1px solid #dce4f5; border-radius: 13px; background: #d3e6fd url('./images/alpine-spring.webp') center 52% / cover no-repeat; }
.home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #e9f1ff6b, #e9f1ff1f 44%, transparent 65%); }
.hero-cover { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: 28px 34px; max-width: 68%; }
.hero-copy h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.35; font-weight: 750; color: #101b2b; overflow-wrap: anywhere; text-shadow: 0 1px 5px #ffffff55; }
.hero-copy p { margin: 0; font-size: 16px; color: #263348; text-shadow: 0 1px 3px #ffffff99; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 338px; gap: 22px; align-items: start; margin-top: 18px; }
.home-feed { min-width: 0; }
.home-feed .articles { padding-bottom: 0; }
.home-article, .surface-card, .moment-card { border: 1px solid #ffffffd9; border-radius: 13px; background: #fffffff0; box-shadow: 0 4px 16px #364e8b12; backdrop-filter: blur(6px); }
.home-article { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; min-height: 150px; padding: 12px; margin-bottom: 12px; transition: border-color .18s, box-shadow .18s; }
.home-article:hover { border-color: #bcc9eb; box-shadow: 0 5px 16px #364e8b12; }
.home-article-art { position: relative; display: block; min-height: 124px; border-radius: 9px; overflow: hidden; text-decoration: none; background-color: #e3e8ff; background-image: url('./images/article-covers.webp'); background-repeat: no-repeat; background-size: 300% auto; background-position: left center; }
.home-article-art.art-1 { background-position: center center; }
.home-article-art.art-2 { background-position: right center; }
.home-article-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-article-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 1px 2px 1px 0; }
.home-article-copy h3 { margin: 0 0 8px; font-size: 21px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.home-article-copy h3 a { text-decoration: none; color: #111c2b; }
.home-article-copy h3 a:hover { color: #1395a5; }
.home-article-copy .excerpt { margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #334055; font-size: 14px; line-height: 1.65; }
.home-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; min-height: 22px; font-size: 12px; line-height: 1.5; color: #35445b; }
.article-category { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; margin-right: 3px; }
.home-article-meta .chip { padding: 2px 10px; border-radius: 15px; font-size: 12px; background: #e2e9fe; color: #334a79; }
.home-article-meta .chip:nth-of-type(3) { background: #e9e7fb; }
.home-article-meta time { margin-left: auto; font-size: 12px; }
.all-articles { display: block; width: fit-content; margin: 20px auto 0; padding: 6px 18px; border: 1px solid #ffffffc9; border-radius: 20px; background: #ffffffe6; font-size: 13px; color: #425576; text-decoration: none; }
.all-articles:hover { color: #1395a5; }
.home-sidebar { display: grid; gap: 18px; min-width: 0; }
.surface-card { padding: 20px; }
.profile-card { background: linear-gradient(140deg, #fffffff2, #f7f8fff2); }
.owner-drafts { color: #426079; font-size: 13px; scroll-margin-top: 20px; }
.owner-drafts summary { cursor: pointer; font-weight: 600; }
.owner-drafts ul { padding-left: 18px; margin: 12px 0 0; }
.owner-drafts li { padding: 5px 0; overflow-wrap: anywhere; }
.owner-drafts p { margin-bottom: 0; }
.profile-owner-actions { display: flex; justify-content: flex-end; margin: -4px -4px 12px 0; }
.profile-publish { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #ccdcef; border-radius: 8px; background: #eaf3ff; color: #315b87; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.profile-publish:hover { background: #dcecff; border-color: #9ebee4; }
.profile-publish:focus-visible { outline: 2px solid #397db9; outline-offset: 3px; }
.profile-identity { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.profile-identity .avatar { flex-shrink: 0; width: 68px; height: 68px; border: 3px solid #e5efff; border-radius: 50%; object-fit: cover; }
.profile-identity strong { display: block; font-size: 22px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.profile-identity small { display: block; margin-top: 6px; font-size: 13px; color: #334055; }
.profile-card > p { margin: 18px 0 20px; color: #334055; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; gap: 8px; }
.profile-stats a { text-decoration: none; }
.profile-stats strong { display: block; color: #101b2b; font-size: 22px; font-weight: 750; line-height: 1.3; }
.profile-stats span { display: block; color: #4e5b70; font-size: 12px; margin-top: 3px; }
.life-card { background: linear-gradient(120deg, #e3f7fc, #e7e9ff); border-color: #d2dafa; }
.life-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 19px; font-weight: 700; }
.life-card h2 svg { color: #198cdc; flex-shrink: 0; }
.life-card p { font-size: 14px; line-height: 1.8; margin: 0 0 17px; color: #35435a; }
.life-card .button { display: block; padding: 8px 18px; border: 1px solid #2ab2ce; border-radius: 8px; background: linear-gradient(110deg, #30c6ce, #3bb6da); font-size: 15px; font-weight: 600; text-align: center; text-shadow: 0 1px 2px #196e8c33; }
.life-card .button:hover { filter: brightness(.96); }
.life-links { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 11px; font-size: 12px; color: #596788; }
.life-links a { text-decoration: none; }
.home-moments { margin-top: 34px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home-section-heading h2 { font-size: 19px; margin: 0; }
.home-section-heading > a { font-size: 13px; color: #596b89; text-decoration: none; }
.moment-card { padding: 20px; margin-bottom: 14px; }
.moment-card img { border-radius: 8px; }
.moment-card .text-link { font-size: 13px; color: #168f9f; }
.fresh-home .empty-state { padding: 40px 24px; text-align: center; border: 1px solid var(--a-border); border-radius: 13px; background: #ffffffd9; }
.fresh-home .empty-state h3 { margin: 0 0 10px; font-size: 20px; }
.fresh-home .site-footer { margin-top: 18px; margin-bottom: 20px; padding: 16px 20px; border: 1px solid #ffffffb3; border-radius: 12px; background: #ffffffe6; font-size: 12px; color: #4d607d; backdrop-filter: blur(6px); }
.catalog-sidebar section { scroll-margin-top: 24px; }
@media (max-width: 1150px) {
    .fresh-home .site-header { gap: 18px; }
    .fresh-home .public-nav { gap: 16px; }
    .home-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
    .home-article { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
    .home-article-copy h3 { font-size: 19px; }
    .surface-card { padding: 18px; }
}
@media (max-width: 950px) {
    .fresh-home .site-header, .fresh-home .home-page, .fresh-home .site-footer { width: calc(100% - 40px); }
    .fresh-home .site-header { flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; gap: 16px; }
    .fresh-home .public-nav { justify-content: flex-end; }
    .home-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
    .home-article { grid-template-columns: 145px minmax(0, 1fr); gap: 14px; }
    .home-article-copy h3 { font-size: 17px; }
    .home-article-copy .excerpt { font-size: 13px; }
    .profile-identity { gap: 10px; }
    .profile-identity .avatar { width: 56px; height: 56px; }
    .profile-identity small { font-size: 12px; }
    .profile-card > p { font-size: 13px; }
    .home-article-meta time { margin-left: 0; }
}
@media (max-width: 700px) {
    .home-layout { grid-template-columns: minmax(0, 1fr); }
    .home-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { min-height: 180px; }
    .hero-copy { padding: 24px; max-width: 85%; }
    .hero-copy h1 { font-size: 28px; }
    .hero-copy p { font-size: 14px; }
    .home-article { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .fresh-home .site-header, .fresh-home .home-page, .fresh-home .site-footer { width: calc(100% - 28px); }
    .fresh-home .site-header { margin-top: 10px; margin-bottom: 12px; padding: 12px; gap: 12px; align-items: center; }
    .fresh-home .site-name { font-size: 18px; }
    .fresh-home .site-name::before { width: 30px; height: 30px; font-size: 21px; margin-right: 9px; }
    .fresh-home .nav-toggle-label { padding: 5px 10px; border-color: #d8e1f1; font-size: 14px; background: #fff; }
    .fresh-home .public-nav { flex: 0 0 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; }
    .fresh-home .discover-links { position: static; }
    .home-hero { min-height: 155px; border-radius: 11px; background-position: 58% center; }
    .hero-copy { padding: 20px; max-width: 100%; }
    .hero-copy h1 { font-size: 26px; }
    .hero-copy p { font-size: 13px; }
    .home-layout { margin-top: 14px; gap: 18px; }
    .home-article { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; min-height: 135px; padding: 10px; margin-bottom: 10px; border-radius: 11px; }
    .home-article-art { min-height: 112px; background-size: 360% auto; }
    .home-article-copy h3 { font-size: 16px; margin-bottom: 5px; }
    .home-article-copy .excerpt { font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
    .home-article-meta { gap: 4px 6px; font-size: 11px; }
    .home-article-meta .chip { padding: 1px 7px; font-size: 11px; }
    .home-article-meta time { font-size: 11px; }
    .home-sidebar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .surface-card { padding: 18px; }
    .profile-identity .avatar { width: 64px; height: 64px; }
    .profile-identity strong { font-size: 21px; }
    .profile-card > p { font-size: 14px; }
    .fresh-home .site-footer { gap: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .home-article { transition: none; } }

/* Author card: clear identity, compact introduction, and live publication counts. */
.profile-card.surface-card { padding: 23px; border: 1px solid #ffffffea; border-radius: 17px; background: linear-gradient(145deg,#ffffffed,#f5f9fff2); }
.profile-card .profile-identity { gap: 15px; }
.profile-card .profile-identity .avatar { width: 72px; height: 72px; border: 3px solid #fff; box-shadow: 0 0 0 1px #dce9f7,0 5px 16px #658bab1a; }
.profile-name { min-width: 0; }
.profile-card .profile-identity strong { font-size: 22px; line-height: 1.4; letter-spacing: .02em; color: #263e57; }
.profile-card .profile-identity small { margin-top: 5px; color: #7b8b9f; font-size: 12px; line-height: 1.8; }
.profile-card > p { margin: 20px 0; color: #62758a; font-size: 13px; line-height: 1.9; }
.profile-card .profile-stats { gap: 0; padding-top: 17px; border-top: 1px solid #e5edf5; }
.profile-card .profile-stats a { display: flex; align-items: center; flex-direction: column; gap: 5px; min-height: 55px; border-radius: 7px; }
.profile-card .profile-stats a + a { border-left: 1px solid #e5edf5; border-radius: 0; }
.profile-card .profile-stats strong { color: #2c526e; font-size: 23px; font-weight: 700; line-height: 1.25; }
.profile-card .profile-stats span { margin: 0; color: #8795a5; font-size: 11px; }
.profile-card .profile-stats a:hover strong { color: #168b9d; }
.profile-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e5edf5; font-size: 10px; color: #96a3b1; }
.profile-footer a { color: #548299; text-decoration: none; font-size: 11px; white-space: nowrap; }
.profile-footer a:hover { color: #168b9d; }
@media (max-width: 950px) and (min-width: 701px) {
    .profile-card.surface-card { padding: 18px; }
    .profile-card .profile-identity { gap: 11px; }
    .profile-card .profile-identity .avatar { width: 58px; height: 58px; }
    .profile-card .profile-identity strong { font-size: 20px; }
}
@media (max-width: 600px) {
    .profile-card.surface-card { padding: 22px; }
    .profile-card .profile-identity .avatar { width: 66px; height: 66px; }
}
