:root {
  --ink: #18261f;
  --muted: #7a8980;
  --line: #e8eee9;
  --panel: #ffffff;
  --canvas: #f6f8f5;
  --green: #2b765c;
  --green-deep: #205b48;
  --green-soft: #e6f3ed;
  --yellow: #e9b84f;
  --yellow-soft: #fff6d8;
  --purple: #8c79c7;
  --purple-soft: #f1edfb;
  --red: #d7655d;
  --red-soft: #fff0ee;
  --shadow: 0 16px 40px rgba(27, 53, 42, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 26px 16px 18px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 28px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--green); font-size: 18px; box-shadow: 0 7px 16px rgba(43, 118, 92, .24); }
.brand strong { display: block; font-size: 16px; letter-spacing: .04em; }
.brand span { display: block; margin-top: 2px; color: #a0aaa4; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.merchant-switcher { display: flex; align-items: center; padding: 10px; margin: 0 0 26px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.merchant-avatar, .profile-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--yellow-soft); color: #aa7c13; font-weight: 800; }
.merchant-copy { min-width: 0; margin-left: 10px; flex: 1; }
.merchant-copy strong, .profile-row strong { display: block; font-size: 12px; }
.merchant-copy span, .profile-row span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.chevron { color: #96a39c; font-size: 20px; transform: translateY(-2px); }
.nav-label { padding: 0 13px 9px; color: #a0aba4; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.nav-label-spaced { margin-top: 30px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 13px; margin: 3px 0; border-radius: 11px; color: #748179; background: transparent; text-align: left; transition: .2s ease; }
.nav-item:hover { color: var(--green); background: #f4f8f5; }
.nav-item.active { color: var(--green-deep); background: var(--green-soft); font-weight: 700; }
.nav-icon { width: 17px; color: #8c9b92; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: var(--green); }
.sidebar-footer { margin-top: auto; }
.help-card { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-radius: 14px; background: #f8f3e9; color: #765f2f; }
.help-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #fff1c4; font-weight: 800; }
.help-card strong { display: block; font-size: 11px; }
.help-card span { display: block; color: #a18a59; font-size: 10px; margin-top: 3px; }
.help-card .arrow { margin-left: auto; font-size: 17px; }
.profile-row { display: flex; align-items: center; gap: 10px; padding: 20px 5px 0; }
.profile-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--green); }
.profile-row .more { margin-left: auto; letter-spacing: 2px; color: #9aa59f; }
.main { flex: 1; min-width: 0; padding: 28px 42px 55px; }
.topbar { height: 69px; display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow, .section-kicker, .hero-kicker { color: #99a69e; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.topbar h1 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.icon-button { position: relative; color: #829188; background: transparent; font-size: 21px; }
.notification-dot { position: absolute; width: 6px; height: 6px; top: 1px; right: 0; border: 2px solid var(--canvas); border-radius: 50%; background: var(--red); }
.button { border-radius: 10px; padding: 11px 17px; font-weight: 700; transition: .2s ease; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(43, 118, 92, .18); }
.button-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.button-soft { color: var(--green-deep); background: var(--green-soft); }
.button-soft:hover { background: #d9eee4; }
.page { display: none; animation: fade .25s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hero { position: relative; overflow: hidden; min-height: 185px; display: flex; align-items: center; justify-content: space-between; padding: 32px 44px; border-radius: 20px; background: linear-gradient(108deg, #e2f0e8, #f8f3e9 73%); }
.hero h2 { margin: 10px 0 7px; font-size: 25px; letter-spacing: -.04em; }
.hero h2 span { color: var(--yellow); font-size: 19px; }
.hero p { margin: 0; color: #76867c; }
.hero-illustration { position: relative; width: 230px; height: 160px; margin-right: 24px; }
.gift-box { position: absolute; z-index: 2; left: 83px; top: 45px; width: 76px; height: 61px; border-radius: 8px 8px 14px 14px; background: #d79f37; box-shadow: 0 18px 22px rgba(121, 91, 34, .2); transform: rotate(-8deg); }
.gift-box:before { content: ""; position: absolute; left: -5px; right: -5px; top: -9px; height: 16px; border-radius: 7px; background: #efc764; }
.gift-box:after { content: ""; position: absolute; top: -9px; bottom: 0; left: 32px; width: 11px; background: #f5d68a; }
.gift-box span { position: absolute; z-index: 2; left: 28px; top: 25px; color: #9b7123; font-size: 20px; font-weight: 800; }
.orbit { position: absolute; border: 1px solid rgba(43, 118, 92, .2); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 180px; height: 72px; left: 28px; top: 47px; }
.orbit-two { width: 205px; height: 93px; left: 12px; top: 38px; transform: rotate(22deg); }
.spark { position: absolute; color: #d3a331; font-size: 20px; }
.spark-one { top: 25px; left: 65px; }.spark-two { bottom: 27px; right: 24px; color: var(--green); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 22px 0; }
.stat-grid.compact { margin-top: 0; }
.stat-card { position: relative; min-height: 123px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 5px 16px rgba(42, 59, 50, .025); }
.stat-label { color: var(--muted); font-size: 12px; }.stat-value { margin-top: 10px; font-size: 27px; font-weight: 800; letter-spacing: -.05em; }
.stat-trend { margin-top: 9px; color: var(--green); font-size: 11px; }.stat-trend.muted { color: #9ca8a1; }
.stat-icon { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.stat-icon.green { color: var(--green); background: var(--green-soft); }.stat-icon.yellow { color: #a77b15; background: var(--yellow-soft); }.stat-icon.purple { color: var(--purple); background: var(--purple-soft); }.stat-icon.red { color: var(--red); background: var(--red-soft); }
.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 17px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(42, 59, 50, .025); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 22px 23px 17px; }
.panel-heading h3 { margin: 5px 0 0; font-size: 16px; }.text-button { padding: 5px; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; }
.order-row { display: flex; align-items: center; gap: 13px; padding: 15px 23px; border-top: 1px solid #f0f3f1; }
.order-product { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: #b07722; background: #fbf1dc; font-size: 18px; }
.order-main { flex: 1; min-width: 0; }.order-main strong { display: block; font-size: 12px; }.order-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.order-time { color: #a1aca5; font-size: 11px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.green { color: #287259; background: var(--green-soft); }.badge.yellow { color: #9b771d; background: var(--yellow-soft); }.badge.purple { color: #6d5ba4; background: var(--purple-soft); }.badge.red { color: #b14e48; background: var(--red-soft); }.badge.gray { color: #758078; background: #eef1ef; }
.quick-panel { padding-bottom: 12px; }.quick-actions { padding: 0 14px 13px; }.quick-action { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 9px; border-top: 1px solid #f0f3f1; color: var(--ink); background: transparent; text-align: left; }.quick-action:hover strong { color: var(--green); }.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }.quick-icon.green { color: var(--green); background: var(--green-soft); }.quick-icon.yellow { color: #a77b15; background: var(--yellow-soft); }.quick-icon.purple { color: var(--purple); background: var(--purple-soft); }.quick-action span:nth-child(2) { flex: 1; }.quick-action strong { display: block; font-size: 12px; }.quick-action small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.quick-action b { color: #9aa69f; font-size: 17px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 23px; }.page-intro h2 { margin: 7px 0 5px; font-size: 26px; letter-spacing: -.04em; }.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }.search-box { display: flex; align-items: center; gap: 8px; width: 270px; height: 37px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.search-box span { color: #98a69d; font-size: 21px; transform: rotate(-15deg); }.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }.search-box.small { width: 220px; height: 34px; }.toolbar-right { display: flex; gap: 5px; }.filter-button { padding: 8px 12px; border-radius: 8px; color: #8b9790; background: transparent; font-size: 11px; }.filter-button.active { color: var(--green-deep); background: var(--green-soft); font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(42, 59, 50, .025); }.project-cover { height: 112px; position: relative; padding: 17px; overflow: hidden; background: linear-gradient(120deg, #dceee4, #f9eecf); }.project-cover.crab { background: linear-gradient(120deg, #f8e0bd, #f5c8b8); }.project-cover.wine { background: linear-gradient(120deg, #e7d9ee, #f4d6d4); }.project-cover:after { content: "礼"; position: absolute; right: 18px; top: 10px; color: rgba(255,255,255,.7); font-size: 76px; font-weight: 800; transform: rotate(15deg); }.project-cover .cover-tag { position: relative; z-index: 1; display: inline-block; padding: 5px 8px; border-radius: 6px; color: rgba(30,70,53,.7); background: rgba(255,255,255,.55); font-size: 10px; font-weight: 700; }.project-body { padding: 17px; }.project-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.project-title h3 { margin: 0; font-size: 14px; line-height: 1.4; }.project-product { margin-top: 5px; color: var(--muted); font-size: 11px; }.project-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding-top: 15px; margin-top: 15px; border-top: 1px solid #f0f3f1; }.project-data span { display: block; color: #a0aaa4; font-size: 10px; }.project-data strong { display: block; margin-top: 4px; font-size: 13px; }.project-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; color: var(--muted); font-size: 10px; }.project-link { color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }
.order-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 17px; }.summary-chip { padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.summary-chip span { color: var(--muted); font-size: 11px; }.summary-chip strong { display: block; margin-top: 5px; font-size: 20px; }.summary-chip.green strong { color: var(--green); }.summary-chip.yellow strong { color: #b08318; }.summary-chip.purple strong { color: var(--purple); }
.table-panel { overflow: hidden; }.table-wrap { overflow-x: auto; padding: 0 9px 10px; }table { width: 100%; min-width: 760px; border-collapse: collapse; }th { padding: 11px 14px; color: #9aa59f; font-size: 10px; font-weight: 700; text-align: left; }td { padding: 15px 14px; border-top: 1px solid #f0f3f1; color: #526158; font-size: 12px; }td strong { color: var(--ink); font-size: 12px; }td small { display: block; margin-top: 4px; color: #9aa59f; font-size: 10px; }.table-action { padding: 5px; color: var(--green); background: transparent; font-size: 11px; font-weight: 700; }.empty { padding: 38px; color: var(--muted); text-align: center; }
.order-toolbar { padding-bottom: 12px; }.tabs { display: flex; gap: 18px; }.tab { position: relative; padding: 8px 0; color: #99a49d; background: transparent; font-size: 12px; }.tab.active { color: var(--green-deep); font-weight: 800; }.tab.active:after { content: ""; position: absolute; bottom: -13px; left: 0; right: 0; height: 2px; border-radius: 3px; background: var(--green); }.tab em { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 3px; padding: 0 4px; border-radius: 99px; color: #b14e48; background: var(--red-soft); font-size: 9px; font-style: normal; }
.settings-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 17px; }.settings-card { padding-bottom: 23px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 23px; }.form-grid label, form label { display: block; color: #64736a; font-size: 11px; font-weight: 700; }.form-grid input, .form-grid textarea, form input, form select { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fcfdfc; font-size: 12px; font-weight: 400; }.form-grid input:focus, .form-grid textarea:focus, form input:focus, form select:focus { border-color: #9fcdb9; box-shadow: 0 0 0 3px rgba(43, 118, 92, .08); }.form-grid textarea { min-height: 80px; resize: vertical; }.form-grid .full { grid-column: 1 / -1; }.connected { color: var(--green); font-size: 11px; }.connected i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); }.integration-card { display: flex; align-items: center; gap: 12px; padding: 15px 23px; margin: 0 23px; border: 1px solid var(--line); border-radius: 12px; }.integration-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: #549e8c; font-weight: 800; }.integration-card strong { font-size: 12px; }.integration-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.integration-card .check { margin-left: auto; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 12px; }.setting-note { padding: 15px 23px 0; color: #a3ada7; font-size: 10px; line-height: 1.6; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(20, 37, 29, .3); backdrop-filter: blur(4px); }.modal-backdrop.open { display: grid; }.modal { position: relative; width: min(450px, 100%); padding: 29px; border-radius: 19px; background: #fff; box-shadow: 0 26px 80px rgba(20, 42, 31, .2); }.modal h2 { margin: 8px 0 5px; font-size: 23px; letter-spacing: -.04em; }.modal-subtitle { margin: 0 0 23px; color: var(--muted); font-size: 12px; }.modal-close { position: absolute; top: 14px; right: 16px; width: 29px; height: 29px; border-radius: 50%; color: #8e9b93; background: #f4f7f4; font-size: 20px; line-height: 20px; }.modal form { display: grid; gap: 14px; }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }.detail-modal { width: min(580px, 100%); }.detail-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.detail-icon { display: grid; place-items: center; width: 47px; height: 47px; overflow: hidden; border-radius: 14px; color: #b07722; background: #fbf1dc; font-size: 22px; }
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }.detail-head h2 { margin: 0; font-size: 18px; }.detail-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 19px 0; }.detail-block { padding: 13px; border-radius: 11px; background: #f8faf8; }.detail-block span { color: #9ba69f; font-size: 10px; }.detail-block strong { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; }.detail-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }.toast { position: fixed; z-index: 30; right: 28px; bottom: 25px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid #d8e9df; border-radius: 12px; color: var(--green-deep); background: #fff; box-shadow: 0 15px 35px rgba(34, 73, 56, .16); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }.toast.show { opacity: 1; transform: none; }.toast > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--green); font-size: 11px; }.toast b { font-size: 12px; }.toast small { color: var(--muted); font-size: 10px; }
@media (max-width: 1100px) { .sidebar { width: 216px; }.main { padding: 25px 26px 45px; }.project-grid { grid-template-columns: repeat(2, 1fr); }.content-grid { grid-template-columns: 1fr; }.hero-illustration { margin-right: 0; } }
@media (max-width: 760px) { .sidebar { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; width: auto; height: 64px; padding: 7px 10px; border-top: 1px solid var(--line); border-right: 0; }.brand, .merchant-switcher, .nav-label, .sidebar-footer { display: none; }.nav { display: flex; justify-content: space-around; }.nav-item { width: auto; display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; font-size: 10px; }.nav-icon { font-size: 15px; }.nav-label-spaced { display: none; }.main { padding: 21px 15px 90px; }.topbar { height: auto; margin-bottom: 23px; }.topbar h1 { font-size: 21px; }.topbar-actions .icon-button { display: none; }.topbar-actions .button { padding: 9px 11px; font-size: 11px; }.hero { min-height: 160px; padding: 23px; }.hero h2 { font-size: 20px; }.hero p { max-width: 210px; line-height: 1.6; }.hero-illustration { position: absolute; right: -25px; opacity: .65; transform: scale(.75); }.stat-grid, .order-summary { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { min-height: 107px; padding: 14px; }.stat-value { font-size: 22px; }.stat-icon { top: 13px; right: 13px; }.page-intro { align-items: flex-start; gap: 12px; flex-direction: column; }.page-intro h2 { font-size: 23px; }.toolbar { align-items: stretch; flex-direction: column; gap: 11px; }.search-box { width: 100%; }.toolbar-right { overflow: auto; }.project-grid { grid-template-columns: 1fr; }.settings-layout { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.order-toolbar { align-items: stretch; flex-direction: column; gap: 13px; }.tabs { gap: 14px; overflow: auto; }.tab.active:after { bottom: -13px; }.detail-grid { grid-template-columns: 1fr; }.modal { padding: 24px 20px; } }
.cards-modal { width: min(980px, 100%); max-height: 88vh; overflow-y: auto; }
.cards-toolbar { display: flex; align-items: center; gap: 10px; padding-top: 16px; flex-wrap: wrap; }
.card-status-select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; }
.cards-actions { display: flex; gap: 8px; margin-left: auto; }
.codes-warning { margin: 12px 0 0; padding: 9px 12px; border-radius: 9px; color: #8a6a2f; background: #fdf6e6; font-size: 11px; }
.cards-table-wrap { max-height: 56vh; overflow: auto; margin-top: 10px; padding: 0; border: 1px solid #f0f3f1; border-radius: 12px; }
.cards-table-wrap table { min-width: 760px; }
.cards-table-wrap thead th { position: sticky; top: 0; z-index: 1; background: #fff; }
.pickup-code { padding: 3px 7px; border-radius: 6px; color: #173f34; background: #eef6f1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.card-qr { display: block; width: 42px; height: 42px; border: 1px solid #eef1ef; border-radius: 6px; background: #fff; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 0; color: var(--muted); font-size: 11px; }
.pager-buttons { display: flex; align-items: center; gap: 9px; }
.page-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-deep); background: #fff; font-size: 11px; font-weight: 700; }
.page-button:disabled { opacity: .4; }
.table-actions { display: flex; gap: 4px; white-space: nowrap; }
.table-actions .table-action { padding: 5px 7px; border-radius: 6px; }
.table-actions .table-action:hover { background: var(--green-soft); }
@media (max-width: 760px) { .cards-toolbar { align-items: stretch; flex-direction: column; }.cards-actions { margin-left: 0; }.cards-actions .button { flex: 1; }.cards-table-wrap { max-height: 50vh; }.pager { align-items: flex-start; flex-direction: column; } }
.page-intro-actions { display: flex; gap: 9px; }
@media (max-width: 760px) { .page-intro-actions { width: 100%; }.page-intro-actions .button { flex: 1; } }
.field-hint { margin: -8px 0 0; color: #9aa59f; font-size: 10px; line-height: 1.6; }
.cancel-warning { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; color: #8a5a2b; background: #fdf3e2; font-size: 11px; line-height: 1.7; }
.order-logistics { margin: 0 0 16px; padding: 14px; border-radius: 12px; background: #f8faf8; }
.logistics-hint { margin: 0; color: #8b9790; font-size: 11px; line-height: 1.7; text-align: center; }
.logistics-error { margin: 0; color: #b14e48; font-size: 11px; line-height: 1.7; text-align: center; }
.logistics-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.logistics-head strong { color: var(--green-deep); font-size: 13px; }
.logistics-head span { color: #9aa59f; font-size: 10px; }
.logistics-timeline { display: grid; gap: 10px; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.logistics-item { display: flex; gap: 9px; }
.logistics-item i { width: 8px; height: 8px; margin-top: 5px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
.logistics-item b { display: block; color: #3f4b44; font-size: 11px; font-weight: 500; line-height: 1.6; }
.logistics-item small { display: block; margin-top: 3px; color: #9aa59f; font-size: 10px; }
.modal-hint { margin: -6px 0 4px; color: #8b9790; font-size: 11px; line-height: 1.7; }
.product-modal { width: min(900px, 100%); max-height: 90vh; overflow-y: auto; }
.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product-form-grid .full { grid-column: 1 / -1; }
.product-form-grid textarea { display: block; width: 100%; min-height: 70px; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fcfdfc; font-size: 12px; font-weight: 400; resize: vertical; }
.product-form-grid textarea:focus { border-color: #9fcdb9; box-shadow: 0 0 0 3px rgba(43, 118, 92, .08); }
.image-field { display: grid; gap: 8px; }
.field-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.upload-dropzone { position: relative; min-height: 190px; display: flex; align-items: center; justify-content: center; padding: 18px; border: 1.5px dashed #cfdad2; border-radius: 14px; background: #fbfdfb; cursor: pointer; transition: border-color .2s ease, background .2s ease; overflow: hidden; }
.upload-dropzone:hover, .upload-dropzone:focus-visible, .upload-dropzone.drag-over { border-color: #79b79d; background: #f3faf6; outline: none; }
.upload-dropzone.has-image { border-style: solid; border-color: var(--line); background: #f4f7f4; }
.upload-dropzone.uploading { pointer-events: none; opacity: .75; }
.upload-dropzone.uploading:after { content: "上传中…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .72); color: var(--green-deep); font-size: 12px; font-weight: 700; }
.upload-preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-dropzone.has-image .upload-preview { display: block; }
.upload-placeholder { display: grid; justify-items: center; gap: 7px; color: #718078; text-align: center; }
.upload-dropzone.has-image .upload-placeholder { display: none; }
.upload-placeholder-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 22px; line-height: 1; }
.upload-placeholder strong { color: #41544a; font-size: 12px; }
.upload-placeholder small { color: #94a199; font-size: 10px; }
.upload-toolbar { display: none; position: absolute; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: #fff; background: linear-gradient(transparent, rgba(15, 30, 23, .72)); font-size: 10px; }
.upload-dropzone.has-image .upload-toolbar { display: flex; }
.upload-remove { padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(255, 255, 255, .18); font-size: 10px; font-weight: 700; }
.upload-remove:hover { background: rgba(209, 92, 84, .85); }
.upload-gallery { display: flex; flex-wrap: wrap; gap: 9px; min-height: 84px; padding: 4px; border-radius: 12px; }
.upload-gallery.drag-over { background: #f3faf6; outline: 1.5px dashed #79b79d; }
.upload-gallery.uploading { opacity: .7; pointer-events: none; }
.upload-tile { position: relative; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f4f7f4; }
.upload-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-tile-remove { position: absolute; top: 4px; right: 4px; width: 19px; height: 19px; border-radius: 50%; color: #fff; background: rgba(30, 45, 37, .66); font-size: 12px; line-height: 19px; }
.upload-tile-remove:hover { background: var(--red); }
.upload-tile-add { display: grid; place-items: center; align-content: center; gap: 3px; border-style: dashed; color: #819187; background: #fbfdfb; cursor: pointer; }
.upload-tile-add span { color: var(--green); font-size: 22px; line-height: 1; }
.upload-tile-add small { font-size: 10px; }
.upload-tile-add:hover { border-color: #79b79d; background: #f3faf6; color: var(--green-deep); }
.upload-hint { color: #9aa59f; font-size: 10px; }
.product-options { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.options-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.options-head strong { font-size: 12px; }
.field-hint-inline { margin-left: 8px; color: #a3ada7; font-size: 10px; }
.option-row { display: grid; grid-template-columns: 74px 1.2fr 1.5fr 80px 40px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #f0f3f1; }
.option-row input[type="text"], .option-row input[type="number"] { margin: 0; padding: 8px 10px; font-size: 11px; }
.option-image-cell { position: relative; width: 64px; height: 58px; display: grid; place-items: center; border: 1.5px dashed #d5ded8; border-radius: 8px; background: #fbfdfb; cursor: pointer; overflow: hidden; }
.option-image-cell:hover, .option-image-cell:focus-visible { border-color: #79b79d; background: #f3faf6; outline: none; }
.option-image-cell.has-image { border-style: solid; border-color: var(--line); }
.option-image-preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.option-image-cell.has-image .option-image-preview { display: block; }
.option-image-empty { display: grid; justify-items: center; gap: 1px; color: #8a9a90; font-size: 16px; line-height: 1; }
.option-image-empty small { font-size: 9px; }
.option-image-cell.has-image .option-image-empty { display: none; }
.option-image-remove { display: none; position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: rgba(30, 45, 37, .68); font-size: 11px; line-height: 17px; }
.option-image-cell.has-image .option-image-remove { display: grid; place-items: center; }
.option-image-remove:hover { background: var(--red); }
.option-enabled { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.option-enabled input { width: auto; margin: 0; }
.option-remove { padding: 5px; color: #b14e48; background: transparent; font-size: 11px; font-weight: 700; }
.rich-field { display: grid; gap: 8px; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: #f8faf8; }
.rich-toolbar button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: #3f4b44; background: #fff; font-size: 11px; }
.rich-editor { min-height: 180px; padding: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; font-size: 12px; line-height: 1.8; outline: 0; }
.rich-editor:empty:before { content: "在这里编辑商品详情，支持标题、加粗、列表等排版"; color: #a3ada7; }
.rich-editor h2, .rich-editor h3 { margin: 12px 0 6px; color: var(--ink); }
.rich-editor p { margin: 6px 0; }
.rich-editor ul, .rich-editor ol { padding-left: 20px; }
.rich-editor ul { list-style: disc; }
.rich-editor ol { list-style: decimal; }
@media (max-width: 760px) { .product-form-grid { grid-template-columns: 1fr; }.product-form-grid .full { grid-column: auto; }.option-row { grid-template-columns: 1fr 1fr; }.option-row .option-remove { grid-column: 2; justify-self: end; }.product-modal { padding: 20px 16px; } }
.project-cover.has-image { background-size: cover; background-position: center; }
.project-cover.has-image:after { display: none; }
.project-cover.has-image .cover-tag { color: #fff; background: rgba(0, 0, 0, .45); }
.project-slogan { margin-top: 6px; color: #a26932; font-size: 10px; }
.project-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 登录与权限 ---------- */
body:not(.authed) .app-shell { display: none; }
body.authed .login-screen { display: none; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 15% 10%, #e4f1e9, transparent 65%), radial-gradient(800px 450px at 90% 90%, #f8f1df, transparent 60%), var(--canvas); }
.login-card { width: min(390px, 100%); padding: 34px 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 26px 70px rgba(22, 48, 36, .12); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.login-brand strong { display: block; font-size: 16px; letter-spacing: .04em; }
.login-brand span { display: block; margin-top: 2px; color: #a0aaa4; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.login-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.login-subtitle { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 14px; }
.login-card form label { display: block; color: #64736a; font-size: 11px; font-weight: 700; }
.login-card form input { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fcfdfc; font-size: 13px; font-weight: 400; }
.login-card form input:focus { border-color: #9fcdb9; box-shadow: 0 0 0 3px rgba(43, 118, 92, .08); }
.login-error { min-height: 16px; margin: 0; color: var(--red); font-size: 11px; }
.login-submit { width: 100%; padding: 12px; }
.login-submit:disabled { opacity: .6; transform: none; cursor: wait; }
.logout-button { margin-left: auto; padding: 4px 7px; border-radius: 6px; color: #8b9790; background: transparent; font-size: 10px; }
.logout-button:hover { color: var(--red); background: var(--red-soft); }
.audit-panel { margin-top: 17px; overflow: hidden; }
.audit-list { max-height: 360px; overflow-y: auto; }
.audit-row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 23px; border-top: 1px solid #f0f3f1; }
.audit-main { flex: 1; min-width: 0; }
.audit-main strong { display: block; font-size: 12px; }
.audit-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; word-break: break-all; }
.audit-meta { text-align: right; white-space: nowrap; }
.audit-meta span { display: block; color: #6b7a71; font-size: 10px; font-weight: 700; }
.audit-meta small { display: block; margin-top: 4px; color: #a3ada7; font-size: 10px; }
@media (max-width: 760px) { .login-card { padding: 26px 20px; } .audit-row { padding: 12px 16px; } .audit-meta small { display: none; } }
.logistics-form { padding-top: 0; }
.logistics-actions { display: flex; justify-content: flex-end; }
.connected.disconnected { color: var(--muted); }
.connected.disconnected i { background: #c3ccc6; }
@media (max-width: 760px) { .logistics-actions .button { width: 100%; } }
