/* ============ 打包见证 · 样式 ============ */
:root {
    --paper: #faf7f2;
    --ink: #1f2320;
    --muted: #736f66;
    --line: #e9e3d8;
    --card: #ffffff;
    --orange: #e8734a;
    --orange-dark: #d15c34;
    --green: #2f6f5e;
    --danger: #bf4b39;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(31, 35, 32, .04), 0 8px 24px rgba(31, 35, 32, .05);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- 导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 247, 242, .88);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(232, 115, 74, .14);
    display: inline-block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-logout { color: #a09a90 !important; }

/* ---------- 通用容器 ---------- */
.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}
.wrap-narrow { max-width: 760px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 26px; }
.page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.card-title { font-size: 16px; margin-bottom: 18px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 550;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .16s ease;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:hover { background: #f7f3ec; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: #efd9d4; }
.btn-danger:hover { background: #fdf1ef; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-mini { padding: 5px 11px; font-size: 13px; border-radius: 8px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #4a463f;
}
.req { color: var(--orange); }
input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fdfbf7;
    color: var(--ink);
    transition: .16s;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 115, 74, .12);
}
textarea { resize: vertical; }
.hint { font-size: 12.5px; color: #9a948a; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 400; }
.check input { width: auto; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.form-tip { font-size: 13px; color: #9a948a; }
.form-msg {
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13.5px;
}
.form-msg.err { background: #fdf1ef; color: var(--danger); border: 1px solid #f2dcd7; }
.form-msg.ok { background: #eef6f2; color: var(--green); border: 1px solid #d8e9e1; }

/* ---------- 提示条 ---------- */
.alert {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-warn { background: #fdf4e7; border: 1px solid #f2e2c6; color: #8a6320; }
.alert a { font-weight: 600; }

/* ---------- 首页 ---------- */
.page-landing { background: var(--paper); }
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(232, 115, 74, .10), transparent 60%),
        radial-gradient(700px 400px at 90% 10%, rgba(47, 111, 94, .08), transparent 60%);
}
.landing-inner { max-width: 760px; width: 100%; }
.landing-badge {
    display: inline-block;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: var(--orange-dark);
    background: rgba(232, 115, 74, .1);
    border: 1px solid rgba(232, 115, 74, .18);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.landing h1 {
    font-size: 44px;
    line-height: 1.22;
    letter-spacing: -.02em;
}
.landing-sub {
    font-size: 16px;
    color: var(--muted);
    margin: 18px 0 32px;
    max-width: 520px;
}
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.step {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.step-no {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: .1em;
    margin-bottom: 10px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.landing-foot {
    margin-top: 48px;
    font-size: 13px;
    color: #a8a29a;
}

/* ---------- 登录 ---------- */
.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(700px 400px at 50% -10%, rgba(232, 115, 74, .09), transparent 65%),
        var(--paper);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: var(--shadow);
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--muted);
    margin-bottom: 22px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.auth-foot { margin-top: 22px; font-size: 13.5px; }
.auth-center { text-align: center; }
.big-icon { font-size: 40px; font-weight: 800; color: var(--line); letter-spacing: -.03em; margin-bottom: 10px; }

/* ---------- 上传 ---------- */
.dropzone {
    border: 1.5px dashed #ddd5c7;
    border-radius: 14px;
    background: #fdfbf7;
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    transition: .16s;
    outline: none;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragover {
    border-color: var(--orange);
    background: #fdf5ef;
}
.dz-icon {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--orange);
    border: 1.5px solid rgba(232, 115, 74, .35);
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 12px;
}
.dz-title { font-size: 14.5px; font-weight: 550; }
.dz-hint { font-size: 12.5px; color: #a09a90; margin-top: 5px; }
.dz-file { text-align: left; }
.dz-file-name { font-weight: 600; font-size: 14.5px; word-break: break-all; }
.dz-file-meta { font-size: 13px; color: var(--muted); margin: 3px 0 10px; }

.progress-box { margin-top: 18px; }
.progress-bar {
    height: 8px;
    background: #efe9df;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--orange), #ef9a6f);
    border-radius: 999px;
    transition: width .2s ease;
}
.progress-text { font-size: 13px; color: var(--muted); margin-top: 8px; }

.result-card { border-color: #cfe5da; background: #fbfefc; }
.result-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.result-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}
.result-head h2 { font-size: 17px; }
.result-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.link-row { display: flex; gap: 10px; }
.link-row input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.result-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 统计 ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.stat-num { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 工具栏 ---------- */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.toolbar input { flex: 1; min-width: 180px; }
.toolbar select { width: auto; }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.item.is-expired { opacity: .72; background: #fcfaf6; }
.item-main { flex: 1; min-width: 260px; }
.item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.item-title { font-weight: 650; font-size: 15.5px; }
.badge {
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 600;
}
.badge-active { background: #eaf5ef; color: var(--green); }
.badge-expired { background: #fbeceb; color: var(--danger); }
.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--muted);
}
.item-meta b { color: #4a463f; font-weight: 600; }
.item-remark {
    font-size: 13px;
    color: var(--muted);
    background: #faf7f1;
    border-radius: 8px;
    padding: 6px 10px;
    margin-top: 8px;
}
.item-link { display: flex; gap: 8px; margin-top: 10px; }
.item-link input {
    flex: 1;
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 7px 10px;
}
.item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.text-danger { color: var(--danger); }
.text-muted { color: var(--muted); }

.empty { text-align: center; padding: 56px 24px; }
.empty-icon { font-size: 34px; margin-bottom: 12px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* ---------- 提示 ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(10px);
    background: #24282a;
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    z-index: 100;
    opacity: 0;
    transition: .22s ease;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 设置页提示 ---------- */
.tips { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.tips li { margin-bottom: 9px; }
.tips b { color: var(--ink); }

/* ---------- 分享页 ---------- */
.page-share { background: #14171a; color: #f2f0eb; }
.share {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 16px 60px;
}
.share-head { margin-bottom: 16px; }
.share-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #9aa0a6;
    margin-bottom: 10px;
}
.share-title {
    font-size: 19px;
    font-weight: 650;
    color: #fff;
    line-height: 1.4;
}
.player-wrap {
    position: relative;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.player {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #000;
}
.watermark {
    position: absolute;
    right: 14px;
    top: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
    background: rgba(0, 0, 0, .34);
    padding: 3px 9px;
    border-radius: 6px;
    pointer-events: none;
    letter-spacing: .04em;
}
.share-info {
    background: #1c2023;
    border: 1px solid #2a2f33;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 16px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 14px;
    border-bottom: 1px solid #262b2e;
}
.info-row:last-of-type { border-bottom: none; }
.info-label { color: #9aa0a6; flex: 0 0 auto; }
.info-value { color: #f2f0eb; text-align: right; word-break: break-all; }
.info-remark {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #262b2e;
    font-size: 13.5px;
    color: #b9bdc1;
    line-height: 1.7;
}
.share-foot {
    margin-top: 20px;
    font-size: 13px;
    color: #8b9196;
    text-align: center;
}
.share-foot p { margin: 4px 0; }
.share-hint a { color: #c9a08c; }

.share-state {
    text-align: center;
    padding: 100px 20px;
}
.state-icon { font-size: 46px; margin-bottom: 18px; }
.share-state h1 { font-size: 22px; color: #fff; margin-bottom: 12px; }
.share-state p { color: #9aa0a6; font-size: 14.5px; margin: 6px 0; }
.state-hint { color: #7d8388 !important; font-size: 13.5px !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .field-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .landing h1 { font-size: 32px; }
    .landing-sub { font-size: 15px; }
    .landing-actions { margin-bottom: 40px; }
    .wrap { padding: 22px 16px 56px; }
    .card { padding: 18px; border-radius: 14px; }
    .page-head h1 { font-size: 22px; }
    .item { padding: 16px; }
    .item-actions { width: 100%; }
    .nav-links { gap: 12px; font-size: 13px; }
    .nav-inner { padding: 10px 16px; }
    .share { padding: 14px 10px 44px; }
    .player-wrap { border-radius: 10px; }
    .auth-card { padding: 26px 22px; }
}
