/** * Homepage Fixed Layout — Zibll Visual Parity * * Implements Zibll's homepage visual language: * - System font stack with Chinese fallbacks * - 1200px container, 311px sidebar * - Post cards: list mode (190px thumb) + card mode (3-col grid) * - Zibll shadow/radius/spacing values * - scale(1.02) thumbnail hover * - Lazy-load animations (blur/fade/scale) * - Full responsive: 1200/991/767/640px breakpoints */ /* ================================================================ 0. ANIMATIONS ================================================================ */ @keyframes aksrt-lazy-blur { from { filter: blur(5px); opacity: 0.6; } to { filter: blur(0); opacity: 1; } } @keyframes aksrt-lazy-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes aksrt-lazy-scale { from { transform: scale(1.1); opacity: 0.8; } to { transform: scale(1); opacity: 1; } } @keyframes aksrt-skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ================================================================ 1. HOMEPAGE CONTAINER & TYPOGRAPHY ================================================================ */ .aksrt-homepage { font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.42857143; color: var(--main-color, #4e5358); background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* Slightly looser than stock zibll short pages: air between stream and footer */ padding-bottom: 28px; } .aksrt-homepage a[href] { transition: color 0.2s, background 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s; } .aksrt-homepage img.aksrt-loaded { animation: aksrt-lazy-blur 0.6s ease; } .aksrt-homepage img.aksrt-loaded.img-icon { animation: aksrt-lazy-fade 0.6s ease; } .aksrt-homepage .aksrt-skeleton { animation: aksrt-skeleton-pulse 1.5s ease-in-out infinite; } /* ================================================================ 2. LAYOUT SHELL ================================================================ */ .aksrt-homepage__fluid-zone.content-shell, .aksrt-homepage__shell.content-shell { max-width: min(100%, var(--container, 1200px)); } .aksrt-homepage__fluid-zone.content-shell { padding-top: 18px; padding-bottom: 0; } .aksrt-homepage__hero { width: 100vw; max-width: 100vw; margin: 0 calc(-50vw + 50%) 24px; } .aksrt-homepage__hero .header-components-container { margin-bottom: 0; } .aksrt-homepage__shell.content-shell { padding-top: 0; /* 36px + a bit more breathing room before footer */ padding-bottom: 56px; } /* Bottom fluid zone (if any) keeps a little gap above footer */ .aksrt-homepage__fluid-zone--bottom { margin-bottom: 12px; } @media (max-width: 767px) { .aksrt-homepage { padding-bottom: 20px; } .aksrt-homepage__shell.content-shell { padding-bottom: 40px; } } /* Dual-column geometry is owned by body.site-layout-* float rules in layout.css. */ .aksrt-homepage__content-layout { display: block; gap: 0; } @media (max-width: 1200px) { .aksrt-homepage__fluid-zone.content-shell, .aksrt-homepage__shell.content-shell { max-width: 95%; } } .aksrt-homepage__content-zone, .aksrt-homepage__fluid-zone, .aksrt-homepage__aside { display: block; } .aksrt-homepage__system-modules { gap: 0; padding-bottom: 0; } .aksrt-homepage__content-zone.aksrt-homepage__system-modules { margin-bottom: 20px; } .aksrt-homepage__content-zone--featured { margin-bottom: 20px; } .aksrt-homepage__content-zone--operated, .aksrt-homepage__content-zone--mid, .aksrt-homepage__content-zone--supplement { margin-bottom: 20px; } .aksrt-homepage__content-zone--operated.home-modules, .aksrt-homepage__content-zone--mid.home-modules, .aksrt-homepage__content-zone--supplement.home-modules { gap: 24px; padding-bottom: 0; } .aksrt-homepage__content-zone--supplement { padding-top: 4px; } .aksrt-homepage__content-zone--featured.home-modules { gap: 24px; padding-bottom: 0; } .aksrt-homepage__content-zone .widget-card:last-child, .aksrt-homepage__aside .widget:last-child, .aksrt-homepage__fluid-zone .widget-fluid:last-child { margin-bottom: 0; } /* ================================================================ 3. FLUID WIDGETS ================================================================ */ .aksrt-homepage__fluid-zone .widget-fluid { margin-bottom: 20px; background: transparent; padding: 0; border: 0; box-shadow: none; } .aksrt-homepage .widget-fluid.widget_aksrt_tab_posts, .aksrt-homepage .widget-fluid.widget_aksrt_category_block, .aksrt-homepage .widget-fluid.widget_aksrt_category_tabs, .aksrt-homepage .widget-fluid.widget_aksrt_category_recommend { padding: 15px; background: var(--surface-1, #fff); border: none; border-radius: var(--main-radius, var(--radius, 8px)); box-shadow: var(--shadow-sm); } .aksrt-homepage__content-zone .widget-card, .aksrt-homepage__aside .widget { background: var(--surface-1, #fff); padding: 15px; border: none; border-radius: var(--main-radius, var(--radius, 8px)); box-shadow: var(--shadow-sm); } /* ================================================================ 4. STREAM CONTAINER ================================================================ */ .aksrt-homepage__stream-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0; } .aksrt-homepage__stream-intro { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .aksrt-homepage__stream-title { margin: 0; color: var(--color-ink); font-size: 20px; font-weight: 700; line-height: 1.25; } .aksrt-homepage__stream-subtitle { margin: 0; color: var(--color-ink-3, #777); font-size: 13px; line-height: 1.5; } .aksrt-homepage__stream, .aksrt-homepage__stream.widget-card { overflow: visible; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; margin-bottom: 0; } /* ================================================================ 5. TABS ================================================================ */ .aksrt-homepage__tabs, .aksrt-homepage__titlebox { margin-bottom: 6px; padding-bottom: 0; border-bottom: 0; } .aksrt-homepage__tabs.box-body, .aksrt-homepage__titlebox.box-body { padding: 0; } .aksrt-homepage__tabs-sentinel { width: 100%; height: 1px; margin: 0; pointer-events: none; } .aksrt-homepage__tabs.home-tab-nav-box { position: static; z-index: auto; background: transparent; } .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"] { position: sticky; top: var(--nav-height, 60px); z-index: 995; background: transparent; transition: background-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease, padding 0.2s ease, margin 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease; } .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-stuck, .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-affixed { margin-bottom: 14px; padding: 10px 16px; background: rgba(255, 255, 255, 0.92); border: none; border-radius: var(--radius-2xl, 16px); box-shadow: var(--shadow); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); } .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-affixed { position: fixed; } html.dark .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-stuck, html.dark .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-affixed, html.dark .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-stuck, html.dark .aksrt-homepage__tabs.home-tab-nav-box[data-sticky-tabs="true"].is-affixed { background: rgba(24, 24, 24, 0.82); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24); } .aksrt-homepage__tab-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; } .aksrt-homepage__admin-link { margin-left: auto; } .scroll-x { overflow-x: auto; overflow-y: hidden; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; } .aksrt-homepage__tab-item { display: inline-flex; flex: 0 0 auto; padding: 0; margin: 0; border-radius: 20px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease; } .aksrt-homepage__tab-button { padding: 6px 14px; border: 0; background: transparent; color: var(--color-ink); font-family: inherit; font-size: 14px; font-weight: inherit; line-height: 1.2; white-space: nowrap; border-radius: inherit; cursor: pointer; } .aksrt-homepage__tab-button:hover { color: var(--color-primary, var(--color-primary)); } .aksrt-homepage__tab-item.is-active { background: var(--color-primary, var(--color-primary)); } .aksrt-homepage__tab-item.is-active .aksrt-homepage__tab-button, .aksrt-homepage__tab-button[aria-selected="true"] { color: #fff !important; } /* ================================================================ 6. SORTBAR + VIEW TOGGLE ================================================================ */ .aksrt-homepage__sortbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--color-line, rgba(50, 50, 50, 0.06)); color: var(--color-ink-3, #777); font-size: 13px; } .aksrt-homepage__sortbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; flex: 1 1 auto; } .aksrt-homepage__sortbar-link { position: relative; display: inline-flex; align-items: center; padding: 0 12px; color: var(--color-ink-3, #777); text-decoration: none; line-height: 1.4; } .aksrt-homepage__sortbar-link:first-child { padding-left: 0; } .aksrt-homepage__sortbar-link + .aksrt-homepage__sortbar-link::before { content: "\00b7"; position: absolute; left: -2px; color: var(--color-ink-4, #b1b1b1); } .aksrt-homepage__sortbar-link:hover, .aksrt-homepage__sortbar-link.is-active { color: var(--color-ink); } .aksrt-homepage__view-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; } .aksrt-homepage__view-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--color-ink-4, #999); border-radius: 4px; cursor: pointer; transition: color 0.2s, background 0.2s; } .aksrt-homepage__view-btn:hover { color: var(--color-ink); background: var(--surface-2, #eee); }