/* 剪贴簿 - 小红书笔记提取器样式 */
:root {
    --coral: #ff4e63;
    --coral-hover: #e63e56;
    --coral-soft: #ffb1bd;
    --cream: #fff8f3;
    --cream-deep: #fbeee5;
    --dust-rose: #f3e4e1;
    --ink: #2a2626;
    --ink-soft: #5b504e;
    --sage: #7ba88c;
    --border: #f0d9d3;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255,177,189,.35), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(255,78,99,.12), transparent 60%),
        var(--cream);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 48px 20px 60px; }

.hero { text-align: center; margin-bottom: 36px; }
.hero .tag {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,.7); border: 1px solid var(--dust-rose);
    color: var(--ink-soft); font-size: 12px; margin-bottom: 18px;
}
.hero h1 {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-weight: 800; font-size: 44px; line-height: 1.2; margin: 0;
    letter-spacing: -0.5px;
}
.hero .accent { color: var(--coral); }
.hero .sub { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; }

.card {
    background: #fff;
    border: 1px solid rgba(240,217,211,.7);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.6) inset,
        0 10px 30px -18px rgba(202,92,96,.28),
        0 2px 6px -3px rgba(202,92,96,.14);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.7) inset,
        0 18px 40px -20px rgba(202,92,96,.35),
        0 4px 10px -3px rgba(202,92,96,.16);
}

.input-card { position: relative; overflow: hidden; }
.input-card::after {
    content: ''; position: absolute; top: -32px; right: -32px;
    width: 96px; height: 96px; border-radius: 50%;
    background: rgba(255,177,189,.25); filter: blur(24px); pointer-events: none;
}
.input-card label {
    display: block; font-size: 11px; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.input-card textarea {
    width: 100%; min-height: 92px; border: 0; outline: 0;
    resize: none; background: transparent; padding: 0;
    font: inherit; color: var(--ink); font-size: 15px;
}
.input-card textarea::placeholder { color: rgba(91,80,78,.55); }
.divider {
    height: 1px; margin: 14px 0;
    background: linear-gradient(to right, rgba(202,92,96,.35) 50%, transparent 50%);
    background-size: 8px 1px; background-repeat: repeat-x;
}
.input-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint { color: rgba(91,80,78,.75); font-size: 11px; line-height: 1.5; }
#submit {
    appearance: none; border: 0; cursor: pointer;
    background: var(--coral); color: #fff;
    padding: 10px 22px; border-radius: 999px;
    font: inherit; font-weight: 500; font-size: 14px;
    transition: background .2s var(--ease);
}
#submit:hover { background: var(--coral-hover); }
#submit:disabled { opacity: .6; cursor: not-allowed; }

.msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 20px; }
.msg.error { color: var(--coral); background: #fff; border: 1px solid rgba(255,78,99,.25); }
.msg.cached { color: var(--sage); background: #fff; border: 1px solid rgba(123,168,140,.35); }

.label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.badge {
    font-size: 12px; padding: 2px 10px; border-radius: 999px;
    border: 1px solid var(--dust-rose); color: var(--ink-soft);
}
.title {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-weight: 700; font-size: 26px; line-height: 1.35;
    margin: 8px 0 0;
}
.content { margin: 12px 0 0; font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.thumb { margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--cream-deep); }
.thumb img { display: block; width: 100%; height: auto; }
.card video { margin-top: 12px; width: 100%; max-height: 560px; background: #000; border-radius: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.cell {
    position: relative; border-radius: 12px; overflow: hidden;
    background: var(--cream-deep); border: 1px solid var(--dust-rose);
}
.cell img { display: block; width: 100%; height: 160px; object-fit: cover; }
.cell .idx {
    position: absolute; left: 8px; bottom: 8px;
    padding: 2px 8px; border-radius: 999px; font-size: 11px;
    background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
}

.right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.copy, .link {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    color: var(--ink-soft); font: inherit; font-size: 12px;
    text-decoration: none; padding: 0;
    transition: color .2s var(--ease);
}
.copy:hover, .link:hover { color: var(--coral); }
.link { text-decoration: underline; text-underline-offset: 2px; }

.fade { animation: cardIn .32s var(--ease) both; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer { text-align: center; margin-top: 40px; color: rgba(91,80,78,.6); font-size: 11px; }

@media (max-width: 640px) {
    .wrap { padding: 28px 16px 40px; }
    .hero h1 { font-size: 34px; }
}
