/* ============================================================
   心愿清单 · Plans Together
   ============================================================ */

.wish-page {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 26px 16px 80px;
    color: #4a333b;
}

.wish-heading { text-align: center; padding: 8px 0 20px; }

.wish-kicker {
    display: block;
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: .78rem;
    font-style: italic;
    letter-spacing: .28em;
    color: #b0838f;
}

.wish-heading h2 {
    margin: 14px 0 10px;
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-size: clamp(1.55rem, 5.2vw, 2.1rem);
    font-weight: 500;
    letter-spacing: .04em;
    color: #4a333b;
}

.wish-heading p {
    margin: 0;
    color: #9a838b;
    font-size: .8rem;
    line-height: 1.7;
}

/* 筛选 */
.wish-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 6px 0 12px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 14px 30px -28px rgba(64, 40, 52, .5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.wish-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    color: #957d85;
    font-size: .76rem;
    text-decoration: none;
    transition: background .2s, color .2s, box-shadow .2s;
}

.wish-tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wish-tab b { font-size: .68rem; font-weight: 500; opacity: .7; }

.wish-tab.is-active {
    background: rgba(255, 255, 255, .92);
    color: #7d4557;
    box-shadow: 0 8px 18px -14px rgba(64, 40, 52, .5);
}

.wish-tab.is-active b {
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(194, 96, 122, .12);
    color: #a44f67;
    opacity: 1;
}

/* 搜索 */
.wish-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 7px 7px 12px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 16px 34px -30px rgba(64, 40, 52, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.wish-search-tag {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .72);
    color: #a06b7b;
    font-size: .68rem;
    white-space: nowrap;
}

.wish-search-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.wish-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #4a333b;
    font-family: inherit;
    font-size: .84rem;
    outline: none;
}

.wish-search-input::placeholder { color: #b5a1a8; }

.wish-search-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #c2607a, #9e4359);
    color: #fff;
    font-family: inherit;
    font-size: .76rem;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 12px 24px -18px rgba(158, 67, 89, .9);
}

.wish-search-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* 列表 */
.wish-list { display: flex; flex-direction: column; gap: 11px; }

.wish-row {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 40px -36px rgba(64, 40, 52, .45);
    transition: background .2s, box-shadow .2s;
}

.wish-row[open] {
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 26px 50px -38px rgba(64, 40, 52, .45);
}

.wish-row > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    cursor: pointer;
    list-style: none;
}

.wish-row > summary::-webkit-details-marker { display: none; }

.wish-dot {
    flex: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #8ec8ff, #3f9bf5 68%);
    box-shadow: 0 0 0 4px rgba(63, 155, 245, .1), inset 0 1px 1px rgba(255, 255, 255, .8);
}

.wish-row.is-done .wish-dot {
    background: #d8d2d4;
    box-shadow: 0 0 0 4px rgba(120, 100, 110, .07);
}

.wish-row-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #4a333b;
    font-size: .92rem;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wish-row.is-done .wish-row-title {
    color: #a8999e;
    text-decoration: line-through;
    text-decoration-color: rgba(160, 140, 148, .55);
}

.wish-row-icons { display: flex; flex: none; gap: 6px; }

.wish-mini {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(245, 241, 242, .9);
    color: #a79aa0;
}

.wish-mini svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wish-chevron {
    flex: none;
    width: 18px;
    height: 18px;
    color: #b4a4aa;
    transition: transform .25s;
}

.wish-row[open] .wish-chevron { transform: rotate(180deg); }

.wish-panel {
    padding: 2px 18px 18px 39px;
    animation: wishPanelIn .22s ease both;
}

@keyframes wishPanelIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: none; }
}

.wish-desc {
    margin: 0 0 10px;
    color: #7e6870;
    font-size: .82rem;
    line-height: 1.8;
}

.wish-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
    color: #a29197;
    font-size: .68rem;
}

.wish-chip {
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(194, 96, 122, .1);
    color: #a55c71;
}

.wish-memory {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-left: 2px solid rgba(194, 96, 122, .45);
    background: rgba(255, 248, 249, .8);
    border-radius: 0 10px 10px 0;
    color: #8f6673;
    font-family: 'Noto Serif SC', serif;
    font-size: .8rem;
    line-height: 1.8;
}

.wish-photo {
    display: block;
    width: 100%;
    max-height: 320px;
    margin-top: 12px;
    border-radius: 12px;
    object-fit: cover;
}

/* 空状态 */
.wish-empty {
    padding: 54px 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 20px;
    background: rgba(255, 255, 255, .6);
    text-align: center;
}

