/* 表白墙 · 全新改版
   与表白页保持同一套玫瑰奶油色系，样式限定在 .wall-page 内 */

.wall-page {
    --wl-cream: #fff9f6;
    --wl-card: #ffffff;
    --wl-blush: #fdeef1;
    --wl-blush-deep: #f9dde4;
    --wl-rose: #d94f6a;
    --wl-rose-dark: #b93a55;
    --wl-rose-soft: #f4b7c4;
    --wl-ink: #33272b;
    --wl-muted: #8b767d;
    --wl-faint: #b3a0a6;
    --wl-line: #f0dfe3;
    --wl-line-strong: #e6cdd3;
    --wl-gold: #c69a5a;
    --wl-shadow: 0 20px 46px rgba(140, 74, 90, 0.12);
    --wl-shadow-soft: 0 8px 20px rgba(140, 74, 90, 0.08);

    background-color: var(--wl-cream);
    background-image:
        radial-gradient(circle at 10% 2%, rgba(253, 238, 241, 0.85), transparent 36%),
        radial-gradient(circle at 92% 14%, rgba(255, 243, 238, 0.85), transparent 32%);
    color: var(--wl-ink);
    min-height: 100vh;
    padding-bottom: 4rem;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

.wall-page a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.wall-page :focus-visible {
    outline: 2px solid var(--wl-rose);
    outline-offset: 3px;
}

/* ===== Hero ===== */
.wl-hero {
    position: relative;
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(155deg, #fff7f3 0%, #fdeef1 58%, #fbe7ec 100%);
    border-bottom: 1px solid var(--wl-line);
    overflow: hidden;
}

.wl-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    padding-right: 240px;
}

.wl-kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--wl-rose);
    font-weight: 700;
    margin-bottom: 1rem;
}

.wl-hero h1 {
    font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    line-height: 1.25;
    letter-spacing: 0.05em;
    color: var(--wl-ink);
    margin: 0 0 0.9rem;
}

.wl-hero p {
    color: var(--wl-muted);
    font-size: 1rem;
    max-width: 36em;
    margin: 0 0 1.6rem;
    line-height: 1.8;
}

.wl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1.2rem;
    font-size: 0.8rem;
    color: var(--wl-muted);
}

.wl-hero-meta b {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.05rem;
    color: var(--wl-rose);
    margin-right: 0.15rem;
}

.wl-hero-meta i {
    color: var(--wl-rose-soft);
    margin-right: 0.25rem;
}

.wl-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--wl-rose);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(217, 79, 106, 0.26);
    transition: all 0.2s ease;
}

.wl-hero-cta:hover {
    background: var(--wl-rose-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(217, 79, 106, 0.3);
}

/* 叠放信纸装饰 */
.wl-hero-art {
    position: absolute;
    top: 50%;
    right: max(1.5rem, calc((100% - 1160px) / 2));
    transform: translateY(-50%);
    width: 220px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.wl-art-card {
    position: absolute;
    width: 128px;
    height: 156px;
    background: #fff;
    border: 1px solid var(--wl-line-strong);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(140, 74, 90, 0.12);
    padding: 0.9rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--wl-rose);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 0.72rem;
}

.wl-art-card::before {
    content: "";
    display: block;
    height: 6px;
    width: 60%;
    border-radius: 999px;
    background: var(--wl-blush-deep);
}

.wl-art-card span {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #f7ecef;
}

.wl-art-card span:nth-child(2) {
    width: 88%;
}

.wl-art-card span:nth-child(3) {
    width: 72%;
}

.wl-art-card i {
    margin-top: auto;
    align-self: flex-end;
    font-size: 0.9rem;
    color: var(--wl-rose-soft);
}

.wl-art-1 {
    top: 26px;
    left: 12px;
    transform: rotate(-9deg);
}

.wl-art-2 {
    top: 4px;
    left: 82px;
    transform: rotate(6deg);
    opacity: 0.92;
}

.wl-art-3 {
    top: 62px;
    left: 76px;
    transform: rotate(14deg);
    opacity: 0.7;
}

/* ===== 消息提示 ===== */
.wl-notice {
    max-width: 1160px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.wl-notice-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid var(--wl-line-strong);
    border-left: 4px solid var(--wl-rose);
    border-radius: 12px;
    box-shadow: var(--wl-shadow-soft);
    padding: 0.85rem 1.1rem;
    font-size: 0.86rem;
    color: var(--wl-ink);
}

.wl-notice-inner i {
    color: var(--wl-rose);
}

/* ===== 搜索 ===== */
.wl-search-wrap {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: -2.5rem auto 0;
    padding: 0 1.5rem;
}

.wl-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--wl-line);
    border-radius: 999px;
    padding: 0.5rem 0.5rem 0.5rem 1.3rem;
    box-shadow: var(--wl-shadow);
}

