/* =================================================================
   音创后台 · v3 工业档案风
   ================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: #76b900; color: #fff; }
*::placeholder { color: #a0a0a0; }
input, button, textarea, select { font-family: inherit; }

body {
    font-family: "Helvetica Neue", Arial,
                 "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1a1a1a;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #ece8e0;
    background-image:
        radial-gradient(ellipse 1200px 800px at 85% -10%,
            rgba(255,250,235,0.9) 0%, transparent 60%),
        radial-gradient(ellipse 900px 600px at 10% 100%,
            rgba(60,55,45,0.15) 0%, transparent 55%),
        linear-gradient(0deg,  transparent 24.5%, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.04) 25.5%, transparent 26%, transparent 74.5%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04) 75.5%, transparent 76%, transparent),
        linear-gradient(90deg, transparent 24.5%, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.04) 25.5%, transparent 26%, transparent 74.5%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04) 75.5%, transparent 76%, transparent);
    background-size: 100% 100%, 100% 100%, 47px 47px, 47px 47px;
    background-attachment: fixed, fixed, fixed, fixed;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
    --green:      #76b900;
    --green-dark: #3f8500;
    --ink:        #0a0a0a;
    --ink-2:      #4a4a4a;
    --gray-3:     #757575;
    --gray-5:     #a7a7a7;
    --border-soft:#c8c4ba;
    --paper:      #ece8e0;
}

/* ============== 状态条 ============== */
.status-bar {
    background: #0a0a0a; color: #a0a0a0;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    padding: 6px 24px;
    display: flex; justify-content: space-between; align-items: center;
    text-transform: uppercase; font-family: "SF Mono", Consolas, monospace;
    border-bottom: 1px solid #1a1a1a;
    position: relative; z-index: 5;
}
.status-bar .left { display: flex; gap: 24px; }
.status-bar .right { display: flex; gap: 20px; }
.status-bar .dot {
    display: inline-block; width: 6px; height: 6px;
    background: var(--green); border-radius: 50%;
    margin-right: 6px; box-shadow: 0 0 6px var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-bar .ts { color: #76b900; }
.status-bar .sep { color: #444; }

/* ============== 液态玻璃 ============== */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        0 1px 2px rgba(0,0,0,0.06),
        0 8px 24px -8px rgba(0,0,0,0.15);
    overflow: hidden;
}
.glass-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg,
        rgba(255,255,255,0.45) 0%, transparent 30%,
        transparent 70%, rgba(255,255,255,0.3) 100%);
    mix-blend-mode: screen; pointer-events: none;
}
.glass-card > * { position: relative; z-index: 2; }

.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: 4px;
    color: #0a0a0a; font-weight: 800;
    text-transform: uppercase; padding: 6px 0;
    margin-bottom: 12px;
}
.kicker::before { content: ''; width: 24px; height: 1.5px; background: var(--green); }
.kicker::after {
    content: ''; flex: 0 0 60px; height: 1.5px;
    background: linear-gradient(90deg, var(--green), transparent);
}

/* ============== 登录页 ============== */
.login-body {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    position: relative; z-index: 1;
}
.login-box {
    width: 100%; max-width: 420px; padding: 48px 44px;
}
.login-head { text-align: center; margin-bottom: 32px; }
.login-head h2 {
    font-size: 28px; margin: 14px 0 8px; font-weight: 900;
    line-height: 1; text-transform: uppercase; letter-spacing: -0.5px;
}
.login-head p {
    color: #757575; font-size: 12px;
    font-family: "SF Mono", Consolas, monospace;
    letter-spacing: 1.5px; text-transform: uppercase;
}