.wish-empty > span { font-size: 2rem; color: #d39aaa; }

.wish-empty h3 {
    margin: 10px 0 6px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    font-weight: 500;
    color: #6b4a55;
}

.wish-empty p { margin: 0; color: #a08a92; font-size: .78rem; }

@media (max-width: 620px) {
    .wish-page { padding: 18px 14px 76px; }
    .wish-heading { padding-bottom: 16px; }
    .wish-tab { gap: 4px; font-size: .72rem; }
    .wish-search-btn { padding: 9px 14px; }
    .wish-search-tag { padding: 5px 8px; }
    .wish-row > summary { padding: 14px 13px; }
    .wish-row-title { font-size: .88rem; }
    .wish-panel { padding: 0 14px 15px 35px; }
}

/* 心愿图文详情卡 */
.wish-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

.wish-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 50px -42px rgba(62, 43, 36, .55);
}

.wish-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 16px;
    list-style: none;
    cursor: pointer;
}

.wish-card-head::-webkit-details-marker { display: none; }

.wish-status-dot {
    flex: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #cfd3d7;
}

.wish-card.is-done .wish-status-dot { background: #64aee8; }

.wish-card-title {
    overflow: hidden;
    color: #4b3b3f;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wish-card-icons { display: flex; align-items: center; gap: 5px; margin-left: auto; }

.wish-card .wish-mini {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #a3a7aa;
}

.wish-card .wish-mini svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wish-chevron {
    flex: none;
    width: 19px;
    height: 19px;
    color: #b2b5b8;
    transition: transform .22s ease;
}

.wish-card[open] .wish-chevron { transform: rotate(180deg); }

.wish-gallery {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.wish-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.wish-gallery-track::-webkit-scrollbar { display: none; }

.wish-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f4f4f4;
    cursor: zoom-in;
    scroll-snap-align: start;
}

.wish-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wish-gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(28, 28, 30, .58);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    letter-spacing: .04em;
    pointer-events: none;
}

.wish-gallery-count b { font-weight: 600; }

.wish-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    color: #5b5b5d;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.wish-gallery-nav.is-prev { left: 10px; }
.wish-gallery-nav.is-next { right: 10px; }

.wish-gallery--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #f7f8f8 0%, #f1f2f2 100%);
    color: #c8cacc;
    font-size: .8rem;
}

.wish-empty-icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wish-card-info {
    position: relative;
    padding: 20px 18px 26px;
}

.wish-card-info h3 {
    margin: 0;
    color: #5a5f63;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.wish-info-line {
    height: 1px;
    margin: 14px 0 20px;
    background: rgba(61, 43, 49, .07);
}

.wish-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
}

.wish-field > span {
    color: #9fa3a6;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: .68rem;
    letter-spacing: .08em;
}

.wish-field > p {
    margin: 0;
    color: #656a6e;
    font-size: .9rem;
    line-height: 1.65;
}

.wish-field > p.wish-note { white-space: normal; }

.wish-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 13px;
    border-radius: 999px;
    background: #f5f6f7;
    color: #9ea2a6 !important;
    font-size: .82rem !important;
}

.wish-location svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #b0b4b8;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wish-stamp {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #d5d6d8;
    color: #fff;
}

.wish-stamp svg { width: 27px; height: 27px; }
.wish-stamp.is-done { background: #5ba9e5; }

@media (max-width: 620px) {
    .wish-cards { gap: 14px; margin-top: 14px; }
    .wish-card { border-radius: 16px; }
    .wish-card-head { padding: 13px 14px; }
    .wish-card-info { padding: 18px 15px 24px; }
    .wish-card-info h3 { font-size: 1.18rem; }
    .wish-field { margin-top: 15px; }
    .wish-gallery--empty { aspect-ratio: 4 / 3; }
    .wish-stamp { width: 42px; height: 42px; right: 14px; bottom: 14px; }
    .wish-stamp svg { width: 24px; height: 24px; }
}

/* 已完成心愿不再显示删除线，仅保留蓝色状态点与盖戳 */
.wish-card.is-done .wish-card-title,
.wish-card.is-done .wish-card-info h3 {
    color: #4b3b3f;
    text-decoration: none;
}

.wish-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.wish-title-row h3 { min-width: 0; }

.wish-mood {
    flex: none;
    color: #8f969a;
    font-size: .72rem;
    letter-spacing: .03em;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .wish-title-row { gap: 8px; }
    .wish-mood { font-size: .68rem; }
}

/* 心情与心愿标题同字号 */
.wish-title-row {
    flex-wrap: wrap;
    align-items: baseline;
}

.wish-title-row .wish-mood {
    flex: none;
    color: #b7b1b3;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.35;
}

@media (max-width: 620px) {
    .wish-title-row .wish-mood { font-size: 1.18rem; }
}
