/* ============================================================================
 * zzerfu-home.css — 首页首屏与入口区（最后加载）
 * ----------------------------------------------------------------------------
 * 1. 首屏换成「室内」插画：日 / 夜两版 SVG，铺在 .bg-img::before 上，
 *    高度永远铺满（auto 100%），宽度按插画比例走，所以插画既不会被
 *    拉伸，也不会随屏幕变宽而无限放大；底部用 mask 渐隐到页面底色。
 * 2. 倒计时不再是一张玻璃卡：去掉面板，数字在上、单位在下，
 *    整行收到 350px 左右，不再是一条横贯半屏的字。
 * 3. 五个入口从上三下二改成 1 + 4 的便当格：相册占两行做主角，
 *    右上是 2×2 的四个等宽入口，整块高度增加，页面下半部分不再空。
 * ========================================================================== */

/* ============================================================
   1. 首屏插画
   ============================================================ */
.bg-img {
    /* 原来由 head.php 内联写入数据库背景图，这里接管为插画 */
    background: none !important;
    /* 上下留出插画的呼吸空间：上是头像框顶部，下是沙发的可见区域 */
    padding-top: clamp(74px, 6.6vw, 92px) !important;
    padding-bottom: clamp(118px, 10.6vw, 152px) !important;
    /* 首屏高度就由「头像区 + 上下 padding」决定，不再跟着视口宽度放大：
       以前用 min-height:32.71vw 把首屏拉到跟插画同比例，结果 1920 下
       首屏被撑到 628px、超宽屏更夸张，插画占掉了大半个屏幕。 */
    isolation: isolate;
}

/* 墙面底色：超宽屏上插画比窗口窄，两侧由这一层接住，
   配合 SVG 里预置的边缘淡出，看不到插画的边界 */
.bg-img::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, #f9fbf8 0%, #f0f5f0 52%, #e6eee7 100%) !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, 0) 100%);
}

[data-theme="dark"] .bg-img::after {
    background: linear-gradient(to bottom, #20333b 0%, #182930 52%, #122027 100%) !important;
}

/* 插画层：独立于 .bg-img 的背景，这样底部的渐隐可以单独做 mask，
   不会把身在其上的头像玻璃框一起淡掉 */
.bg-img::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* auto 100%：高度永远铺满首屏、宽度按插画比例走。
       窄屏时插画比窗口宽，横向裁掉的是两侧预留的纯墙面；
       宽屏时插画保持原尺寸居中，两侧交给上面的墙面底色。 */
    /* 用 2x 位图而不是 SVG：Firefox 每次改 background-size 都会重新渲染矢量图，
       整场切换（逐帧改尺寸）直接掉到 25fps；位图只栅格化一次，之后只做缩放。
       Chrome/Safari 本来就有图像缓存，换位图对它们没有副作用。 */
    background: url(../img/home/room-day.webp) no-repeat center top !important;
    background-size: auto 100% !important;
    /* 只在最底下 64px 渐隐：沙发要留在可见区，不能整块被淡掉 */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), rgba(0, 0, 0, 0) 100%);
}

[data-theme="dark"] .bg-img::before {
    background-image: url(../img/home/room-night.webp) !important;
}

/* 头像区收窄一点，左右两列插画才露得出来 */
.bg-img .central.central-800 {
    width: min(700px, calc(100% - 2rem)) !important;
}

/* 头像区不再是一块玻璃板：只在人物身后铺一团很淡的光，
   墙面的壁纸、窗与绿植都能透出来，和插画连成一片 */
.bg-img .middle {
    background: radial-gradient(46% 96% at 50% 38%,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.24) 54%,
            rgba(255, 255, 255, 0) 76%) !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 1.6rem clamp(1.4rem, 4vw, 3rem) 1.1rem !important;
}

[data-theme="dark"] .bg-img .middle {
    background: radial-gradient(46% 96% at 50% 38%,
            rgba(120, 226, 205, 0.15) 0%,
            rgba(120, 226, 205, 0.05) 54%,
            rgba(120, 226, 205, 0) 76%) !important;
}

/* 插画底色浅，头像名字不必再借白色描边 */
.bg-img .middle .img-male span,
.bg-img .middle .img-female span {
    color: var(--text) !important;
    text-shadow: none;
}

/* 心形两种写法同时存在，按页面只显示一个：
   PJAX 不替换首屏，只输出一种会导致「从首页进子页后心形消失」 */
html.is-home .bg-img .middle .love-icon .love-icon__pic {
    display: none !important;
}

html:not(.is-home) .bg-img .middle .love-icon .love-icon__mark {
    display: none !important;
}

/* 后台开了「关闭头像区模糊」时，head.php 里那段内联样式会把名字改成白字，
   在这张浅色插画上会看不见；这里用更高优先级拉回正文色 */
html body .bg-img .middle.Blurkg .img-male span,
html body .bg-img .middle.Blurkg .img-female span {
    color: var(--text) !important;
    text-shadow: none !important;
}

/* 原先那条翻滚的波浪是给风景照用的，室内插画不需要，直接收掉 */
.bg-img .waves {
    display: none !important;
}

