/**
 * 阅后即焚纸条 — 一次性链接，拆开即焚
 * 内容加密藏进链接（# 之后），服务器零存储
 */

.burn-note-area {
    width: 100%;
    min-height: 11rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    resize: vertical;
    transition: border-color 0.2s;
}

.burn-note-area:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.counter-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.2rem;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.counter-row .counter-num {
    font-weight: 600;
    color: var(--primary);
}

.counter-row.counter-full .counter-num {
    color: var(--secondary);
}

.expiry-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.expiry-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.05rem;
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-white);
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.expiry-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.expiry-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--accent-tint);
    color: var(--primary);
    font-weight: 600;
}

.result-card {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1.5px dashed var(--secondary);
    border-radius: var(--radius-lg);
    background: var(--gold-tint);
}

.result-warn {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.link-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.link-row input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-size: 0.88rem;
    color: var(--text-dark);
}

/* ===== 封笺 / 焚毁 仪式感 ===== */
.seal-card {
    text-align: center;
    padding: 3rem 1.5rem 2.75rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
}

.seal-mark {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-size: 2.4rem;
    font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', serif;
    font-weight: 700;
    transform: rotate(-6deg);
}

.seal-mark--burned {
    border-color: var(--text-light);
    color: var(--text-light);
}

.seal-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.seal-hint {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* ===== 阅读态 ===== */
.reading-card {
    position: relative;
    overflow: hidden;
}

.reading-card.is-burning {
    animation: note-burn 0.9s ease forwards;
}

@keyframes note-burn {
    0%   { opacity: 1; filter: none; transform: none; }
    55%  { opacity: 0.75; filter: sepia(0.9) saturate(2.4) brightness(1.12); transform: scale(0.985); }
    100% { opacity: 0; filter: sepia(1) brightness(1.4) blur(2px); transform: scale(0.93) translateY(10px); }
}

.burn-timer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    color: var(--primary);
}

.burn-timer .timer-num {
    font-size: 2.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.burn-timer .timer-unit {
    font-size: 0.9rem;
    color: var(--text-light);
}

.note-content {
    min-height: 6rem;
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-size: 1.05rem;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-dark);
}

@media (prefers-reduced-motion: reduce) {
    .reading-card.is-burning {
        animation: none;
        opacity: 0;
    }
}
