* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f6f7; color: #202223; padding: 56px 0 40px;
}
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid #e1e3e5;
  display: flex; align-items: center; height: 56px; padding: 0 24px; gap: 16px;
}
.topbar .brand { font-weight: 700; font-size: 18px; color: #008060; white-space: nowrap; }
.topbar .title { font-size: 14px; color: #6d7175; white-space: nowrap; }
.topbar input[type=search] {
  flex: 1; min-width: 200px; max-width: 420px; padding: 8px 12px; font-size: 14px;
  border: 1px solid #e1e3e5; border-radius: 6px; background: #f6f6f7; color: #202223;
}
.topbar input[type=search]:focus { outline: none; border-color: #008060; background: #fff; }
main { padding: 0 24px; max-width: 1100px; margin: 0 auto; }
.upload-box {
  background: #fff; border: 1px solid #e1e3e5; border-radius: 10px; padding: 18px 22px; margin-top: 24px;
}
.upload-box h2 { font-size: 16px; margin-bottom: 12px; color: #202223; }
#upload-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#upload-form input[type=text] {
  padding: 8px 12px; font-size: 14px; border: 1px solid #e1e3e5; border-radius: 6px; width: 200px;
}
#upload-form input[type=file] { font-size: 13px; color: #202223; }
#upload-form button {
  padding: 8px 16px; font-size: 14px; background: #008060; color: #fff;
  border: none; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
#upload-form button:hover { background: #00694e; }
#u-status { font-size: 13px; color: #6d7175; flex: 1; min-width: 180px; }
#u-status.ok { color: #008060; }
#u-status.err { color: #d72c0d; }
  #u-file-hint { font-size: 12px; color: #8a8f95; width: 100%; }
#u-bar { display: none; width: 100%; height: 8px; border-radius: 4px; background: #f0f0f1; overflow: hidden; }
#u-bar .fill { width: 0; height: 100%; background: #008060; transition: width .2s; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 8px; }
.section-head h2 { font-size: 18px; }
.section-head .count { font-size: 13px; color: #6d7175; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: #fff; border: 1px solid #e1e3e5; border-radius: 8px; padding: 14px 16px;
}
.card h3 { font-size: 16px; color: #008060; }
.card .meta { font-size: 13px; color: #6d7175; margin: 4px 0 10px; }
.card .meta .discount-range { color: #d72c0d; font-weight: 700; }
.card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card .actions a {
  font-size: 12px; padding: 4px 10px; border-radius: 4px; text-decoration: none;
  background: #e6f4ee; color: #008060;
}
.card .actions a.preview { background: #008060; color: #fff; font-weight: 600; }
.card .actions a:hover { opacity: .85; }
.empty { color: #8a8f95; font-size: 14px; padding: 40px 0; text-align: center; }

/* 视觉增强 */
:root {
  --ink: #17211b;
  --muted: #6b7770;
  --line: #dce5df;
  --surface: #ffffff;
  --soft: #f3f7f4;
  --accent: #087f5b;
  --accent-dark: #056044;
  --shadow: 0 12px 30px rgba(22, 56, 40, .08);
}
body {
  background: radial-gradient(circle at 12% -10%, #e4f5ed 0, transparent 32%), #f5f8f6;
  color: var(--ink);
}
.topbar {
  height: 64px; padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: rgba(255,255,255,.88); border-bottom-color: rgba(220,229,223,.9);
  box-shadow: 0 4px 18px rgba(29, 66, 48, .05); backdrop-filter: blur(12px);
}
.topbar .brand { color: var(--accent); letter-spacing: -.02em; }
.topbar .title { color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; }
.topbar input[type=search] {
  border-color: var(--line); border-radius: 10px; background: var(--soft); transition: .2s;
}
.topbar input[type=search]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,91,.12); }
main { max-width: 1160px; padding: 0 24px 20px; }
.upload-box {
  border: 1px solid rgba(220,229,223,.9); border-radius: 16px; padding: 24px 26px;
  margin-top: 28px; box-shadow: var(--shadow);
}
.upload-box h2 { font-size: 18px; letter-spacing: -.02em; }
#upload-form input[type=text] { border-color: var(--line); border-radius: 9px; padding: 10px 12px; }
#upload-form input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8,127,91,.1); }
#upload-form button {
  padding: 10px 18px; border-radius: 9px; background: var(--accent);
  box-shadow: 0 4px 10px rgba(8,127,91,.18); transition: .2s;
}
#upload-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }
#u-bar { height: 7px; background: #e7eee9; }
#u-bar .fill { background: linear-gradient(90deg, #0b8f66, #43bd82); }
.section-head { margin: 34px 0 14px; }
.section-head h2 { font-size: 20px; letter-spacing: -.03em; }
.section-head .count { color: var(--muted); }
.grid { gap: 16px; }
.card {
  border-color: rgba(220,229,223,.95); border-radius: 14px; padding: 18px;
  box-shadow: 0 3px 12px rgba(26, 59, 43, .035); transition: .2s;
}
.card:hover { border-color: #b7d9c8; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { color: var(--ink); font-size: 16px; letter-spacing: -.01em; }
.card .meta { color: var(--muted); line-height: 1.7; }
.card .meta .discount-range { color: #c05621; }
.card .actions a { border-radius: 7px; background: #e7f5ee; color: var(--accent); transition: .15s; }
.card .actions a.preview { background: var(--accent); box-shadow: 0 3px 8px rgba(8,127,91,.15); }
.card .actions a:hover { opacity: 1; filter: brightness(.96); transform: translateY(-1px); }
.empty { padding: 64px 0; color: var(--muted); }
@media (max-width: 640px) {
  body { padding-top: 112px; }
  .topbar { height: auto; min-height: 64px; padding: 12px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .topbar input[type=search] { order: 3; flex-basis: 100%; max-width: none; }
  main { padding: 0 16px 20px; }
  .upload-box { padding: 18px; margin-top: 18px; }
  #upload-form input[type=text], #upload-form button { width: 100%; }
  #upload-form input[type=file] { max-width: 100%; }
}

/* work-oa.shop / Element Plus 风格 */
:root { --ink:#303133; --muted:#909399; --line:#dcdfe6; --soft:#f5f7fa; --accent:#409eff; --accent-dark:#337ecc; --shadow:0 2px 12px rgba(0,0,0,.08); }
body { background:#f0f2f5; }
.topbar { background:#fff; border-bottom-color:var(--line); box-shadow:0 1px 4px rgba(0,0,0,.04); backdrop-filter:none; }
.topbar .brand { color:var(--accent); }
.topbar input[type=search] { border-color:var(--line); background:var(--soft); }
.topbar input[type=search]:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(64,158,255,.14); }
.upload-box { border-color:var(--line); border-radius:4px; box-shadow:var(--shadow); }
#upload-form input[type=text] { border-color:var(--line); border-radius:4px; }
#upload-form input[type=text]:focus { border-color:var(--accent); box-shadow:0 0 0 2px rgba(64,158,255,.14); }
#upload-form button { border-radius:4px; background:var(--accent); box-shadow:none; }
#upload-form button:hover { background:var(--accent-dark); }
#u-bar .fill { background:var(--accent); }
.card { border-color:var(--line); border-radius:4px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.card:hover { border-color:#b3d8ff; box-shadow:var(--shadow); }
.card h3 { color:var(--ink); }
.card .actions a { border-radius:4px; background:#ecf5ff; color:var(--accent); }
.card .actions a.preview { background:var(--accent); box-shadow:none; }
.brand-logo { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; margin-right:18px; }
.brand-logo img { width:32px; height:32px; display:block; flex:0 0 auto; }
.brand-logo span { color:var(--ink); font-size:16px; font-weight:600; letter-spacing:.01em; }
.brand-logo:hover span { color:var(--accent); }
@media (max-width: 640px) {
  .brand-logo { margin-right:0; }
  .brand-logo img { width:30px; height:30px; }
  .brand-logo span { font-size:15px; }
}
