/* 临时邮箱 · 邮局分拣台：奶油信封纸 + 邮政绿 + 邮票红
   浅色默认，深色由 :root[data-theme="dark"] 覆盖，跟随导航 #themeToggle。 */
.tmp-page, .tmp-toast {
    --tmp-bg: #faf6ec; --tmp-panel: #fffdf6; --tmp-panel2: #f4efe0;
    --tmp-ink: #2d2a22; --tmp-ink2: #6c685a; --tmp-line: #e2d9c1; --tmp-line2: #cbbfa1;
    --tmp-brand: #1f6b52; --tmp-accent: #c4483f; --tmp-soft: #e8f2ec; --tmp-warn: #b8791d;
    --tmp-shadow: 0 14px 34px rgba(70, 58, 35, .11);
    --tmp-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
:root[data-theme="dark"] .tmp-page, :root[data-theme="dark"] .tmp-toast {
    --tmp-bg: #12191a; --tmp-panel: #1b2526; --tmp-panel2: #222e2e;
    --tmp-ink: #eef0e6; --tmp-ink2: #a4afa4; --tmp-line: #31403d; --tmp-line2: #43554f;
    --tmp-brand: #78c9a6; --tmp-accent: #ff8f83; --tmp-soft: #1e3830; --tmp-warn: #ffc06a;
    --tmp-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
.tmp-page { background: var(--tmp-bg); background-image: repeating-linear-gradient(135deg, rgba(31, 107, 82, .025) 0 2px, transparent 2px 9px); color: var(--tmp-ink); font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.75; padding: 0 0 64px; min-height: 60vh; }
.tmp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.tmp-page * { box-sizing: border-box; }
.tmp-page h1, .tmp-page h2, .tmp-page h3, .tmp-page h4 { margin: 0; font-weight: 750; letter-spacing: -.02em; }
.tmp-page p, .tmp-page ul { margin: 0; }
.tmp-page ul { padding: 0; list-style: none; }
.detail-breadcrumb { padding: 18px 0 10px; color: var(--tmp-ink2); font-size: 13px; }
.detail-breadcrumb a { color: var(--tmp-ink2); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--tmp-brand); }
.detail-breadcrumb .sep { margin: 0 9px; color: var(--tmp-line2); }
.detail-breadcrumb .current { color: var(--tmp-brand); font-weight: 700; }
.tmp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 28px; padding: 24px 0 32px; align-items: center; }
.tmp-postmark { display: inline-block; color: var(--tmp-accent); border: 2px solid var(--tmp-accent); border-radius: 4px; padding: 6px 12px; font: 700 11px/1 var(--tmp-mono); letter-spacing: .12em; transform: rotate(-2deg); }
.tmp-hero h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; color: var(--tmp-brand); margin: 22px 0 14px; }
.tmp-sub { font-size: 16px; line-height: 1.85; color: var(--tmp-ink2); }
.tmp-sub b { color: var(--tmp-ink); background: linear-gradient(transparent 64%, #f4dfc2 64%); padding: 0 2px; }
:root[data-theme="dark"] .tmp-sub b { background: linear-gradient(transparent 64%, #3c3328 64%); }
.tmp-warn { display: grid; gap: 8px; margin-top: 22px; }
.tmp-warn li { font-size: 12.5px; color: var(--tmp-ink2); padding-left: 22px; position: relative; }
.tmp-warn li::before { content: '!'; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border: 1px solid var(--tmp-accent); color: var(--tmp-accent); border-radius: 50%; font: 700 10px/14px var(--tmp-mono); text-align: center; }
.tmp-ticket { position: relative; background: var(--tmp-panel); border: 1px solid var(--tmp-line2); border-radius: 12px; padding: 22px; box-shadow: var(--tmp-shadow); }
.tmp-ticket::before { content: ''; position: absolute; left: 12px; right: 12px; top: -5px; height: 10px; background: radial-gradient(circle at 5px 5px, transparent 4px, var(--tmp-panel) 4.5px); background-size: 14px 10px; }
.tmp-ticket-top { display: flex; justify-content: space-between; align-items: center; font: 700 11px/1 var(--tmp-mono); letter-spacing: .1em; color: var(--tmp-ink2); border-bottom: 1px dashed var(--tmp-line2); padding-bottom: 12px; }
.tmp-ticket-top span { color: var(--tmp-brand); }
.tmp-ticket-top b { color: var(--tmp-accent); font-size: 18px; }
.tmp-address { margin: 20px 0 10px; font: 700 clamp(17px, 2vw, 23px)/1.5 var(--tmp-mono); color: var(--tmp-brand); word-break: break-all; min-height: 36px; }
.tmp-address.is-empty { color: var(--tmp-ink2); font-size: 14px; font-weight: 400; font-family: inherit; }
.tmp-expire { height: 7px; border-radius: 8px; background: var(--tmp-line); overflow: hidden; }
.tmp-expire i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tmp-brand), var(--tmp-accent)); transition: width .5s linear; }
.tmp-ticket-acts { display: flex; gap: 9px; margin: 18px 0 12px; flex-wrap: wrap; }
.tmp-btn { border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; font-size: 13.5px; font-weight: 650; font-family: inherit; cursor: pointer; }
.tmp-btn:disabled, .tmp-mini:disabled { opacity: .48; cursor: not-allowed; }
.tmp-btn-main { background: var(--tmp-brand); color: #fff; }
.tmp-btn-ghost { background: var(--tmp-panel); color: var(--tmp-brand); border-color: var(--tmp-line2); }
.tmp-mini { background: var(--tmp-panel2); border: 1px solid var(--tmp-line2); color: var(--tmp-brand); border-radius: 6px; padding: 6px 11px; font-size: 12px; font-weight: 650; cursor: pointer; }
.tmp-rename { display: flex; gap: 8px; }
.tmp-rename input, .tmp-parse-card textarea { min-width: 0; background: var(--tmp-panel2); border: 1px solid var(--tmp-line2); border-radius: 7px; color: var(--tmp-ink); padding: 9px 11px; font: 12.5px/1.5 var(--tmp-mono); outline: none; }
.tmp-rename input { flex: 1; }
.tmp-rename input:focus, .tmp-parse-card textarea:focus { border-color: var(--tmp-brand); box-shadow: 0 0 0 3px var(--tmp-soft); }
.tmp-ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--tmp-ink2); flex-wrap: wrap; }
.tmp-error { background: #fdecea; color: var(--tmp-accent); border: 1px solid var(--tmp-accent); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px; }
:root[data-theme="dark"] .tmp-error { background: #3a2422; }
.tmp-page .tmp-error[hidden] { display: none !important; }
.tmp-inbox, .tmp-offline { background: var(--tmp-panel); border: 1px solid var(--tmp-line); border-radius: 12px; padding: 20px; margin-top: 14px; box-shadow: var(--tmp-shadow); }
.tmp-page section[hidden] { display: none !important; }
.tmp-sec-head { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--tmp-line2); padding-bottom: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tmp-no { font: 700 12px/1 var(--tmp-mono); color: var(--tmp-accent); border-right: 1px solid var(--tmp-line2); padding-right: 11px; }
.tmp-sec-head h2 { font-size: 19px; color: var(--tmp-brand); }
.tmp-head-acts { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tmp-toggle { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--tmp-ink2); }
.tmp-toggle input { accent-color: var(--tmp-brand); }
.tmp-offline-tag { margin-left: auto; font: 600 11px/1 var(--tmp-mono); background: var(--tmp-soft); color: var(--tmp-brand); padding: 6px 9px; border-radius: 4px; }
.tmp-inbox-grid, .tmp-offline-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.tmp-list-card, .tmp-read-card, .tmp-parse-card, .tmp-book-card { border: 1px solid var(--tmp-line); border-radius: 9px; padding: 14px; min-width: 0; background: var(--tmp-panel2); }
.tmp-list-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--tmp-brand); border-bottom: 1px dashed var(--tmp-line2); padding-bottom: 9px; margin-bottom: 10px; }
.tmp-list-head span { font: 11px/1 var(--tmp-mono); color: var(--tmp-ink2); }
.tmp-mail-list { max-height: 330px; overflow-y: auto; }
.tmp-mail-list li { border: 1px solid var(--tmp-line); border-radius: 7px; background: var(--tmp-panel); padding: 9px 11px; margin-bottom: 8px; cursor: pointer; }
.tmp-mail-list li.is-on { border-color: var(--tmp-brand); box-shadow: inset 3px 0 0 var(--tmp-brand); }
.tmp-mail-list li b { display: block; font-size: 12.5px; color: var(--tmp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmp-mail-list li span { display: block; font: 10.5px/1.5 var(--tmp-mono); color: var(--tmp-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmp-mail-meta { font-size: 12px; color: var(--tmp-ink2); min-height: 24px; }
.tmp-mail-body { max-height: 230px; overflow: auto; background: var(--tmp-panel); border: 1px solid var(--tmp-line); border-radius: 7px; padding: 11px; font: 11.5px/1.7 var(--tmp-mono); white-space: pre-wrap; word-break: break-all; min-height: 90px; }
.tmp-codes, .tmp-links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.tmp-codes button, .tmp-links a { font: 700 12px/1 var(--tmp-mono); background: var(--tmp-soft); color: var(--tmp-brand); border: 1px solid var(--tmp-brand); border-radius: 5px; padding: 6px 10px; cursor: pointer; text-decoration: none; word-break: break-all; }
.tmp-links a { font-weight: 400; }
.tmp-offline-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.tmp-parse-card h3, .tmp-book-card h3 { font-size: 14px; color: var(--tmp-brand); margin-bottom: 6px; }
.tmp-parse-card p, .tmp-book-card p { font-size: 11.5px; color: var(--tmp-ink2); line-height: 1.65; margin-bottom: 10px; }
.tmp-parse-card textarea { width: 100%; min-height: 92px; resize: vertical; font-family: inherit; }
.tmp-parse-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tmp-parse-out { font-size: 12px; color: var(--tmp-ink2); background: var(--tmp-panel); border: 1px dashed var(--tmp-line2); border-radius: 7px; padding: 10px; word-break: break-all; }
.tmp-parse-out b { color: var(--tmp-accent); font-family: var(--tmp-mono); }
.tmp-book li { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--tmp-panel); border: 1px solid var(--tmp-line); border-radius: 6px; padding: 7px 9px; margin-bottom: 7px; font: 11px/1.5 var(--tmp-mono); }
.tmp-book li.is-on { border-color: var(--tmp-brand); }
.tmp-book li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmp-book li button { background: none; border: 0; color: var(--tmp-brand); cursor: pointer; font-size: 11px; }
.tmp-privacy { margin-top: 14px; border-top: 1px dashed var(--tmp-line2); padding-top: 10px; }
.tmp-privacy h4 { font-size: 12px; color: var(--tmp-accent); margin-bottom: 6px; }
.tmp-privacy li { font-size: 11.5px; color: var(--tmp-ink2); padding-left: 14px; position: relative; }
.tmp-privacy li::before { content: '·'; position: absolute; left: 4px; color: var(--tmp-brand); }
.tmp-toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 14px); z-index: 130; background: var(--tmp-ink); color: var(--tmp-panel); border-radius: 7px; padding: 10px 17px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.tmp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="dark"] .tmp-btn-main { color: #101b15; }
@media (max-width: 980px) { .tmp-hero, .tmp-inbox-grid, .tmp-offline-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .tmp-wrap { padding: 0 14px; }
    .tmp-hero h1 { font-size: 32px; }
    .tmp-sub { font-size: 14.5px; }
    .tmp-inbox, .tmp-offline { padding: 14px; }
    .tmp-ticket-acts { flex-direction: column; }
    .tmp-btn { width: 100%; }
    .tmp-head-acts { width: 100%; margin-left: 0; }
    .tmp-address { font-size: 16px; }
    .tmp-rename { flex-direction: column; }
}
