:root { --background: #f7f8fa; --surface: #fff; --text: #161d29; --muted: #737c8c; --line: #e4e7ec; --accent: #df3c36; --accent-hover: #bf2f2a; --radius: 16px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, input[type=submit], summary { cursor: pointer; }
button:disabled, input[type=submit]:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ef918d; outline-offset: 4px; }
.site-header { height: 80px; padding: 0 max(5vw, 24px); display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; height: 44px; width: 44px; background: var(--accent); border-radius: 9px; color: white; font-size: 28px; }
.account-nav { display: flex; align-items: center; gap: 20px; font-size: 16px; }
.account-nav a { font-weight: 600; }
.text-button { color: var(--muted); background: none; border: 0; padding: 0; }
.auth-layout { max-width: 1180px; min-height: calc(100svh - 156px); margin: auto; display: grid; grid-template-columns: 1fr 560px; align-items: center; gap: 80px; padding: 64px 24px; }
.auth-intro h2 { font-size: clamp(38px, 4.3vw, 60px); line-height: 1.4; letter-spacing: -2px; margin: 0 0 12px; font-weight: 750; }
.auth-intro p { color: var(--muted); font-size: 22px; margin: 0; white-space: nowrap; }
.brand-art { height: 290px; width: 400px; position: relative; margin-top: 34px; }
.brand-art span { position: absolute; display: block; border-radius: 24px; }
.brand-art span:nth-child(1) { width: 240px; height: 280px; background: #fae0df; left: 0; top: 0; }
.brand-art span:nth-child(2) { width: 196px; height: 196px; background: #f1847f; left: 108px; top: 54px; }
.brand-art span:nth-child(3) { width: 172px; height: 172px; background: var(--accent); left: 220px; top: 116px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 42px; box-shadow: 0 8px 28px #24334d03; min-width: 0; }
h1 { font-size: 38px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -1px; }
.form-description { margin: 0 0 34px; color: var(--muted); font-size: 18px; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; }
.field input { width: 100%; height: 52px; border: 1px solid #cdd2da; border-radius: 8px; padding: 12px 16px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #8991a0; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #df3c3615; }
.field_with_errors { display: contents; }
.field_with_errors input { border-color: var(--accent); }
.password-input { position: relative; }
.password-input input { padding-right: 76px; }
.password-toggle { position: absolute; right: 8px; top: 8px; height: 36px; border: 1px solid var(--line); background: #f8f9fb; color: #606b7b; border-radius: 5px; padding: 0 12px; font-size: 14px; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -3px 0 30px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input { width: 19px; height: 19px; accent-color: var(--accent); margin: 0; }
.button { border-radius: 8px; min-height: 52px; padding: 12px 20px; font-weight: 600; text-align: center; border: 1px solid transparent; display: inline-block; }
.button-primary { width: 100%; background: var(--accent); color: #fff; font-size: 18px; }
.button-primary:hover { background: var(--accent-hover); text-decoration: none; }
.form-links { border-top: 1px solid var(--line); margin: 30px 0 0; padding-top: 24px; text-align: center; color: #606b7b; }
.form-links a { font-weight: 600; }
.form-hint { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.flash { margin: 0 0 24px; padding: 12px 16px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.flash-success { background: #edf8f0; color: #24683b; border: 1px solid #cee8d6; }
.flash-error { background: #fff1f0; color: #a3312d; border: 1px solid #f3cdca; }
.flash p { margin: 0 0 4px; font-weight: 600; }
.flash ul { margin: 0; padding-left: 20px; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.danger-zone summary { color: #a3312d; }
.button-danger { border-color: #edc6c3; color: #a3312d; background: white; font-size: 14px; }
.site-footer { min-height: 76px; padding: 23px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; background: #fff; }
.site-footer span { margin: 0 14px; }
.workspace { max-width: 1040px; margin: auto; min-height: calc(100svh - 156px); padding: 70px 24px; }
.workspace-content { padding: 40px; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
@media (max-width: 1100px) { .auth-layout { grid-template-columns: 1fr 480px; gap: 40px; } .auth-intro h2 { font-size: 44px; } .auth-intro p { font-size: 17px; } .brand-art { transform: scale(.8); transform-origin: left top; width: 310px; height: 250px; } }
@media (max-width: 850px) { .auth-intro { display: none; } .auth-layout { display: block; max-width: 560px; padding: 40px 24px; } .brand { font-size: 18px; gap: 10px; } .brand-mark { width: 36px; height: 36px; font-size: 22px; } .account-nav { font-size: 14px; gap: 12px; } .account-nav > span { display: none; } .site-header { height: 72px; padding: 0 24px; } .auth-layout, .workspace { min-height: calc(100svh - 148px); } }
@media (max-width: 480px) { .site-header { padding: 0 18px; } .brand { font-size: 16px; } .auth-layout { padding: 28px 16px; } .auth-card { padding: 28px 24px; } h1 { font-size: 30px; } .form-description { font-size: 15px; margin-bottom: 28px; } .form-options, .form-links { font-size: 14px; } .site-footer { font-size: 12px; } .workspace-content { padding: 24px; } }

/* Signed-in workspace navigation */
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100svh - 156px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.sidebar-toggle { display: none; }
.sidebar-inner { min-height: 100%; display: flex; flex-direction: column; padding: 30px 18px 22px; }
.sidebar-label { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0 12px 14px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; color: #596273; font-weight: 500; font-size: 15px; min-height: 48px; }
.sidebar-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-link:hover { background: #f7f8fa; color: var(--text); text-decoration: none; }
.sidebar-link[aria-current="page"] { color: var(--accent); background: #fff0ef; font-weight: 600; }
.sidebar-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 32px; }
.sidebar-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #f4f5f7; color: #697285; font-size: 14px; font-weight: 600; }
.sidebar-account > div { min-width: 0; }
.sidebar-account .sidebar-label { margin: 0; }
.sidebar-account p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; margin: 0; color: #596273; }
.app-main { padding: 28px 40px 48px; min-width: 0; }
.app-main .workspace-content { max-width: 1120px; }
.app-main h1 { font-size: 30px; }
.account-content { max-width: 680px !important; }
@media (max-width: 850px) {
  .app-shell { display: block; min-height: calc(100svh - 148px); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-toggle { display: list-item; padding: 14px 24px; color: #596273; font-size: 14px; }
  .sidebar-inner { padding: 8px 16px 20px; }
  .sidebar-account { padding-top: 20px; }
  .app-main { padding: 24px 16px 36px; }
}

/* 店铺管理与通用内容区块 */
.section-head > div { flex: 1 1 auto; min-width: 0; }
.section-head > form { flex: 0 0 auto; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.section-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.button-secondary { width: auto; min-height: 44px; padding: 10px 18px; background: #fff; border: 1px solid #cdd2da; color: var(--text); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.button-secondary:hover { background: #f7f8fa; border-color: #b8bfc9; text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card { background: #fbfbfc; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; line-height: 1.2; font-weight: 700; }
.stat-value-danger { color: #a3312d; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.data-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 13px 18px; background: #fbfbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-strong { display: block; font-weight: 600; color: var(--text); }
.cell-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.cell-muted { color: var(--muted); }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #596273; white-space: nowrap; }
.cell-nowrap { white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-success { background: #edf8f0; color: #24683b; }
.badge-warning { background: #fdf6e6; color: #8a6100; }
.badge-danger { background: #fff1f0; color: #a3312d; }
.badge-neutral { background: #f2f3f5; color: #606b7b; }
.empty-state { border: 1px dashed #d7dbe2; border-radius: var(--radius); padding: 52px 32px; text-align: center; background: #fcfcfd; }
.empty-state h2 { font-size: 18px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 22px; }
.table-footnote { color: var(--muted); font-size: 13px; margin: 14px 0 0; line-height: 1.75; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fbfbfc; }
.panel h2 { font-size: 16px; margin: 0 0 10px; }
.panel p { margin: 0 0 18px; }
.link-strong { font-weight: 600; }
.app-main .section-head h1 { margin-bottom: 0; }
@media (max-width: 850px) {
  .section-head { flex-direction: column; align-items: stretch; }
  .button-secondary { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
