* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #faf6ef; color: #292524; }
a { color: #c26600; }
header.top { background: #44403c; color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
header.top .title { font-weight: 700; font-size: 17px; }
header.top .spacer { flex: 1; }
header.top button { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
main { max-width: 980px; margin: 0 auto; padding: 14px; }
.card { background: #fff; border: 1px solid #f0e6d6; border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(120,80,20,.06); }
.card h3 { margin: 0 0 10px; font-size: 16px; }
button { background: #e07b00; color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
button:hover { background: #c26600; }
button.secondary { background: #f5efe6; color: #44403c; border: 1px solid #e7ddcf; }
button.secondary:hover { background: #efe6d4; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { padding: 10px 12px; border: 1px solid #e7ddcf; border-radius: 10px; font-size: 14px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #e07b00; box-shadow: 0 0 0 3px rgba(224,123,0,.15); }
textarea { resize: vertical; }
label { font-size: 13px; color: #57534e; display: block; margin: 10px 0 4px; font-weight: 600; }
.hint { font-size: 12px; color: #a8a29e; margin-top: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: #f5efe6; color: #57534e; border: 1px solid #e7ddcf; }
.tabs button:hover { background: #efe6d4; }
.tabs button.active { background: #e07b00; color: #fff; border-color: #e07b00; }
.msg { padding: 8px 10px; border-radius: 10px; margin: 8px 0; font-size: 14px; display: none; }
.msg.ok { background: #dcfce7; display: block; }
.msg.err { background: #fee2e2; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid #f0e6d6; padding: 6px; text-align: left; vertical-align: top; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photos .ph { position: relative; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.photos .del { position: absolute; top: 2px; right: 2px; background: rgba(220,38,38,.92); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.meta { font-size: 13px; color: #78716c; line-height: 1.7; }
.meta b { color: #292524; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #fef3c7; color: #92400e; }
.badge.done { background: #dcfce7; color: #166534; }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 50; padding: 16px; }
#lightbox img { max-width: 96vw; max-height: 78vh; border-radius: 8px; }
#lightbox .bar { margin-top: 12px; display: flex; gap: 8px; }
.role-cards { display: flex; gap: 10px; margin-bottom: 12px; }
.role-cards button { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; font-size: 14px; background: #fff; color: #292524; border: 1.5px solid #ece4d6; border-radius: 16px; text-align: left; font-weight: 400; }
.role-cards button:hover { background: #fffdf8; border-color: #e7ddcf; }
.role-cards button.active { background: #fff8ef; border-color: #e07b00; box-shadow: 0 2px 10px rgba(224,123,0,.12); }
.role-cards button.active:hover { background: #fff8ef; }
.role-cards button.active::after { content: "当前选择"; background: #e07b00; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-top: 2px; }
.rc-icon { font-size: 22px; line-height: 1; padding: 7px 8px; border-radius: 10px; background: #fdeeda; }
.role-cards button[data-role="customer"] .rc-icon { background: #d9f2ec; }
.role-cards button[data-role="admin"] .rc-icon { background: #e9e5f5; }
.rc-name { font-size: 15px; font-weight: 700; }
.rc-desc { font-size: 12px; color: #78716c; line-height: 1.5; }
.hidden { display: none !important; }

/* 登录页品牌区与登录卡头（原型暖风格） */
@font-face { font-family: 'Racing Sans One'; src: url('/fonts/racing-sans-one.woff2') format('woff2'); font-display: swap; }
.brand-wordmark { text-align: center; font-family: 'Racing Sans One', 'Arial Black', sans-serif; font-size: 44px; letter-spacing: 1px; line-height: 1.1; margin: 0; }
.brand-wordmark .ez { color: #e07b00; }
.brand-wordmark .easier { color: #292524; }
.brand-tagline { text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .5px; margin-top: 6px; background: linear-gradient(90deg, #f59e0b, #ea580c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.brand-speed { text-align: center; margin-top: 8px; }.brand-speed span { display: inline-block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #f59e0b, #e07b00); transform: skewX(-30deg); margin-right: 6px; }
.brand-speed span:nth-child(1) { width: 44px; }
.brand-speed span:nth-child(2) { width: 28px; opacity: .7; }
.brand-speed span:nth-child(3) { width: 14px; opacity: .4; margin-right: 0; }

/* 客户主题（青色，原型客户登录配色） */
.card[data-theme="customer"] .login-head { background: #e6f4f1; }
.card[data-theme="customer"] .login-head h3 { color: #115e59; }
.card[data-theme="customer"] .login-btn { background: #0f766e; }
.card[data-theme="customer"] .login-btn:hover { background: #115e59; }
.card[data-theme="customer"] .role-cards button.active { border-color: #0f766e; background: #f0fdfa; box-shadow: 0 2px 10px rgba(15,118,110,.12); }
.card[data-theme="customer"] .role-cards button.active:hover { background: #f0fdfa; }
.card[data-theme="customer"] .role-cards button.active::after { background: #0f766e; }
.card[data-theme="customer"] input:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.brand { text-align: center; font-size: 24px; margin: 0 0 8px; }
.brand-sub { text-align: center; color: #78716c; font-size: 14px; margin: 4px 0; line-height: 1.6; }
.login-head { background: #fdf3e3; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login-head h3 { margin: 0 0 4px; font-size: 17px; color: #b45309; }
.login-head p { margin: 0; font-size: 13px; color: #78716c; line-height: 1.5; }
.login-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.login-btn { width: 100%; padding: 13px; font-size: 16px; border-radius: 12px; }