.wl-search-icon {
    color: var(--wl-rose-soft);
    font-size: 0.9rem;
    flex: none;
}

.wl-search input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--wl-ink);
    padding: 0.55rem 0.2rem;
    outline: none;
}

.wl-search input[type="text"]::placeholder {
    color: #c3b1b6;
}

.wl-search-btn {
    flex: none;
    border: 0;
    border-radius: 999px;
    background: var(--wl-rose);
    color: #fff;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.wl-search-btn:hover {
    background: var(--wl-rose-dark);
}

.wl-search-clear {
    flex: none;
    color: var(--wl-faint) !important;
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
}

.wl-search-clear:hover {
    color: var(--wl-rose) !important;
    background: var(--wl-blush);
}

/* ===== 主体 ===== */
.wl-main {
    max-width: 1160px;
    margin: 2.6rem auto 0;
    padding: 0 1.5rem;
}

.wl-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--wl-line-strong);
}

.wl-toolbar h2 {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.22rem;
    letter-spacing: 0.06em;
    color: var(--wl-ink);
    margin: 0;
}

.wl-toolbar > span {
    font-size: 0.75rem;
    color: var(--wl-faint);
}

.wl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

/* ===== 卡片 ===== */
.wl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--wl-card);
    border: 1px solid var(--wl-line);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--wl-shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wl-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--wl-shadow);
    border-color: var(--wl-line-strong);
}

/* 有配图：图片铺满整张卡片作为背景，内容层用奶油蒙版保证可读性 */
.wl-card--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: rgba(217, 79, 106, 0.16);
}

.wl-card--image .wl-card-body {
    background: linear-gradient(
        180deg,
        rgba(255, 250, 248, 0.9) 0%,
        rgba(255, 249, 246, 0.78) 38%,
        rgba(255, 249, 246, 0.9) 100%
    );
    -webkit-backdrop-filter: blur(2px) saturate(1.02);
    backdrop-filter: blur(2px) saturate(1.02);
}

.wl-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1rem;
}

.wl-card-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.wl-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--wl-line-strong);
    background: var(--wl-blush);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.wl-card:hover .wl-avatar {
    transform: scale(1.05);
}

.wl-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-avatar i {
    font-size: 1.5rem;
    color: var(--wl-rose);
}

.wl-who {
    min-width: 0;
    flex: 1;
}

.wl-from {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--wl-ink);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-from a {
    color: var(--wl-rose) !important;
}

.wl-from a:hover {
    color: var(--wl-rose-dark) !important;
}

.wl-to {
    display: block;
    font-size: 0.75rem;
    color: var(--wl-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-to i {
    color: var(--wl-rose-soft);
    margin-right: 0.2rem;
    font-size: 0.66rem;
}

.wl-id {
    flex: none;
    align-self: flex-start;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--wl-faint);
    background: #fdf7f8;
    border: 1px solid var(--wl-line);
    border-radius: 999px;
    padding: 0.14rem 0.5rem;
}

.wl-quote {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    flex: 1;
}

.wl-quote::before {
    content: "\201C";
    position: absolute;
    left: -2px;
    top: -0.35rem;
    font-family: Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--wl-blush-deep);
}

.wl-quote p {
    margin: 0;
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 0.86rem;
    line-height: 1.9;
    color: #4c3d43;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-quote .read-more {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 0.7rem;
    color: var(--wl-rose);
    font-style: normal;
    margin-left: 0.25rem;
    white-space: nowrap;
}

.wl-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--wl-line);
    margin-top: auto;
}