/* ============================================================
   1.5 浪漫魔法氛围层
   ------------------------------------------------------------
   铺满视口的固定层，落在内容之下、body 渐变之上：
   流萤光点（魔法）+ 闪烁星光（魔法）+ 漂浮心形（浪漫）。
   只在空白背景处可见，不遮挡头像区与入口卡。
   ============================================================ */
.zf-ambient {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    /* 首页 ↔ 子页面整场切换时，粒子跟着退场淡出、入场淡入，
       否则内容在动、粒子钉在屏幕上会像隔了一层玻璃 */
    transition: opacity 0.34s ease;
}

html.zf-scene-exiting .zf-ambient {
    opacity: 0;
}

/* 内容抬到氛围层之上：倒计时、入口卡、首屏插画、页脚不被粒子压住 */
#pjax-container > .time,
#pjax-container > .card-wrap,
.bg-wrap,
.footer-warp {
    position: relative;
    z-index: 1;
}

.zf-ambient > * {
    position: absolute;
    display: block;
    will-change: transform, opacity;
}

/* —— 流萤光点：柔和呼吸、缓慢上移 —— */
.zf-orb {
    left: var(--x);
    top: var(--y);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* 浅色插画是米白底，纯白光点会被吃掉；把青绿外圈加厚一点，
       浅色下也能看出「萤火」，深色主题另有更亮的配色 */
    background: radial-gradient(circle at 50% 50%,
        #ffffff 0%,
        rgba(94, 224, 200, 0.85) 26%,
        rgba(15, 155, 134, 0) 74%);
    box-shadow: 0 0 12px 3px rgba(15, 155, 134, 0.26);
    opacity: 0.4;
    animation: zf-orb 9s ease-in-out var(--d, 0s) infinite;
}

[data-theme="dark"] .zf-orb {
    background: radial-gradient(circle at 50% 50%,
        #eafff9 0%,
        rgba(94, 224, 200, 0.7) 32%,
        rgba(94, 224, 200, 0) 72%);
    box-shadow: 0 0 12px 4px rgba(94, 224, 200, 0.32);
}

@keyframes zf-orb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.32; }
    50% { transform: translate(10px, -26px) scale(1.25); opacity: 0.7; }
}

/* —— 魔法星光：四角星，原地旋转闪烁 —— */
.zf-spark {
    left: var(--x);
    top: var(--y);
    width: 14px;
    height: 14px;
    background: var(--accent);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    opacity: 0;
    animation: zf-spark 4.5s ease-in-out var(--d, 0s) infinite;
}

[data-theme="dark"] .zf-spark {
    background: #c7f4ea;
}

@keyframes zf-spark {
    0%, 100% { transform: scale(0.3) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(90deg); opacity: 0.85; }
}

/* —— 漂浮心形：自底向上、左右轻摆、渐隐（浪漫）—— */
.zf-heart {
    left: var(--x);
    bottom: -6%;
    width: calc(16px * var(--s, 1));
    height: calc(16px * var(--s, 1));
    background: #ef8fa6;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0;
    animation: zf-heart calc(14s * var(--sp, 1)) linear var(--d, 0s) infinite;
}

[data-theme="dark"] .zf-heart {
    background: #ff9fb6;
}

@keyframes zf-heart {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: 0; }
    12% { opacity: 0.55; }
    50% { transform: translate(var(--sway, 18px), -46vh) rotate(8deg); opacity: 0.5; }
    88% { opacity: 0.35; }
    100% { transform: translate(0, -94vh) rotate(-6deg); opacity: 0; }
}

/* ============================================================
   2. 首页新布局（html.is-home）
   对照小P布局稿：诗右侧竖排、巨幅天数压在插画上、
   头像交叠偏右、相册左出血扇形拍立得、右侧四卡不均等。
   子页面仍用上面的室内插画 + 居中头像，不受这些规则影响。
   ============================================================ */

html:not(.is-home) .time--hero,
html:not(.is-home) .home-poem {
    display: none !important;
}

/* 顶栏：首页更通透，只留品牌和主题切换 */
html.is-home .header-wrap {
    background: linear-gradient(180deg, rgba(247, 251, 250, 0.92), rgba(247, 251, 250, 0.55) 70%, transparent) !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}
html.is-home .header-wrap.is-scrolled {
    background: rgba(247, 251, 250, 0.88) !important;
    border-bottom-color: var(--line) !important;
}
html[data-theme="dark"].is-home .header-wrap {
    background: linear-gradient(180deg, rgba(18, 30, 34, 0.92), rgba(18, 30, 34, 0.45) 70%, transparent) !important;
}
html[data-theme="dark"].is-home .header-wrap.is-scrolled {
    background: rgba(18, 30, 34, 0.88) !important;
}

