/* ============================================================
   许愿墙
   ============================================================ */

.wrap-wish {
    max-width: 760px;
}

.wish-page {
    padding-top: clamp(24px, 3.4vw, 40px);
}

/* ---------- 页头 ---------- */

.wish-hero {
    margin: 0 0 26px;
}

.wish-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.wish-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.wish-page h1 {
    margin: 13px 0 0;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.wish-sub {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
}

/* ---------- 表单 ---------- */

.wish-form {
    padding: 20px 22px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.wish-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wish-field {
    display: block;
    margin: 0 0 14px;
}

.wish-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink-2);
}

.wish-opt {
    font-weight: 400;
    color: var(--muted);
}

.wish-count {
    font-weight: 400;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.wish-count.is-warn {
    color: #dc2626;
}

.wish-field input,
.wish-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.wish-field textarea {
    min-height: 104px;
    resize: vertical;
}

.wish-field input::placeholder,
.wish-field textarea::placeholder {
    color: var(--muted);
    opacity: .85;
}

.wish-field input:focus,
.wish-field textarea:focus {
    border-color: rgba(37, 99, 235, .5);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.wish-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.wish-submit {
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .2s var(--ease), transform .2s var(--ease),
        box-shadow .2s var(--ease);
}

.wish-submit:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .8);
}

.wish-submit:disabled {
    opacity: .6;
    cursor: default;
}

.wish-tip {
    font-size: 12px;
    line-height: 1.6;
    color: #059669;
}

.wish-tip.is-error {
    color: #dc2626;
}

/* ---------- 列表 ---------- */

.wish-list-wrap {
    margin: 34px 0 0;
}

.wish-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.wish-list-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.wish-total {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
}

.wish-item {
    padding: 14px 16px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.wish-item:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.wish-item.is-done {
    background: var(--accent-soft);
    border-color: rgba(37, 99, 235, .22);
}

.wish-item-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wish-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 auto;
}

.wish-who {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.wish-time {
    font-size: 11.5px;
    color: var(--muted);
}

.wish-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(5, 150, 105, .1);
    color: #059669;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

.wish-body {
    margin: 9px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-2);
    word-break: break-word;
}

.wish-empty {
    margin: 0;
    padding: 40px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface);
}

@media (max-width: 560px) {
    .wrap-wish {
        padding: 0 16px;
    }

    .wish-row {
        grid-template-columns: 1fr;
    }

    .wish-form {
        padding: 16px 16px 18px;
    }

    .wish-page h1 {
        font-size: 30px;
    }
}

/* ---------- 投票与回链 ---------- */

.wish-sort {
    font-size: 11px;
    color: var(--muted);
}

.wish-item-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 11px;
}

.wish-vote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 11.5px;
    cursor: pointer;
    transition: border-color .18s var(--ease), color .18s var(--ease),
        background-color .18s var(--ease);
}

.wish-vote:hover:not(:disabled) {
    border-color: rgba(37, 99, 235, .45);
    color: var(--accent);
    background: var(--accent-soft);
}

.wish-vote b {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.wish-vote.is-voted {
    border-color: rgba(37, 99, 235, .28);
    background: var(--accent-soft);
    color: var(--accent);
}

.wish-vote.is-voted b {
    color: var(--accent);
}

.wish-vote:disabled {
    cursor: default;
}

.wish-go {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 600;
    color: #059669;
    border-bottom: 1px solid rgba(5, 150, 105, .25);
}

.wish-go:hover {
    color: #047857;
}