/* ============== 表单 ============== */
.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: 11px; font-weight: 800;
    margin-bottom: 8px; color: #0a0a0a;
    text-transform: uppercase; letter-spacing: 1.5px;
    font-family: "SF Mono", Consolas, monospace;
}
.field input, .field textarea {
    width: 100%; padding: 11px 14px;
    background: #fff;
    border: 1.5px solid #1a1a1a;
    border-radius: 2px;
    font-size: 14px; outline: none;
    transition: all .2s; font-family: inherit; line-height: 1.5;
    box-shadow: 2px 2px 0 0 rgba(0,0,0,0.1);
}
.field input:focus, .field textarea:focus {
    border-color: var(--green);
    box-shadow: 2px 2px 0 0 var(--green), 0 0 0 3px rgba(118,185,0,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field small {
    display: block; color: #757575; font-size: 11px;
    margin-top: 6px; font-weight: 600;
    font-family: "SF Mono", Consolas, monospace;
    letter-spacing: 0.5px;
}

/* ============== 按钮 ============== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px;
    background: transparent; color: #0a0a0a;
    border: 2px solid #0a0a0a; border-radius: 2px;
    font-size: 13px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: all .2s;
    font-family: inherit;
    box-shadow: 3px 3px 0 0 #0a0a0a;
}
.btn-primary:hover {
    background: #0a0a0a; color: var(--green);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 0 var(--green);
}
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 #0a0a0a; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px;
    background: transparent; color: #0a0a0a;
    border: 1.5px solid #757575; border-radius: 2px;
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-left: 8px; transition: all .2s;
    cursor: pointer;
}
.btn-ghost:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ============== 提示条 ============== */
.error {
    background: rgba(229,32,32,0.08);
    border-left: 3px solid #e52020;
    color: #650b0b; padding: 10px 14px;
    border-radius: 2px; font-size: 13px;
    margin-bottom: 18px; font-weight: 700;
}
.msg {
    background: rgba(118,185,0,0.1);
    border-left: 3px solid #76b900;
    color: #3f8500; padding: 10px 14px;
    border-radius: 2px; font-size: 13px;
    margin-bottom: 16px; font-weight: 700;
}
.back-home {
    display: block; text-align: center;
    margin-top: 20px; font-size: 11px;
    color: #757575; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    font-family: "SF Mono", Consolas, monospace;
}
.back-home:hover { color: var(--green); }

/* ============== 后台布局 ============== */
.admin-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    gap: 20px; padding: 20px;
    position: relative; z-index: 1;
}
.sidebar {
    padding: 24px 20px;
    height: calc(100vh - 40px);
    position: sticky; top: 20px;
    display: flex; flex-direction: column;
}
.side-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 800; font-size: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1a1a1a;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #0a0a0a;
    line-height: 1.2;
}
.side-brand small {
    display: block; font-size: 9px; letter-spacing: 2px;
    color: #757575; font-weight: 600; margin-top: 2px;
}
.logo-mark {
    width: 32px; height: 32px;
    background: #0a0a0a; border-radius: 2px;
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.logo-mark::before {
    content: ''; width: 16px; height: 16px;
    background: var(--green);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.side-menu { list-style: none; margin-top: 18px; flex: 1; }
.side-menu li { margin-bottom: 4px; }
.side-menu a {
    display: block; padding: 10px 14px;
    border-radius: 2px; font-size: 11px;
    color: #4a4a4a; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    border-left: 3px solid transparent;
    transition: all .2s;
    font-family: "SF Mono", Consolas, monospace;
}
.side-menu li.active a {
    background: rgba(118,185,0,0.1);
    color: #0a0a0a; border-left-color: var(--green);
}
.side-menu a:hover {
    color: #0a0a0a; border-left-color: var(--green);
}
.side-foot {
    border-top: 1px solid #1a1a1a;
    padding-top: 16px; font-size: 10px;
    color: #757575; text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 700;
    font-family: "SF Mono", Consolas, monospace;
}
.side-user {
    color: var(--green); font-weight: 800; font-size: 14px;
    margin-top: 4px; text-transform: none; letter-spacing: 0;
}

.main { min-width: 0; }
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px; border-bottom: 1px solid #1a1a1a;
    position: relative;
}
.page-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 80px; height: 3px; background: var(--green);
}
.page-head h1 {
    font-size: 32px; font-weight: 900;
    margin-top: 10px; letter-spacing: -1px; line-height: 1;
    text-transform: uppercase;
}