/* ----- 首屏：更高，给天数、头像、诗留位置，底部留给相册叠入 ----- */
html.is-home .bg-wrap,
html.is-home .bg-img {
    position: relative;
}
html.is-home .bg-img {
    height: clamp(560px, 70vh, 760px);
    padding: 0 !important;
    overflow: visible;
}
html.is-home .bg-img::before {
    background-size: auto 118% !important;
    background-position: center 8% !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0) 100%);
}
html.is-home .bg-img::after {
    background:
        radial-gradient(700px 420px at 18% 80%, rgba(15, 155, 134, 0.10), transparent 60%),
        radial-gradient(600px 380px at 88% 30%, rgba(224, 154, 122, 0.14), transparent 60%),
        linear-gradient(to bottom, transparent 55%, var(--bg) 92%) !important;
    -webkit-mask-image: none;
    mask-image: none;
}
html[data-theme="dark"].is-home .bg-img::after {
    background:
        radial-gradient(700px 420px at 18% 80%, rgba(94, 224, 200, 0.08), transparent 60%),
        radial-gradient(600px 380px at 88% 30%, rgba(224, 154, 122, 0.10), transparent 60%),
        linear-gradient(to bottom, transparent 50%, var(--bg) 92%) !important;
}

/* ----- 计时：左对齐，巨幅天数 + 桃色「天」圆点 ----- */
html.is-home div.time.time--hero {
    position: absolute;
    left: max(56px, calc((100% - 1240px) / 2));
    top: clamp(96px, 14vh, 140px);
    z-index: 5;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto !important;
    max-width: min(640px, 58vw);
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html.is-home div.time.time--hero::before,
html.is-home div.time.time--hero::after {
    display: none !important;
}

html.is-home .time__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 12px 4px 8px;
    border-radius: 999px;
    /* 跟随主题：浅色是白玻璃，深色是深玻璃，别在夜里留一块白底 */
    background: var(--surface);
    border: 1px solid rgba(15, 155, 134, 0.14);
    box-shadow: 0 6px 16px rgba(22, 40, 36, 0.05);
}
html[data-theme="dark"].is-home .time__kicker {
    background: var(--surface);
    border-color: rgba(94, 224, 200, 0.22);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}
html.is-home .time--hero .time__heart {
    display: inline-flex;
    color: var(--accent);
    animation: zf-countdown-heart 2.4s ease-in-out infinite;
    transform-origin: center;
}
html.is-home .time--hero .time__heart svg {
    width: 12px;
    height: 12px;
}
@keyframes zf-countdown-heart {
    0%, 18%, 62%, 100% { transform: scale(1); }
    28% { transform: scale(1.18); }
    40% { transform: scale(0.94); }
    50% { transform: scale(1.12); }
}
html.is-home .time--hero #span_dt_dt {
    display: inline !important;
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.22em !important;
    color: #0b7f6e !important;
}
html[data-theme="dark"].is-home .time--hero #span_dt_dt {
    color: #5ee0c8 !important;
}
html.is-home .time--hero #span_dt_dt::before,
html.is-home .time--hero #span_dt_dt::after {
    content: none;
}

html.is-home .time__days-row {
    position: relative;
}
html.is-home .time--hero .time__item--days,
html.is-home .time--hero b.time__item--days {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: clamp(8px, 1.2vw, 16px);
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    font-weight: 700;
}
html.is-home .time--hero .time__item--days .time__num {
    font-family: "Big Shoulders Display", "Outfit", sans-serif !important;
    font-size: clamp(108px, 18.4vw, 260px) !important;
    font-weight: 700 !important;
    line-height: 0.78 !important;
    letter-spacing: -0.045em;
    color: var(--text) !important;
    text-shadow: 0 10px 40px rgba(244, 248, 245, 0.55);
}
html[data-theme="dark"].is-home .time--hero .time__item--days .time__num {
    text-shadow: 0 10px 40px rgba(10, 20, 22, 0.55);
}
html.is-home .time--hero .time__item--days .time__unit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 5.2vw, 72px);
    height: clamp(44px, 5.2vw, 72px);
    margin-top: 0.06em;
    padding: 0 !important;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0b49a, #e09a7a 55%, #c56c5a);
    color: #fff !important;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif !important;
    font-size: clamp(18px, 2vw, 30px) !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 1 !important;
    transform: none;
    opacity: 1;
    box-shadow: 0 10px 22px rgba(197, 108, 90, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: none !important;
}

html.is-home .time--hero .time__clock,
html.is-home .time--hero .time__count {
    display: flex !important;
    align-items: flex-end;
    gap: clamp(18px, 2.2vw, 28px) !important;
    margin-top: clamp(8px, 1.4vh, 18px) !important;
    width: auto !important;
}
html.is-home .time--hero .time__clock .time__item,
html.is-home .time--hero .time__clock b {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
html.is-home .time--hero .time__clock .time__item + .time__item::before {
    content: none;
}
html.is-home .time--hero .time__clock .time__num {
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: clamp(22px, 2.6vw, 36px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--text) !important;
    font-variant-numeric: tabular-nums;
}
html.is-home .time--hero .time__clock .time__unit {
    margin-top: 0;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: 0.28em !important;
    color: var(--muted) !important;
    transform: none;
}
html.is-home .time--hero .time__item--sec .time__num {
    animation: zf-sec-breathe 3.6s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes zf-sec-breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.92; }
}

html.is-home .time__since {
    margin-top: clamp(14px, 2vh, 22px);
    font-family: "Instrument Serif", "Noto Serif SC", serif !important;
    font-style: italic;
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text);
}