.wl-date {
    font-size: 0.72rem;
    color: var(--wl-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.wl-date i {
    font-size: 0.68rem;
}

.wl-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.wl-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border: 1px solid var(--wl-line);
    background: #fffaf9;
    color: var(--wl-muted);
    font-family: inherit;
    font-size: 0.73rem;
    padding: 0.34rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wl-actions button i {
    font-size: 0.72rem;
}

.wl-actions button:hover {
    border-color: var(--wl-rose-soft);
    color: var(--wl-rose);
    background: var(--wl-blush);
}

.wl-actions .count {
    color: inherit;
}

.wl-actions .liked {
    color: #fff;
    background: var(--wl-rose);
    border-color: var(--wl-rose);
}

.wl-actions .liked:hover {
    color: #fff;
    background: var(--wl-rose-dark);
    border-color: var(--wl-rose-dark);
}

.wl-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.like-animation {
    animation: wl-like-pulse 0.5s ease-in-out;
}

@keyframes wl-like-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

/* ===== 空状态 ===== */
.wl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px dashed var(--wl-line-strong);
    border-radius: 18px;
    color: var(--wl-faint);
}

.wl-empty i {
    font-size: 2rem;
    color: var(--wl-rose-soft);
    margin-bottom: 0.9rem;
    display: block;
}

.wl-empty h3 {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 1.05rem;
    color: var(--wl-ink);
    margin: 0 0 0.5rem;
}

.wl-empty p {
    font-size: 0.83rem;
    margin: 0 0 1.3rem;
    line-height: 1.7;
}

.wl-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.wl-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--wl-line-strong);
    color: var(--wl-muted) !important;
    background: #fff;
    transition: all 0.2s ease;
}

.wl-empty-btn:hover {
    border-color: var(--wl-rose);
    color: var(--wl-rose) !important;
}

.wl-empty-btn-primary {
    background: var(--wl-rose);
    border-color: var(--wl-rose);
    color: #fff !important;
}

.wl-empty-btn-primary:hover {
    background: var(--wl-rose-dark);
    border-color: var(--wl-rose-dark);
    color: #fff !important;
}

/* ===== 分页 ===== */
.wl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2.4rem;
}

.wl-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--wl-line);
    background: #fff;
    color: var(--wl-muted);
    font-size: 0.82rem;
    transition: all 0.18s ease;
}

.wl-pagination .page-link:hover {
    border-color: var(--wl-rose-soft);
    color: var(--wl-rose);
    background: var(--wl-blush);
}

.wl-pagination .page-link.active {
    background: var(--wl-rose);
    border-color: var(--wl-rose);
    color: #fff;
    box-shadow: 0 8px 18px rgba(217, 79, 106, 0.24);
}

.wl-pagination .page-link.ellipsis {
    border-color: transparent;
    background: transparent;
    color: var(--wl-faint);
    pointer-events: none;
    min-width: 1.2rem;
    padding: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .wl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wl-hero-inner {
        padding-right: 180px;
    }

    .wl-hero-art {
        opacity: 0.72;
        transform: translateY(-50%) scale(0.9);
        transform-origin: right center;
    }
}

@media (max-width: 860px) {
    .wl-hero-inner {
        padding-right: 0;
    }

    .wl-hero-art {
        display: none;
    }

    .wl-hero {
        padding: 2.8rem 1rem 3.8rem;
    }

    .wl-search-wrap {
        padding: 0 1rem;
    }

    .wl-main {
        padding: 0 1rem;
        margin-top: 2.2rem;
    }

    .wl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .wl-grid {
        grid-template-columns: 1fr;
    }

    .wl-search {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.8rem;
        gap: 0.4rem;
    }

    .wl-search input[type="text"] {
        flex: 1 1 60%;
    }

    .wl-search-btn {
        flex: 1;
        justify-content: center;
    }

    .wl-search-clear {
        position: absolute;
        right: 2rem;
        top: 0.35rem;
    }

    .wl-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .wl-notice {
        padding: 0 1rem;
    }

    .wl-pagination .page-link {
        min-width: 2.2rem;
        height: 2.2rem;
        padding: 0 0.7rem;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wall-page * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
