/* 光影手记 · 作品集后台 */
:root {
    --ink: #1c1916;
    --muted: #6b645c;
    --paper: #f4efe6;
    --card: #fffcf7;
    --line: rgba(28, 25, 22, 0.12);
    --accent: #8a5a3b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

.st-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}

.st-top h1 {
    font-size: 18px;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.st-top nav { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.st-top a { color: inherit; text-decoration: none; }
.st-top a:hover { color: var(--ink); }

.st-body { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }

.st-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.st-tabs button {
    border: 1px solid var(--line);
    background: transparent;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
}

.st-tabs button.is-on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.st-panel[hidden] { display: none; }

.st-card {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 20px;
    margin-bottom: 16px;
}

.st-card h2 { font-size: 16px; margin-bottom: 14px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
input[type="text"], input[type="email"], textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 10px;
    font: inherit;
    color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }

.st-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

button, .st-file {
    font: inherit;
    cursor: pointer;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
}

button.ghost {
    background: transparent;
    color: var(--ink);
}

button.danger { background: #8a3b3b; border-color: #8a3b3b; }

.st-file { display: inline-block; }
.st-file input { display: none; }

.st-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.st-msg { margin: 10px 0; font-size: 13px; color: var(--accent); }

.st-cover-preview {
    display: block;
    width: 180px;
    max-width: 40%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 12px 0 4px;
    background: #eee8dc;
}

.st-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.st-thumbs figure {
    position: relative;
    background: #eee8dc;
}

.st-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.st-thumbs button {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 12px;
}

.st-qr {
    width: 160px;
    height: 160px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    margin-top: 8px;
}

.st-featured-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.st-featured-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    padding: 8px;
    cursor: pointer;
    background: #fff;
}

.st-featured-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee8dc;
}

.st-featured-item span {
    font-size: 13px;
}

.st-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.st-login form {
    width: 100%;
    max-width: 360px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 28px 24px;
}

.st-login h1 {
    font-size: 20px;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}

.st-login p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.st-login button { width: 100%; margin-top: 16px; }
.st-error { color: #8a3b3b; font-size: 13px; min-height: 1.4em; }
