:root {
  color-scheme: light;
  --ink: #172a34;
  --muted: #657780;
  --line: #dce4e7;
  --paper: #f2f5f4;
  --card: #ffffff;
  --teal: #0c756c;
  --teal-dark: #075a54;
  --orange: #ef8c3a;
  --error: #b23930;
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.后台容器 { min-height: 100vh; }
.登录视图 { display: grid; min-height: 100vh; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 80% 16%, #d9e7e3 0, transparent 28%), linear-gradient(135deg, #f5f6f2, #e8efed); }
.返回网站 { position: absolute; top: 28px; left: max(28px, calc((100vw - 1160px) / 2)); color: var(--muted); text-decoration: none; font-size: 14px; }
.返回网站:hover, .头部操作 a:hover { color: var(--teal); }
.登录卡片 { width: min(100%, 440px); padding: 40px; border: 1px solid #d8e2df; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: 0 24px 70px #19394213; animation: 入场 .35s ease-out both; }
.品牌标识, .后台品牌 { display: flex; align-items: center; gap: 12px; }
.品牌标识 > span, .后台品牌 > span { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: var(--teal); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.品牌标识 strong, .后台品牌 strong { display: block; font-size: 15px; }
.品牌标识 small, .后台品牌 small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.眉题 { margin: 32px 0 8px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.登录卡片 h1 { margin-bottom: 10px; font-size: 28px; letter-spacing: -.04em; }
.说明 { margin-bottom: 27px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.登录卡片 label, .字段网格 label, .产品字段 label { display: grid; gap: 8px; color: #334851; font-size: 13px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #cad6d9; border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: border-color .16s, box-shadow .16s; }
input, select { min-height: 44px; padding: 0 12px; }
textarea { min-height: 76px; padding: 11px 12px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0c756c1a; }
.主按钮, .次按钮 { min-height: 42px; padding: 0 16px; border: 0; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .16s, transform .16s; }
.主按钮 { color: #fff; background: var(--teal); }
.主按钮:hover { background: var(--teal-dark); transform: translateY(-1px); }
.主按钮:disabled { cursor: wait; opacity: .65; transform: none; }
.登录卡片 .主按钮 { width: 100%; margin-top: 17px; }
.次按钮 { color: #475b63; border: 1px solid var(--line); background: white; }
.次按钮:hover { color: var(--teal); border-color: #a8c8c2; }
.状态消息 { min-height: 22px; margin: 12px 0 0; color: var(--error); font-size: 13px; }
.安全提示 { margin: 14px 0 0; color: #829198; font-size: 11px; line-height: 1.6; }

.编辑视图 { width: min(1120px, 100%); margin: 0 auto; padding: 0 28px 48px; }
.后台头部 { display: flex; min-height: 74px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.后台品牌 { color: inherit; text-decoration: none; }
.后台品牌 > span { width: 36px; height: 36px; }
.头部操作 { display: flex; align-items: center; gap: 20px; }
.头部操作 a { color: #4b626b; font-size: 13px; text-decoration: none; }
.欢迎区 { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 43px 0 33px; }
.欢迎区 .眉题 { margin: 0 0 8px; }
.欢迎区 h1 { margin: 0 0 9px; font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; }
.欢迎区 p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.安全徽标 { flex: none; padding: 9px 12px; color: var(--teal-dark); border: 1px solid #c3ded8; border-radius: 99px; background: #e8f3f0; font-size: 11px; font-weight: 700; }
.编辑导航 { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.编辑导航 button { position: relative; padding: 13px 2px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.编辑导航 button.当前 { color: var(--teal-dark); font-weight: 700; }
.编辑导航 button.当前::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--orange); content: ""; }
.编辑面板 { padding: 28px 0 18px; animation: 入场 .22s ease-out both; }
.面板标题, .小节标题 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.面板标题 p, .小节标题 p { margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.面板标题 h2 { margin: 0; font-size: 20px; }
.面板标题 > span { color: var(--muted); font-size: 12px; }
.字段网格 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.全宽字段 { grid-column: 1 / -1; }
.小节标题 { margin: 28px 0 13px; }
.小节标题 h3 { margin: 0; font-size: 16px; }
.数据网格 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.数据卡 { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.数据卡 label { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.数据卡 label:last-child { margin-bottom: 0; }
.数据卡 input { min-height: 38px; font-size: 13px; }
.产品编辑区 { display: grid; gap: 16px; }
.产品编辑卡 { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 6px 20px #19394208; }
.产品卡头 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.产品卡头 h3 { margin: 0; font-size: 17px; }
.产品卡头 span { color: var(--muted); font-size: 12px; }
.产品字段 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.产品字段 .全宽字段 { grid-column: 1 / -1; }
.产品图片字段 { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; padding: 12px; border: 1px dashed #bdcdcf; border-radius: 9px; background: #f7faf9; }
.产品图片字段 img { width: 112px; height: 76px; flex: none; border-radius: 6px; object-fit: cover; background: #e8eeed; }
.产品图片控件 { display: grid; gap: 8px; min-width: 0; }
.产品图片控件 label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.产品图片控件 input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.上传按钮 { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; color: var(--teal-dark); border: 1px solid #b9d2ce; border-radius: 6px; background: white; cursor: pointer; font-size: 12px; font-weight: 650; }
.图片说明 { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.保存栏 { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px -28px 0; padding: 14px 28px; border-top: 1px solid var(--line); background: #f2f5f4ee; backdrop-filter: blur(14px); }
.保存栏 span { color: var(--muted); font-size: 12px; }
.保存栏 span.错误 { color: var(--error); }
.保存栏 span.成功 { color: var(--teal-dark); }

@keyframes 入场 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  .登录卡片 { padding: 30px 23px; }
  .返回网站 { top: 18px; left: 20px; }
  .编辑视图 { padding: 0 16px 32px; }
  .后台头部 { min-height: 66px; }
  .头部操作 { gap: 10px; }
  .头部操作 a { display: none; }
  .欢迎区 { align-items: start; flex-direction: column; padding: 31px 0 24px; }
  .字段网格, .产品字段 { grid-template-columns: 1fr; padding: 16px; }
  .全宽字段, .产品字段 .全宽字段, .产品图片字段 { grid-column: auto; }
  .数据网格 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .面板标题 { align-items: start; flex-direction: column; gap: 7px; }
  .保存栏 { align-items: stretch; flex-direction: column; margin-right: -16px; margin-left: -16px; padding: 12px 16px; }
  .保存栏 .主按钮 { width: 100%; }
}