/* ----- 头像：加大交叠，青绿圈 + 暖桃圈，落在沙发偏右 ----- */
html.is-home .bg-img .central.central-800 {
    position: absolute !important;
    left: 50%;
    top: 40%;
    width: min(420px, 36vw) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 6;
}
html.is-home .bg-img .middle {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 32px 0 48px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html[data-theme="dark"].is-home .bg-img .middle {
    background: none !important;
}
html.is-home .bg-img .middle .img-male,
html.is-home .bg-img .middle .img-female {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
html.is-home .bg-img .middle .img-female {
    margin-left: -56px;
    z-index: 2;
}
html.is-home .bg-img .middle .img-male img,
html.is-home .bg-img .middle .img-female img {
    display: block !important;
    visibility: visible !important;
    width: clamp(132px, 14vw, 196px) !important;
    height: clamp(132px, 14vw, 196px) !important;
    padding: 6px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover;
    opacity: 1 !important;
    max-width: none !important;
    filter: none !important;
}
/* 那圈 5px 的实心色环就是「头像框」。颜色写成 rgba + 变量而不是 #hex：
   整场切换时 zzerfu-scene.js 会逐帧写 --zf-ring-a，框随之淡出 / 浮现，
   不会在换页那一帧整圈消失（子页面本来就没有这圈环）。 */
html.is-home .bg-img .middle .img-male img {
    box-shadow: 0 16px 28px rgba(15, 155, 134, 0.22), 0 0 0 var(--zf-ring-w, 5px) rgba(15, 155, 134, var(--zf-ring-a, 1)) !important;
}
html.is-home .bg-img .middle .img-female img {
    box-shadow: 0 16px 28px rgba(224, 154, 122, 0.26), 0 0 0 var(--zf-ring-w, 5px) rgba(224, 154, 122, var(--zf-ring-a, 1)) !important;
}
html.is-home .bg-img .middle .img-male span,
html.is-home .bg-img .middle .img-female span,
html.is-home .bg-img .middle.Blurkg .img-male span,
html.is-home .bg-img .middle.Blurkg .img-female span {
    position: static;
    display: block !important;
    width: auto;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none !important;
    line-height: 1.1 !important;
}
html.is-home .bg-img .middle .img-male span::before,
html.is-home .bg-img .middle .img-male span::after,
html.is-home .bg-img .middle .img-female span::before,
html.is-home .bg-img .middle .img-female span::after {
    content: none !important;
    display: none !important;
}
html.is-home .bg-img .middle .img-male span,
html.is-home .bg-img .middle.Blurkg .img-male span {
    color: #0b7f6e !important;
}
html.is-home .bg-img .middle .img-female span,
html.is-home .bg-img .middle.Blurkg .img-female span {
    color: #c56c5a !important;
}
html.is-home .bg-img .middle .love-icon {
    position: absolute;
    left: calc(clamp(132px, 14vw, 196px) - 8px);
    top: -6px;
    z-index: 7;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(22, 40, 36, 0.12);
}
html.is-home .bg-img .middle .love-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}
html.is-home .bg-img .middle .love-icon img {
    width: 16px !important;
    height: 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0;
    background: none;
    box-shadow: none !important;
    filter: none;
    opacity: 1 !important;
    animation: none !important;
}

/* ----- 诗：右侧竖排四列 ----- */
html.is-home .home-poem {
    position: absolute;
    right: clamp(12px, 2vw, 28px);
    top: clamp(100px, 14vh, 130px);
    z-index: 6;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: clamp(14px, 1.5vw, 20px);
    height: min(620px, 68vh);
    pointer-events: none;
}
html.is-home .home-poem p {
    writing-mode: vertical-rl;
    margin: 0;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif !important;
    font-size: clamp(15px, 1.65vw, 24px);
    line-height: 1;
    letter-spacing: 0.18em;
    color: var(--text);
}
html.is-home .home-poem p.accent {
    color: #0b7f6e;
}
html[data-theme="dark"].is-home .home-poem p.accent {
    color: #5ee0c8;
}

/* ----- 入口区：向上叠进首屏，收掉页脚大块空白 ----- */
html.is-home #pjax-container {
    flex: 0 0 auto;
}
html.is-home #pjax-container > .card-wrap,
html.is-home .card-wrap {
    position: relative;
    z-index: 8;
    margin-top: -36px;
    padding: 0 0 8px !important;
}

/* 离开首页时若内容还没换掉，先藏起扇形照片，避免散落在左侧闪一下 */
html:not(.is-home) .album-fan {
    visibility: hidden;
}

/* 拍立得溢出不要挡住右侧手账卡的悬停 */
html.is-home .album-fan,
html.is-home .card-wrap .row .card .polaroid {
    pointer-events: none;
}