/* ============== 表格 ============== */
.table-wrap { padding: 4px; }
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 12px 16px; text-align: left; font-size: 14px;
}
thead th {
    font-size: 10px; font-weight: 800;
    color: #757575; letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--green);
    background: rgba(118,185,0,0.04);
    font-family: "SF Mono", Consolas, monospace;
}
tbody tr {
    border-bottom: 1px solid var(--border-soft);
    transition: background .15s;
}
tbody tr:hover { background: rgba(118,185,0,0.04); }
tbody tr:last-child { border-bottom: none; }
.pid-tag {
    display: inline-block; padding: 3px 10px;
    background: #0a0a0a; color: var(--green);
    border-radius: 2px; font-size: 11px;
    font-family: "SF Mono", Consolas, monospace;
    letter-spacing: 0.5px; font-weight: 800;
    border: 1px solid #1a1a1a;
}
.thumb {
    width: 64px; height: 48px; object-fit: cover;
    border-radius: 2px; background: #0a0a0a;
    border: 1px solid #1a1a1a;
}
.link {
    color: #0a0a0a; font-size: 11px; margin-right: 14px;
    font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--green);
    padding-bottom: 2px;
    transition: color .2s;
}
.link:hover { color: var(--green); }
.link.danger { color: #650b0b; border-bottom-color: #e52020; }
.link.danger:hover { color: #e52020; }
.empty-row { text-align: center; color: #757575; padding: 60px 0 !important; }

/* ============== 上传框 ============== */
.upload-box {
    position: relative; padding: 32px 24px;
    border: 2px dashed #1a1a1a;
    border-radius: 4px; text-align: center;
    cursor: pointer; transition: all .2s;
    background: rgba(255,255,255,0.4);
}
.upload-box:hover, .upload-box.drag {
    border-color: var(--green);
    background: rgba(118,185,0,0.04);
    box-shadow: inset 0 0 0 1px var(--green);
}
.upload-box input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-tip { color: #4a4a4a; font-size: 14px; }
.upload-tip small {
    display: block; font-size: 11px; margin-top: 4px;
    color: #757575; font-family: "SF Mono", Consolas, monospace;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.upload-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    border: 2px solid #0a0a0a; border-radius: 2px;
    position: relative;
    background: #fff;
}
.upload-icon::before {
    content: ""; position: absolute;
    left: 50%; top: 10px; width: 2px; height: 18px;
    background: #0a0a0a; transform: translateX(-50%);
}
.upload-icon::after {
    content: ""; position: absolute;
    left: 50%; top: 30px; width: 14px; height: 2px;
    background: #0a0a0a; transform: translateX(-50%);
}
.preview {
    max-width: 100%; max-height: 240px;
    border-radius: 2px; margin: 0 auto;
    border: 1px solid #0a0a0a;
}
.form-actions {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

@media (max-width: 900px) {
    /* 状态条 */
    .status-bar {
        padding: 5px 14px; font-size: 9.5px; letter-spacing: 1px;
        flex-wrap: wrap; gap: 4px 10px;
    }
    .status-bar .left { gap: 8px; flex-wrap: wrap; }
    .status-bar .right { gap: 8px; }

    .admin-body { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .sidebar { position: static; height: auto; padding: 18px 16px; }
    .side-menu { display: flex; gap: 6px; flex-wrap: wrap; }
    .side-menu li { margin-bottom: 0; }
    .side-menu a {
        border-left: none; border-bottom: 3px solid transparent;
        padding: 8px 10px; font-size: 10px; letter-spacing: 1px;
    }
    .side-menu li.active a { border-bottom-color: var(--green); }
    .side-foot { display: none; }
    .side-brand small { display: none; }
}
@media (max-width: 600px) {
    .status-bar { padding: 5px 10px; font-size: 9px; }
    .status-bar .left span:nth-child(3),
    .status-bar .left span:nth-child(4) { display: none; }
    .status-bar .right span:nth-child(2) { display: none; }

    .admin-body { padding: 12px; }
    .page-head h1 { font-size: 24px; }
    .form-wrap { padding: 24px 20px; }

    /* 表格：横向滚动 */
    .table-wrap { overflow-x: auto; }
    table { min-width: 600px; }
    .btn-primary, .btn-ghost { padding: 10px 18px; font-size: 12px; }
}
