.merchant-shell { --accent: #167665; --ink-3: #727b80; display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; background: #f3f5f5; letter-spacing: 0; }
.merchant-shell * { letter-spacing: 0; }
.merchant-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 16px; background: #202a29; color: #dce4e1; }
.workspace-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 650; }
.workspace-brand img { width: 37px; height: 37px; border-radius: 8px; }
.workspace-brand small { display: block; margin-top: 2px; color: #a7b7b1; font-size: 10px; font-weight: 400; }
.nav-caption { padding: 0 14px; margin: 12px 0 8px; color: #a2b1ac; font-size: 11px; }
.workspace-nav { display: grid; gap: 5px; margin-bottom: 18px; }
.workspace-nav button { display: flex; align-items: center; gap: 13px; padding: 12px 14px; background: transparent; color: #c0cdc7; text-align: left; border-radius: 5px; }
.workspace-nav button:hover { background: #2c3936; opacity: 1; }
.workspace-nav button.active { background: #355249; color: #fff; box-shadow: inset 3px 0 #85c5ab; }
.workspace-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #3a4541; padding-top: 18px; }
.sidebar-identity { display: flex; gap: 10px; align-items: center; padding: 0 8px; }
.sidebar-identity > div { min-width: 0; }
.sidebar-identity b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-identity small { display: block; color: #a2b1ac; font-size: 11px; }
.merchant-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; background: #495951; color: #fff; border-radius: 6px; }
.sidebar-logout { display: flex; align-items: center; gap: 12px; color: #b4c1bb; background: transparent; margin-top: 15px; width: 100%; font-size: 12px; }
.workspace-body { min-width: 0; display: flex; flex-direction: column; }
.workspace-topbar { min-height: 65px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e1e6e3; background: #fff; }
.workspace-breadcrumb { color: #727b80; font-size: 12px; }
.workspace-breadcrumb span { padding: 0 10px; color: #b6bfba; }
.workspace-breadcrumb b { color: #293631; font-weight: 500; }
.workspace-top-actions { display: flex; align-items: center; gap: 20px; }
.role-tag { font-size: 11px; color: #60736a; }
.workspace-preview { display: flex; gap: 7px; align-items: center; color: #394d43; text-decoration: none; font-size: 12px; }
.workspace-main { width: 100%; max-width: 1720px; margin: 0 auto; padding: 30px 32px 48px; flex: 1; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.workspace-heading h1 { font-size: 26px; line-height: 1.4; font-weight: 650; color: #23362e; }
.workspace-kicker { margin: 0 0 6px; color: #76827c; font-size: 11px; }
.workspace-subtitle { margin: 8px 0 0; font-size: 12px; color: #707d76; overflow-wrap: anywhere; }
.heading-dot { padding: 0 8px; }
.welcome-banner { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 26px; padding: 22px 24px; border: 1px solid #d9e7df; border-left: 3px solid #629680; background: #edf5ef; }
.welcome-banner-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; }
.welcome-banner-copy { flex: 1; min-width: 0; }
.welcome-banner h2 { font-size: 18px; line-height: 1.5; font-weight: 600; color: #2c5140; overflow-wrap: anywhere; }
.welcome-banner p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #6b8072; }
.welcome-banner-role { color: #617c6a; font-size: 11px; flex-shrink: 0; }
@media (max-width: 950px) { .welcome-banner { padding: 18px; gap: 12px; } .welcome-banner-role { display: none; } .welcome-banner h2 { font-size: 16px; } }
@media (max-width: 460px) { .welcome-banner { padding: 16px 12px; gap: 10px; align-items: flex-start; margin-bottom: 22px; } .welcome-banner-mark { width: 36px; height: 36px; flex-basis: 36px; } .welcome-banner h2 { font-size: 15px; } .welcome-banner p { font-size: 11px; } }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }
.workspace-primary, .workspace-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; font-size: 12px; padding: 9px 14px; border-radius: 5px; text-decoration: none; }
.workspace-primary { background: #167665; color: white; }
.workspace-secondary { background: #fff; border: 1px solid #d8e0db; color: #334a3d; }
.overview-toolbar, .region-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.overview-toolbar { margin-bottom: 12px; }
.overview-toolbar h2, .region-heading h2 { font-size: 14px; font-weight: 650; }
.overview-toolbar > div { display: flex; gap: 8px; align-items: center; }
.overview-toolbar select { width: 112px; padding: 5px 9px; font-size: 12px; }
#overviewStatus { font-size: 11px; color: #76827c; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dce3df; color: #53685c; background: #fff; }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: white; border: 1px solid #e0e6e2; padding: 22px 0; margin-bottom: 24px; }
.metric { padding: 0 24px; border-right: 1px solid #e9edea; min-width: 0; }
.metric:last-child { border: 0; }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: #64746a; font-size: 12px; gap: 8px; }
.metric-label .workspace-icon { color: #6c9384; width: 16px; height: 16px; }
.metric strong { display: block; margin: 8px 0 2px; font: 500 34px/1.3 Arial, sans-serif; font-variant-numeric: tabular-nums; color: #22382d; }
.metric small { color: #818b85; font-size: 11px; }
.metric:nth-child(3) .workspace-icon { color: #c69247; }
.metric:nth-child(4) .workspace-icon { color: #7a80ae; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.overview-primary, .overview-secondary { min-width: 0; }
.workspace-region { background: #fff; border-top: 2px solid #dbe3df; margin-bottom: 24px; padding: 22px 24px; }
.region-heading { margin-bottom: 22px; }
.region-heading p { margin: 5px 0 0; font-size: 11px; color: #7c8780; }
.text-action { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: transparent; color: #557566; font-size: 12px; flex-shrink: 0; }
.contact-breakdown { display: grid; gap: 24px; padding: 2px 0 25px; }
.contact-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 44px; align-items: center; gap: 16px; font-size: 12px; color: #55675b; }
.contact-track { height: 12px; background: #f0f4f1; }
.contact-fill { height: 100%; background: #438d77; }
.contact-row:nth-child(2) .contact-fill { background: #c5a260; }
.contact-row:nth-child(3) .contact-fill { background: #8490b3; }
.contact-row b { text-align: right; font: 500 16px Arial, sans-serif; }
.performance-footer { border-top: 1px solid #edf0ee; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 11px; color: #7b877f; }
.performance-footer b { color: #405549; font-weight: 600; margin-left: 6px; }
.muted { color: #7c8780; font-size: 12px; }
.portfolio-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 30px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #edf0ee; }
.portfolio-image { width: 62px; height: 54px; object-fit: cover; border-radius: 4px; background: #e6ede8; }
.image-unavailable { display: grid; place-items: center; font-size: 10px; color: #718578; }
.portfolio-row b { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.portfolio-row small { display: block; font-size: 11px; margin-top: 4px; color: #859087; }
.portfolio-type { color: #688271; background: #f0f5f1; padding: 2px 8px; font-size: 10px; border-radius: 3px; }
.store-region { background: #fff; margin-bottom: 24px; }
.store-cover { height: 126px; overflow: hidden; background: #dfe8e2; display: grid; place-items: center; color: #6d8375; }
.store-cover img { height: 100%; width: 100%; object-fit: cover; }
.store-caption { padding: 18px 20px; }
.store-label { font-size: 10px; color: #7c8d80; }
.store-caption h2 { font-size: 16px; margin-top: 5px; }
.store-caption p { font-size: 11px; color: #7e8b82; margin: 6px 0 12px; overflow-wrap: anywhere; }
.store-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #617a69; }
.store-url { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #edf0ee; color: #5a7263; text-decoration: none; font-size: 11px; overflow-wrap: anywhere; }
.checklist-region .region-heading { margin-bottom: 12px; }
#profileScore { color: #438068; font: 500 20px Arial, sans-serif; }
#profileProgress { width: 100%; height: 5px; display: block; appearance: none; border: 0; margin: 0 0 14px; }
#profileProgress::-webkit-progress-bar { background: #ecf1ed; }
#profileProgress::-webkit-progress-value { background: #58977c; }
#profileProgress::-moz-progress-bar { background: #58977c; }
.checklist-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 0; background: transparent; border-bottom: 1px solid #eff2ef; border-radius: 0; color: #6d7c72; font-size: 12px; text-align: left; }
.checklist-row .workspace-icon { color: #63a386; width: 15px; height: 15px; }
.checklist-row span:last-child { margin-left: auto; font-size: 10px; color: #8e9a92; }
.checklist-row.pending .workspace-icon, .checklist-row.pending span:last-child { color: #b48945; }
.workspace-footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 32px; border-top: 1px solid #e4e9e5; color: #87938a; font-size: 10px; }
.merchant-shell .panel { max-width: none; padding: 0 0 70px; }
.content-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(320px, 380px); gap: 20px; align-items: start; }
/* 分区导航放在表单上方，参与正常排版，滚动时不能覆盖编辑内容。 */
.content-nav { display: flex; flex-wrap: wrap; gap: 6px; position: static; margin-bottom: 12px; padding: 12px; border: 1px solid #e0e6e2; background: #fff; }
.content-nav button { flex: 0 0 auto; min-height: 36px; background: transparent; color: #67796c; padding: 8px 10px; text-align: left; font-size: 12px; line-height: 1.5; white-space: nowrap; border-radius: 4px; }
.content-nav button.active { color: #166e55; background: #e3eee7; font-weight: 600; }
.merchant-shell .section { border: 0; border-radius: 0; margin: 0; }
.merchant-shell .section > summary { background: white; padding: 20px 24px; cursor: default; }
.merchant-shell .section > summary::after { display: none; }
.merchant-shell .section-body { padding: 24px; }
.merchant-shell .section-body .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.merchant-shell .savebar { left: 218px; padding: 12px 32px; }
.template-picker { position: sticky; top: 20px; min-width: 0; }
.template-picker-heading { display: grid; gap: 5px; margin: 0 0 16px; padding: 0 4px 14px; border-bottom: 1px solid #dfe7e2; }
.template-picker-kicker { color: #8a9a91; font-size: 9px; letter-spacing: .14em; }
.template-picker-heading strong { color: #263a30; font-size: 15px; font-weight: 650; }
.template-picker-heading small { color: #7a887f; font-size: 11px; line-height: 1.5; }
.template-picker-group { margin: 16px 4px 7px; color: #829087; font-size: 10px; }
.template-picker-group:first-of-type { margin-top: 0; }
.template-choice { display: grid; gap: 4px; width: 100%; padding: 12px 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #4c6255; text-align: left; }
.template-choice:hover { background: #f0f5f1; }
.template-choice.active { border-color: #9fc9b6; background: #e8f2eb; color: #166e55; }
.template-choice.locked { color: #a1aaa4; cursor: not-allowed; }
.template-choice-name { font-size: 12px; font-weight: 600; }
.template-choice-meta { color: #87968d; font-size: 10px; }
.template-choice.active .template-choice-meta { color: #4a9076; }
.content-editor { min-width: 0; }
.template-live-preview { position: sticky; top: 20px; min-width: 0; overflow: hidden; border: 1px solid #dce5df; background: #f7faf8; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #dce5df; color: #344b3e; font-size: 12px; font-weight: 600; }
.preview-status { color: #6d897a; font-size: 10px; font-weight: 400; }
#templatePreview { display: block; width: 100%; height: min(760px, calc(100vh - 150px)); min-height: 520px; border: 0; background: #fff; }
.merchant-shell .item { background: white; border: 0; border-bottom: 1px solid #e0e6e2; border-radius: 0; padding: 10px 0 24px; }
.merchant-shell .imglist-row { flex-wrap: wrap; }
.merchant-shell .imglist-tools { flex-wrap: wrap; }
.merchant-shell #panel-data, .merchant-shell #panel-account { background: white; padding: 24px; border-top: 2px solid #dbe3df; }
.account-summary { display: grid; grid-template-columns: 100px 1fr; gap: 14px; margin: 0 0 30px; padding-bottom: 24px; border-bottom: 1px solid #e4e9e5; font-size: 13px; }
.account-summary dt { color: #7c8780; }
.account-summary dd { margin: 0; overflow-wrap: anywhere; }
.merchant-shell .style-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 24px; }
.merchant-shell .style-group-heading { grid-column:1 / -1; }
.style-group-heading { display:flex; align-items:baseline; gap:12px; padding:16px 2px 0; border-top:1px solid #dfe6e2; }
.style-group-heading:first-child { border-top:0; padding-top:0; }
.style-group-heading .style-group-kicker { color:#819087; font-size:10px; letter-spacing:.14em; }
.style-group-heading strong { color:#1c2822; font-size:18px; }
.style-group-heading .style-group-note { color:#89968e; font-size:12px; }
.style-group-heading.vip { margin-top:16px; border-top-color:#c7b27d; }
.style-group-heading.vip strong { color:#795d1e; }
.style-group-heading.vip .style-group-kicker { color:#9a7b35; }
.merchant-shell .style-cell { border-radius: 6px; }
.merchant-shell .style-thumb { height: 300px; }
.merchant-shell .style-item.wide { grid-column:1 / -1; order:initial; display:grid; grid-template-columns:minmax(0,1.6fr) minmax(210px,.85fr); align-items:center; gap:30px; padding:22px; background:#141613; border:1px solid #4c4536; }
.merchant-shell .style-item.wide .style-cell { border-radius:0; border-color:#514a39; }
.merchant-shell .style-item.wide .style-cell.active { border-color:var(--accent); }
.merchant-shell .style-item.wide .style-thumb { height:auto; aspect-ratio:16 / 10; background:#111310; }
.style-item.wide .style-info { padding:12px 8px 12px 0; }
.style-device { font-size:9px; letter-spacing:.12em; color:#bba477; }
.style-item.wide .style-name { font:400 29px/1.5 "Songti SC",SimSun,serif; margin:16px 0 8px; color:#e3cf9f; }
.style-item.wide .style-desc { font-size:12px; color:#beb7a6; margin-bottom:8px; }
.style-wide-note { font-size:12px; line-height:1.9; color:#aaa99c; margin:18px 0; max-width:320px; }
.style-wide-actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; font-size:11px; }
.style-wide-actions .style-wide-use { background:#cbb581; color:#181a14; border:0; border-radius:0; padding:11px 17px; font-size:12px; }
.style-wide-actions a { color:#d5c499; text-decoration:none; padding:10px 0; }
.style-wide-edit { margin-top:20px; padding-top:16px; border-top:1px solid #cbb58130; }
.style-wide-edit-label { font-size:10px; color:#aaa99c; margin:0 0 10px; letter-spacing:.1em; }
.style-wide-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.style-wide-edit-grid button { background:#ffffff04; border:1px solid #cbb58130; border-radius:0; padding:9px 10px; font-size:11px; color:#d9ccb0; text-align:left; cursor:pointer; }
.style-wide-edit-grid button:hover { background:#cbb58116; border-color:#cbb58180; color:#ead8b1; }
@media(max-width:760px) {
  .merchant-shell .style-item.wide { grid-template-columns:minmax(0,1fr); padding:14px; gap:10px; }
  .style-item.wide .style-info { padding:12px 4px; }
  .style-item.wide .style-name { font-size:26px; margin:8px 0; }
}
.leads-toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.leads-toolbar input { max-width: 320px; }
.leads-toolbar select { width: 140px; }
.leads-list { overflow-x: auto; background: white; }
.leads-list table { min-width: 730px; width: 100%; }
.leads-list select { width: 105px; font-size: 12px; }
.leads-list td { max-width: 240px; overflow-wrap: anywhere; }
.empty-state { padding: 42px 20px; text-align: center; color: #7d8d82; font-size: 13px; }
.merchant-shell button:focus-visible, .merchant-shell a:focus-visible { outline: 2px solid #399778; outline-offset: 3px; }
@media (min-width: 1600px) { .overview-columns { grid-template-columns: minmax(0, 1fr) 360px; } .store-cover { height: 155px; } .workspace-main { padding: 36px 44px 48px; } }
@media (max-width: 1350px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
  .template-picker { grid-column: 1 / -1; position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .template-picker-heading { flex-basis: 100%; margin: 0; padding: 0 0 4px; border: 0; }
  .template-picker-kicker, .template-picker-heading small, .template-picker-group { display: none; }
  .template-choice { width: auto; min-width: 130px; border-color: #dce5df; }
}
@media (max-width: 1150px) { .merchant-shell { grid-template-columns: 180px minmax(0, 1fr); } .workspace-main { padding: 24px; } .overview-columns { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; } .metric { padding: 0 16px; } .merchant-shell .savebar { left: 180px; } .workspace-heading { flex-wrap: wrap; } .merchant-shell .section-body .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 950px) { .merchant-shell { grid-template-columns: 64px minmax(0, 1fr); } .merchant-sidebar { padding: 24px 8px 12px; } .workspace-brand { padding: 0 5px 30px; } .workspace-brand img { width: 36px; height: 36px; } .workspace-brand > span, .nav-caption, .workspace-nav button > span, .sidebar-identity, .sidebar-logout > span { display: none; } .workspace-nav button { justify-content: center; padding: 13px; } .sidebar-logout { justify-content: center; padding: 12px; } .workspace-topbar { padding: 12px 24px; } .merchant-shell .savebar { left: 64px; } .overview-columns { grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; } .workspace-region { padding: 18px; } .metric { padding: 0 12px; } .metric strong { font-size: 28px; } .metric-label .workspace-icon { display: none; } .portfolio-type { display: none; } .portfolio-row { grid-template-columns: 52px minmax(0, 1fr) 28px; gap: 10px; } .portfolio-image { width: 52px; height: 48px; } .contact-row { gap: 9px; grid-template-columns: 60px minmax(0, 1fr) 30px; } .content-layout { grid-template-columns: minmax(0, 1fr); } .template-live-preview { position: static; width: 100%; max-width: 420px; justify-self: center; } }
@media (max-width: 700px) { .workspace-main { padding: 20px 18px 32px; } .workspace-heading { margin-bottom: 22px; gap: 16px; } .workspace-heading h1 { font-size: 23px; } .workspace-topbar { padding: 12px 18px; } .role-tag { display: none; } .overview-columns { grid-template-columns: minmax(0, 1fr); } .overview-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .store-cover { height: 100px; } .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; } .metric:nth-child(2) { border: 0; } .metric { padding: 0 18px; } .metric-label .workspace-icon { display: block; } .template-picker { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .template-picker-heading, .template-picker-group { display: none; } .template-choice { flex-shrink: 0; min-width: 140px; } .content-nav { flex-wrap: nowrap; gap: 3px; overflow-x: auto; } .content-nav button { min-width: 96px; padding: 8px; text-align: center; font-size: 11px; } .workspace-footer { padding: 15px 18px; } #overviewStatus { display: none; } }
@media (max-width: 460px) { .merchant-shell { grid-template-columns: 52px minmax(0, 1fr); } .merchant-sidebar { padding-left: 4px; padding-right: 4px; } .workspace-brand { padding-left: 5px; } .workspace-brand img { width: 30px; height: 30px; } .workspace-nav button { padding: 12px; } .workspace-main { padding: 18px 12px 28px; } .workspace-topbar { padding: 12px; } .workspace-breadcrumb { font-size: 11px; } .workspace-breadcrumb span { padding: 0 4px; } .workspace-preview span { display: none; } .heading-actions { flex-wrap: wrap; gap: 8px; } .workspace-primary, .workspace-secondary { padding: 8px 10px; font-size: 11px; } .metric { padding: 0 12px; } .metric strong { font-size: 26px; } .metric-label { font-size: 11px; } .metric-label .workspace-icon { display: none; } .overview-secondary { grid-template-columns: minmax(0, 1fr); gap: 0; } .workspace-region { padding: 16px; } .workspace-footer span:last-child { display: none; } .merchant-shell .savebar { left: 52px; padding: 12px; } .merchant-shell .section-body { padding: 16px; } .merchant-shell .imgfield { flex-wrap: wrap; } .merchant-shell .imgfield-body { flex-basis: 100%; } .leads-toolbar { flex-wrap: wrap; } .store-cover { height: 140px; } }