/* 首页卡片叠在插画上：PJAX 淡出/淡入会让插画透过卡片顶部，整段关掉 */
html.is-home .zf-pjax-root,
html.is-home .zf-pjax-root.zf-pjax-leave,
html.is-home .zf-pjax-root.zf-pjax-enter,
html.is-home #pjax-container.zf-pjax-leave,
html.is-home #pjax-container.zf-pjax-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}
html.is-home.zf-motion-ready .card-wrap .row.entry-grid > .card.zf-reveal:not(.is-in) {
    opacity: 1;
    transform: none;
}
html.is-home .card-wrap .row.entry-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.52fr) minmax(228px, 0.46fr) minmax(250px, 0.54fr);
    grid-template-areas:
        "album little board"
        "album about  list";
    gap: 18px 16px;
    align-items: stretch;
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin: 0 auto !important;
    padding: 0;
}
html.is-home .card-wrap .row.entry-grid > .card {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0;
    margin: 0 !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
    overflow: hidden;
    border: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html.is-home .card-wrap .row.entry-grid > .card .text span,
html.is-home .card-wrap .row.entry-grid > .card .text p {
    color: inherit;
}

/* iOS 那种「连续曲率」圆角（超椭圆）。
   Chromium 直接在几何层实现，阴影/描边都跟着走；
   Safari / Firefox 还不支持 corner-shape，由 zzerfu-squircle.js
   用同一条曲线的 clip-path 兜底（附带把 box-shadow 换成 drop-shadow）。
   半径都按约 1.28 倍放大过 —— 同一个数值下，连续曲率的角看起来比圆弧小一号，
   放大后才和原来「一样圆」 */
html.is-home .card-wrap .row.entry-grid > .card,
html.is-home .board-note {
    corner-shape: superellipse(2);
}

html.is-home .card-wrap .row .card.card--feature { grid-area: album; }
html.is-home .card-wrap .row .card.card--little  { grid-area: little; }
html.is-home .card-wrap .row .card.card--board   { grid-area: board; }
html.is-home .card-wrap .row .card.card--about   { grid-area: about; }
html.is-home .card-wrap .row .card.card--list    { grid-area: list; }

/* 相册：左侧出血，右上/右下圆角 */
html.is-home .card-wrap .row .card.card--feature {
    border-radius: 36px !important;
    background: #fffcfa !important;
    padding: 0 !important;
    min-height: 520px;
    overflow: visible !important;
    box-shadow: 0 18px 40px rgba(22, 40, 36, 0.10), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--feature {
    background: #1a2a28 !important;
}
html.is-home .card-wrap .row .card.card--feature .card__tag {
    position: absolute;
    left: 40px;
    top: 28px;
    z-index: 3;
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: none;
    color: #0b7f6e !important;
    background: #e3f3ec;
    border-radius: 999px;
    padding: 5px 12px 4px;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--feature .card__tag {
    color: #5ee0c8 !important;
    background: rgba(94, 224, 200, 0.14);
}
html.is-home .album-fan {
    position: relative;
    flex: 1 1 auto;
    min-height: 400px;
    width: 100%;
}
html.is-home .card-wrap .row .card .polaroid {
    position: absolute;
    background: #fbf7f0;
    padding: 10px 10px 40px;
    box-shadow: 0 16px 36px rgba(22, 40, 36, 0.16);
    border-radius: 2px;
    margin: 0;
}
html[data-theme="dark"].is-home .card-wrap .row .card .polaroid {
    background: #2a3330;
}
html.is-home .card-wrap .row .card .polaroid img {
    display: block;
    width: 100% !important;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    opacity: 1 !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
}
html.is-home .card-wrap .row .card:hover .polaroid img {
    transform: none !important;
    filter: none !important;
}
html.is-home .card-wrap .row .card .polaroid figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #243b34;
}
html[data-theme="dark"].is-home .card-wrap .row .card .polaroid figcaption {
    color: #c9ddd6;
}
html.is-home .card-wrap .row .card .polaroid.p1 { width: 32%; left: 4%;  top: 12%; transform: rotate(-11deg); z-index: 1; }
html.is-home .card-wrap .row .card .polaroid.p2 { width: 32%; left: 30%; top: 6%;  transform: rotate(6deg);  z-index: 2; }
html.is-home .card-wrap .row .card .polaroid.p4 { width: 28%; left: 26%; top: 42%; transform: rotate(9deg);  z-index: 3; }
html.is-home .card-wrap .row .card .polaroid.p3 { width: 38%; left: 54%; top: 14%; transform: rotate(-4deg); z-index: 4; }
html.is-home .card-wrap .row .card .polaroid.p1 img,
html.is-home .card-wrap .row .card .polaroid.p2 img { height: 210px !important; }
html.is-home .card-wrap .row .card .polaroid.p4 img { height: 170px !important; }
html.is-home .card-wrap .row .card .polaroid.p3 img { height: 250px !important; }

html.is-home .card-wrap .row .card.card--feature .text {
    position: relative;
    z-index: 5;
    flex: 0 0 auto !important;
    padding: 8px 40px 28px;
    /* 这里原本压了一层 transparent → 卡片底色 的渐变，目的是把拍立得的
       下缘淡出；实际效果是照片底部蒙上一层白雾、边缘被吃掉。
       标题区本来就在照片下方，直接留空让拍立得完整露出来 */
    background: none;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--feature .text {
    background: none;
}
html.is-home .card-wrap .row .card.card--feature .text span {
    display: block;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: var(--text) !important;
}
html.is-home .card-wrap .row .card.card--feature .text p {
    margin-top: 6px !important;
    font-family: "Noto Serif SC", serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: var(--muted) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
}

/* 点点滴滴：微倾手账纸卡 */
html.is-home .card-wrap .row .card.card--little {
    transform: rotate(-3.2deg);
    margin-top: -36px !important;
    border-radius: 24px !important;
    padding: 22px 22px 20px !important;
    background:
        repeating-linear-gradient(to bottom, transparent 0 27px, rgba(15, 155, 134, 0.16) 27px 28px),
        linear-gradient(180deg, #fffdf8, #f6efe3) !important;
    box-shadow: 0 18px 36px rgba(22, 40, 36, 0.12);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.35s ease;
}
html.is-home .card-wrap .row .card.card--little:hover {
    transform: rotate(-3.2deg) translateY(-8px);
    box-shadow: 0 26px 44px rgba(22, 40, 36, 0.18);
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--little {
    background:
        repeating-linear-gradient(to bottom, transparent 0 27px, rgba(94, 224, 200, 0.14) 27px 28px),
        linear-gradient(180deg, #243330, #1b2826) !important;
}
html.is-home .card-wrap .row .card.card--little .ic { display: none !important; }
html.is-home .card-wrap .row .card.card--little .text span {
    display: block;
    font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", serif !important;
    font-weight: 400 !important;
    font-size: clamp(26px, 2.4vw, 34px) !important;
    line-height: 1.2 !important;
    color: var(--text) !important;
}
html.is-home .card-wrap .row .card.card--little .text p {
    margin-top: 10px !important;
    font-family: "Ma Shan Zheng", "Noto Serif SC", serif !important;
    font-size: clamp(16px, 1.4vw, 18px) !important;
    line-height: 1.55 !important;
    color: var(--text) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
}

/* 留言板：贴右，带两张小字条 */
html.is-home .card-wrap .row .card.card--board,
html.is-home .card-wrap .row .card.card--list {
    border-radius: 28px !important;
    background: #fffcfa !important;
    padding: 22px 22px 20px !important;
    box-shadow: 0 14px 32px rgba(22, 40, 36, 0.08);
    overflow: visible !important;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--board,
html[data-theme="dark"].is-home .card-wrap .row .card.card--list {
    background: #1c2a28 !important;
}
html.is-home .card-wrap .row.entry-grid > .card img.ic {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    flex: none;
}
html.is-home .card-wrap .row .card.card--board .text,
html.is-home .card-wrap .row .card.card--list .text {
    padding-right: 96px;
}
/* 留言板正文要给右侧两张便签让位：便签是绝对定位、不进流的，
   卡片只有约 255px 宽，按压扁后的便签左缘（约 139px）留出 10px 空隙，
   否则「在这里写下我们的留言祝福」最后一字会被「故事还没写完」压住 */
html.is-home .card-wrap .row .card.card--board .text {
    padding-right: 104px;
}
html.is-home .card-wrap .row .card.card--board .text span,
html.is-home .card-wrap .row .card.card--list .text span {
    display: block;
    margin-top: 18px;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--text) !important;
}
html.is-home .card-wrap .row .card.card--list .text span {
    font-size: 22px !important;
}
html.is-home .card-wrap .row .card.card--board .text p,
html.is-home .card-wrap .row .card.card--list .text p {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: var(--muted) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
}
html.is-home .board-notes {
    position: absolute;
    right: 6px;
    top: 16px;
    width: 122px;
    height: 190px;
    pointer-events: none;
}
html.is-home .board-note {
    position: absolute;
    /* 118 → 112：便签要完整落在卡片里。Safari / Firefox 用 clip-path 兜底圆角时，
       卡片会把溢出到外面的部分裁掉，右上角那张倾斜便签原本会露出去 5.5px */
    width: 112px;
    box-sizing: border-box;
    padding: 10px 10px 14px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.45;
    font-family: "Noto Serif SC", serif !important;
    box-shadow: 0 8px 16px rgba(22, 40, 36, 0.10);
    color: #243b34;
}
html.is-home .board-note--peach {
    left: 0;
    top: 8px;
    background: #f7d7c6;
    transform: rotate(-8deg);
}
html.is-home .board-note--mint {
    left: 12px;
    top: 90px;
    background: #e3f3ec;
    transform: rotate(5deg);
}

/* 关于我们：日间浅色纸卡，夜间深色书页 */
html.is-home .card-wrap .row .card.card--about {
    border-radius: 28px !important;
    background: #fffcfa !important;
    color: var(--text);
    padding: 24px 22px 22px !important;
    box-shadow: 0 14px 32px rgba(22, 40, 36, 0.08);
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--about {
    background: linear-gradient(180deg, #1c322c, #132420) !important;
    color: #f4efe6;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
html.is-home .card-wrap .row .card.card--about .about-eyebrow {
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #0b7f6e;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--about .about-eyebrow {
    color: #5ee0c8;
}
html.is-home .card-wrap .row .card.card--about .text span {
    display: block;
    margin-top: 10px;
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif !important;
    font-weight: 400 !important;
    font-size: clamp(24px, 2.2vw, 30px) !important;
    color: var(--text) !important;
    line-height: 1.2 !important;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--about .text span {
    color: #f4efe6 !important;
}
html.is-home .card-wrap .row .card.card--about .text p {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: var(--muted) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
}
html[data-theme="dark"].is-home .card-wrap .row .card.card--about .text p {
    color: #c9ddd6 !important;
}
html.is-home .about-chs {
    margin-top: 18px;
    width: 100%;
}
html.is-home .about-ch {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(22, 40, 36, 0.08);
    padding: 9px 0 0;
    margin-top: 9px;
    font-size: 14px;
    color: var(--text);
}
html[data-theme="dark"].is-home .about-ch {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #f4efe6;
}
html.is-home .about-ch b {
    font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif !important;
    font-weight: 400;
    font-size: 18px;
    color: inherit;
}
html.is-home .about-ch span {
    font-family: "IBM Plex Mono", ui-monospace, monospace !important;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #0b7f6e;
}
html[data-theme="dark"].is-home .about-ch span {
    color: #5ee0c8;
}

/* Love List 露出三条约定 */
html.is-home .list-tease {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "Noto Serif SC", serif !important;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text);
}
html.is-home .list-tease em {
    font-style: normal;
    color: #c56c5a;
}

/* 全站漂浮粒子（.zf-ambient）由 head.php 统一输出，
   首页也保留，与子页面保持同一套氛围。 */

/* 右下角两个白圆钮：回到顶部、回首页 */
html.is-home .lg-sidebar-item:nth-child(3) {
    display: none !important;
}
html.is-home .lg-sidebar-item {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid rgba(22, 40, 36, 0.06) !important;
    color: #5d6e68 !important;
    box-shadow: 0 8px 18px rgba(22, 40, 36, 0.08) !important;
}
html.is-home .lg-sidebar-item:hover {
    background: #fff !important;
    color: #0f9b86 !important;
}

/* 页脚收紧 */
html.is-home .footer-warp .footer {
    padding: 14px clamp(20px, 4vw, 40px) 18px !important;
    justify-content: space-between;
}

/* ============================================================
   3. 响应式
   ============================================================ */
@media (max-width: 1199px) {
    html.is-home .bg-img {
        height: clamp(520px, 68vh, 640px);
    }
    html.is-home .time--hero .time__item--days .time__num {
        font-size: clamp(88px, 16vw, 180px) !important;
    }
    html.is-home .bg-img .central.central-800 {
        left: 48%;
        width: min(400px, 44vw) !important;
    }
    html.is-home .card-wrap .row.entry-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "album album"
            "little board"
            "about list";
        gap: 16px;
        padding-right: 0;
    }
    html.is-home .card-wrap .row .card.card--feature {
        min-height: 420px;
        border-radius: 32px !important;
    }
    html.is-home .card-wrap .row .card.card--little {
        margin-top: 0 !important;
        margin-left: 16px !important;
    }
    html.is-home .card-wrap .row .card .polaroid.p1 img,
    html.is-home .card-wrap .row .card .polaroid.p2 img { height: 170px !important; }
    html.is-home .card-wrap .row .card .polaroid.p3 img { height: 200px !important; }
    html.is-home .card-wrap .row .card .polaroid.p4 img { height: 140px !important; }
}

@media (max-width: 767px) {
    html.is-home .bg-img {
        height: auto;
        min-height: 0;
        padding: 84px 16px 24px !important;
        display: flex;
        flex-direction: column;
    }
    /* 手机首屏又窄又高，再按「高度铺满」定尺只会放大到只剩一条墙纸；
       改成以首屏高度的 50% 定尺、水平居中 —— 房间的沙发与窗正好落在头像后面，
       视觉密度和手机端子页（auto 100%）是同一档。渐隐按 50% 这条线收，不会留硬边 */
    html.is-home .bg-img::before {
        background-size: auto 50% !important;
        background-position: center top !important;
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(50% - 76px), rgba(0, 0, 0, 0) 50%);
        mask-image: linear-gradient(to bottom, #000 calc(50% - 76px), rgba(0, 0, 0, 0) 50%);
    }
    html.is-home div.time.time--hero {
        position: relative;
        left: auto;
        top: auto;
        max-width: 100%;
        margin: 0 0 12px !important;
    }
    html.is-home .time--hero .time__item--days .time__num {
        font-size: 96px !important;
    }
    html.is-home .time--hero .time__item--days .time__unit {
        width: 48px;
        height: 48px;
        font-size: 20px !important;
    }
    html.is-home .bg-img .central.central-800 {
        position: relative !important;
        left: auto;
        top: auto;
        width: 100% !important;
        max-width: 320px;
        margin: 8px auto 0 !important;
    }
    html.is-home .bg-img .middle .img-male img,
    html.is-home .bg-img .middle .img-female img {
        width: 118px !important;
        height: 118px !important;
    }
    html.is-home .bg-img .middle .img-female {
        margin-left: -36px;
    }
    html.is-home .bg-img .middle .img-male span,
    html.is-home .bg-img .middle .img-female span,
    html.is-home .bg-img .middle.Blurkg .img-male span,
    html.is-home .bg-img .middle.Blurkg .img-female span {
        position: static;
        top: auto;
        left: auto;
        width: auto;
        margin-top: 8px !important;
        padding: 0;
        background: none !important;
        box-shadow: none;
    }
    html.is-home .bg-img .middle .img-male span::after {
        display: none;
    }
    html.is-home .bg-img .middle .love-icon {
        left: 50%;
        margin-left: -27px;
        top: 0;
    }
    /* 诗不再单起一行：回到右侧竖排，贴在首屏右下角，
       像一枚落款；不在文档流里，首屏高度也不会被它撑高 */
    html.is-home .home-poem {
        position: absolute;
        right: 12px;
        top: auto;
        bottom: 92px;
        height: auto;
        margin: 0;
        gap: 9px;
        justify-content: flex-start;
    }
    /* 淡化写在 p 上而不是容器上：容器的 opacity 要留给场景的出入场动画，
       否则动画收尾那一刻会从 1 突然掉回 0.78，看着像闪一下 */
    html.is-home .home-poem p {
        font-size: 12px;
        max-height: none;
        letter-spacing: 0.12em;
        opacity: 0.78;
    }
    /* 桌面端为了把卡片叠进插画收尾用了 -36px 负边距（选择器带 #pjax-container，
       优先级更高，会盖掉下面这条）。手机上整块是竖排，卡片直接顶着
       「自…并肩而立」那行字，这里必须显式归零，留出字与卡片之间的空隙 */
    html.is-home #pjax-container > .card-wrap,
    html.is-home .card-wrap {
        margin-top: 0;
        padding: 0 0 16px !important;
    }
    html.is-home .card-wrap .row.entry-grid {
        /* 「关于我们」和「Love List」内容都很短，单列铺满 358px 会留出大片空白，
           手机上一律两列：前四张通栏，最后这两张并排 */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-areas:
            "album album"
            "little little"
            "board board"
            "about list";
        gap: 14px;
        width: calc(100% - 32px);
    }
    html.is-home .card-wrap .row .card.card--feature,
    html.is-home .card-wrap .row .card.card--little,
    html.is-home .card-wrap .row .card.card--board,
    html.is-home .card-wrap .row .card.card--list,
    html.is-home .card-wrap .row .card.card--about {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 26px !important;
    }
    html.is-home .card-wrap .row .card.card--feature {
        min-height: 0;
    }
    html.is-home .album-fan {
        min-height: 280px;
    }
    html.is-home .card-wrap .row .card .polaroid.p1 img,
    html.is-home .card-wrap .row .card .polaroid.p2 img { height: 130px !important; }
    html.is-home .card-wrap .row .card .polaroid.p3 img { height: 160px !important; }
    html.is-home .card-wrap .row .card .polaroid.p4 img { height: 110px !important; }
    html.is-home .card-wrap .row .card.card--feature .text {
        padding: 8px 20px 22px;
    }
    html.is-home .card-wrap .row .card.card--feature .card__tag {
        left: 20px;
        top: 16px;
        display: block;
    }
    html.is-home .card-wrap .row .card.card--little {
        transform: rotate(-1.5deg);
    }
    html.is-home .card-wrap .row .card.card--little:hover {
        transform: rotate(-1.5deg) translateY(-8px);
    }
    html.is-home .card-wrap .row .card.card--board .text,
    html.is-home .card-wrap .row .card.card--list .text {
        padding-right: 108px;
    }
    /* 半栏宽度只有约 172px，给「关于我们 / Love List」收紧内边距，
       Love List 不再需要给右侧装饰让位，内边距归零 */
    html.is-home .card-wrap .row .card.card--about,
    html.is-home .card-wrap .row .card.card--list {
        padding: 18px 16px 16px !important;
    }
    html.is-home .card-wrap .row .card.card--list .text {
        padding-right: 0;
    }
    html.is-home .card-wrap .row .card.card--about .text span {
        font-size: 22px !important;
    }
    html.is-home .card-wrap .row .card.card--list .text span {
        font-size: 19px !important;
    }
    html.is-home .card-wrap .row .card.card--about .text p,
    html.is-home .card-wrap .row .card.card--list .text p {
        font-size: 12px !important;
    }
    html.is-home .list-tease {
        font-size: 12px;
        line-height: 1.7;
    }
}

@media (max-width: 400px) {
    html.is-home .time--hero .time__item--days .time__num {
        font-size: 80px !important;
    }
    html.is-home .album-fan {
        min-height: 240px;
    }
    /* 360/375 这类窄屏上，并排的两张卡内宽只有 126–133px，
       副标题按 12px 会被迫折成两行且带单字孤行；收一点内边距和字号就回到一行 */
    html.is-home .card-wrap .row .card.card--about,
    html.is-home .card-wrap .row .card.card--list {
        padding: 18px 13px 16px !important;
    }
    html.is-home .card-wrap .row .card.card--about .text p,
    html.is-home .card-wrap .row .card.card--list .text p {
        font-size: 11.5px !important;
        /* 全局给了 0.23px 字距，12 个字刚好把这两行挤出 0.5px 而折行，这里去掉 */
        letter-spacing: 0 !important;
    }
}
