/*
 * @Author: zhangyao
 * @Date: 2026-11-02
 * @LastEditTime: 2026-11-02
 * @LastEditors: zhangyao
 * @FilePath: /admin/style.css
 * @Description: 内务府-管理后台-界面样式
 */
:root { --paper: #f7f5ef; --ink: #302d29; --muted: #928b7f; --line: #e7e1d7; --red: #954536; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #dcd3c5; border-radius: 7px; padding: 9px 15px; color: #60564a; background: #fffdf8; transition: background 0.15s; }
button:hover { background: #eee6d9; }
button:disabled { opacity: 0.4; cursor: default; }
button.primary { background: var(--red); border-color: var(--red); color: #fff8e9; }
button.primary:hover { background: #7b382c; }
input, select, textarea { color: var(--ink); border: 1px solid #dfd7c9; border-radius: 6px; padding: 10px 11px; background: #fffdf8; outline-color: #b98b68; }
input::placeholder { color: #a59c8e; }
a { color: inherit; text-decoration: none; }
.eyebrow { font-size: 10px; letter-spacing: 3px; color: #a18462; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Songti SC", "STSong", serif; font-weight: 500; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 20%, #e8deca, #f7f5ef 70%); padding: 25px; }
.login-card { width: 390px; max-width: 100%; padding: 40px; border: 1px solid #dfd1ba; border-radius: 14px; background: #fffaf0; box-shadow: 0 20px 70px #63472d10; }
.seal { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a44c39; color: #a44c39; font-family: serif; font-size: 17px; }
.login-card .eyebrow { margin: 26px 0 12px; }
.login-card h1 { font-size: 40px; }
.login-card p { color: var(--muted); margin: 14px 0 27px; line-height: 1.8; }
.login-card label { display: block; margin-bottom: 9px; }
.login-card input, .login-card button { display: block; width: 100%; margin-bottom: 12px; }
.small { font-size: 11px; }
#login-error, #error { color: #a14432; margin-top: 14px; }
.dashboard { min-height: 100vh; display: flex; }
.sidebar { width: 226px; background: #302f2a; color: #d8cebd; padding: 32px 17px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
.brand { display: flex; gap: 13px; align-items: center; padding: 0 7px; font-family: "Songti SC", serif; font-size: 22px; }
.brand small { display: block; font-family: sans-serif; font-size: 7px; letter-spacing: 2px; margin-top: 7px; color: #9d9383; }
.small-seal { color: #d2ae78; border-color: #a48a61; width: 39px; height: 42px; font-size: 15px; }
.nav-label { color: #8c8375; font-size: 10px; letter-spacing: 2px; padding: 42px 14px 15px; }
nav button { display: block; background: transparent; color: #c3b9a9; border: 0; width: 100%; text-align: left; padding: 14px; margin-bottom: 6px; font-size: 12px; }
nav button span { margin-right: 10px; font-size: 17px; }
nav button.active { background: #494236; color: #ecd6b1; }
nav button:hover { background: #3d3a32; }
.sidebar-bottom { margin-top: auto; padding: 20px 13px 0; }
.sidebar-bottom a { display: block; color: #d0b894; margin-bottom: 15px; font-size: 11px; }
.sidebar-bottom button { padding: 0; border: 0; background: transparent; color: #afa494; font-size: 11px; }
.sidebar-bottom small { display: block; color: #777064; font-size: 9px; margin-top: 24px; }
main { width: calc(100% - 226px); margin-left: 226px; }
.topbar { height: 69px; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #a09685; font-size: 11px; background: #fbf9f4; }
#breadcrumb { color: #61594b; }
.live { color: #7e8d76; font-size: 10px; }
.content { padding: 38px 40px; max-width: 1700px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-heading h1 { font-size: 30px; margin: 13px 0 12px; }
.page-heading p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-top: 30px; }
.metrics article { border: 1px solid var(--line); border-radius: 9px; padding: 23px; background: #fffcf6; }
.metrics article span { color: #807462; font-size: 11px; }
.metrics strong { display: block; font-family: Georgia, serif; font-size: 35px; font-weight: 400; margin: 14px 0 12px; color: #6e4f35; }
.metrics small { color: #a39786; font-size: 10px; }
.records-panel { margin-top: 28px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf8; overflow: hidden; }
.panel-title { padding: 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-title h2 { font-size: 20px; }
.panel-title span { color: #9b8d79; font-size: 11px; }
.filters { padding: 19px 24px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; background: #fbf8f1; }
.filters input[name=q] { min-width: 210px; flex: 1; }
.filters input[name=user] { width: 145px; }
.filters input[type=date] { width: 139px; }
.filters span { color: #a89b87; }
.table-wrap { overflow-x: auto; min-height: 220px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-weight: 500; font-size: 10px; color: #9b8d79; background: #fbf8f1; padding: 14px 20px; }
td { padding: 19px 20px; border-top: 1px solid #f0e9dd; font-size: 11px; color: #6a5e4d; }
tbody tr:hover { background: #fcf8f0; }
.original { white-space: normal; min-width: 210px; max-width: 350px; line-height: 1.8; color: #433b30; }
.user-id { font-family: monospace; font-size: 10px; color: #a0917b; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 4px; font-size: 10px; background: #ede9dd; color: #837050; }
.tag.green { color: #627864; background: #edf0e6; }
.tag.red { color: #a35a49; background: #f5e9e0; }
.tag.blue { color: #617e87; background: #e7eff0; }
.text-button { border: 0; background: transparent; padding: 3px; color: #a15e42; font-size: 11px; }
.empty { text-align: center; padding: 65px 20px; color: #a39786; }
.pagination { padding: 18px 23px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font-size: 11px; color: #a09481; }
.pagination button { margin-left: 9px; font-size: 11px; }
.footnote { margin-top: 18px; font-size: 10px; color: #aa9c88; line-height: 1.8; }
dialog { width: 670px; max-width: 94vw; max-height: 88vh; overflow: auto; padding: 28px; border: 1px solid #d9c9af; border-radius: 12px; background: #fffcf5; color: var(--ink); }
dialog::backdrop { background: #2c251b77; backdrop-filter: blur(3px); }
.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.detail-head h2 { font-size: 25px; }
.detail-head button { border: 0; background: transparent; font-size: 25px; }
.detail-label { color: #a08b6b; font-size: 10px; margin: 22px 0 9px; letter-spacing: 1px; }
.detail-original { background: #f2ebde; padding: 17px; border-radius: 8px; white-space: pre-wrap; line-height: 1.8; word-break: break-word; }
.detail-meta { font-family: monospace; color: #918571; font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.step { border-left: 1px solid #d7c7ab; padding: 3px 0 18px 17px; margin-left: 4px; line-height: 1.7; }
.step time { font-size: 10px; color: #a18e71; display: block; }
.detail-result { white-space: pre-wrap; background: #f5f0e5; padding: 16px; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.reply-form textarea { width: 100%; min-height: 125px; margin: 12px 0; resize: vertical; }
.reply-form .row { display: flex; justify-content: space-between; }
@media (max-width: 1100px) { .sidebar { width: 190px; } main { width: calc(100% - 190px); margin-left: 190px; } .content { padding: 27px 22px; } .topbar { padding: 0 22px; } .metrics article { padding: 17px; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; padding: 18px; } .brand { font-size: 18px; } .nav-label, .sidebar-bottom { display: none; } nav { display: flex; margin-top: 18px; } nav button { padding: 8px; font-size: 10px; } nav button span { display: none; } .dashboard { display: block; } main { margin: 0; width: 100%; } .topbar { height: 48px; } .content { padding: 25px 15px; } .page-heading h1 { font-size: 25px; } .page-heading { align-items: flex-start; } .page-heading > button { white-space: nowrap; font-size: 10px; } .metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; } .filters { padding: 15px; } .filters input[name=q] { min-width: 170px; } }
